aboutsummaryrefslogtreecommitdiff
path: root/net-im
diff options
context:
space:
mode:
authorEdwin Groothuis <edwin@FreeBSD.org>2006-01-07 02:59:20 +0000
committerEdwin Groothuis <edwin@FreeBSD.org>2006-01-07 02:59:20 +0000
commit251d261a17c45df56d6bc2e57ca58e57f66c65cd (patch)
tree0b50b4b692e2b431f1c79f52623e1c376506283f /net-im
parent51eca5f2e6231fcc4ba416c1eac37dfd9af77d7b (diff)
downloadports-251d261a17c45df56d6bc2e57ca58e57f66c65cd.tar.gz
ports-251d261a17c45df56d6bc2e57ca58e57f66c65cd.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>
Notes
Notes: svn path=/head/; revision=152946
Diffstat (limited to 'net-im')
-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 c15e6a41746c..4e3ab6450cb8 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 549e2173acc9..a47e38b9fa16 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}"