summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGustavo Felisberto <humpback@gentoo.org>2004-07-08 16:31:40 +0000
committerGustavo Felisberto <humpback@gentoo.org>2004-07-08 16:31:40 +0000
commitb523e571d5eb97f3a39d4e4d2f47d0f68f8dd9e1 (patch)
treee66cf197f1ccbbf2b0a60cda5811f9f7b855ee00 /net-im/mu-conference/files
parentAdded missing IUSE. (diff)
downloadhistorical-b523e571d5eb97f3a39d4e4d2f47d0f68f8dd9e1.tar.gz
historical-b523e571d5eb97f3a39d4e4d2f47d0f68f8dd9e1.tar.bz2
historical-b523e571d5eb97f3a39d4e4d2f47d0f68f8dd9e1.zip
0.6.0-r2 back with fixed init
Diffstat (limited to 'net-im/mu-conference/files')
-rw-r--r--net-im/mu-conference/files/digest-mu-conference-0.6.0-r21
-rw-r--r--net-im/mu-conference/files/mu-conference-conf.d9
-rw-r--r--net-im/mu-conference/files/muc-transport.init-r233
3 files changed, 43 insertions, 0 deletions
diff --git a/net-im/mu-conference/files/digest-mu-conference-0.6.0-r2 b/net-im/mu-conference/files/digest-mu-conference-0.6.0-r2
new file mode 100644
index 000000000000..84c66826bb18
--- /dev/null
+++ b/net-im/mu-conference/files/digest-mu-conference-0.6.0-r2
@@ -0,0 +1 @@
+MD5 e97433bf4a978329d639ce872bee3223 mu-conference-0.6.0.tar.gz 56272
diff --git a/net-im/mu-conference/files/mu-conference-conf.d b/net-im/mu-conference/files/mu-conference-conf.d
new file mode 100644
index 000000000000..3d3efdeca162
--- /dev/null
+++ b/net-im/mu-conference/files/mu-conference-conf.d
@@ -0,0 +1,9 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License, v2 or later
+# $Header: /var/cvsroot/gentoo-x86/net-im/mu-conference/files/mu-conference-conf.d,v 1.3 2004/07/08 16:31:40 humpback Exp $
+
+CONFIG= "/etc/jabber/muctrans.xml"
+
+#Need to find a way to fix the "double" expansion
+#PIDFILE= grep pid ${CONFIG} | sed -e 's/<[^>]*>//g' | sed s/' '//g
+PIDFILE="/var/log/jabber/muctrans.pid"
diff --git a/net-im/mu-conference/files/muc-transport.init-r2 b/net-im/mu-conference/files/muc-transport.init-r2
new file mode 100644
index 000000000000..03978bdad7bd
--- /dev/null
+++ b/net-im/mu-conference/files/muc-transport.init-r2
@@ -0,0 +1,33 @@
+#!/sbin/runscript
+
+depend() {
+ need net
+ use jabber-server
+}
+
+start() {
+ ebegin "Starting MUC Jabber Transport"
+ if [ -f ${PIDFILE} ]; then
+ if [ -z $(ps ax | grep `cat ${PIDFILE}` | grep -v grep ) ]
+ then
+ rm -f ${PIDFILE}
+ fi
+ fi
+
+ jabberd -B -c ${CONFIG} -H /var/spool/jabber >/dev/null 2>&1
+ eend $?
+}
+
+stop() {
+ ebegin "Stoping MUC Jabber Transport"
+ if [ -f ${PIDFILE} ]; then
+ kill `cat ${PIDFILE}`
+ fi
+ sleep 2
+ if [ -f ${PIDFILE} ]; then
+ kill -9 `cat ${PIDFILE}`
+ rm -f ${PIDFILE}
+ fi
+ rm -f ${PIDFILE}
+ eend $?
+}