1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-25 04:43:33 +00:00

- Add rc.d script. Thanks a lot to Christopher Sean Hilton.

- Bump PORTREVISION.

PR:		ports/96705
Submitted by:	Denis Shaposhnikov <dsh@vlink.ru> (maintainer)
Approved by:	lawrance (mentor)
This commit is contained in:
Ion-Mihai Tetcu 2006-05-16 14:45:23 +00:00
parent 15422dc867
commit 638d17ab34
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=162572
2 changed files with 50 additions and 1 deletions

View File

@ -6,7 +6,7 @@
PORTNAME= mu-conference
PORTVERSION= 0.6.0
PORTREVISION= 2
PORTREVISION= 3
CATEGORIES= net-im
MASTER_SITES= ${MASTER_SITE_GENTOO} \
http://jabber.terrapin.com/JCR/:jcr
@ -17,6 +17,8 @@ MAINTAINER= dsh@vlink.ru
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

View File

@ -0,0 +1,47 @@
#!/bin/sh
# Start or stop jabber's mu-conference
# $FreeBSD$
# PROVIDE: mu_conference
# REQUIRE: DAEMON jabberd
# 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 ("%%PREFIX%%/etc/muc.xml", the default).
#
# mu_conference_enable : bool
# Enable ("YES") or disable ("NO", the default) this startup script.
#
. %%RC_SUBR%%
name="mu_conference"
rcvar=`set_rcvar`
command="%%PREFIX%%/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="%%PREFIX%%/etc/muc.xml"}
: ${mu_conference_enable="NO"}
: ${mu_conference_user="jabber"}
command_args="-c $mu_conference_config -B"
run_rc_command "$1"