mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-13 07:34:50 +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:
parent
15422dc867
commit
638d17ab34
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=162572
@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
PORTNAME= mu-conference
|
PORTNAME= mu-conference
|
||||||
PORTVERSION= 0.6.0
|
PORTVERSION= 0.6.0
|
||||||
PORTREVISION= 2
|
PORTREVISION= 3
|
||||||
CATEGORIES= net-im
|
CATEGORIES= net-im
|
||||||
MASTER_SITES= ${MASTER_SITE_GENTOO} \
|
MASTER_SITES= ${MASTER_SITE_GENTOO} \
|
||||||
http://jabber.terrapin.com/JCR/:jcr
|
http://jabber.terrapin.com/JCR/:jcr
|
||||||
@ -17,6 +17,8 @@ MAINTAINER= dsh@vlink.ru
|
|||||||
COMMENT= Multi-User Conferencing component for Jabber
|
COMMENT= Multi-User Conferencing component for Jabber
|
||||||
|
|
||||||
USE_GNOME= glib20
|
USE_GNOME= glib20
|
||||||
|
USE_RC_SUBR= ${PORTNAME}.sh
|
||||||
|
|
||||||
WRKSRC= ${WRKDIR}/jcr-${JCR_VER}
|
WRKSRC= ${WRKDIR}/jcr-${JCR_VER}
|
||||||
|
|
||||||
JCR_VER?= 0.2.4
|
JCR_VER?= 0.2.4
|
||||||
|
47
net-im/mu-conference/files/mu-conference.sh.in
Normal file
47
net-im/mu-conference/files/mu-conference.sh.in
Normal 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"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user