added net-im/mu-conference-0.7 that supports both jabberd-1.4* and jabberd2-2*
This commit is contained in:
parent
7dbadaca8f
commit
f5a2f59a3c
10 changed files with 308 additions and 0 deletions
36
net-im/mu-conference/Manifest
Normal file
36
net-im/mu-conference/Manifest
Normal file
|
@ -0,0 +1,36 @@
|
||||||
|
AUX README.Gentoo 1483 RMD160 f3f059fc9789e4b162485f72f43dd788418cdb24 SHA1 6131ff6d57cff11ae1d875bf983d71decbf74ebc SHA256 36efdb71c2d68941fe1d26c5989064a9ed18d91e6bfd83ae884e9088a17b6159
|
||||||
|
MD5 95d0e1126a3c7d35a21f43cd01095323 files/README.Gentoo 1483
|
||||||
|
RMD160 f3f059fc9789e4b162485f72f43dd788418cdb24 files/README.Gentoo 1483
|
||||||
|
SHA256 36efdb71c2d68941fe1d26c5989064a9ed18d91e6bfd83ae884e9088a17b6159 files/README.Gentoo 1483
|
||||||
|
AUX mu-conference-0.7.init 410 RMD160 56d96e68d1715beecf6e695f8a1d9d484291cd65 SHA1 8e5c152ba6afd1138ecc208f0de96232c28e3e1a SHA256 ab08f29e14514d3705c83a7149629b2081140d7ef2f27ff49e4ca58c94742c07
|
||||||
|
MD5 2cc9731f54ff4e6970d9b8d69d562842 files/mu-conference-0.7.init 410
|
||||||
|
RMD160 56d96e68d1715beecf6e695f8a1d9d484291cd65 files/mu-conference-0.7.init 410
|
||||||
|
SHA256 ab08f29e14514d3705c83a7149629b2081140d7ef2f27ff49e4ca58c94742c07 files/mu-conference-0.7.init 410
|
||||||
|
AUX mu-conference-conf.d 435 RMD160 e195766105473e83969bd9ed9de4e37dacc19baa SHA1 b77c8b806a882df5a58c26804848a9a927aae77c SHA256 d1c13df4fe3be4cb15b830f4b5935fc51d0a09e827e99225ae189fafdbc7e741
|
||||||
|
MD5 fe7a249c39d9046180aee62459ed6c82 files/mu-conference-conf.d 435
|
||||||
|
RMD160 e195766105473e83969bd9ed9de4e37dacc19baa files/mu-conference-conf.d 435
|
||||||
|
SHA256 d1c13df4fe3be4cb15b830f4b5935fc51d0a09e827e99225ae189fafdbc7e741 files/mu-conference-conf.d 435
|
||||||
|
AUX mu-conference-makefile.patch 430 RMD160 ca5d8b9b8a12616c1b35dae285367e99d982e9aa SHA1 d7ad1db101b9b014e33511be7c84e697a6052841 SHA256 58e36385215a1da9278a914939e807c5379b0960cae645ac8f288e9d29dd93d3
|
||||||
|
MD5 34c298326722258d9f0ad798afb32cb1 files/mu-conference-makefile.patch 430
|
||||||
|
RMD160 ca5d8b9b8a12616c1b35dae285367e99d982e9aa files/mu-conference-makefile.patch 430
|
||||||
|
SHA256 58e36385215a1da9278a914939e807c5379b0960cae645ac8f288e9d29dd93d3 files/mu-conference-makefile.patch 430
|
||||||
|
AUX muc-transport.init 529 RMD160 b9b4f46012ee5e83a4772666432ec884ce14361c SHA1 d70825a0c1397dc2877f633d496b1fbcc74be6e1 SHA256 d4f772a6c94bc19ea45b3cb6e6a92f9ac26ccddb344112053485fb0db606e9bf
|
||||||
|
MD5 34f38216da5355bb7d24145b50d39bfd files/muc-transport.init 529
|
||||||
|
RMD160 b9b4f46012ee5e83a4772666432ec884ce14361c files/muc-transport.init 529
|
||||||
|
SHA256 d4f772a6c94bc19ea45b3cb6e6a92f9ac26ccddb344112053485fb0db606e9bf files/muc-transport.init 529
|
||||||
|
AUX muc-transport.init-r2 532 RMD160 8cfa94e0e0510044bddd07bcabcac979d45735e0 SHA1 cd6424c1a2bf8c7a1e636ba0cb9a7ff482bedb15 SHA256 359b28c8218c5f26154d2ca051031c1d37cfb36e55de8a3d71f67d66893bdab2
|
||||||
|
MD5 48afbfebeba7df894e0b4fed629e22eb files/muc-transport.init-r2 532
|
||||||
|
RMD160 8cfa94e0e0510044bddd07bcabcac979d45735e0 files/muc-transport.init-r2 532
|
||||||
|
SHA256 359b28c8218c5f26154d2ca051031c1d37cfb36e55de8a3d71f67d66893bdab2 files/muc-transport.init-r2 532
|
||||||
|
AUX muctrans.xml 908 RMD160 b2ddb59e7a85651b2478b717cf5182d326f2d857 SHA1 581cdb5badb9652d99b9717b034e2a4afa534599 SHA256 66b653cc18a1738520cd012e2d71079724a34d1f84e4c3aad5e9b84d485fc6aa
|
||||||
|
MD5 5d92cc782339ac08100c8a4068f24b92 files/muctrans.xml 908
|
||||||
|
RMD160 b2ddb59e7a85651b2478b717cf5182d326f2d857 files/muctrans.xml 908
|
||||||
|
SHA256 66b653cc18a1738520cd012e2d71079724a34d1f84e4c3aad5e9b84d485fc6aa files/muctrans.xml 908
|
||||||
|
DIST mu-conference_0.7.tar.gz 112381 RMD160 82a02434414ec3eb925959401b5c847912088e6b SHA1 eb8e21f708587a02042f425a814db6fff6e0ba7e SHA256 914d7e5cf45c50e3eaae77d03d895211d332f85469f4a70adaf7209917d27a35
|
||||||
|
EBUILD mu-conference-0.7-r1.ebuild 2168 RMD160 0f51683f79bed8531104ad30c91b08d8ef2cd7f8 SHA1 6662b47860e1ce3800e5531bf661db019c45c6b4 SHA256 c70aa5b430ac3efaad6b82e340f6e3cec65468eaf22ad4baef4b831c1c24fb43
|
||||||
|
MD5 3e691445492914004516b27d5e9bef76 mu-conference-0.7-r1.ebuild 2168
|
||||||
|
RMD160 0f51683f79bed8531104ad30c91b08d8ef2cd7f8 mu-conference-0.7-r1.ebuild 2168
|
||||||
|
SHA256 c70aa5b430ac3efaad6b82e340f6e3cec65468eaf22ad4baef4b831c1c24fb43 mu-conference-0.7-r1.ebuild 2168
|
||||||
|
MD5 afe534bffdaae271d286a2bc523560b2 files/digest-mu-conference-0.7-r1 253
|
||||||
|
RMD160 d59820e666bb4efdba3d3dfa75d441e2214e48d0 files/digest-mu-conference-0.7-r1 253
|
||||||
|
SHA256 397660aefcbd458d85c7f686e0c08f6e76d411b8f66dec005954fce21739ec93 files/digest-mu-conference-0.7-r1 253
|
40
net-im/mu-conference/files/README.Gentoo
Normal file
40
net-im/mu-conference/files/README.Gentoo
Normal 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
|
3
net-im/mu-conference/files/digest-mu-conference-0.7-r1
Normal file
3
net-im/mu-conference/files/digest-mu-conference-0.7-r1
Normal 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
|
25
net-im/mu-conference/files/mu-conference-0.7.init
Normal file
25
net-im/mu-conference/files/mu-conference-0.7.init
Normal 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 $?
|
||||||
|
}
|
9
net-im/mu-conference/files/mu-conference-conf.d
Normal file
9
net-im/mu-conference/files/mu-conference-conf.d
Normal 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"
|
11
net-im/mu-conference/files/mu-conference-makefile.patch
Normal file
11
net-im/mu-conference/files/mu-conference-makefile.patch
Normal 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
|
26
net-im/mu-conference/files/muc-transport.init
Normal file
26
net-im/mu-conference/files/muc-transport.init
Normal 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 $?
|
||||||
|
}
|
33
net-im/mu-conference/files/muc-transport.init-r2
Normal file
33
net-im/mu-conference/files/muc-transport.init-r2
Normal 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 $?
|
||||||
|
}
|
37
net-im/mu-conference/files/muctrans.xml
Normal file
37
net-im/mu-conference/files/muctrans.xml
Normal 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>
|
||||||
|
|
88
net-im/mu-conference/mu-conference-0.7-r1.ebuild
Normal file
88
net-im/mu-conference/mu-conference-0.7-r1.ebuild
Normal file
|
@ -0,0 +1,88 @@
|
||||||
|
# Copyright 1999-2007 Gentoo Foundation
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
# $Header: $
|
||||||
|
|
||||||
|
inherit eutils
|
||||||
|
|
||||||
|
DESCRIPTION="Multi-User Chat for jabberd"
|
||||||
|
HOMEPAGE="https://gna.org/projects/mu-conference/"
|
||||||
|
SRC_URI="http://download.gna.org/mu-conference/${PN}_${PV}.tar.gz"
|
||||||
|
|
||||||
|
LICENSE="GPL-2"
|
||||||
|
KEYWORDS="~x86 ~amd64 ~sparc"
|
||||||
|
SLOT="0"
|
||||||
|
|
||||||
|
DEPEND="dev-libs/expat
|
||||||
|
>=dev-libs/glib-2
|
||||||
|
net-dns/libidn
|
||||||
|
|| (net-im/jabberd net-im/jabberd2)
|
||||||
|
mysql? ( virtual/mysql )"
|
||||||
|
|
||||||
|
IUSE="mysql"
|
||||||
|
|
||||||
|
|
||||||
|
S="${WORKDIR}/${PN}_${PV}"
|
||||||
|
|
||||||
|
src_unpack() {
|
||||||
|
unpack ${A}
|
||||||
|
cd ${S}
|
||||||
|
|
||||||
|
# Fix missing header in src/conference_user.c in order to
|
||||||
|
# make emerge happy and avoid QA notice.
|
||||||
|
sed -i "/conference.h/ i #define _XOPEN_SOURCE" src/conference_user.c
|
||||||
|
|
||||||
|
if use mysql; then
|
||||||
|
sed -i '/^CFLAGS/ a CFLAGS:=$(CFLAGS) -DHAVE_MYSQL' src/Makefile
|
||||||
|
else
|
||||||
|
# Makefile is broken. Should not always link against mysql
|
||||||
|
sed -i 's/`mysql_config --libs`//' src/Makefile
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
src_compile() {
|
||||||
|
emake || die
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
exeinto /usr/bin
|
||||||
|
doexe src/mu-conference
|
||||||
|
fowners jabber:jabber /usr/bin/mu-conference
|
||||||
|
fperms 750 /usr/bin/mu-conference
|
||||||
|
|
||||||
|
newinitd ${FILESDIR}/${P}.init mu-conference
|
||||||
|
|
||||||
|
dodoc ChangeLog FAQ mu-conference.sql README
|
||||||
|
docinto scripts
|
||||||
|
dodoc scripts/*
|
||||||
|
|
||||||
|
for i in log spool; do
|
||||||
|
dodir /var/${i}/jabber/mu-conference
|
||||||
|
keepdir /var/${i}/jabber/mu-conference
|
||||||
|
fowners jabber:jabber /var/${i}/jabber/mu-conference
|
||||||
|
fperms 770 /var/${i}/jabber/mu-conference
|
||||||
|
done
|
||||||
|
|
||||||
|
insinto /etc/jabber
|
||||||
|
newins muc-default.xml mu-conference.xml
|
||||||
|
doins style.css
|
||||||
|
|
||||||
|
cd "${D}/etc/jabber/"
|
||||||
|
sed -i \
|
||||||
|
-e 's,./spool/chat.localhost,/var/spool/jabber/mu-conference,g' \
|
||||||
|
-e 's,./syslogs,/var/log/jabber,g' \
|
||||||
|
-e 's,./logs,/var/log/jabber/mu-conference,g' \
|
||||||
|
-e 's,./mu-conference.pid,/var/run/jabber/mu-conference.pid,g' \
|
||||||
|
-e "s,../style.css,/etc/jabber/style.css,g" \
|
||||||
|
-e "s,7009,5347,g" \
|
||||||
|
mu-conference.xml || die "sed failed"
|
||||||
|
}
|
||||||
|
|
||||||
|
pkg_postinst() {
|
||||||
|
elog
|
||||||
|
elog "For jabberd-2 connection:"
|
||||||
|
elog "1. Make sure that the ip and port in /etc/jabber/mu-conference.xml"
|
||||||
|
elog " match the address of your jabberd router."
|
||||||
|
elog "2. Set a common secret in mu-conference.xml and router.xml"
|
||||||
|
elog
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue