aboutsummaryrefslogtreecommitdiff
path: root/net-mgmt
diff options
context:
space:
mode:
authorDoug Barton <dougb@FreeBSD.org>2010-05-29 18:26:54 +0000
committerDoug Barton <dougb@FreeBSD.org>2010-05-29 18:26:54 +0000
commitb60d5aef0fa78816c9c489950fd15c0dcb15a8be (patch)
tree12b45a605612928caedc9d334216dff9d346f78d /net-mgmt
parentffe3e2e2d09cd8b8667287218b4bf598f04cec24 (diff)
downloadports-b60d5aef0fa78816c9c489950fd15c0dcb15a8be.tar.gz
ports-b60d5aef0fa78816c9c489950fd15c0dcb15a8be.zip
Notes
Diffstat (limited to 'net-mgmt')
-rw-r--r--net-mgmt/netams/Makefile1
-rw-r--r--net-mgmt/netams/files/netams.in20
2 files changed, 11 insertions, 10 deletions
diff --git a/net-mgmt/netams/Makefile b/net-mgmt/netams/Makefile
index eabb633ab1fe..854f102cb102 100644
--- a/net-mgmt/netams/Makefile
+++ b/net-mgmt/netams/Makefile
@@ -7,6 +7,7 @@
PORTNAME= netams
PORTVERSION= 3.4.5
+PORTREVISION= 1
CATEGORIES= net-mgmt
MASTER_SITES= http://www.netams.com/files/
diff --git a/net-mgmt/netams/files/netams.in b/net-mgmt/netams/files/netams.in
index a4aa56864f4b..934ce50c9849 100644
--- a/net-mgmt/netams/files/netams.in
+++ b/net-mgmt/netams/files/netams.in
@@ -1,10 +1,10 @@
#!/bin/sh
-# $FreeBSD$
+# $FreeBSD$
+#
# PROVIDE: netams
-# REQUIRE: NETWORKING
+# REQUIRE: NETWORKING mysql
# KEYWORD: shutdown
-# REQUIRE: mysql
# Define these netams_* variables in one of these files:
# /etc/rc.conf
@@ -15,13 +15,9 @@
# Set it to "YES" to enable netams.
# netams_config (str): Custom configuration file to be passed
# to netams.
+# netams_pidfile (str): Path to the pid file (/var/run/netams.pid)
#
# DO NOT CHANGE THESE DEFAULT VALUES HERE
-#
-netams_enable=${netams_enable-"NO"}
-netams_config=${netams_config-"%%PREFIX%%/etc/netams/netams.conf"}
-
-netams_pidfile="/var/run/netams.pid"
. /etc/rc.subr
@@ -31,8 +27,12 @@ command="%%PREFIX%%/libexec/netams"
load_rc_config $name
-pidfile="${netams_pidfile}"
+netams_enable=${netams_enable:-"NO"}
+netams_config=${netams_config:-"%%PREFIX%%/etc/netams/netams.conf"}
+pidfile="${netams_pidfile:-/var/run/netams.pid}"
+
+required_files="$netams_config"
-start_cmd="echo \"Starting ${name}.\"; ${command} -lf ${netams_config} > /dev/null"
+command_args="-lf ${netams_config} > /dev/null"
run_rc_command "$1"