diff options
-rw-r--r-- | net-im/jabberd/ChangeLog | 7 | ||||
-rw-r--r-- | net-im/jabberd/Manifest | 4 | ||||
-rw-r--r-- | net-im/jabberd/files/digest-jabberd-2.0.9 | 1 | ||||
-rw-r--r-- | net-im/jabberd/jabberd-2.0.9.ebuild | 120 |
4 files changed, 130 insertions, 2 deletions
diff --git a/net-im/jabberd/ChangeLog b/net-im/jabberd/ChangeLog index 05773a8fbb64..f76ee1251e7a 100644 --- a/net-im/jabberd/ChangeLog +++ b/net-im/jabberd/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for net-im/jabberd # Copyright 2000-2005 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-im/jabberd/ChangeLog,v 1.57 2005/07/08 13:34:11 wschlich Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-im/jabberd/ChangeLog,v 1.58 2005/08/07 20:23:39 wschlich Exp $ + +*jabberd-2.0.9 (07 Aug 2005) + + 07 Aug 2005; Wolfram Schlich <wschlich@gentoo.org> +jabberd-2.0.9.ebuild: + version bump due to security fix (SA16291) 08 Jul 2005; Wolfram Schlich <wschlich@gentoo.org> jabberd-2.0.8-r2.ebuild: diff --git a/net-im/jabberd/Manifest b/net-im/jabberd/Manifest index aa0d572a6350..7699ae122901 100644 --- a/net-im/jabberd/Manifest +++ b/net-im/jabberd/Manifest @@ -1,8 +1,9 @@ -MD5 51ba76e2432e4a463cfe9c2104e2c585 ChangeLog 9358 +MD5 288decfc3089c4f8b899ddc7750fe419 ChangeLog 9510 MD5 1de04ab5d7e18332a5d73790aadf336f jabberd-1.4.3-r4.ebuild 5813 MD5 073710b6dd1869d3930f8f2e857341e8 metadata.xml 411 MD5 dbb285912f47ec8143993f9a79081817 jabberd-1.4.3-r5.ebuild 5813 MD5 0445152b94712b92ab09cbd0e7667898 jabberd-2.0.8-r2.ebuild 3673 +MD5 185f0cd902f161916a0e1a4f15b2b62b jabberd-2.0.9.ebuild 3529 MD5 1a325b6068e591bc222376a7d70f6e17 files/README.Gentoo 984 MD5 264b9719c0773f480ee42d8a61c34d0a files/digest-jabberd-1.4.3-r4 201 MD5 3a5219d7870e60f5b16d6aefb1c63a0e files/jabber-conf.d 525 @@ -23,3 +24,4 @@ MD5 264b9719c0773f480ee42d8a61c34d0a files/digest-jabberd-1.4.3-r5 201 MD5 078528dc08a082b7a0534d4f6c5c5f5e files/jabber.rc6-r8 800 MD5 5cd694a78ebb4a4fabf831fa52a781c1 files/jabberd-2.0.8-r2-FindBin.patch 1748 MD5 d8d135b77fd2ec99c355191b584e600a files/digest-jabberd-2.0.8-r2 65 +MD5 4817e867644d7d7bd2e1a0724571fbe9 files/digest-jabberd-2.0.9 65 diff --git a/net-im/jabberd/files/digest-jabberd-2.0.9 b/net-im/jabberd/files/digest-jabberd-2.0.9 new file mode 100644 index 000000000000..47ada989f2ca --- /dev/null +++ b/net-im/jabberd/files/digest-jabberd-2.0.9 @@ -0,0 +1 @@ +MD5 64905ccbbe5c6fe1f583401802a3e303 jabberd-2.0s9.tar.gz 769049 diff --git a/net-im/jabberd/jabberd-2.0.9.ebuild b/net-im/jabberd/jabberd-2.0.9.ebuild new file mode 100644 index 000000000000..d6bd7dadbd52 --- /dev/null +++ b/net-im/jabberd/jabberd-2.0.9.ebuild @@ -0,0 +1,120 @@ +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-im/jabberd/jabberd-2.0.9.ebuild,v 1.1 2005/08/07 20:23:39 wschlich Exp $ + +inherit eutils flag-o-matic + +DESCRIPTION="Open Source Jabber Server" +HOMEPAGE="http://jabberd.jabberstudio.org/2/" +MY_P="${PN}-2.0s9" +SRC_URI="http://files.jabberstudio.org/jabberd2/${MY_P}.tar.gz" +S="${WORKDIR}/${MY_P}" + +SLOT="1" +LICENSE="GPL-2" +KEYWORDS="~x86 ~ppc ~sparc ~amd64" +IUSE="debug ldap ipv6 mysql postgres pam berkdb ssl" + +DEPEND="!net-im/jabber-server + >=dev-libs/openssl-0.9.6i + >=net-dns/libidn-0.3.5 + ldap? ( >=net-nds/openldap-2.1 ) + berkdb? ( >=sys-libs/db-4.1.25 ) + mysql? ( dev-db/mysql ) + postgres? ( dev-db/postgresql )" +RDEPEND="${DEPEND} + dev-lang/perl" # for the /usr/bin/jabberd wrapper script + +pkg_setup() { + if ! use postgres && ! use mysql && ! use berkdb; then + eerror + eerror "For this version of jabberd you must have" + eerror "at least one of 'mysql', 'postgres' and/or 'berkdb'" + eerror "in the USE variable in /etc/make.conf." + eerror + die "Look at the error message above." + fi +} + +src_unpack() { + unpack ${A} + cd ${S} +} + +src_compile() { + local myopts="--enable-fs" + use berkdb >&/dev/null && myopts="${myopts} --enable-db" + use mysql >&/dev/null && myopts="${myopts} --enable-mysql" || myopts="${myopts} --disable-mysql" + use postgres >&/dev/null && myopts="${myopts} --enable-pgsql" + use pam >&/dev/null && myopts="${myopts} --enable-pam" + use ldap >&/dev/null && myopts="${myopts} --enable-ldap" + use ipv6 >&/dev/null && myopts="${myopts} --enable-ipv6" + + use debug && { + append-flags -O -ggdb -DDEBUG + RESTRICT="${RESTRICT} nostrip" + myopts="${myopts} --enable-debug" + } + + econf ${myopts} || die "configure failed" + emake || die "make failed" +} + +src_install() { +# DON'T USE EINSTALL HERE! it breaks the Makefile's sysconfdir! +# einstall || die "make install failed" + make DESTDIR=${D} install || die "make install failed" + + ## add user and group + enewgroup jabber + enewuser jabber -1 /bin/false /var/jabberd jabber + + ## set binary permissions + fowners :jabber /usr/bin/{jabberd,router,resolver,sm,c2s,s2s} + fperms o= /usr/bin/{jabberd,router,resolver,sm,c2s,s2s} + + ## jabberd working directory + dodir /var/jabberd{,/{db,log,pid}} + fowners jabber:jabber /var/jabberd{,/{db,log,pid}} + for i in router resolver sm c2s s2s; do + for j in log pid; do + touch ${D}/var/jabberd/${j}/${i}.${j} + fowners jabber:jabber /var/jabberd/${j}/${i}.${j} + done + done + + #ä jabberd config & init script + exeinto /etc/init.d; newexe ${FILESDIR}/jabber.init.bundled jabber +# exeinto /etc/init.d; newexe ${FILESDIR}/jabber.init.gentoo jabber + exeinto /etc/jabberd; newexe ${FILESDIR}/self-cert.jabberd-2.sh self-cert.sh + # directories + fowners jabber:jabber /etc/jabberd{,/templates} + fperms 770 /etc/jabberd{,/templates} + # ssl script + fowners jabber:jabber /etc/jabberd/self-cert.sh + fperms 770 /etc/jabberd/self-cert.sh + # config files + for i in jabberd.cfg {router,router-users,resolver,sm,c2s,s2s,templates/roster}.xml; do + fowners jabber:jabber /etc/jabberd/${i}{,.dist} + fperms 660 /etc/jabberd/${i}{,.dist} + done + + ## documentation + dodoc AUTHORS PROTOCOL README + docinto tools + for i in db-setup.{mysql,pgsql} migrate.pl pipe-auth.pl; do + dodoc tools/${i} + done +} + +pkg_postinst() { + einfo + einfo "Change 'localhost' to your server's domainname in the" + einfo "/etc/jabberd/*.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/jabberd/self-cert.sh" + fi + einfo +} |