diff --git a/sysutils/ganglia-monitor-core/Makefile b/sysutils/ganglia-monitor-core/Makefile index a80ef3bc77d3..81df7d4d7fd8 100644 --- a/sysutils/ganglia-monitor-core/Makefile +++ b/sysutils/ganglia-monitor-core/Makefile @@ -2,7 +2,7 @@ PORTNAME= monitor-core PORTVERSION= 3.4.0 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= sysutils net parallel MASTER_SITES= SF/ganglia/ganglia%20monitoring%20core/${PORTVERSION} PKGNAMEPREFIX= ganglia- diff --git a/sysutils/ganglia-monitor-core/files/gmond.in b/sysutils/ganglia-monitor-core/files/gmond.in index a6e8ebfe1876..6058bdb3adbf 100644 --- a/sysutils/ganglia-monitor-core/files/gmond.in +++ b/sysutils/ganglia-monitor-core/files/gmond.in @@ -1,14 +1,23 @@ #!/bin/sh -# $FreeBSD: head/sysutils/ganglia-monitor-core/files/gmond.in 302141 2012-08-05 23:19:36Z dougb $ +# $FreeBSD$ # PROVIDE: gmond # REQUIRE: DAEMON # KEYWORD: shutdown -bname=`basename $0` - . /etc/rc.subr +case "$0" in +/etc/rc*) + # during boot (shutdown) $0 is /etc/rc (/etc/rc.shutdown), + # so get the name of the script from $_file + bname=`basename $_file` + ;; +*) + bname=`basename $0` + ;; +esac + name=`echo "${bname}" | tr ".-" "__"` rcvar=${name}_enable