diff options
author | Krzysztof Pawlik <nelchael@gentoo.org> | 2007-06-07 09:17:37 +0000 |
---|---|---|
committer | Krzysztof Pawlik <nelchael@gentoo.org> | 2007-06-07 09:17:37 +0000 |
commit | a53b5fa93c4f9b6ff50ec61ec127eec2cc39553a (patch) | |
tree | fb9ba28bc2028201f9590bda0a370569428f907c /net-im | |
parent | Version bump, see bug #181126. (diff) | |
download | gentoo-2-a53b5fa93c4f9b6ff50ec61ec127eec2cc39553a.tar.gz gentoo-2-a53b5fa93c4f9b6ff50ec61ec127eec2cc39553a.tar.bz2 gentoo-2-a53b5fa93c4f9b6ff50ec61ec127eec2cc39553a.zip |
Version bump, thanks to Marko Durkovic, who became maintainer for jabberd-2*.
(Portage version: 2.1.2.9)
Diffstat (limited to 'net-im')
-rw-r--r-- | net-im/jabberd/ChangeLog | 8 | ||||
-rw-r--r-- | net-im/jabberd/files/digest-jabberd-2.1.6 | 3 | ||||
-rw-r--r-- | net-im/jabberd/files/jabberd-2.1.6.init | 75 | ||||
-rw-r--r-- | net-im/jabberd/jabberd-2.1.6.ebuild | 102 | ||||
-rw-r--r-- | net-im/jabberd/metadata.xml | 22 |
5 files changed, 201 insertions, 9 deletions
diff --git a/net-im/jabberd/ChangeLog b/net-im/jabberd/ChangeLog index 8b8604a2bc68..27963fd278bd 100644 --- a/net-im/jabberd/ChangeLog +++ b/net-im/jabberd/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for net-im/jabberd # Copyright 2000-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-im/jabberd/ChangeLog,v 1.97 2007/05/06 11:31:22 genone Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-im/jabberd/ChangeLog,v 1.98 2007/06/07 09:17:37 nelchael Exp $ + +*jabberd-2.1.6 (07 Jun 2007) + + 07 Jun 2007; Krzysiek Pawlik <nelchael@gentoo.org> + +files/jabberd-2.1.6.init, metadata.xml, +jabberd-2.1.6.ebuild: + Version bump, thanks to Marko Durkovic, who became maintainer for jabberd-2*. 06 May 2007; Marius Mauch <genone@gentoo.org> jabberd-1.4.4-r3.ebuild: Replacing einfo with elog diff --git a/net-im/jabberd/files/digest-jabberd-2.1.6 b/net-im/jabberd/files/digest-jabberd-2.1.6 new file mode 100644 index 000000000000..654aa790f287 --- /dev/null +++ b/net-im/jabberd/files/digest-jabberd-2.1.6 @@ -0,0 +1,3 @@ +MD5 c0843d23f75b255815dea378947a8ccc jabberd-2.1.6.tar.gz 1237808 +RMD160 fd67cf5aa580ae5bfa969c712e403ba5f9d8899b jabberd-2.1.6.tar.gz 1237808 +SHA256 de525e18028c002e89790f41f79dd46fa08fa07f302b55b72dc151e47e84daff jabberd-2.1.6.tar.gz 1237808 diff --git a/net-im/jabberd/files/jabberd-2.1.6.init b/net-im/jabberd/files/jabberd-2.1.6.init new file mode 100644 index 000000000000..48486eb12f65 --- /dev/null +++ b/net-im/jabberd/files/jabberd-2.1.6.init @@ -0,0 +1,75 @@ +#!/sbin/runscript +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-im/jabberd/files/jabberd-2.1.6.init,v 1.1 2007/06/07 09:17:37 nelchael Exp $ + +depend() { + need net + use mysql postgresql slapd + provide jabber-server +} + +function stopJabberServices() { + + eindent + for pidfile in /var/run/jabber/*.pid; do + if [[ -f "${pidfile}" ]]; then + service=$(basename ${pidfile/.pid/}) + ebegin "Stopping ${service}" + start-stop-daemon \ + --stop \ + --pidfile ${pidfile} + eend $? + fi + done + eoutdent + +} + +start() { + + einfo "Starting Jabber Server ..." + local services=$(grep -v ^# /etc/jabber/jabberd.cfg | grep '..*' | awk '{print $1 ":" $2}') + eindent + for service in ${services}; do + + cfgfile=${service/*:/} + service=${service/:*/} + if [[ ! -f "${cfgfile}" ]]; then + if [[ -f "/etc/jabber/${service}.xml" ]]; then + cfgfile="/etc/jabber/${service}.xml" + else + eerror "Can't find: ${cfgfile} or default /etc/jabber/${service}.xml" + stopJabberServices + return 1 + fi + fi + + executable=/usr/bin/${service} + + if [[ ! -f "${executable}" ]]; then + eerror "Can't find executable: ${executable}" + stopJabberServices + return 1 + fi + + ebegin "Starting ${service} (${cfgfile})" + start-stop-daemon \ + --background \ + --start \ + --chuid jabber:jabber \ + --exec /usr/bin/${service} \ + -- -c ${cfgfile} + eend $? + + done + eoutdent + +} + +stop() { + + einfo "Stopping Jabber Server" + stopJabberServices + +} diff --git a/net-im/jabberd/jabberd-2.1.6.ebuild b/net-im/jabberd/jabberd-2.1.6.ebuild new file mode 100644 index 000000000000..f3315b09ee68 --- /dev/null +++ b/net-im/jabberd/jabberd-2.1.6.ebuild @@ -0,0 +1,102 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-im/jabberd/jabberd-2.1.6.ebuild,v 1.1 2007/06/07 09:17:37 nelchael Exp $ + +inherit eutils + +DESCRIPTION="Open Source Jabber Server" +HOMEPAGE="http://jabberd2.xiaoka.com/" +SRC_URI="http://ftp.xiaoka.com/${PN}2/releases/${P}.tar.gz" + +SLOT="0" +LICENSE="GPL-2" +KEYWORDS="~amd64 ~x86" +IUSE="debug memdebug ipv6 ldap mysql pam pipe postgres sqlite" + +DEPEND=">=net-im/jabber-base-0.01 + dev-libs/expat + dev-libs/openssl + dev-libs/cyrus-sasl + net-dns/libidn + ldap? ( net-nds/openldap ) + >=sys-libs/db-4.1.24 + pam? ( sys-libs/pam ) + mysql? ( virtual/mysql ) + postgres? ( dev-db/postgresql ) + sqlite? ( >=dev-db/sqlite-3 ) + !<net-im/jabberd-2.0" + + +src_compile() { + + local localconf= + + # Note: no gsasl support for now, since + # gsasl-0.2.14 not in portage tree. + # + #if use !gsasl; then + # localconf="${localconf} --disable-gsasl --enable-cyrus" + #fi + localconf="${localconf} --disable-gsasl --enable-cyrus" + + if use debug; then + localconf="${localconf} --enable-debug" + use memdebug && localconf="${localconf} --enable-nad-debug --enable-pool-debug" + else + if use memdebug; then + ewarn + ewarn '"memdebug" requires "debug" enabled.' + ewarn + fi + fi + + # Fix missing header in subst/strndup.c in order to make emerge + # happy and avoid QA notice. Should this be moved to a external + # patch file? + sed -i "/stddef.h/ a #include <string.h>" subst/strndup.c + + econf \ + --sysconfdir=/etc/jabber \ + --enable-db \ + ${localconf} \ + $(use_enable ipv6) \ + $(use_enable ldap) \ + $(use_enable mysql) \ + $(use_enable pam) \ + $(use_enable pipe) \ + $(use_enable postgres pgsql) \ + $(use_enable sqlite) \ + || die "econf failed" + emake || die "make failed" + +} + +src_install() { + + make DESTDIR="${D}" install || die "make install failed" + + fowners jabber:jabber /usr/bin/{jabberd,router,resolver,sm,c2s,s2s} + fperms 750 /usr/bin/{jabberd,router,resolver,sm,c2s,s2s} + + newinitd "${FILESDIR}/jabberd-${PV}.init" jabberd || die "newinitd failed" + + dodoc AUTHORS BUGS PROTOCOL README UPGRADE + docinto tools + for i in db-setup.{mysql,pgsql,sqlite} migrate.pl pipe-auth.pl; do + dodoc tools/${i} + done + + cd "${D}/etc/jabber/" + sed -i \ + -e 's,/var/lib/jabberd/pid/,/var/run/jabber/,g' \ + -e 's,/var/lib/jabberd/log/,/var/log/jabber/,g' \ + -e 's,/var/lib/jabberd/db,/var/spool/jabber/,g' \ + *.xml *.xml.dist || die "sed failed" + sed -i \ + -e 's,<module>mysql</module>,<module>db</module>,' \ + c2s.xml* + sed -i \ + -e 's,<driver>mysql</driver>,<driver>db</driver>,' \ + sm.xml* + +} diff --git a/net-im/jabberd/metadata.xml b/net-im/jabberd/metadata.xml index bd66f19a782e..ab685c13109a 100644 --- a/net-im/jabberd/metadata.xml +++ b/net-im/jabberd/metadata.xml @@ -1,12 +1,18 @@ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> <pkgmetadata> - <maintainer> - <email>nelchael@gentoo.org</email> - </maintainer> - <herd>net-im</herd> - <longdescription> - This is the original implementation of jabberd server. - This serves as the basis for running a jabber server in Gentoo. - </longdescription> + <maintainer> + <email>nelchael@gentoo.org</email> + <name>Krzysiek Pawlik</name> + <description>Takes care of jabberd-1*</description> + </maintainer> + <maintainer> + <email>marko.durkovic@gmail.com</email> + <name>Marko Durkovic</name> + <description> + Maintainer by proxy, through nelchael. Takes care of + jabberd-2* + </description> + </maintainer> + <herd>net-im</herd> </pkgmetadata> |