aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrooks Davis <brooks@FreeBSD.org>2011-10-19 20:34:16 +0000
committerBrooks Davis <brooks@FreeBSD.org>2011-10-19 20:34:16 +0000
commit131325af8e20c28b8f4b51fa2755fe2de85ac04d (patch)
treed91dfce4d912ebd0fc946ded694f773c0771e403
parent85743a97637eab14defb66bdccc8543656b1dc96 (diff)
downloadports-131325af8e20c28b8f4b51fa2755fe2de85ac04d.tar.gz
ports-131325af8e20c28b8f4b51fa2755fe2de85ac04d.zip
Notes
-rw-r--r--sysutils/ganglia-monitor-core/Makefile4
-rw-r--r--sysutils/ganglia-monitor-core/files/gmond.sh.in16
-rw-r--r--sysutils/ganglia-monitor-core/files/patch-gmetad_Makefile.in14
3 files changed, 25 insertions, 9 deletions
diff --git a/sysutils/ganglia-monitor-core/Makefile b/sysutils/ganglia-monitor-core/Makefile
index fa9a404a8e7f..99ed13da770b 100644
--- a/sysutils/ganglia-monitor-core/Makefile
+++ b/sysutils/ganglia-monitor-core/Makefile
@@ -7,7 +7,7 @@
PORTNAME= monitor-core
PORTVERSION= 3.1.7
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= sysutils net parallel
MASTER_SITES= SF/ganglia/ganglia%20monitoring%20core/${PORTVERSION}
PKGNAMEPREFIX= ganglia-
@@ -33,7 +33,7 @@ LIBTOOLFILES= configure libmetrics/configure
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --enable-setuid=ganglia --enable-setgid=ganglia
-CONFIGURE_ENV= GANGLIA_ACK_SYSCONFDIR=1
+CONFIGURE_ENV= GANGLIA_ACK_SYSCONFDIR=1 "LDFLAGS=${LDFLAGS}"
CFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
diff --git a/sysutils/ganglia-monitor-core/files/gmond.sh.in b/sysutils/ganglia-monitor-core/files/gmond.sh.in
index 44ba46ae767e..95e78ddefa65 100644
--- a/sysutils/ganglia-monitor-core/files/gmond.sh.in
+++ b/sysutils/ganglia-monitor-core/files/gmond.sh.in
@@ -5,21 +5,23 @@
# REQUIRE: DAEMON
# KEYWORD: shutdown
+bname=`basename $0`
. /etc/rc.subr
-name=gmond
+name=`echo "${bname}" | tr ".-" "__"`
rcvar=`set_rcvar`
-command="%%PREFIX%%/sbin/${name}"
+command="%%PREFIX%%/sbin/gmond"
load_rc_config ganglia
-load_rc_config $name
+load_rc_config $bname
-gmond_enable=${gmond_enable-NO}
-gmond_conf=${gmond_conf-%%PREFIX%%/etc/gmond.conf}
+eval "${name}_enable=\${${name}_enable-NO}"
+eval "conffile=\${${name}_conf-%%PREFIX%%/etc/${bname}.conf}"
-command_args="-c ${gmond_conf}"
-required_files=${gmond_conf}
+pidfile="/var/run/${bname}.pid"
+command_args="-c ${conffile} -p ${pidfile}"
+required_files=${conffile}
run_rc_command $*
diff --git a/sysutils/ganglia-monitor-core/files/patch-gmetad_Makefile.in b/sysutils/ganglia-monitor-core/files/patch-gmetad_Makefile.in
new file mode 100644
index 000000000000..dcb7d57c3cd8
--- /dev/null
+++ b/sysutils/ganglia-monitor-core/files/patch-gmetad_Makefile.in
@@ -0,0 +1,14 @@
+
+$FreeBSD$
+
+--- gmetad/Makefile.in.orig
++++ gmetad/Makefile.in
+@@ -539,8 +539,6 @@
+ $(FIXCONFIG) gmetad.conf.in
+
+ install-data-hook: gmetad.conf
+- mkdir -p $(DESTDIR)$(sysconfdir) && \
+- $(INSTALL_DATA) gmetad.conf $(DESTDIR)$(sysconfdir)/gmetad.conf
+ # Tell versions [3.59,3.63) of GNU make to not export all variables.
+ # Otherwise a system limit (for SysV at least) may be exceeded.
+ .NOEXPORT: