diff options
author | Christian Ruppert <idl0r@gentoo.org> | 2011-09-01 19:34:46 +0000 |
---|---|---|
committer | Christian Ruppert <idl0r@gentoo.org> | 2011-09-01 19:34:46 +0000 |
commit | 2c0d828b3509786b4cf4f71e8062f03af16eee8e (patch) | |
tree | 600b155dd7ff9ff8a2774db6ba4036a2a92b165f /net-dns | |
parent | Add WIP from upstream #379573 by Sebastian Pipping. (diff) | |
download | historical-2c0d828b3509786b4cf4f71e8062f03af16eee8e.tar.gz historical-2c0d828b3509786b4cf4f71e8062f03af16eee8e.tar.bz2 historical-2c0d828b3509786b4cf4f71e8062f03af16eee8e.zip |
EAPI bump. Add more useflags. Make use of REQUIRED_USE for dlz/db flags. Remove useless blocks. Remove useless resolvconf dependency/flag.
Package-Manager: portage-2.2.0_alpha51/cvs/Linux x86_64
Diffstat (limited to 'net-dns')
-rw-r--r-- | net-dns/bind/ChangeLog | 7 | ||||
-rw-r--r-- | net-dns/bind/Manifest | 20 | ||||
-rw-r--r-- | net-dns/bind/bind-9.8.1.ebuild | 105 | ||||
-rw-r--r-- | net-dns/bind/metadata.xml | 3 |
4 files changed, 70 insertions, 65 deletions
diff --git a/net-dns/bind/ChangeLog b/net-dns/bind/ChangeLog index 7d75a16399b1..6eecfdbe3cf8 100644 --- a/net-dns/bind/ChangeLog +++ b/net-dns/bind/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for net-dns/bind # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-dns/bind/ChangeLog,v 1.349 2011/09/01 15:20:13 idl0r Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-dns/bind/ChangeLog,v 1.350 2011/09/01 19:34:46 idl0r Exp $ + + 01 Sep 2011; Christian Ruppert <idl0r@gentoo.org> bind-9.8.1.ebuild, + metadata.xml: + EAPI bump. Add more useflags. Make use of REQUIRED_USE for dlz/db flags. + Remove useless blocks. Remove useless resolvconf dependency/flag. *bind-9.8.1 (01 Sep 2011) diff --git a/net-dns/bind/Manifest b/net-dns/bind/Manifest index 2ec1a9315c42..c1df9545a4a3 100644 --- a/net-dns/bind/Manifest +++ b/net-dns/bind/Manifest @@ -21,17 +21,17 @@ DIST bind-sdb-ldap-1.1.0-fc14.patch.bz2 9477 RMD160 eb7507dc4b1da0064516d9e75dbc DIST dyndns-samples.tbz2 22866 RMD160 27d5b2d0edb8e1ff16b3f980c38d7af33ccf0c7d SHA1 0a62e9458d0e16b67a3a2f63ea485ce969f1fb4d SHA256 92fb06a92ca99cbbe96b90bcca229ef9c12397db57ae17e199dad9f1218fdbe8 EBUILD bind-9.7.3_p1.ebuild 11613 RMD160 bad58a3f45a5d909b4df04803d959e2c9affe0b4 SHA1 646d7a1fb10980e704fb8ed39f1acb3d70c2b55e SHA256 9aa8a6e64f914d8beeeb44dd1453ebe9dcbe2a7e7c7a913e651df7e2d3613e95 EBUILD bind-9.7.3_p3.ebuild 11547 RMD160 6e1ab2efcb184db200a53190b016a7d763499898 SHA1 dc534b640bb4ca05d7e3b700bc1c8a75b0d58ed9 SHA256 2e64fbe000308956c75c1edd324073f9cd377af1ad7320343a581ef03a719e27 -EBUILD bind-9.8.1.ebuild 12220 RMD160 c9d250770467d4ac5f99d0512d62cf177129ef0d SHA1 e5f53be022c2a8fde22db8e197e139006014d9a6 SHA256 be02a5f97c224154e3d71360b45010c41597f49f276630f02ad2926c545c7576 -MISC ChangeLog 59441 RMD160 8be92f46f57f877e361b49157545e458906ff45e SHA1 405d159faef3cef4a203a20554b5d0c66a17fd47 SHA256 6c15b4a8e922f32ca4c0fab7ad18700356d23e3e9d09cec5a6f4dcb648d47de8 -MISC metadata.xml 686 RMD160 04372d2e822125106bfbec86f7f754b2f8381250 SHA1 efe392ad948d348fb8c1a9a38558fb3cc3e892c8 SHA256 ac17c78fd6d997049a1b1e49be8142e78514bec66e85099c8e946b300fde7c4a +EBUILD bind-9.8.1.ebuild 11943 RMD160 d6599b619ff58817909133198cec3b7788e8b67a SHA1 a33f5d53b27926a88f3ce7a0db0ba49f76ad0298 SHA256 26600fe49b9aaeac65f06ef49e11961b7e1f54c8370299287453c902216e42bf +MISC ChangeLog 59672 RMD160 527b035a1fe6e42195e08262bb1745d9f94304e7 SHA1 b104e3fbd99dcfe2b4afe496c4f1662dfea6ea47 SHA256 0af32aeaccc15946399e3d2443961648d2ec80836263d2c2ac73ddb10133ffbc +MISC metadata.xml 887 RMD160 3c0fdcaacc812fc3e558afbbdb91dd6efbf377f9 SHA1 73e55d5772ca66d165643bf389847234c32593d7 SHA256 c0a53163775c42b68ed319c68f18234d8e6d908b318066a0d533bf7bcd40ce7c -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.17 (GNU/Linux) -iQEcBAEBCAAGBQJOX6KzAAoJEMOx0zmdw4Z1lvQH/32W/k70KrohaXD3s00V+WhE -s7V54upL8TrulvWCppqrR4vRC7h/SNm0u169+x8yw3jQz5KXskYqT1WanTyDsX6Y -9ZVq/qfxza6fX/pXucXygqeiTrx8dZOCuH7GWjBGZNLyurqsDSszqi2fB404r3b+ -aajxxWFqFJmDgYGICCXdeMEx4VnWReOpBEXWN9VNBvppagxoZTAA7DjQOGVr7v5P -IrP+SAMCtAmryylZWH9Kc1MPeFB67iNSiFCFQo2iLm+vgx0kGE3kMGZ3arC9dE1t -CPD4y/P2hNgs6QCDy99OiqBNzWYHJ8GXD7GxeyMjQQsC5ePkzuZ+aUXew0v5iSM= -=p2kA +iQEcBAEBCAAGBQJOX95bAAoJEMOx0zmdw4Z1aXcH/3mMgh3kQwFtMoG6TFcYCqUI +aLxCPGkJEmt/zEvXNyMRnk+PUTqZ3LYnxD98DVp3b2BAYGUWxBVvjtZ0UkuTxu74 +77nMmQYtxxLloxv/2NNVAu1Xcs7z8yp+c9sChMuFSu+DjWALpG2wY0kI3jHJHHB7 +6aHzhHF9ear4rVFHYAY2HttyJ4N1MqC9KTJzITXHD+InK4scDBqZ4BK16ghBPudN +2sWxLeKz6TFk41Idujje0QZbWpnmFskl1PyRLcLNeUhhKEj+kQkKc6oQ89zKph3f +CDC8dqOvLsDeFd/LmRlkGyauqW0utE1amnNsN00TMur0Qe0+giFItUrhmZpfl9U= +=4aLx -----END PGP SIGNATURE----- diff --git a/net-dns/bind/bind-9.8.1.ebuild b/net-dns/bind/bind-9.8.1.ebuild index 8a04818367f8..a23966b99fd1 100644 --- a/net-dns/bind/bind-9.8.1.ebuild +++ b/net-dns/bind/bind-9.8.1.ebuild @@ -1,8 +1,17 @@ # Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-dns/bind/bind-9.8.1.ebuild,v 1.1 2011/09/01 15:20:13 idl0r Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-dns/bind/bind-9.8.1.ebuild,v 1.2 2011/09/01 19:34:46 idl0r Exp $ -EAPI="3" +# Re dlz/mysql and threads, needs to be verified.. +# MySQL uses thread local storage in its C api. Thus MySQL +# requires that each thread of an application execute a MySQL +# thread initialization to setup the thread local storage. +# This is impossible to do safely while staying within the DLZ +# driver API. This is a limitation caused by MySQL, and not the DLZ API. +# Because of this BIND MUST only run with a single thread when +# using the MySQL driver. + +EAPI="4" inherit eutils autotools toolchain-funcs flag-o-matic multilib @@ -32,8 +41,16 @@ SRC_URI="ftp://ftp.isc.org/isc/bind9/${MY_PV}/${MY_P}.tar.gz LICENSE="as-is" SLOT="0" KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" -IUSE="ssl ipv6 doc dlz postgres berkdb mysql odbc ldap selinux idn threads - resolvconf urandom xml geoip gssapi sdb-ldap" +IUSE="berkdb caps dlz doc geoip gost gssapi idn ipv6 ldap mysql odbc pkcs11 postgres rpz sdb-ldap +selinux ssl threads urandom xml" + +REQUIRED_USE="postgres? ( dlz ) + berkdb? ( dlz ) + mysql? ( dlz !threads ) + odbc? ( dlz ) + ldap? ( dlz ) + sdb-ldap? ( dlz ) + gost? ( ssl )" DEPEND="ssl? ( >=dev-libs/openssl-0.9.6g ) mysql? ( >=virtual/mysql-4.0 ) @@ -41,15 +58,15 @@ DEPEND="ssl? ( >=dev-libs/openssl-0.9.6g ) ldap? ( net-nds/openldap ) idn? ( net-dns/idnkit ) postgres? ( dev-db/postgresql-base ) - threads? ( >=sys-libs/libcap-2.1.0 ) + caps? ( >=sys-libs/libcap-2.1.0 ) xml? ( dev-libs/libxml2 ) geoip? ( >=dev-libs/geoip-1.4.6 ) gssapi? ( virtual/krb5 ) - sdb-ldap? ( net-nds/openldap )" + sdb-ldap? ( net-nds/openldap ) + gost? ( >=dev-libs/openssl-1.0.0 )" RDEPEND="${DEPEND} selinux? ( sec-policy/selinux-bind ) - resolvconf? ( net-dns/openresolv ) sys-process/psmisc" S="${WORKDIR}/${MY_P}" @@ -88,21 +105,21 @@ src_prepare() { if use odbc; then epatch "${FILESDIR}/${PN}-9.7.3-odbc-dlz-detect.patch" fi + + # sdb-ldap patch as per bug #160567 + # Upstream URL: http://bind9-ldap.bayour.com/ + # New patch take from bug 302735 + if use sdb-ldap; then + epatch "${WORKDIR}"/${PN}-sdb-ldap-${SDB_LDAP_VER}.patch + cp -fp contrib/sdb/ldap/ldapdb.[ch] bin/named/ + cp -fp contrib/sdb/ldap/{ldap2zone.1,ldap2zone.c} bin/tools/ + cp -fp contrib/sdb/ldap/{zone2ldap.1,zone2ldap.c} bin/tools/ + fi fi # should be installed by bind-tools sed -i -r -e "s:(nsupdate|dig) ::g" bin/Makefile.in || die - # sdb-ldap patch as per bug #160567 - # Upstream URL: http://bind9-ldap.bayour.com/ - # New patch take from bug 302735 - if use sdb-ldap; then - epatch "${WORKDIR}"/${PN}-sdb-ldap-${SDB_LDAP_VER}.patch - cp -fp contrib/sdb/ldap/ldapdb.[ch] bin/named - cp -fp contrib/sdb/ldap/{ldap2zone.1,ldap2zone.c} bin/tools - cp -fp contrib/sdb/ldap/{zone2ldap.1,zone2ldap.c} bin/tools - fi - if use geoip; then cp "${DISTDIR}"/${GEOIP_PATCH_A} "${S}" || die sed -i -e 's:RELEASETYPE=-P:RELEASETYPE=:' \ @@ -112,46 +129,12 @@ src_prepare() { # bug #220361 rm {aclocal,libtool}.m4 - WANT_AUTOCONF=2.5 AT_NO_RECURSIVE=1 eautoreconf - - # remove useless c++ checks - epunt_cxx + eautoreconf } src_configure() { local myconf="" - use dlz && { - myconf="${myconf} --with-dlz-filesystem --with-dlz-stub" - use postgres && myconf="${myconf} --with-dlz-postgres" - use mysql && myconf="${myconf} --with-dlz-mysql" - use berkdb && myconf="${myconf} --with-dlz-bdb" - use ldap && myconf="${myconf} --with-dlz-ldap" - use odbc && myconf="${myconf} --with-dlz-odbc" - } - - if use threads; then - if use dlz && use mysql; then - ewarn - ewarn "MySQL uses thread local storage in its C api. Thus MySQL" - ewarn "requires that each thread of an application execute a MySQL" - ewarn "\"thread initialization\" to setup the thread local storage." - ewarn "This is impossible to do safely while staying within the DLZ" - ewarn "driver API. This is a limitation caused by MySQL, and not" - ewarn "the DLZ API." - ewarn "Because of this BIND MUST only run with a single thread when" - ewarn "using the MySQL driver." - ewarn - myconf="${myconf} --disable-linux-caps --disable-threads" - ewarn "Threading support disabled" - else - myconf="${myconf} --enable-linux-caps --enable-threads" - einfo "Threading support enabled" - fi - else - myconf="${myconf} --disable-linux-caps --disable-threads" - fi - if use urandom; then myconf="${myconf} --with-randomdev=/dev/urandom" else @@ -168,11 +151,25 @@ src_configure() { --sysconfdir=/etc/bind \ --localstatedir=/var \ --with-libtool \ + $(use_enable threads) \ + $(use_with dlz dlopen) \ + $(use_with dlz dlz-filesystem) \ + $(use_with dlz dlz-stub) \ + $(use_with postgres dlz-postgres) \ + $(use_with mysql dlz-mysql) \ + $(use_with berkdb dlz-bdb) \ + $(use_with ldap dlz-ldap) \ + $(use_with odbc dlz-odbc) \ $(use_with ssl openssl) \ $(use_with idn) \ $(use_enable ipv6) \ $(use_with xml libxml2) \ $(use_with gssapi) \ + $(use_enable rpz rpz-nsip) \ + $(use_enable rpz rpz-nsdname) \ + $(use_with pkcs11) \ + $(use_enable caps linux-caps) \ + $(use_with gost) \ ${myconf} # bug #151839 @@ -229,7 +226,7 @@ src_install() { newinitd "${FILESDIR}"/named.init-r11 named || die newconfd "${FILESDIR}"/named.confd-r6 named || die - if use ssl && [ -e /usr/lib/engines/libgost.so ]; then + if use gost; then sed -i -e 's/^OPENSSL_LIBGOST=${OPENSSL_LIBGOST:-0}$/OPENSSL_LIBGOST=${OPENSSL_LIBGOST:-1}/' "${D}/etc/init.d/named" || die else sed -i -e 's/^OPENSSL_LIBGOST=${OPENSSL_LIBGOST:-1}$/OPENSSL_LIBGOST=${OPENSSL_LIBGOST:-0}/' "${D}/etc/init.d/named" || die @@ -341,7 +338,7 @@ pkg_config() { mkdir -m 0750 -p ${CHROOT}/etc/bind mkdir -m 0770 -p ${CHROOT}/var/{bind,{run,log}/named} # As of bind 9.8.0 - if has_version net-dns/bind[ssl] -a -e /usr/lib/engines/libgost.so; then + if has_version net-dns/bind[gost]; then if [ "$(get_libdir)" = "lib64" ]; then mkdir -m 0755 -p ${CHROOT}/usr/lib64/engines ln -s lib64 ${CHROOT}/usr/lib diff --git a/net-dns/bind/metadata.xml b/net-dns/bind/metadata.xml index d1f977a75096..a2b5b7b237d0 100644 --- a/net-dns/bind/metadata.xml +++ b/net-dns/bind/metadata.xml @@ -9,8 +9,11 @@ <longdescription>ISC's bind dns server, used the world 'round.</longdescription> <use> <flag name="dlz">Enables dynamic loaded zones, 3rd party extension</flag> + <flag name="gost">Enables gost OpenSSL engine support</flag> <flag name="gssapi">Enable gssapi support</flag> <flag name="resolvconf">Enable support for <pkg>net-dns/openresolv</pkg></flag> + <flag name="rpz">Enable response policy rewriting (rpz)</flag> + <flag name="pkcs11">Enable PKCS#11 key support/tools for DNSSEC</flag> <flag name="sdb-ldap">Enables ldap-sdb backend</flag> <flag name="urandom">Use /dev/urandom instead of /dev/random</flag> </use> |