Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 6 Jan 2006 22:07:42 +0300 (MSK)
From:      Denis Shaposhnikov <dsh@vlink.ru>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        dsh@vlink.ru
Subject:   ports/91415: Update port: net-im/sulci (fix rc.d/sulci.sh script)
Message-ID:  <200601061907.k06J7gaT006667@localhost.my.domain>
Resent-Message-ID: <200601061910.k06JA4Wj013443@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         91415
>Category:       ports
>Synopsis:       Update port: net-im/sulci (fix rc.d/sulci.sh script)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jan 06 19:10:03 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Denis Shaposhnikov
>Release:        FreeBSD 7.0-CURRENT i386
>Organization:
>Environment:
System: FreeBSD localhost.my.domain 7.0-CURRENT FreeBSD 7.0-CURRENT #1: Sat Dec 10 20:23:36 MSK 2005 dsh@localhost.my.domain:/var/FreeBSD/obj/var/FreeBSD/src/sys/MYNERIC i386


	
>Description:

Fix startup rc.d script for new rcNG order.

>How-To-Repeat:
	
>Fix:

diff -Nru sulci.orig/Makefile sulci/Makefile
--- sulci.orig/Makefile	Wed Nov  9 10:48:17 2005
+++ sulci/Makefile	Fri Jan  6 21:38:24 2006
@@ -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 -Nru sulci.orig/files/sulci.sh.in sulci/files/sulci.sh.in
--- sulci.orig/files/sulci.sh.in	Sat Oct 22 03:34:09 2005
+++ sulci/files/sulci.sh.in	Fri Jan  6 21:37:17 2006
@@ -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}"
 
>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200601061907.k06J7gaT006667>