added net-im/mu-conference-0.7 that supports both jabberd-1.4* and jabberd2-2*

This commit is contained in:
Manuel Friedli 2007-12-17 23:58:25 +00:00
parent 7dbadaca8f
commit f5a2f59a3c
10 changed files with 308 additions and 0 deletions

View file

@ -0,0 +1,40 @@
This is a small help to get you started with the MSN Jabberd transport in
Gentoo.
Edit /etc/jabber/muctrans.xml . This is the config file for MU-Conference.
There change all references to localhost with the FQDN (Fully Qualified Domain
Name) for your server.
In the msnlinker section enter the IP of your main jabber server (normally
127.0.0.1) and choose a port and secret (secret is the password the MSN
transport will use to connect to the main jabber server).
Now back to the multiple.xml to tell your main jabber server to listen to
connections from the MU transport.
Search for "<vcard2jud/>" and after that, and before the </jsm> add:
<browse>
<item category="conference" type="public" jid="conference.localhost" name="Public Conferencing" version="0.6.0">
<ns>http://jabber.org/protocol/muc</ns>
</item>
</browse>
Again here change localhost for your FQDN.
Scrool down to the bottom of the file, and just before the </jabber> add:
<service id="muclinker">
<host>conference.localhost</host>
<accept>
<ip>127.0.0.1</ip>
<port>31518</port>
<secret>mymucsecret</secret>
</accept>
</service>
(By know you know you have to change localhost for you FQDN).
One very importante thing: even if it is the same machine the name's for the
various services must be diferent, that means that there must be valid aliases
for conference.FQDN .
If you need help with configuration you can try the Jabber Admin Mailling list:
http://mailman.jabber.org/listinfo/jadmin

View file

@ -0,0 +1,3 @@
MD5 019e75d80a51da63ba7567341483b2e9 mu-conference_0.7.tar.gz 112381
RMD160 82a02434414ec3eb925959401b5c847912088e6b mu-conference_0.7.tar.gz 112381
SHA256 914d7e5cf45c50e3eaae77d03d895211d332f85469f4a70adaf7209917d27a35 mu-conference_0.7.tar.gz 112381

View file

@ -0,0 +1,25 @@
#!/sbin/runscript
depend() {
need net
use jabber-server
}
start() {
ebegin "Starting MUC Jabber Transport"
start-stop-daemon \
--background \
--start \
--chuid jabber:jabber \
--exec /usr/bin/mu-conference \
-- -c /etc/jabber/mu-conference.xml
eend $?
}
stop() {
ebegin "Stoping MUC Jabber Transport"
start-stop-daemon \
--stop \
--pidfile /var/run/jabber/mu-conference.pid
eend $?
}

View file

@ -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.4 2004/07/08 17:35:01 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"

View file

@ -0,0 +1,11 @@
--- Makefile 2003-11-15 04:19:44.000000000 +0000
+++ Makefile.new 2004-01-10 02:20:28.753368424 +0000
@@ -1,6 +1,6 @@
-include ../../platform-settings
+include /usr/lib/jabberd/platform-settings
-CFLAGS:=$(CFLAGS) -I../../jabberd -I../include `pkg-config --cflags glib-2.0`
+CFLAGS:=$(CFLAGS) -I/usr/include/jabberd -I../include `pkg-config --cflags glib-2.0`
LIBS:=$(LIBS) `pkg-config --libs glib-2.0`
# Debug/Experimental

View file

@ -0,0 +1,26 @@
#!/sbin/runscript
depend() {
need net
use jabber-server
}
start() {
ebegin "Starting MUC Jabber Transport"
jabberd -B -c /etc/jabber/muctrans.xml -H /var/spool/jabber >/dev/null 2>&1
eend $?
}
stop() {
ebegin "Stoping MUC Jabber Transport"
if [ -f /var/log/jabber/muctrans.pid ]; then
kill `cat /var/log/jabber/muctrans.pid`
fi
sleep 2
if [ -f /var/log/jabber/muctrans.pid ]; then
kill -9 `cat /var/log/jabber/muctrans.pid`
rm -f /var/log/jabber/muctrans.pid
fi
rm -f /var/log/jabber/muctrans.pid
eend $?
}

View file

@ -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 $?
}

View file

@ -0,0 +1,37 @@
<jabber>
<service id="muclinker">
<uplink/>
<connect>
<ip>127.0.0.1</ip>
<port>31518</port>
<secret>mymucsecret</secret>
</connect>
</service>
<service id="conference.localhost">
<load>
<conference>/usr/lib/jabberd/mu-conference.so</conference>
</load>
<conference xmlns="jabber:config:conference">
<public/>
<vCard>
<FN>Public Chatrooms</FN>
<DESC>This service is for public chatrooms.</DESC>
<URL>http://conference.localhost/logs/</URL>
</vCard>
<history>20</history>
<logdir>/var/log/jabber/conference/</logdir>
<sadmin>admin@localhost</sadmin>
<notice>
<join>has joined this session</join>
<leave>has left</leave>
<rename>is now known as</rename>
</notice>
</conference>
</service>
<pidfile>/var/log/jabber/muctrans.pid</pidfile>
</jabber>