diff options
author | itetcu <itetcu@FreeBSD.org> | 2006-06-27 06:00:01 +0800 |
---|---|---|
committer | itetcu <itetcu@FreeBSD.org> | 2006-06-27 06:00:01 +0800 |
commit | 45687fdbe21587b4db275aae5a0310b5da36eff8 (patch) | |
tree | 5598d34885c9f5439bf48a3b36c9ca73a0df7e96 /net-mgmt/netams | |
parent | 451934d4bcda5c2c372dd45110ebf75e7d2ccfdc (diff) | |
download | freebsd-ports-gnome-45687fdbe21587b4db275aae5a0310b5da36eff8.tar.gz freebsd-ports-gnome-45687fdbe21587b4db275aae5a0310b5da36eff8.tar.zst freebsd-ports-gnome-45687fdbe21587b4db275aae5a0310b5da36eff8.zip |
- fix rc.d script to check if the daemon is started
- and since we change so much of it also move it to files/netams
- bump PORTREVISION
PR: ports/99322
Submitted by: Vasiliy P. Melnik <basil@gu.net>
Approved by: maintainer
Diffstat (limited to 'net-mgmt/netams')
-rw-r--r-- | net-mgmt/netams/Makefile | 3 | ||||
-rw-r--r-- | net-mgmt/netams/files/netams.in (renamed from net-mgmt/netams/files/netams.sh.in) | 19 |
2 files changed, 9 insertions, 13 deletions
diff --git a/net-mgmt/netams/Makefile b/net-mgmt/netams/Makefile index 18e3661c6142..ec1787d965c7 100644 --- a/net-mgmt/netams/Makefile +++ b/net-mgmt/netams/Makefile @@ -7,6 +7,7 @@ PORTNAME= netams PORTVERSION= 3.3.5 +PORTREVISION= 1 CATEGORIES= net-mgmt MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \ http://www.netams.com/files/ @@ -19,7 +20,7 @@ COMMENT= Network Traffic Accounting and Monitoring Software NO_PACKAGE= Depends on kernel USE_SUBMAKE= yes -USE_RC_SUBR= netams.sh +USE_RC_SUBR= netams MANCOMPRESSED= no SCRIPTS_ENV= WRKDIRPREFIX="${WRKDIRPREFIX}" \ diff --git a/net-mgmt/netams/files/netams.sh.in b/net-mgmt/netams/files/netams.in index 8b7ea67b0d47..9f2f9614d90e 100644 --- a/net-mgmt/netams/files/netams.sh.in +++ b/net-mgmt/netams/files/netams.in @@ -1,14 +1,11 @@ #!/bin/sh # $FreeBSD$ - +# # PROVIDE: netams # REQUIRE: NETWORKING # KEYWORD: shutdown -# Define these netams_* variables in one of these files: -# /etc/rc.conf -# /etc/rc.conf.local -# /etc/rc.conf.d/netams +# Add the following line to /etc/rc.conf to enable netams # # netams_enable (bool): Set to "NO" by default. # Set it to "YES" to enable netams. @@ -17,21 +14,19 @@ # # DO NOT CHANGE THESE DEFAULT VALUES HERE # -netams_enable=${netams_enable-"NO"} -netams_config=${netams_config-"%%PREFIX%%/etc/netams.cfg"} - -netams_pidfile="/var/run/netams.pid" . %%RC_SUBR%% name="netams" rcvar=`set_rcvar` -command="%%PREFIX%%/libexec/netams" load_rc_config $name -pidfile="${netams_pidfile}" +:${netams_enable="NO"} +:${netams_config="/usr/local/etc/netams.cfg"} -start_cmd="echo \"Starting ${name}.\"; ${command} -ldf ${netams_config} > /dev/null" +pidfile="/var/run/netams.pid" +command="/usr/local/libexec/netams" +command_args="-lf ${netams_config} > /dev/null &" run_rc_command "$1" |