diff options
author | Ganael LAPLANCHE <martymac@FreeBSD.org> | 2014-01-07 08:04:09 +0000 |
---|---|---|
committer | Ganael LAPLANCHE <martymac@FreeBSD.org> | 2014-01-07 08:04:09 +0000 |
commit | deddc045603064e4020e20903addb9f1bed8db67 (patch) | |
tree | 3f2f834d5bd3a6bff9b0dda8aa52b8b8f7cf5ca8 /sysutils | |
parent | 0f19095998b048115391e9e6d143fa5090c2ff80 (diff) | |
download | ports-deddc045603064e4020e20903addb9f1bed8db67.tar.gz ports-deddc045603064e4020e20903addb9f1bed8db67.zip |
Notes
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/ganglia-monitor-core/Makefile | 2 | ||||
-rw-r--r-- | sysutils/ganglia-monitor-core/files/gmond.in | 15 |
2 files changed, 13 insertions, 4 deletions
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 |