aboutsummaryrefslogtreecommitdiffstats
path: root/net-mgmt/netams/files
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2010-05-14 20:42:50 +0800
committerpav <pav@FreeBSD.org>2010-05-14 20:42:50 +0800
commitd1f541bfb6565539fbe617307d6978bcc60d7c0d (patch)
tree9515301a4310f2e7179ae5097b38230708d3254e /net-mgmt/netams/files
parent2c61bed137737a2b0227e32d685495344190c63f (diff)
downloadfreebsd-ports-gnome-d1f541bfb6565539fbe617307d6978bcc60d7c0d.tar.gz
freebsd-ports-gnome-d1f541bfb6565539fbe617307d6978bcc60d7c0d.tar.zst
freebsd-ports-gnome-d1f541bfb6565539fbe617307d6978bcc60d7c0d.zip
- Update to 3.4.5
PR: ports/143410 Submitted by: Anton Vinokurov <anton@netams.com> (maintainer)
Diffstat (limited to 'net-mgmt/netams/files')
-rw-r--r--net-mgmt/netams/files/netams.in15
-rw-r--r--net-mgmt/netams/files/pkg-message.in13
2 files changed, 16 insertions, 12 deletions
diff --git a/net-mgmt/netams/files/netams.in b/net-mgmt/netams/files/netams.in
index fe4be1b9990c..a4aa56864f4b 100644
--- a/net-mgmt/netams/files/netams.in
+++ b/net-mgmt/netams/files/netams.in
@@ -1,11 +1,10 @@
#!/bin/sh
-#
# $FreeBSD$
-#
# PROVIDE: netams
# REQUIRE: NETWORKING
# KEYWORD: shutdown
+# REQUIRE: mysql
# Define these netams_* variables in one of these files:
# /etc/rc.conf
@@ -19,19 +18,21 @@
#
# 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
name="netams"
rcvar=`set_rcvar`
+command="%%PREFIX%%/libexec/netams"
load_rc_config $name
-: ${netams_enable="NO"}
-: ${netams_config="%%PREFIX%%/etc/netams.conf"}
+pidfile="${netams_pidfile}"
-pidfile="/var/run/netams.pid"
-command="%%PREFIX%%/libexec/netams"
-command_args="-lf ${netams_config} > /dev/null &"
+start_cmd="echo \"Starting ${name}.\"; ${command} -lf ${netams_config} > /dev/null"
run_rc_command "$1"
diff --git a/net-mgmt/netams/files/pkg-message.in b/net-mgmt/netams/files/pkg-message.in
index 2892e0b05d52..abf1f1d7aea3 100644
--- a/net-mgmt/netams/files/pkg-message.in
+++ b/net-mgmt/netams/files/pkg-message.in
@@ -1,13 +1,16 @@
-----------------------------------------------------------------------------
+--------------------------------------------------------------------------
The NeTAMS package has been successfully installed.
Check %%DATADIR%% and http://www.netams.com for examples.
A sample configuration file has been installed to %%PREFIX%%/etc as
-"netams.conf.sample". This may be renamed to "netams.conf" and edited.
+"netams.conf.sample". It MUST be renamed to "netams.conf" and adjusted.
-In order to use the netamsctl programs,
-you may copy %%DATADIR%%/.netamsctl.rc to your
-home directory and edit it.
+In order to use the "netamsctl" utility, you may copy
+%%DATADIR%%/.netamsctl.rc to your home directory and adjust it too.
+PLEASE READ THE DOCUMENTATION!
+http://www.netams.com
+
+--------------------------------------------------------------------------