ports/96705: Update port: net-im/mu-conference (add rcNG startup script)

Denis Shaposhnikov dsh at vlink.ru
Wed May 3 09:00:37 UTC 2006


>Number:         96705
>Category:       ports
>Synopsis:       Update port: net-im/mu-conference (add rcNG startup 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:   Wed May 03 09:00:33 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Denis Shaposhnikov
>Release:        FreeBSD 7.0-CURRENT i386
>Organization:
>Environment:
System: FreeBSD neva.vlink.ru 7.0-CURRENT FreeBSD 7.0-CURRENT #6: Mon Apr 3 09:27:04 MSD 2006 dsh at neva.vlink.ru:/var/FreeBSD/obj/var/FreeBSD/src/sys/MYNERIC i386


	
>Description:

This is a little modified version of startup script from ports/96611,
thanks a lot to Christopher Sean Hilton.

Diar commiter, please close PR ports/96611. Thank you!

>How-To-Repeat:
	
>Fix:

diff -Nru mu-conference.orig/Makefile mu-conference/Makefile
--- mu-conference.orig/Makefile	Wed May  3 12:47:16 2006
+++ mu-conference/Makefile	Wed May  3 12:17:40 2006
@@ -17,6 +17,8 @@
 COMMENT=	Multi-User Conferencing component for Jabber
 
 USE_GNOME=	glib20
+USE_RC_SUBR=	${PORTNAME}.sh
+
 WRKSRC=		${WRKDIR}/jcr-${JCR_VER}
 
 JCR_VER?=	0.2.4
diff -Nru mu-conference.orig/files/mu-conference.sh.in mu-conference/files/mu-conference.sh.in
--- mu-conference.orig/files/mu-conference.sh.in	Thu Jan  1 03:00:00 1970
+++ mu-conference/files/mu-conference.sh.in	Wed May  3 12:30:13 2006
@@ -0,0 +1,48 @@
+#!/bin/sh
+
+# Start or stop jabber's mu-conference
+# $FreeBSD$
+
+# PROVIDE: mu_conference
+# REQUIRE: DAEMON jabberd
+# BEFORE: LOGIN
+# KEYWORD: FreeBSD shutdown
+#
+# Define these mu_conference_* variables in one of these files:
+#       /etc/rc.conf
+#       /etc/rc.conf.local
+#       /etc/rc.conf.d/mu_conference
+#
+# DO NOT CHANGE THESE DEFAULT VALUES HERE
+#
+# mu_conference_config : path
+#   Path to the configuration file ("/usr/local/etc/muc.xml", the default).
+#
+# mu_conference_enable : bool
+#   Enable ("YES") or disable ("NO", the default) this startup script.
+#
+
+. /etc/rc.subr
+
+name="mu_conference"
+rcvar=`set_rcvar`
+command="/usr/local/bin/mu-conference"
+pidfile="/var/jabberd/pid/mu-conference.pid"
+
+stop_postcmd="mu_conference_stop_post"
+
+mu_conference_stop_post () {
+        rm -f ${pidfile}
+}
+
+load_rc_config $name
+
+: ${mu_conference_config="/usr/local/etc/muc.xml"}
+: ${mu_conference_enable="NO"}
+: ${mu_conference_user="jabber"}
+
+command_args="-c $mu_conference_config -B"
+
+run_rc_command "$1"
+
+
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list