author | Michael Krelin <hacker@klever.net> | 2007-07-28 19:23:02 (UTC) |
---|---|---|
committer | Michael Krelin <hacker@klever.net> | 2007-07-28 19:23:02 (UTC) |
commit | 14d8413448409518ec967b895290dbbb5cc0e7f3 (patch) (side-by-side diff) | |
tree | 415348e580b591957a0d7ed4c14e3d2cf27f58e2 /net-im/jabberd/jabberd-2.1.11-r2.ebuild | |
parent | 2046805030295f646052c635e525a4ae2ec787cc (diff) | |
download | misc-14d8413448409518ec967b895290dbbb5cc0e7f3.zip misc-14d8413448409518ec967b895290dbbb5cc0e7f3.tar.gz misc-14d8413448409518ec967b895290dbbb5cc0e7f3.tar.bz2 |
net-im/jabberd: added ssl fix to the patch.
Signed-off-by: Michael Krelin <hacker@klever.net>
Diffstat (limited to 'net-im/jabberd/jabberd-2.1.11-r2.ebuild') (more/less context) (show whitespace changes)
-rw-r--r-- | net-im/jabberd/jabberd-2.1.11-r2.ebuild | 110 |
1 files changed, 110 insertions, 0 deletions
diff --git a/net-im/jabberd/jabberd-2.1.11-r2.ebuild b/net-im/jabberd/jabberd-2.1.11-r2.ebuild new file mode 100644 index 0000000..9445d07 --- a/dev/null +++ b/net-im/jabberd/jabberd-2.1.11-r2.ebuild @@ -0,0 +1,110 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +WANT_AUTOCONF="lastest" +WANT_AUTOMAKE="none" +inherit pam eutils postgresql autotools + +DESCRIPTION="Open Source Jabber Server" +HOMEPAGE="http://jabberd2.xiaoka.com/" +SRC_URI="http://ftp.xiaoka.com/${PN}2/releases/${P}.tar.bz2" + +SLOT="0" +LICENSE="GPL-2" +KEYWORDS="~amd64 ~ppc ~sparc ~x86" +IUSE="debug memdebug ldap mysql pam pipe postgres sqlite ssl berkdb anon fs" + +RDEPEND=">=net-im/jabber-base-0.01 + ssl? ( >=dev-libs/openssl-0.9.6b ) + idn? ( net-dns/libidn ) + ldap? ( net-nds/openldap ) + berkdb? ( >=sys-libs/db-4.1.25 ) + mysql? ( virtual/mysql ) + postgres? ( virtual/postgresql-libs ) + sqlite? ( =dev-db/sqlite-3* ) + dev-libs/expat + dev-libs/cyrus-sasl" +DEPEND="${RDEPEND}" + +src_unpack() { + unpack $A + cd "$S" + epatch "${FILESDIR}/${PF}.patch" + eautoreconf +} + +src_compile() { + + if use memdebug && ! use debug ; then + ewarn '"memdebug" requires "debug"' + fi + + local pgconfigbin + use postgres && pgconfigbin="$(postgresql_get_pgconfig)" + # gsasl backend is disabled due to the lack of proper gsasl in the tree + # TODO: rework postgres part in configure.ac + # TODO: conditionally add extra include path for db_includedir from + # db-use.eclass + econf \ + --localstatedir=/var \ + --sysconfdir=/etc/jabber \ + $(use_enable debug) \ + $(use_enable memdebug nad-debug) $(use_enable memdebug pool-debug) \ + --enable-sasl=cyrus \ + $(use_enable ssl) \ + $(use_enable mysql) \ + $(use_enable postgres pgsql "$pgconfigbin") \ + $(use_enable sqlite) \ + $(use_enable berkdb db) \ + $(use_enable ldap) \ + $(use_enable pam) \ + $(use_enable pipe) \ + $(use_enable anon) \ + $(use_enable fs) \ + || 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" + if use pam ; then + newpamd "${FILESDIR}/jabberd-${PV}.pamd" jabberd || die "newpamd failed" + fi + + dodoc AUTHORS BUGS NEWS PROTOCOL README UPGRADE + docinto tools + for i in db-* migrate.pl pipe-auth.pl; do + dodoc tools/${i} + done + + cd "${D}/etc/jabber/" + sed -i \ + -e 's,/var/jabberd/pid/,/var/run/jabber/,g' \ + -e 's,/var/jabberd/log/,/var/log/jabber/,g' \ + -e 's,/var/jabberd/db,/var/spool/jabber/,g' \ + *.xml *.xml.dist || die "sed failed" + use berkdb && sed -i \ + -e 's,<module>mysql</module>,<module>db</module>,' \ + c2s.xml* + +} + +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 +} |