aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authordougb <dougb@FreeBSD.org>2010-03-27 09:08:47 +0800
committerdougb <dougb@FreeBSD.org>2010-03-27 09:08:47 +0800
commit3491db725004db3bf5b2a80b27d60c70efdb96aa (patch)
treeaccd5c5e88c202dc37728078940fb140ff379f24 /net
parent36032a43035325839323a6a57f151df882d0828d (diff)
downloadfreebsd-ports-graphics-3491db725004db3bf5b2a80b27d60c70efdb96aa.tar.gz
freebsd-ports-graphics-3491db725004db3bf5b2a80b27d60c70efdb96aa.tar.zst
freebsd-ports-graphics-3491db725004db3bf5b2a80b27d60c70efdb96aa.zip
cvs commit: Examining .
cvs commit: Examining files Properly utilize USE_RC_SUBR Make pkg-message dynamic PR: ports/143141 Submitted by: Sevan Janiyan <venture37@geeklan.co.uk> Approved by: maintainer timeout
Diffstat (limited to 'net')
-rw-r--r--net/minisapserver/files/pkg-message.in7
-rw-r--r--net/minisapserver/files/sapserver.in26
2 files changed, 33 insertions, 0 deletions
diff --git a/net/minisapserver/files/pkg-message.in b/net/minisapserver/files/pkg-message.in
new file mode 100644
index 00000000000..4a5bfe1513e
--- /dev/null
+++ b/net/minisapserver/files/pkg-message.in
@@ -0,0 +1,7 @@
+*******************************************************************************
+A sample configuration file, sap.cfg-dist has been installed in %%PREFIX%%/etc/
+ Please 'cp sap.cfg-dist sap.cfg' and edit sap.cfg.
+
+To start sapserver at boot time:
+ echo "sapserver_enable=yes" >> /etc/rc.conf
+*******************************************************************************
diff --git a/net/minisapserver/files/sapserver.in b/net/minisapserver/files/sapserver.in
new file mode 100644
index 00000000000..2c27d41cb05
--- /dev/null
+++ b/net/minisapserver/files/sapserver.in
@@ -0,0 +1,26 @@
+#!/bin/sh
+
+# $FreeBSD$
+#
+# PROVIDE: sapserver
+# REQUIRE: NETWORKING
+# KEYWORD: shutdown
+#
+# Add the following lines to /etc/rc.conf to enable sapserver:
+#
+# sapserver_enable="YES"
+#
+
+. /etc/rc.subr
+
+name=sapserver
+rcvar=${name}_enable
+
+command=%%PREFIX%%/bin/${name}
+required_files=%%PREFIX%%/etc/sap.cfg
+
+load_rc_config ${name}
+
+: ${sapserver_enable="NO"}
+
+run_rc_command "$1"