diff options
author | Thomas Anderson <gentoofan23@gentoo.org> | 2008-06-28 11:24:36 +0000 |
---|---|---|
committer | Thomas Anderson <gentoofan23@gentoo.org> | 2008-06-28 11:24:36 +0000 |
commit | b59268cb52ae08d5773fd35d1911d9765336f611 (patch) | |
tree | 00a18bc43f84fd664bfce97615cec35a3b2841d4 /net-im/jabberd2 | |
parent | Version bump (diff) | |
download | gentoo-2-b59268cb52ae08d5773fd35d1911d9765336f611.tar.gz gentoo-2-b59268cb52ae08d5773fd35d1911d9765336f611.tar.bz2 gentoo-2-b59268cb52ae08d5773fd35d1911d9765336f611.zip |
Revision bump, fixes bug #229313. Thanks to Thomas Arnett for reporting with a patch and some ebuild enhancements. Adds more USE flags for optional dependencies
(Portage version: 2.1.4.4)
Diffstat (limited to 'net-im/jabberd2')
-rw-r--r-- | net-im/jabberd2/ChangeLog | 11 | ||||
-rw-r--r-- | net-im/jabberd2/files/jabberd2-2.2.0-apr_base64.patch | 28 | ||||
-rw-r--r-- | net-im/jabberd2/jabberd2-2.2.0-r1.ebuild (renamed from net-im/jabberd2/jabberd2-2.2.0.ebuild) | 49 |
3 files changed, 78 insertions, 10 deletions
diff --git a/net-im/jabberd2/ChangeLog b/net-im/jabberd2/ChangeLog index 9c4ba6d23b33..74e6fb65ae51 100644 --- a/net-im/jabberd2/ChangeLog +++ b/net-im/jabberd2/ChangeLog @@ -1,6 +1,15 @@ # ChangeLog for net-im/jabberd2 # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-im/jabberd2/ChangeLog,v 1.14 2008/06/23 13:15:40 gentoofan23 Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-im/jabberd2/ChangeLog,v 1.15 2008/06/28 11:24:35 gentoofan23 Exp $ + +*jabberd2-2.2.0-r1 (28 Jun 2008) + + 28 Jun 2008; Thomas Anderson <gentoofan23@gentoo.org> + +files/jabberd2-2.2.0-apr_base64.patch, -jabberd2-2.2.0.ebuild, + +jabberd2-2.2.0-r1.ebuild: + Revision bump, fixes bug #229313. Thanks to Thomas Arnett for reporting with + a patch and some ebuild enhancements. Adds more USE flags for optional + dependencies *jabberd2-2.2.0 (23 Jun 2008) diff --git a/net-im/jabberd2/files/jabberd2-2.2.0-apr_base64.patch b/net-im/jabberd2/files/jabberd2-2.2.0-apr_base64.patch new file mode 100644 index 000000000000..95582713d689 --- /dev/null +++ b/net-im/jabberd2/files/jabberd2-2.2.0-apr_base64.patch @@ -0,0 +1,28 @@ +--- util/base64.c ++++ util/base64.c +@@ -167,10 +167,10 @@ + if(len == 0) + len = strlen(buf); + +- elen = ap_base64encode_len(len); ++ elen = apr_base64_encode_len(len); + out = (char *) malloc(sizeof(char) * (elen + 1)); + +- ap_base64encode(out, buf, len); ++ apr_base64_encode(out, buf, len); + + return out; + } +@@ -179,10 +179,10 @@ + int elen; + char *out; + +- elen = ap_base64decode_len(buf, -1); ++ elen = apr_base64_decode_len(buf, -1); + out = (char *) malloc(sizeof(char) * (elen + 1)); + +- ap_base64decode(out, buf, -1); ++ apr_base64_decode(out, buf, -1); + + return out; + } diff --git a/net-im/jabberd2/jabberd2-2.2.0.ebuild b/net-im/jabberd2/jabberd2-2.2.0-r1.ebuild index e57ed3ddd944..c4116d208a75 100644 --- a/net-im/jabberd2/jabberd2-2.2.0.ebuild +++ b/net-im/jabberd2/jabberd2-2.2.0-r1.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-im/jabberd2/jabberd2-2.2.0.ebuild,v 1.1 2008/06/23 13:15:40 gentoofan23 Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-im/jabberd2/jabberd2-2.2.0-r1.ebuild,v 1.1 2008/06/28 11:24:35 gentoofan23 Exp $ inherit db-use eutils flag-o-matic pam @@ -11,14 +11,15 @@ SRC_URI="http://ftp.xiaoka.com/${PN}/releases/jabberd-${PV}.tar.bz2" SLOT="0" LICENSE="GPL-2" KEYWORDS="~amd64 ~ppc ~sparc ~x86" -IUSE="debug memdebug ipv6 ldap mysql pam pipe postgres sqlite" +IUSE="berkdb debug memdebug mysql ldap pam pipe postgres sqlite ssl zlib" DEPEND="dev-libs/expat - >=dev-libs/openssl-0.9.6b + zlib? ( sys-libs/zlib ) + ssl? ( >=dev-libs/openssl-0.9.6b ) net-libs/udns >=net-dns/libidn-0.3 ldap? ( net-nds/openldap ) - >=sys-libs/db-4.1.24 + berkdb? ( >=sys-libs/db-4.1.24 ) pam? ( virtual/pam ) mysql? ( virtual/mysql ) postgres? ( virtual/postgresql-server ) @@ -30,12 +31,42 @@ RDEPEND="${DEPEND} S="${WORKDIR}/jabberd-${PV}" +pkg_setup() { + if ! use berkdb && ! use postgres && ! use mysql && ! use sqlite; then + eerror 'You have no storage backend selected.' + eerror 'Please set one of the following USE flags:' + eerror ' berkdb' + eerror ' postgres' + eerror ' mysql' + eerror ' sqlite' + die 'Please enable one of the storage backends mentioned.' + fi + + if ! use berkdb && ! use mysql && ! use postgres \ + && ! use pam && ! use ldap; then + eerror 'You have no Authentication mechanism selected.' + eerror 'Please set one of the following USE flags for authentication:' + eerror ' berkdb' + eerror ' mysql' + eerror ' postgres' + eerror ' pam' + eerror ' ldap' + die 'Please enable one of the authentication mechanisms mentioned.' + fi +} + +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${FILESDIR}"/${P}-apr_base64.patch +} + src_compile() { # https://bugs.gentoo.org/show_bug.cgi?id=207655#c3 replace-flags -O[3s] -O2 - local myconf="--with-sasl=gsasl" + use berkdb && myconf="${myconf} --with-extra-include-path=$(db_includedir)" if use debug; then myconf="${myconf} --enable-debug" @@ -51,16 +82,16 @@ src_compile() { econf \ --sysconfdir=/etc/jabber \ - --enable-db \ - --with-extra-include-path=$(db_includedir) \ ${myconf} \ - $(use_enable ipv6) \ + $(use_enable berkdb db) $(use_enable ldap) \ $(use_enable mysql) \ $(use_enable pam) \ $(use_enable pipe) \ $(use_enable postgres pgsql) \ - $(use_enable sqlite) + $(use_enable sqlite) \ + $(use_enable ssl) \ + $(use_with zlib) emake || die "make failed" } |