summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGustavo Felisberto <humpback@gentoo.org>2004-03-01 12:06:36 +0000
committerGustavo Felisberto <humpback@gentoo.org>2004-03-01 12:06:36 +0000
commitda919e6530373771a89efc71d0535631544246b1 (patch)
treea8297fa30b332a7088bef21af01c53ed7db1b343
parentfix for packlist (Manifest recommit) (diff)
downloadgentoo-2-da919e6530373771a89efc71d0535631544246b1.tar.gz
gentoo-2-da919e6530373771a89efc71d0535631544246b1.tar.bz2
gentoo-2-da919e6530373771a89efc71d0535631544246b1.zip
Updating stop portion of init.d script
-rw-r--r--net-im/jabberd/ChangeLog6
-rw-r--r--net-im/jabberd/Manifest11
-rw-r--r--net-im/jabberd/files/digest-jabberd-1.4.3-r22
-rw-r--r--net-im/jabberd/files/jabber.rc6-r645
-rw-r--r--net-im/jabberd/jabberd-1.4.3-r2.ebuild170
5 files changed, 229 insertions, 5 deletions
diff --git a/net-im/jabberd/ChangeLog b/net-im/jabberd/ChangeLog
index 57bf27e3bac1..4530db51afdf 100644
--- a/net-im/jabberd/ChangeLog
+++ b/net-im/jabberd/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for net-im/jabberd
# Copyright 2000-2004 Gentoo Technologies, Inc.; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-im/jabberd/ChangeLog,v 1.12 2004/02/26 03:24:30 weeve Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-im/jabberd/ChangeLog,v 1.13 2004/03/01 12:06:36 humpback Exp $
+
+ 01 Mar 2004; Gustavo Felisberto <humpback@gentoo.org>; files/jabber.rc6-r6:
+ Updating stop portion of init.d script thanks to Piotr Banasik
+ <piotr@t-p-l.com>. Also updating dependencies.
25 Feb 2004; Jason Wever <weeve@gentoo.org> jabberd-1.4.3-r1.ebuild:
Added ~sparc keyword, helps resolve bug #42928.
diff --git a/net-im/jabberd/Manifest b/net-im/jabberd/Manifest
index 810ce7927c29..47a891431229 100644
--- a/net-im/jabberd/Manifest
+++ b/net-im/jabberd/Manifest
@@ -1,10 +1,13 @@
-MD5 3b02a80ded5fe7ae05be1642a34032d0 ChangeLog 2083
MD5 073710b6dd1869d3930f8f2e857341e8 metadata.xml 411
+MD5 d1506207580720b8e6eabfcdb899479f jabberd-1.4.3-r2.ebuild 5139
+MD5 29cff9ef3132dc97bbaccffb0e6653c1 ChangeLog 2276
MD5 feb892dd78b8949abf9821f99224a1c1 jabberd-1.4.3-r1.ebuild 5122
-MD5 99c4b2c5dcdc8de6ba26a0775d4b8967 files/README.Gentoo 807
MD5 395886d68a24318930a86991f5164c19 files/jabber.rc6-r5 953
MD5 73c38af347fdcf7d7cb6dd3490344bfa files/multiple.xml 15387
-MD5 dc4911cdd148273a45a1c080dd7a3ba6 files/self-cert.sh 481
+MD5 5aeafd17644a405b363de0ea1eb22d8b files/multiple-xml-patch-00 5934
MD5 92ba69168d2fb8c1384e8e13e03dcbc2 files/xdb-ldap.xml 985
+MD5 fefff048e7da0390c3df81b6abd2caaf files/jabber.rc6-r6 1034
+MD5 c0945b1bc206e13be453cd2c1bb7e3f1 files/digest-jabberd-1.4.3-r2 129
+MD5 dc4911cdd148273a45a1c080dd7a3ba6 files/self-cert.sh 481
MD5 c0945b1bc206e13be453cd2c1bb7e3f1 files/digest-jabberd-1.4.3-r1 129
-MD5 5aeafd17644a405b363de0ea1eb22d8b files/multiple-xml-patch-00 5934
+MD5 99c4b2c5dcdc8de6ba26a0775d4b8967 files/README.Gentoo 807
diff --git a/net-im/jabberd/files/digest-jabberd-1.4.3-r2 b/net-im/jabberd/files/digest-jabberd-1.4.3-r2
new file mode 100644
index 000000000000..09bdcd16d472
--- /dev/null
+++ b/net-im/jabberd/files/digest-jabberd-1.4.3-r2
@@ -0,0 +1,2 @@
+MD5 a3e964d6fa07b5d850302ae0512f94c6 jabberd-1.4.3.tar.gz 258016
+MD5 373f0f780c725cc06c824e322fc694ff xdb_ldap-1.0.tar.gz 112204
diff --git a/net-im/jabberd/files/jabber.rc6-r6 b/net-im/jabberd/files/jabber.rc6-r6
new file mode 100644
index 000000000000..5f1a597accce
--- /dev/null
+++ b/net-im/jabberd/files/jabber.rc6-r6
@@ -0,0 +1,45 @@
+#!/sbin/runscript
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License, v2 or later
+# $Header: /var/cvsroot/gentoo-x86/net-im/jabberd/files/jabber.rc6-r6,v 1.1 2004/03/01 12:06:36 humpback Exp $
+depend() {
+ need net
+}
+
+start() {
+ ebegin "Starting Jabber Server"
+
+ jabberd -B -c /etc/jabber/multiple.xml >/dev/null 2>&1
+ for addon in /etc/jabber/*.xml; do
+ if [ "$addon" == "/etc/jabber/jit.xml" ]; then
+ jit-wpjabber -d -c $addon >/dev/null 2>&1
+ else
+ if [ "$addon" != "/etc/jabber/multiple.xml" ]; then
+ jabberd -B -c $addon >/dev/null 2>&1
+ fi
+ fi
+ done
+
+
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping Jabber Server"
+
+ killall jabberd
+ sleep 2
+ if (( `ps -e | grep jabberd | wc -l`>0 )); then
+ killall -9 jabberd
+ fi
+
+ if [ -e /etc/jabber/jit.xml ]; then
+ killall jit-wpjabber
+ sleep 2
+ if (( `ps -e | grep jit-wpjabber | wc -l`>0 )); then
+ killall -9 jit-wpjabber
+ fi
+ fi
+
+ eend $?
+}
diff --git a/net-im/jabberd/jabberd-1.4.3-r2.ebuild b/net-im/jabberd/jabberd-1.4.3-r2.ebuild
new file mode 100644
index 000000000000..e3abc92bce9e
--- /dev/null
+++ b/net-im/jabberd/jabberd-1.4.3-r2.ebuild
@@ -0,0 +1,170 @@
+# Copyright 1999-2004 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-im/jabberd/jabberd-1.4.3-r2.ebuild,v 1.1 2004/03/01 12:06:36 humpback Exp $
+
+S="${WORKDIR}/jabberd-${PV}"
+DESCRIPTION="Open Source Jabber Server"
+HOMEPAGE="http://www.jabber.org"
+SRC_URI="http://jabberd.jabberstudio.org/1.4/dist/jabberd-${PV}.tar.gz
+ ldap? ( http://www.jabberstudio.org/files/xdb_ldap/xdb_ldap-1.0.tar.gz )"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="~x86"
+IUSE="ssl ldap ipv6 msn oscar yahoo"
+
+DEPEND="!net-im/jabber-server
+ =dev-libs/pth-1.4.0
+ ssl? ( >=dev-libs/openssl-0.9.6i )
+ ldap? ( =net-nds/openldap-2* )"
+
+PDEPEND="msn? ( net-im/msn-transport )
+ oscar? ( net-im/aim-transport )
+ yahoo? ( net-im/yahoo-transport )
+ icq? ( net-im/jit )"
+
+src_unpack() {
+ unpack jabberd-${PV}.tar.gz
+ cd ${S}
+ use ldap && unpack xdb_ldap-1.0.tar.gz
+ epatch ${FILESDIR}/multiple-xml-patch-00
+ mv jabber.xml multiple.xml
+}
+
+src_compile() {
+ # These can cause problems with certain configure scripts used...
+ unset LC_ALL LC_CTYPE
+
+
+ local myconf
+ cd ${S}
+ use ssl && myconf="--enable-ssl"
+ use ipv6 && myconf="${myconf} --enable-ipv6"
+
+ mv jabberd/jabberd.c jabberd/jabberd.c.orig
+ sed 's:pstrdup(jabberd__runtime,HOME):"/var/spool/jabber":' jabberd/jabberd.c.orig > jabberd/jabberd.c
+ rm -f jabberd/jabberd.c.orig
+ ./configure ${myconf} || die
+ make || die
+
+ if use ldap; then
+ cd ${S}/xdb_ldap/src
+ make all || die
+ fi
+}
+
+src_install() {
+ exeinto /etc/init.d ; newexe ${FILESDIR}/jabber.rc6-r6 jabber
+ dodir /usr/sbin /etc/jabber /usr/lib/jabberd /var/log/jabber /usr/include/jabberd
+ touch ${D}/var/log/jabber/error.log
+ touch ${D}/var/log/jabber/record.log
+ dodir /var/spool/jabber
+ keepdir ${D}/var/spool/jabber/
+ keepdir ${D}/var/log/jabber/
+ dodir /var/run
+
+ exeinto /usr/sbin
+ doexe jabberd/jabberd
+ insinto /usr/lib/jabberd
+ doins platform-settings
+ doins jsm/jsm.so
+ doins xdb_file/xdb_file.so
+ doins pthsock/pthsock_client.so
+ doins dnsrv/dnsrv.so
+ doins dialback/dialback.so
+ if [ `use ldap` ]; then
+ insinto /etc/jabber
+ doins xdb_ldap/jabber.schema
+ doins xdb_ldap/slapd.conf
+ doins config/xdb-ldap.xml
+ insinto /usr/lib/jabberd
+ doins xdb_ldap/src/xdb_ldap.so
+ fi
+ insinto /etc/jabber
+ doins multiple.xml
+ exeinto /etc/jabber
+ doexe ${FILESDIR}/self-cert.sh
+
+ local test_group=`grep ^jabber: /etc/group | cut -d: -f1`
+ if [ -z $test_group ]
+ then
+ enewgroup jabber
+ fi
+
+ local test_user=`grep ^jabber: /etc/passwd | cut -d: -f1`
+ if [ -z $test_user ]
+ then
+ enewuser jabber -1 /bin/false /var/spool/jabber jabber
+ fi
+
+ dodoc README UPGRADE ${FILESDIR}/README.Gentoo
+
+ fowners jabber:jabber /etc/jabber
+ fowners jabber:jabber /usr/sbin/jabberd
+ fowners jabber:jabber /var/log/jabber
+ fowners jabber:jabber /var/log/jabber/error.log
+ fowners jabber:jabber /var/log/jabber/record.log
+ fowners jabber:jabber /var/spool/jabber
+
+ fperms o-rwx /etc/jabber
+ fperms o-rwx /usr/sbin/jabberd
+ fperms o-rwx /var/log/jabber
+ fperms o-rwx /var/log/jabber/error.log
+ fperms o-rwx /var/log/jabber/record.log
+ fperms o-rwx /var/spool/jabber
+ fperms u+rwx /usr/sbin/jabberd
+
+ fperms g-x /etc/jabber
+ fperms g-x /usr/sbin/jabberd
+ fperms g-x /var/log/jabber
+ fperms g-x /var/log/jabber/error.log
+ fperms g-x /var/log/jabber/record.log
+ fperms g-x /var/spool/jabber
+
+ fperms g+rw /etc/jabber
+ fperms g+rw /usr/sbin/jabberd
+ fperms g+rw /var/spool/jabber
+ fperms g+rw /var/spool/jabber/error.log
+ fperms g+rw /var/spool/jabber/record.log
+ fperms g+rw /var/log/jabber
+ fperms u+xs /usr/sbin/jabberd
+
+ #Install header files for transports to use
+ cd ${S}/jabberd
+ tar cf - `find . -name \*.h` | (cd ${D}/usr/include/jabberd ; tar xvf -)
+ assert "Failed to install header files to /usr/include/jabberd"
+}
+
+pkg_postinst() {
+
+ einfo
+ einfo "Change 'localhost' to your server's domainname in the"
+ einfo "/etc/jabber/*.xml configs first"
+ einfo "Server admins should be added to the "jabber" group"
+ if [ `use ssl` ]; then
+ einfo
+ einfo "To enable SSL connections, execute /etc/jabber/self-cert.sh"
+ fi
+ if [ `use ldap` ]; then
+ einfo
+ einfo "In order to use the ldap backend, you need to copy"
+ einfo "the file /etc/jabber/jabber.schema into the /etc/openldap/schemas"
+ einfo "directory on your ldap server. You will also need to"
+ einfo "include the schema in your slapd.conf file and retsart openldap."
+ einfo "An example slapd.conf file is included in /etc/jabber."
+ einfo "The xdb_ldap backend expects your ldap server to handle"
+ einfo "StartTLS or run in ldaps mode."
+ fi
+ einfo
+ einfo "The various IM transports for jabber are now separate packages,"
+ einfo "which you will need to install separately if you want them:"
+ einfo "net-im/jit - ICQ transport (You can use aim-transport for icq but JIT is better)"
+ einfo "net-im/msn-transport - MSN transport (USE=msn)"
+ einfo "net-im/jud - Jabber User Directory"
+ einfo "net-im/yahoo-transport - Yahoo IM system (USE=yahoo)"
+ einfo "net-im/aim-transport - AOL transport (USE=oscar)"
+ einfo "net-im/mu-conference - Jabber multi user conference"
+ einfo
+ einfo "Please read /usr/share/doc/${PF}/README.Gentoo.gz"
+ einfo
+}