From f8e9870e90903afc3dc3f9f2b67c48fdcd229887 Mon Sep 17 00:00:00 2001 From: edwin Date: Sat, 7 Jan 2006 02:59:20 +0000 Subject: 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 --- net-im/sulci/Makefile | 1 + net-im/sulci/files/sulci.sh.in | 16 ++++++++++------ 2 files changed, 11 insertions(+), 6 deletions(-) (limited to 'net-im/sulci') 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}" -- cgit