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
commit08f82a1baa3c2f84e34327d99fa7aebb967f7285 (patch)
tree35994e25bb9e36725bfdb6db34f9bff21c381f88
parent Added missing IUSE. (diff)
downloadgentoo-2-08f82a1baa3c2f84e34327d99fa7aebb967f7285.tar.gz
gentoo-2-08f82a1baa3c2f84e34327d99fa7aebb967f7285.tar.bz2
gentoo-2-08f82a1baa3c2f84e34327d99fa7aebb967f7285.zip
0.6.0-r2 back with fixed init
-rw-r--r--net-im/mu-conference/ChangeLog9
-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
-rw-r--r--net-im/mu-conference/mu-conference-0.6.0-r2.ebuild61
5 files changed, 112 insertions, 1 deletions
diff --git a/net-im/mu-conference/ChangeLog b/net-im/mu-conference/ChangeLog
index d1997a94dcb9..b20560a376b5 100644
--- a/net-im/mu-conference/ChangeLog
+++ b/net-im/mu-conference/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for net-im/mu-conference
# Copyright 2000-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-im/mu-conference/ChangeLog,v 1.15 2004/07/06 23:03:53 humpback Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-im/mu-conference/ChangeLog,v 1.16 2004/07/08 16:31:40 humpback Exp $
+
+*mu-conference-0.6.0-r2 (08 Jul 2004)
+
+ 08 Jul 2004; Gustavo Felisberto <humpback@gentoo.org>;
+ +files/mu-conference-conf.d, +files/muc-transport.init-r2,
+ +mu-conference-0.6.0-r2.ebuild:
+ Bringing back -r2 fixed init
07 Jul 2004; Gustavo Felisberto <humpback@gentoo.org>;
-files/mu-conference-conf.d, -files/muc-transport.init-r2,
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 $?
+}
diff --git a/net-im/mu-conference/mu-conference-0.6.0-r2.ebuild b/net-im/mu-conference/mu-conference-0.6.0-r2.ebuild
new file mode 100644
index 000000000000..c24586b5749c
--- /dev/null
+++ b/net-im/mu-conference/mu-conference-0.6.0-r2.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-im/mu-conference/mu-conference-0.6.0-r2.ebuild,v 1.5 2004/07/08 16:31:40 humpback Exp $
+
+inherit eutils
+
+DESCRIPTION="Multi-User Chat for jabberd"
+HOMEPAGE="http://mu-conference.jabberstudio.org/"
+SRC_URI="http://www.jabberstudio.org/files/mu-conference/${P}.tar.gz"
+
+LICENSE="GPL-2"
+KEYWORDS="~x86 ~sparc ~ppc"
+SLOT="0"
+
+DEPEND="=net-im/jabberd-1.4*
+ >=dev-libs/glib-2.2.1"
+
+IUSE=""
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}/src
+ epatch ${FILESDIR}/mu-conference-makefile.patch
+}
+
+src_compile() {
+ emake || die
+}
+
+src_install() {
+ dodir /etc/jabber /usr/lib/jabberd /var/log/jabber/conference
+ keepdir /var/log/jabber/conference/
+
+ insinto /usr/lib/jabberd
+ doins src/mu-conference.so
+
+ insinto /etc/jabber
+ doins ${FILESDIR}/muctrans.xml
+
+ insinto /etc/conf.d ; newins ${FILESDIR}/mu-conference-conf.d muc-transport
+
+ exeinto /etc/init.d
+ newexe ${FILESDIR}/muc-transport.init-r2 muc-transport
+
+ dodoc README FAQ README.jcr ${FILESDIR}/README.Gentoo
+
+ fowners jabber:jabber /var/log/jabber/conference
+
+ fperms g-x /var/log/jabber/conference
+
+ fperms g+rw /var/log/jabber/conference
+}
+
+pkg_postinst() {
+ einfo
+ einfo "Please read /usr/share/doc/${P}/README.Gentoo.gz"
+ einfo "And please notice that now muc-transport comes with a init.d script"
+ einfo "dont forget to add it to your runlevel."
+ einfo
+}
+