aboutsummaryrefslogtreecommitdiffstats
path: root/net-im/sulci
diff options
context:
space:
mode:
authoredwin <edwin@FreeBSD.org>2006-01-07 10:59:20 +0800
committeredwin <edwin@FreeBSD.org>2006-01-07 10:59:20 +0800
commitf8e9870e90903afc3dc3f9f2b67c48fdcd229887 (patch)
treed6d52e1934919556f10a2451410c008caf9355fd /net-im/sulci
parent3762bf7841531cd5836de6ff7e9021cdc4c35d8f (diff)
downloadfreebsd-ports-graphics-f8e9870e90903afc3dc3f9f2b67c48fdcd229887.tar.gz
freebsd-ports-graphics-f8e9870e90903afc3dc3f9f2b67c48fdcd229887.tar.zst
freebsd-ports-graphics-f8e9870e90903afc3dc3f9f2b67c48fdcd229887.zip
Update port: net-im/sulci (fix rc.d/sulci.sh script)
Fix startup rc.d script for new rcNG order. PR: ports/91415 Submitted by: Denis Shaposhnikov <dsh@vlink.ru>
Diffstat (limited to 'net-im/sulci')
-rw-r--r--net-im/sulci/Makefile1
-rw-r--r--net-im/sulci/files/sulci.sh.in16
2 files changed, 11 insertions, 6 deletions
diff --git a/net-im/sulci/Makefile b/net-im/sulci/Makefile
index c15e6a41746..4e3ab6450cb 100644
--- a/net-im/sulci/Makefile
+++ b/net-im/sulci/Makefile
@@ -7,6 +7,7 @@
PORTNAME= sulci
PORTVERSION= 0.5.a.20050918
+PORTREVISION= 1
PORTEPOCH= 1
CATEGORIES= net-im
MASTER_SITES= http://www.jabber.ru/files/sulci/
diff --git a/net-im/sulci/files/sulci.sh.in b/net-im/sulci/files/sulci.sh.in
index 549e2173acc..a47e38b9fa1 100644
--- a/net-im/sulci/files/sulci.sh.in
+++ b/net-im/sulci/files/sulci.sh.in
@@ -3,27 +3,31 @@
# PROVIDE: sulci
# REQUIRE: DAEMON
-# BEFORE: LOGIN
-# KEYWORD: shutdown
# Define these sulci_* variables in one of these files:
# /etc/rc.conf
# /etc/rc.conf.local
# /etc/rc.conf.d/sulci
#
-# DO NOT CHANGE THESE DEFAULT VALUES HERE
+# sulci_enable : bool
+# Enable ("YES") or disable ("NO", the default) this startup script.
+#
+# sulci_precmd : string
+# Execute this command before the daemon startup, ":" by default.
#
-sulci_enable=${sulci_enable-"NO"}
-sulci_precmd=":"
. %%RC_SUBR%%
name="sulci"
rcvar=`set_rcvar`
+
command="%%PREFIX%%/sbin/sulci"
command_args="&"
-load_rc_config $name
+load_rc_config "${name}"
+
+: ${sulci_enable="NO"}
+: ${sulci_precmd=":"}
start_precmd="${sulci_precmd}"