diff options
author | Krzysztof Pawlik <nelchael@gentoo.org> | 2007-10-08 12:59:53 +0000 |
---|---|---|
committer | Krzysztof Pawlik <nelchael@gentoo.org> | 2007-10-08 12:59:53 +0000 |
commit | e783f21e95e556bcb4f4311dc5a67300e4120073 (patch) | |
tree | 4e1ec66ac4be7dd2055a31663336ca14e6de33dc /net-im/jabberd2 | |
parent | Add flags for net-im/jabberd2. (diff) | |
download | historical-e783f21e95e556bcb4f4311dc5a67300e4120073.tar.gz historical-e783f21e95e556bcb4f4311dc5a67300e4120073.tar.bz2 historical-e783f21e95e556bcb4f4311dc5a67300e4120073.zip |
Split jabberd2 from net-im/jabberd.
Package-Manager: portage-2.1.3.12
Diffstat (limited to 'net-im/jabberd2')
-rw-r--r-- | net-im/jabberd2/ChangeLog | 11 | ||||
-rw-r--r-- | net-im/jabberd2/Manifest | 34 | ||||
-rw-r--r-- | net-im/jabberd2/files/digest-jabberd2-2.1.15 | 3 | ||||
-rw-r--r-- | net-im/jabberd2/files/jabberd2-2.1.15.init | 77 | ||||
-rw-r--r-- | net-im/jabberd2/files/jabberd2-2.1.15.pamd | 6 | ||||
-rw-r--r-- | net-im/jabberd2/jabberd2-2.1.15.ebuild | 113 | ||||
-rw-r--r-- | net-im/jabberd2/metadata.xml | 16 |
7 files changed, 260 insertions, 0 deletions
diff --git a/net-im/jabberd2/ChangeLog b/net-im/jabberd2/ChangeLog new file mode 100644 index 000000000000..00ac1b185d4a --- /dev/null +++ b/net-im/jabberd2/ChangeLog @@ -0,0 +1,11 @@ +# ChangeLog for net-im/jabberd2 +# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-im/jabberd2/ChangeLog,v 1.1 2007/10/08 12:59:52 nelchael Exp $ + +*jabberd2-2.1.15 (08 Oct 2007) + + 08 Oct 2007; Krzysiek Pawlik <nelchael@gentoo.org> + +files/jabberd2-2.1.15.init, +files/jabberd2-2.1.15.pamd, +metadata.xml, + +jabberd2-2.1.15.ebuild: + Split jabberd2 from net-im/jabberd. + diff --git a/net-im/jabberd2/Manifest b/net-im/jabberd2/Manifest new file mode 100644 index 000000000000..4b1931049d7f --- /dev/null +++ b/net-im/jabberd2/Manifest @@ -0,0 +1,34 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + +AUX jabberd2-2.1.15.init 1623 RMD160 f0dc8e9868c526b74e32af1c966bcc7ff885ad3b SHA1 399207497bf406f82e7df1b8ba607ff5d90384cd SHA256 67aa778560cc0d8a04312a332b05ab1543b5a100f80cbc7a4035320c45b90bd5 +MD5 9a67335cdb6ac2d415d3124ff03c9707 files/jabberd2-2.1.15.init 1623 +RMD160 f0dc8e9868c526b74e32af1c966bcc7ff885ad3b files/jabberd2-2.1.15.init 1623 +SHA256 67aa778560cc0d8a04312a332b05ab1543b5a100f80cbc7a4035320c45b90bd5 files/jabberd2-2.1.15.init 1623 +AUX jabberd2-2.1.15.pamd 158 RMD160 3143cb1689fbebb51c0d72fa4c6b79ee9c015185 SHA1 5a95607d50b470107e9a0556fb4591688faff02c SHA256 eba4b5cc68b3dd327cfa1afdadbe5adf6d9383f4c79c7661169a4339e40b9a7b +MD5 ab77cef855566260d6a779d8d77bc78c files/jabberd2-2.1.15.pamd 158 +RMD160 3143cb1689fbebb51c0d72fa4c6b79ee9c015185 files/jabberd2-2.1.15.pamd 158 +SHA256 eba4b5cc68b3dd327cfa1afdadbe5adf6d9383f4c79c7661169a4339e40b9a7b files/jabberd2-2.1.15.pamd 158 +DIST jabberd-2.1.15.tar.gz 1408858 RMD160 f4f4d3200bf0bd0b5bf9a2a8d9e4d9167c16869c SHA1 849bd29e1aaff2ed362a93f7741ffca20c629357 SHA256 e9c3e03ae407913ddb0ceec827af71f9722da9e03ff6f6f979188c4f6ba6f4c9 +EBUILD jabberd2-2.1.15.ebuild 2934 RMD160 1dcceaf9db8026c1f622f588ad5289b8a687faaa SHA1 82e10c97c6da89d359fa3f3c187f135e2463c7b4 SHA256 c41a21adb88c01fa7d282d2e8acddc55577ef629ba7fb6364dcddb88aa3928f6 +MD5 fb761ee61f8bf409b4dfd55053f0318e jabberd2-2.1.15.ebuild 2934 +RMD160 1dcceaf9db8026c1f622f588ad5289b8a687faaa jabberd2-2.1.15.ebuild 2934 +SHA256 c41a21adb88c01fa7d282d2e8acddc55577ef629ba7fb6364dcddb88aa3928f6 jabberd2-2.1.15.ebuild 2934 +MISC ChangeLog 431 RMD160 0048c2d4e2eb7e5bf9ce970537dbd28f544a8d96 SHA1 ecb2e4ee7293a9efe70649109898e872c2ed310c SHA256 b2a2fa93c11f0da2f500481472c361b6f6633f098edfd90323c85a84ae6eec61 +MD5 9259953ca6cbec13fbdb2f4f5aed75af ChangeLog 431 +RMD160 0048c2d4e2eb7e5bf9ce970537dbd28f544a8d96 ChangeLog 431 +SHA256 b2a2fa93c11f0da2f500481472c361b6f6633f098edfd90323c85a84ae6eec61 ChangeLog 431 +MISC metadata.xml 433 RMD160 817394c54e448ad628773a5de8edb4c26b9516f7 SHA1 cca8e15fd99f2b05a3efed75d665e9ab0a57ce4d SHA256 245f08f7b8e66f9240eb7ea237661f7b17e667c9500121770c2611e1033f30c4 +MD5 d299ac2c0ade4fad26820d81e81e1882 metadata.xml 433 +RMD160 817394c54e448ad628773a5de8edb4c26b9516f7 metadata.xml 433 +SHA256 245f08f7b8e66f9240eb7ea237661f7b17e667c9500121770c2611e1033f30c4 metadata.xml 433 +MD5 87dfc8794cea2add2d01a61aae4ad974 files/digest-jabberd2-2.1.15 247 +RMD160 506991480f1b2a2fda31fcce75fdc818054db387 files/digest-jabberd2-2.1.15 247 +SHA256 e25ee417a30027dc8fc31c4a645d621783b7ea96b349373823582edbc2922ffb files/digest-jabberd2-2.1.15 247 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.7 (GNU/Linux) + +iD8DBQFHCinOgo/w9rxVVVERAl0zAJ4vhNxNNlIJR9FYHc5l3bf1l6NhJwCfYvLe +VLHCoUOxeAvyD8sflUuKQJ0= +=sed6 +-----END PGP SIGNATURE----- diff --git a/net-im/jabberd2/files/digest-jabberd2-2.1.15 b/net-im/jabberd2/files/digest-jabberd2-2.1.15 new file mode 100644 index 000000000000..77a73ee9b7aa --- /dev/null +++ b/net-im/jabberd2/files/digest-jabberd2-2.1.15 @@ -0,0 +1,3 @@ +MD5 bf3e6596045e3f5018e75d5613c1f864 jabberd-2.1.15.tar.gz 1408858 +RMD160 f4f4d3200bf0bd0b5bf9a2a8d9e4d9167c16869c jabberd-2.1.15.tar.gz 1408858 +SHA256 e9c3e03ae407913ddb0ceec827af71f9722da9e03ff6f6f979188c4f6ba6f4c9 jabberd-2.1.15.tar.gz 1408858 diff --git a/net-im/jabberd2/files/jabberd2-2.1.15.init b/net-im/jabberd2/files/jabberd2-2.1.15.init new file mode 100644 index 000000000000..5c1f9e384607 --- /dev/null +++ b/net-im/jabberd2/files/jabberd2-2.1.15.init @@ -0,0 +1,77 @@ +#!/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/jabberd2/files/jabberd2-2.1.15.init,v 1.1 2007/10/08 12:59:53 nelchael Exp $ + +depend() { + need net + use mysql postgresql slapd + provide jabber-server +} + +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 + services=$(grep -v ^# /etc/jabber/jabberd.cfg | grep '..*' | awk '{print $1 ":" $2}') + eindent + for service in ${services}; do + + cfgfile=$(echo ${service} | cut -d ':' -f 2) + service=$(echo ${service} | cut -d ':' -f 1) + 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} \ + --pid /var/run/jabber/$(basename ${cfgfile%.xml}).pid \ + -- -c ${cfgfile} + eend $? + + done + eoutdent + +} + +stop() { + + einfo "Stopping Jabber Server" + stopJabberServices + +} diff --git a/net-im/jabberd2/files/jabberd2-2.1.15.pamd b/net-im/jabberd2/files/jabberd2-2.1.15.pamd new file mode 100644 index 000000000000..2c5a5347ad6a --- /dev/null +++ b/net-im/jabberd2/files/jabberd2-2.1.15.pamd @@ -0,0 +1,6 @@ +#%PAM-1.0 + +auth required pam_nologin.so +auth include system-auth +account include system-auth +session include system-auth diff --git a/net-im/jabberd2/jabberd2-2.1.15.ebuild b/net-im/jabberd2/jabberd2-2.1.15.ebuild new file mode 100644 index 000000000000..f9b5dde653b6 --- /dev/null +++ b/net-im/jabberd2/jabberd2-2.1.15.ebuild @@ -0,0 +1,113 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-im/jabberd2/jabberd2-2.1.15.ebuild,v 1.1 2007/10/08 12:59:52 nelchael Exp $ + +inherit db-use eutils pam + +DESCRIPTION="Open Source Jabber Server" +HOMEPAGE="http://jabberd2.xiaoka.com/" +SRC_URI="http://ftp.xiaoka.com/${PN}/releases/jabberd-${PV}.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? ( virtual/pam ) + mysql? ( virtual/mysql ) + postgres? ( dev-db/postgresql ) + sqlite? ( >=dev-db/sqlite-3 ) + !net-im/jabberd" + +S="${WORKDIR}/jabberd-${PV}" + +src_compile() { + + local localconf="--enable-sasl=cyrus" + + # Note: no gsasl support for now, since + # gsasl-0.2.14 not in portage tree. + # + #if use !gsasl; then + # localconf="--enable-sasl=gsasl" + #fi + + if use debug; then + localconf="${localconf} --enable-debug" + # --enable-pool-debug is currently broken + use memdebug && localconf="${localconf} --enable-nad-debug" + else + if use memdebug; then + ewarn + ewarn '"memdebug" requires "debug" enabled.' + ewarn + fi + fi + + econf \ + --sysconfdir=/etc/jabber \ + --enable-db \ + --with-extra-include-path=$(db_includedir) \ + ${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}/jabberd2-${PV}.init" jabberd || die "newinitd failed" + newpamd "${FILESDIR}/jabberd2-${PV}.pamd" jabberd || die "newpamd failed" + + dodoc AUTHORS BUGS PROTOCOL README UPGRADE + docinto tools + dodoc tools/db-setup{.mysql,-status.mysql,.pgsql,.sqlite} + dodoc tools/{migrate.pl,pipe-auth.pl} + + 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* || die "sed failed" + sed -i \ + -e 's,<driver>mysql</driver>,<driver>db</driver>,' \ + sm.xml* || die "sed failed" + +} + +pkg_postinst() { + + if use pam; then + echo + ewarn 'Jabberd-2 PAM authentication requires your unix usernames to' + ewarn 'be in the form of "contactname@jabberdomain". This behavior' + ewarn 'is likely to change in future versions of jabberd-2. It may' + ewarn 'be advisable to avoid PAM authentication for the time being.' + echo + ebeep + fi + +} diff --git a/net-im/jabberd2/metadata.xml b/net-im/jabberd2/metadata.xml new file mode 100644 index 000000000000..25a7ffa5b699 --- /dev/null +++ b/net-im/jabberd2/metadata.xml @@ -0,0 +1,16 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>nelchael@gentoo.org</email> + <name>Krzysiek Pawlik</name> + </maintainer> + <maintainer> + <email>marko.durkovic@gmail.com</email> + <name>Marko Durkovic</name> + <description> + Maintainer by proxy, through nelchael. + </description> + </maintainer> + <herd>net-im</herd> +</pkgmetadata> |