diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /net-im/mu-conference/files | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'net-im/mu-conference/files')
-rw-r--r-- | net-im/mu-conference/files/README.Gentoo | 40 | ||||
-rw-r--r-- | net-im/mu-conference/files/mu-conference-0.7.init | 25 | ||||
-rw-r--r-- | net-im/mu-conference/files/mu-conference-conf.d | 9 | ||||
-rw-r--r-- | net-im/mu-conference/files/mu-conference-makefile.patch | 11 | ||||
-rw-r--r-- | net-im/mu-conference/files/muc-transport.init | 26 | ||||
-rw-r--r-- | net-im/mu-conference/files/muc-transport.init-r2 | 33 | ||||
-rw-r--r-- | net-im/mu-conference/files/muctrans.xml | 37 |
7 files changed, 181 insertions, 0 deletions
diff --git a/net-im/mu-conference/files/README.Gentoo b/net-im/mu-conference/files/README.Gentoo new file mode 100644 index 000000000000..a478572ffae5 --- /dev/null +++ b/net-im/mu-conference/files/README.Gentoo @@ -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 diff --git a/net-im/mu-conference/files/mu-conference-0.7.init b/net-im/mu-conference/files/mu-conference-0.7.init new file mode 100644 index 000000000000..20400acb9a3f --- /dev/null +++ b/net-im/mu-conference/files/mu-conference-0.7.init @@ -0,0 +1,25 @@ +#!/sbin/runscript + +depend() { + need net + use jabber-server +} + +start() { + ebegin "Starting MUC Jabber Transport" + start-stop-daemon \ + --background \ + --start \ + --user 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 $? +} 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..95e38ab74d37 --- /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 +# $Id$ + +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/mu-conference-makefile.patch b/net-im/mu-conference/files/mu-conference-makefile.patch new file mode 100644 index 000000000000..2a009402a0aa --- /dev/null +++ b/net-im/mu-conference/files/mu-conference-makefile.patch @@ -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 diff --git a/net-im/mu-conference/files/muc-transport.init b/net-im/mu-conference/files/muc-transport.init new file mode 100644 index 000000000000..39f611579824 --- /dev/null +++ b/net-im/mu-conference/files/muc-transport.init @@ -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 $? +} 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 $? +} diff --git a/net-im/mu-conference/files/muctrans.xml b/net-im/mu-conference/files/muctrans.xml new file mode 100644 index 000000000000..6fe5b21b7c55 --- /dev/null +++ b/net-im/mu-conference/files/muctrans.xml @@ -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> + |