summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Jackson <mjolnir@gentoo.org>2007-02-06 03:21:31 +0000
committerMartin Jackson <mjolnir@gentoo.org>2007-02-06 03:21:31 +0000
commitcaa949445c68f8f4f65694b866c7b4f9f2072915 (patch)
tree0bdff9b808e1558b4e04c6c19a27ed13e15957ca /net-dns
parentUpdates for security issues (diff)
downloadhistorical-caa949445c68f8f4f65694b866c7b4f9f2072915.tar.gz
historical-caa949445c68f8f4f65694b866c7b4f9f2072915.tar.bz2
historical-caa949445c68f8f4f65694b866c7b4f9f2072915.zip
Updates for security bugs
Package-Manager: portage-2.1.1-r2
Diffstat (limited to 'net-dns')
-rw-r--r--net-dns/bind/ChangeLog15
-rw-r--r--net-dns/bind/Manifest44
-rw-r--r--net-dns/bind/bind-9.2.8.ebuild274
-rw-r--r--net-dns/bind/bind-9.3.4.ebuild273
-rw-r--r--net-dns/bind/bind-9.4.0_rc2.ebuild277
-rw-r--r--net-dns/bind/files/bind-9.2.8-missing_odbc_test.patch20
-rw-r--r--net-dns/bind/files/bind-9.3.4-missing_odbc_test.patch20
-rw-r--r--net-dns/bind/files/bind-9.4.0_rc2-missing_odbc_test.patch20
-rw-r--r--net-dns/bind/files/digest-bind-9.2.89
-rw-r--r--net-dns/bind/files/digest-bind-9.3.49
-rw-r--r--net-dns/bind/files/digest-bind-9.4.0_rc29
11 files changed, 964 insertions, 6 deletions
diff --git a/net-dns/bind/ChangeLog b/net-dns/bind/ChangeLog
index a707bf9b028d..49fa0dc656e8 100644
--- a/net-dns/bind/ChangeLog
+++ b/net-dns/bind/ChangeLog
@@ -1,6 +1,17 @@
# ChangeLog for net-dns/bind
-# Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-dns/bind/ChangeLog,v 1.137 2006/12/20 21:42:09 killerfox Exp $
+# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-dns/bind/ChangeLog,v 1.138 2007/02/06 03:21:31 mjolnir Exp $
+
+*bind-9.4.0_rc2 (06 Feb 2007)
+*bind-9.3.4 (06 Feb 2007)
+*bind-9.2.8 (06 Feb 2007)
+
+ 06 Feb 2007; Martin Jackson <mjolnir@gentoo.org>
+ +files/bind-9.2.8-missing_odbc_test.patch,
+ +files/bind-9.3.4-missing_odbc_test.patch,
+ +files/bind-9.4.0_rc2-missing_odbc_test.patch, +bind-9.2.8.ebuild,
+ +bind-9.3.4.ebuild, +bind-9.4.0_rc2.ebuild:
+ Updates for bugs #163691 #163692 and #164293
20 Dec 2006; René Nussbaumer <killerfox@gentoo.org> bind-9.3.3.ebuild:
Stable on hppa. See bug #158217.
diff --git a/net-dns/bind/Manifest b/net-dns/bind/Manifest
index 0826dc1a6f4e..fc91eca28956 100644
--- a/net-dns/bind/Manifest
+++ b/net-dns/bind/Manifest
@@ -18,10 +18,22 @@ AUX bind-9.2.5-mysql.patch 11315 RMD160 6161e9ebaed3b13a64d3cc17edcce8a0e64e48fc
MD5 9a06b553558342585f8ba88bd5e4c569 files/bind-9.2.5-mysql.patch 11315
RMD160 6161e9ebaed3b13a64d3cc17edcce8a0e64e48fc files/bind-9.2.5-mysql.patch 11315
SHA256 f275c2f5566bdc57dbe54c6a17db4397f54999715bda1c06a5457b10a8dbbc94 files/bind-9.2.5-mysql.patch 11315
+AUX bind-9.2.8-missing_odbc_test.patch 613 RMD160 ec141cef65e470dfc8df4c641ec96bfbd5d8cdd1 SHA1 dbc3a933cac7e474fa62fb2f71e50be91825b963 SHA256 5e6465bdb01cbb662333cc2b0a00ad51905a0cda2eb6b7abc3a0b2dd3e701f4e
+MD5 cb5a05fb75f7a95ec8167efc19089a54 files/bind-9.2.8-missing_odbc_test.patch 613
+RMD160 ec141cef65e470dfc8df4c641ec96bfbd5d8cdd1 files/bind-9.2.8-missing_odbc_test.patch 613
+SHA256 5e6465bdb01cbb662333cc2b0a00ad51905a0cda2eb6b7abc3a0b2dd3e701f4e files/bind-9.2.8-missing_odbc_test.patch 613
AUX bind-9.3.2-missing_odbc_test.patch 613 RMD160 ec141cef65e470dfc8df4c641ec96bfbd5d8cdd1 SHA1 dbc3a933cac7e474fa62fb2f71e50be91825b963 SHA256 5e6465bdb01cbb662333cc2b0a00ad51905a0cda2eb6b7abc3a0b2dd3e701f4e
MD5 cb5a05fb75f7a95ec8167efc19089a54 files/bind-9.3.2-missing_odbc_test.patch 613
RMD160 ec141cef65e470dfc8df4c641ec96bfbd5d8cdd1 files/bind-9.3.2-missing_odbc_test.patch 613
SHA256 5e6465bdb01cbb662333cc2b0a00ad51905a0cda2eb6b7abc3a0b2dd3e701f4e files/bind-9.3.2-missing_odbc_test.patch 613
+AUX bind-9.3.4-missing_odbc_test.patch 613 RMD160 ec141cef65e470dfc8df4c641ec96bfbd5d8cdd1 SHA1 dbc3a933cac7e474fa62fb2f71e50be91825b963 SHA256 5e6465bdb01cbb662333cc2b0a00ad51905a0cda2eb6b7abc3a0b2dd3e701f4e
+MD5 cb5a05fb75f7a95ec8167efc19089a54 files/bind-9.3.4-missing_odbc_test.patch 613
+RMD160 ec141cef65e470dfc8df4c641ec96bfbd5d8cdd1 files/bind-9.3.4-missing_odbc_test.patch 613
+SHA256 5e6465bdb01cbb662333cc2b0a00ad51905a0cda2eb6b7abc3a0b2dd3e701f4e files/bind-9.3.4-missing_odbc_test.patch 613
+AUX bind-9.4.0_rc2-missing_odbc_test.patch 613 RMD160 ec141cef65e470dfc8df4c641ec96bfbd5d8cdd1 SHA1 dbc3a933cac7e474fa62fb2f71e50be91825b963 SHA256 5e6465bdb01cbb662333cc2b0a00ad51905a0cda2eb6b7abc3a0b2dd3e701f4e
+MD5 cb5a05fb75f7a95ec8167efc19089a54 files/bind-9.4.0_rc2-missing_odbc_test.patch 613
+RMD160 ec141cef65e470dfc8df4c641ec96bfbd5d8cdd1 files/bind-9.4.0_rc2-missing_odbc_test.patch 613
+SHA256 5e6465bdb01cbb662333cc2b0a00ad51905a0cda2eb6b7abc3a0b2dd3e701f4e files/bind-9.4.0_rc2-missing_odbc_test.patch 613
AUX bind-dlzbdb-includes.patch 465 RMD160 07e120527c34ebc044f1312e491a8d8dc13ec558 SHA1 0184830214317aac4c2f60a8eeabdbbdbf3b2276 SHA256 16ac0b8ba61287a2172c99ab21dd66d0a46b104ef34f710da5933720604f70c6
MD5 5299fb17398d9613850e0b68ff1d38e1 files/bind-dlzbdb-includes.patch 465
RMD160 07e120527c34ebc044f1312e491a8d8dc13ec558 files/bind-dlzbdb-includes.patch 465
@@ -93,9 +105,12 @@ SHA256 703aa04162bee124fd492c991ba21ca7276112c61c297f0fa424e2cd4333f060 files/na
DIST bind-9.2.6-P1.tar.gz 5126606 RMD160 5fbfe63c6ff5c28dbbf9c800e13264b7618df9b4 SHA1 ced5d6b3efc68f5ac5b558dc5bb85f26cbffd170 SHA256 ecd5180b6afbaecac6a468462e7378e37bc1cc118c4ca9749da74e23c11893e8
DIST bind-9.2.6.tar.gz 5125776 RMD160 6c732cf9fbc9c68d822833689088701af97a6b3a SHA1 0d6e714298f8f9e2384ecd9ce38b148043ec1596 SHA256 05f4be2c62beacc38a5ab29520a33ec1f716222f3f09634ec89345671b4c758d
DIST bind-9.2.7.tar.gz 5206002 RMD160 d849dd8361c87645ce8308af5d64f87ba8917b3c SHA1 084dcb78127d2b63555128d58ea973eddc617e1c SHA256 959095db8c1c9e1c4498c3065acb54fa1a3a6f9bbf710f148fa1d70e59aff899
+DIST bind-9.2.8.tar.gz 5208805 RMD160 4bdba3e75a9d188d05787ca553aa656a416d4534 SHA1 77694d04be063f071e48b243ddb441451410ca57 SHA256 4c037a1ffe71f8baa8b416589faa0a3c312b2afe7b79bde9ebf9bbde5af5a11d
DIST bind-9.3.2-P1.tar.gz 5303237 RMD160 49c1f9ba1d9a4d831ed6dfbe7997c8d5fcd3dcf8 SHA1 4172b7a2814707efecf60a3c484d9fc90e06abfb SHA256 7c61230a0bd5b85de383a7053ec9b1b101295aa6a6bb681968f5fe0deeacefe0
DIST bind-9.3.2.tar.gz 5302112 RMD160 c825b6308eb374e9bcf9b6ccc48f65d8753c0a6d SHA1 13efeaf496ed110980088fb5cbe22460f04a0fac SHA256 4d4298abd85d06083a0643091dde05ffbe3db051439524dbe4a81c689735c694
DIST bind-9.3.3.tar.gz 5401230 RMD160 cb779390cf23d042aca568604bde3f1252e7527b SHA1 3e7012ff465b0a2356d3563c1698d0f937b923c3 SHA256 d2d115578f9feff1871cbb9a78e99d510da38da5b0eeb31b749b0c084b06dec2
+DIST bind-9.3.4.tar.gz 5405022 RMD160 8b5fda9542f6afbe7ffb857d72f7e545237d7826 SHA1 f53c7e24157ae1fd881834351804bfee3c2782ee SHA256 40152026af715b15ac958f374394e5189a099b562eb913470ccc43f6fbd19c21
+DIST bind-9.4.0rc2.tar.gz 6328614 RMD160 088e13834090b7cb7ede5b00cb0f69cdc40abd5a SHA1 b96c81690381931830c7170b81e793424b1fcb26 SHA256 ab269867dd2c74cf6b20241457892960a8f106b873d34b80bcce126f3cf6ea23
DIST ctrix_dlz_9.3.2b1.patch.bz2 60982 RMD160 dd76c79d58fdcf75d5c991bac4b6de54aeb4f8bb SHA1 a3c65ef330846f62e22655261954a7fe982cb616 SHA256 f0764290a08b4a839eae8b82a6e27301ce9ff41f3132f697139d73698f89cffc
DIST ctrix_dlz_9.3.3.patch.bz2 66143 RMD160 ee3a7ef8e1b3167ff572ca8a7836a8d4d64a834d SHA1 9fb2faab9112529c8784be7d44df60b38e710371 SHA256 6550455ba37f5f25f047078bedf825d05eab45bbc4a3d8b7bf23a716749423cf
DIST dlz-9.2.5.patch.bz2 135932 RMD160 d1686658b04b8896828e0b40c1cb869a2b3735f1 SHA1 d90b47284260dbc1437232b44da5d9a98ae54a6a SHA256 051ba8ba5825fe3a4f77adcc75e46471bc3ed74c132043bc9e6a6b8d516cd442
@@ -121,6 +136,10 @@ EBUILD bind-9.2.7.ebuild 8982 RMD160 3177bf6387fc0e6cc4ce4a4af3d86ef9c12162d4 SH
MD5 af56ca51b4fee766cb331cbd4eb6ac6d bind-9.2.7.ebuild 8982
RMD160 3177bf6387fc0e6cc4ce4a4af3d86ef9c12162d4 bind-9.2.7.ebuild 8982
SHA256 6c0b362c67b47e223c49f5e5ae2c8cf6936c05c730a924d160f79eeb62e5688e bind-9.2.7.ebuild 8982
+EBUILD bind-9.2.8.ebuild 8412 RMD160 ef0087c3cbf5468aae9a8be2c1e9258025123ac6 SHA1 7d12c971abeeb31cceb3133c86d6e094dbdf7921 SHA256 29a3cc0b90cb3b5e7c3eeb096db819bdcb049c8683df17b89bafad1df5057bb3
+MD5 2866c0368fa76e0a649de81310cfba78 bind-9.2.8.ebuild 8412
+RMD160 ef0087c3cbf5468aae9a8be2c1e9258025123ac6 bind-9.2.8.ebuild 8412
+SHA256 29a3cc0b90cb3b5e7c3eeb096db819bdcb049c8683df17b89bafad1df5057bb3 bind-9.2.8.ebuild 8412
EBUILD bind-9.3.2-r3.ebuild 8444 RMD160 f7ea805d6aab7d4056c225954a479509e1102d51 SHA1 b9cf79313c93f95cfb5c4fef42555e98e3cee3ed SHA256 682d00d80523792058387bfae11595ed8eb2a15e5fbc9b70dd27c43a6e318afb
MD5 8ef9695b1b82ee12662a7bae47d5942c bind-9.3.2-r3.ebuild 8444
RMD160 f7ea805d6aab7d4056c225954a479509e1102d51 bind-9.3.2-r3.ebuild 8444
@@ -141,10 +160,18 @@ EBUILD bind-9.3.3.ebuild 8703 RMD160 152d0cce83a3e12e678951145f8c5f3edb7f4f2b SH
MD5 6b2383af2fc1fd3311e3071b880c4e12 bind-9.3.3.ebuild 8703
RMD160 152d0cce83a3e12e678951145f8c5f3edb7f4f2b bind-9.3.3.ebuild 8703
SHA256 df08f99374be9cb8c0c3ed51134ac8e5f9f1ff20c764e5ccc265e35370316549 bind-9.3.3.ebuild 8703
-MISC ChangeLog 22652 RMD160 791d806af0c1a52fe8a779e02405f956f43209b4 SHA1 61ce082a57acfc0d1beb944748a21c2a4691b771 SHA256 d82380b8e48c141db573083ea443473f86eac4bfd44ecbc7cb20f2d703db379d
-MD5 8f646ef99ea44b9099f599618ee8a8b0 ChangeLog 22652
-RMD160 791d806af0c1a52fe8a779e02405f956f43209b4 ChangeLog 22652
-SHA256 d82380b8e48c141db573083ea443473f86eac4bfd44ecbc7cb20f2d703db379d ChangeLog 22652
+EBUILD bind-9.3.4.ebuild 8374 RMD160 16d6b720bc58bad53228a00ba9db442c31c255fc SHA1 c977a2730d584abb6c104de177f6ca9bd221335e SHA256 83ca833a9a262b2ad7e964ae04dbb82e483387f37d51fc1d43fbe2ab62c8b2b3
+MD5 2baea4ae22bd72438a54f5faa857a066 bind-9.3.4.ebuild 8374
+RMD160 16d6b720bc58bad53228a00ba9db442c31c255fc bind-9.3.4.ebuild 8374
+SHA256 83ca833a9a262b2ad7e964ae04dbb82e483387f37d51fc1d43fbe2ab62c8b2b3 bind-9.3.4.ebuild 8374
+EBUILD bind-9.4.0_rc2.ebuild 8444 RMD160 e87b910e24d069a829bc31204c23f45cd25a3259 SHA1 7be957e2efcea78fc4561f543d98de0b124c1f4e SHA256 3144f6575e87d17c1231a969f13282632008578bc77866103ce3ea593e33cb1e
+MD5 4319508826eb774191a5ec6c3701871e bind-9.4.0_rc2.ebuild 8444
+RMD160 e87b910e24d069a829bc31204c23f45cd25a3259 bind-9.4.0_rc2.ebuild 8444
+SHA256 3144f6575e87d17c1231a969f13282632008578bc77866103ce3ea593e33cb1e bind-9.4.0_rc2.ebuild 8444
+MISC ChangeLog 23037 RMD160 ebc53cb554f066a33db2451b6f1484f8984dfb72 SHA1 02536770b03d15bb811dd3abff9801474db15472 SHA256 4f78fe8a7d5522675bfbf622506d8e912b11132c2e81d948be0e2fe617598cf4
+MD5 b9c6527541449f4da7c1e1b8d4bfecd8 ChangeLog 23037
+RMD160 ebc53cb554f066a33db2451b6f1484f8984dfb72 ChangeLog 23037
+SHA256 4f78fe8a7d5522675bfbf622506d8e912b11132c2e81d948be0e2fe617598cf4 ChangeLog 23037
MISC metadata.xml 352 RMD160 0c1a848023a0dd76c5173c0a2135beed46e90263 SHA1 24f998969c955accd1fd4f3719bdf83d4e9d432b SHA256 f6f6ae15da16a20d5e0ce76563e3e27901e25787131b8784ffe872ffe3ddd034
MD5 bf7284c3e31bd3292a01fa046b3220bb metadata.xml 352
RMD160 0c1a848023a0dd76c5173c0a2135beed46e90263 metadata.xml 352
@@ -164,6 +191,9 @@ SHA256 f8f961b86cef21d2fa4b5d6f7518e1bd7a2fc6210056c9c219743eb34019aae0 files/di
MD5 3e61c6eabbe6b52b051f2659f8de2cff files/digest-bind-9.2.7 708
RMD160 e8246f752bc7d95db678db5a941a523959d56d62 files/digest-bind-9.2.7 708
SHA256 86986d0504a6a3a9c27236ef6920ec1c66b0a4427f69b12f25b08b8b6b6d6ff6 files/digest-bind-9.2.7 708
+MD5 70279966f522410c64d88c0bb1268020 files/digest-bind-9.2.8 708
+RMD160 8ab16a0818d61f217bcddd761fb82d1060080aa4 files/digest-bind-9.2.8 708
+SHA256 a41b936338851072eac98938385c61fb38fba2d4ed53c4427ee44358d8959c39 files/digest-bind-9.2.8 708
MD5 ff0c0177b13e665beafd68ea30cd4e5a files/digest-bind-9.3.2 729
RMD160 578baea200800e5a983e726cd7633d1dee2b3c0e files/digest-bind-9.3.2 729
SHA256 39453324f8464c8ffef631fcd7300cd771763b9c069ea086b1a5e5cc4a1662c9 files/digest-bind-9.3.2 729
@@ -179,3 +209,9 @@ SHA256 3095c273ca6a59991a75e0f8526dc3e6ba2a6d0b1e129a2271190dd28d1f54ca files/di
MD5 d84197d4437b102743faede906a55e5c files/digest-bind-9.3.3 723
RMD160 cd25c401099d179d11f13f18910da2de01272d71 files/digest-bind-9.3.3 723
SHA256 cc51007f0fa03b13918828aa657dce1b820003ed8dbaf49313a1a4735c9314f9 files/digest-bind-9.3.3 723
+MD5 e90002b0ea49566f01d00de55bab0a27 files/digest-bind-9.3.4 723
+RMD160 2a25d4a9f6f7e0688054a0da4ada926df2f189dc files/digest-bind-9.3.4 723
+SHA256 34a9746ac50c14de6bc2e6383676681b87b0dde42379e8fa8cad2fc5d56b4fd1 files/digest-bind-9.3.4 723
+MD5 bd87626394e98d0ecdf056c4c8bc1b4e files/digest-bind-9.4.0_rc2 732
+RMD160 eb02fbf83bc867e6b89c352cd4b4555397b39c63 files/digest-bind-9.4.0_rc2 732
+SHA256 6a62c59671789e58c1bfe81352ad4c03ef5f994434eaef006639c600e03a7f14 files/digest-bind-9.4.0_rc2 732
diff --git a/net-dns/bind/bind-9.2.8.ebuild b/net-dns/bind/bind-9.2.8.ebuild
new file mode 100644
index 000000000000..c94757cf5004
--- /dev/null
+++ b/net-dns/bind/bind-9.2.8.ebuild
@@ -0,0 +1,274 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-dns/bind/bind-9.2.8.ebuild,v 1.1 2007/02/06 03:21:31 mjolnir Exp $
+
+inherit eutils libtool autotools
+
+DLZ_VERSION="9.2.7"
+
+DESCRIPTION="BIND - Berkeley Internet Name Domain - Name Server"
+HOMEPAGE="http://www.isc.org/products/BIND/bind9.html"
+SRC_URI="ftp://ftp.isc.org/isc/bind9/${PV}/${P}.tar.gz
+ doc? ( mirror://gentoo/dyndns-samples.tbz2 )
+ dlz? ( http://dev.gentoo.org/~voxus/dlz/dlz-${DLZ_VERSION}.patch.bz2 )"
+
+LICENSE="as-is"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
+IUSE="ssl ipv6 doc dlz postgres berkdb mysql odbc ldap selinux idn threads resolvconf"
+
+DEPEND="ssl? ( >=dev-libs/openssl-0.9.6g )
+ mysql? ( >=virtual/mysql-4.0 )
+ odbc? ( >=dev-db/unixODBC-2.2.6 )
+ ldap? ( net-nds/openldap )
+ idn? ( net-dns/idnkit )
+ resolvconf? ( net-dns/resolvconf-gentoo )"
+
+RDEPEND="${DEPEND}
+ selinux? ( sec-policy/selinux-bind )"
+
+pkg_setup() {
+ use threads && {
+ echo
+ ewarn "If you're in vserver enviroment, you're probably want to"
+ ewarn "disable threads support because of linux capabilities dependency"
+ echo
+ }
+
+ ebegin "Creating named group and user"
+ enewgroup named 40
+ enewuser named 40 -1 /etc/bind named
+ eend ${?}
+}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ # Adjusting PATHs in manpages
+ for i in bin/{named/named.8,check/named-checkconf.8,rndc/rndc.8} ; do
+ sed -i \
+ -e 's:/etc/named.conf:/etc/bind/named.conf:g' \
+ -e 's:/etc/rndc.conf:/etc/bind/rndc.conf:g' \
+ -e 's:/etc/rndc.key:/etc/bind/rndc.key:g' \
+ "${i}"
+ done
+
+ use dlz && {
+ epatch ${DISTDIR}/dlz-${DLZ_VERSION}.patch.bz2
+ epatch ${FILESDIR}/bind-9.2.5-berkdb_fix.patch
+ epatch ${FILESDIR}/${PN}-dlzbdb-includes.patch
+
+ # use odbc && epatch ${FILESDIR}/${P}-missing_odbc_test.patch
+ }
+
+ # should be installed by bind-tools
+ sed -e "s:nsupdate ::g" -i ${S}/bin/Makefile.in
+
+ WANT_AUTOCONF=2.5 AT_NO_RECURSIVE=1 eautoreconf || die "eautoreconf failed"
+
+ # bug #151839
+ sed \
+ -e 's:<config.h>:<config.h>\n\n#undef SO_BSDCOMPAT:' \
+ -i lib/isc/unix/socket.c
+}
+
+src_compile() {
+ local myconf=""
+
+ use ssl && myconf="${myconf} --with-openssl"
+ use idn && myconf="${myconf} --with-idn"
+
+ 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
+ echo
+ ewarn ""
+ einfo "MySQL uses thread local storage in its C api. Thus MySQL"
+ einfo "requires that each thread of an application execute a MySQL"
+ einfo "\"thread initialization\" to setup the thread local storage."
+ einfo "This is impossible to do safely while staying within the DLZ"
+ einfo "driver API. This is a limitation caused by MySQL, and not"
+ einfo "the DLZ API."
+ ewarn "Because of this BIND MUST only run with a single thread when"
+ ewarn "using the MySQL driver."
+ echo
+ myconf="${myconf} --disable-linux-caps --disable-threads"
+ einfo "Threading support disabled"
+ epause 10
+ else
+ myconf="${myconf} --enable-linux-caps --enable-threads"
+ einfo "Threading support enabled"
+ fi
+ else
+ myconf="${myconf} --disable-linux-caps --disable-threads"
+ fi
+
+ econf \
+ --sysconfdir=/etc/bind \
+ --localstatedir=/var \
+ --with-libtool \
+ `use_enable ipv6` \
+ ${myconf} || die "econf failed"
+
+ emake -j1 || die "failed to compile bind"
+}
+
+src_install() {
+ einstall || die "failed to install bind"
+
+ dodoc CHANGES COPYRIGHT FAQ README
+
+ use doc && {
+ docinto misc
+ dodoc doc/misc/*
+
+ docinto html
+ dohtml doc/arm/*
+
+ docinto draft
+ dodoc doc/draft/*
+
+ docinto rfc
+ dodoc doc/rfc/*
+
+ docinto contrib
+ dodoc contrib/named-bootconf/named-bootconf.sh \
+ contrib/nanny/nanny.pl
+
+ # some handy-dandy dynamic dns examples
+ cd ${D}/usr/share/doc/${PF}
+ tar pjxf ${DISTFILES}/dyndns-samples.tbz2
+ }
+
+ insinto /etc/env.d
+ newins ${FILESDIR}/10bind.env 10bind
+
+ dodir /etc/bind /var/bind/{pri,sec}
+ keepdir /var/bind/sec
+
+ insinto /etc/bind ; newins ${FILESDIR}/named.conf-r3 named.conf
+
+ # ftp://ftp.rs.internic.net/domain/named.ca:
+ insinto /var/bind ; doins ${FILESDIR}/named.ca
+
+ insinto /var/bind/pri
+ doins ${FILESDIR}/127.zone
+ newins ${FILESDIR}/localhost.zone-r2 localhost.zone
+
+ cp ${FILESDIR}/named.init-r4 ${T}/named && doinitd ${T}/named
+ cp ${FILESDIR}/named.confd-r1 ${T}/named && doconfd ${T}/named
+
+ dosym ../../var/bind/named.ca /var/bind/root.cache
+ dosym ../../var/bind/pri /etc/bind/pri
+ dosym ../../var/bind/sec /etc/bind/sec
+
+ # Let's get rid of those tools and their manpages since they're provided by bind-tools
+ rm -f ${D}/usr/share/man/man1/{dig.1,host.1,nslookup.1}
+ rm -f ${D}/usr/bin/{dig,host,nslookup}
+
+ use resolvconf && {
+ exeinto /etc/resolvconf/update.d
+ newexe ${FILESDIR}/resolvconf.bind bind
+ }
+}
+
+pkg_postinst() {
+ if [ ! -f '/etc/bind/rndc.key' ]; then
+ if [ -c /dev/urandom ]; then
+ einfo "Using /dev/urandom for generating rndc.key"
+ /usr/sbin/rndc-confgen -r /dev/urandom -a -u named
+ echo
+ else
+ einfo "Using /dev/random for generating rndc.key"
+ /usr/sbin/rndc-confgen -a -u named
+ echo
+ fi
+ fi
+
+ install -d -o named -g named ${ROOT}/var/run/named \
+ ${ROOT}/var/bind/pri ${ROOT}/var/bind/sec
+ chown -R named:named ${ROOT}/var/bind
+
+ einfo "The default zone files are now installed as *.zone,"
+ einfo "be careful merging config files if you have modified"
+ einfo "/var/bind/pri/127 or /var/bind/pri/localhost"
+ einfo
+ einfo "You can edit /etc/conf.d/named to customize named settings"
+ einfo
+ einfo "The BIND ebuild now includes chroot support."
+ einfo "If you like to run bind in chroot AND this is a new install OR"
+ einfo "your bind doesn't already run in chroot, simply run:"
+ einfo "\`emerge --config '=${CATEGORY}/${PF}'\`"
+ einfo "Before running the above command you might want to change the chroot"
+ einfo "dir in /etc/conf.d/named. Otherwise /chroot/dns will be used."
+ echo
+ einfo "Recently verisign added a wildcard A record to the .COM and .NET TLD"
+ einfo "zones making all .com and .net domains appear to be registered"
+ einfo "This causes many problems such as breaking important anti-spam checks"
+ einfo "which verify source domains exist. ISC released a patch for BIND which"
+ einfo "adds 'delegation-only' zones to allow admins to return the .com and .net"
+ einfo "domain resolution to their normal function."
+ echo
+ einfo "There is no need to create a com or net data file. Just the"
+ einfo "entries to the named.conf file is enough."
+ echo
+ einfo " zone "com" IN { type delegation-only; };"
+ einfo " zone "net" IN { type delegation-only; };"
+
+ echo
+ ewarn "BIND >=9.2.5 makes the priority argument to MX records mandatory"
+ ewarn "when it was previously optional. If the priority is missing, BIND"
+ ewarn "won't load the zone file at all."
+ echo
+}
+
+pkg_config() {
+ CHROOT=`sed -n 's/^[[:blank:]]\?CHROOT="\([^"]\+\)"/\1/p' /etc/conf.d/named 2>/dev/null`
+ EXISTS="no"
+
+ if [ -z "${CHROOT}" -a ! -d "/chroot/dns" ]; then
+ CHROOT="/chroot/dns"
+ elif [ -d ${CHROOT} ]; then
+ eerror; eerror "${CHROOT:-/chroot/dns} already exists. Quitting."; eerror; EXISTS="yes"
+ fi
+
+ if [ ! "$EXISTS" = yes ]; then
+ einfo ; einfon "Setting up the chroot directory..."
+ mkdir -m 700 -p ${CHROOT}
+ mkdir -p ${CHROOT}/{dev,etc,var/run/named}
+ chown -R named:named ${CHROOT}/var/run/named
+ cp -R /etc/bind ${CHROOT}/etc/
+ cp /etc/localtime ${CHROOT}/etc/localtime
+ chown named:named ${CHROOT}/etc/bind/rndc.key
+ cp -R /var/bind ${CHROOT}/var/
+ chown -R named:named ${CHROOT}/var/
+ mknod ${CHROOT}/dev/zero c 1 5
+ mknod ${CHROOT}/dev/random c 1 8
+ chmod 666 ${CHROOT}/dev/{random,zero}
+ chown root:named ${CHROOT}
+ chmod 0750 ${CHROOT}
+
+ grep -q "^#[[:blank:]]\?CHROOT" /etc/conf.d/named ; RETVAL=$?
+ if [ $RETVAL = 0 ]; then
+ sed 's/^# \?\(CHROOT.*\)$/\1/' /etc/conf.d/named > /etc/conf.d/named.orig 2>/dev/null
+ mv --force /etc/conf.d/named.orig /etc/conf.d/named
+ fi
+
+ sleep 1; echo " Done."; sleep 1
+ einfo
+ einfo "Add the following to your root .bashrc or .bash_profile: "
+ einfo " alias rndc='rndc -k ${CHROOT}/etc/bind/rndc.key'"
+ einfo "Then do the following: "
+ einfo " source /root/.bashrc or .bash_profile"
+ einfo
+ fi
+}
diff --git a/net-dns/bind/bind-9.3.4.ebuild b/net-dns/bind/bind-9.3.4.ebuild
new file mode 100644
index 000000000000..ee59aa04e565
--- /dev/null
+++ b/net-dns/bind/bind-9.3.4.ebuild
@@ -0,0 +1,273 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-dns/bind/bind-9.3.4.ebuild,v 1.1 2007/02/06 03:21:31 mjolnir Exp $
+
+inherit eutils libtool autotools
+
+DLZ_VERSION="9.3.3"
+
+DESCRIPTION="BIND - Berkeley Internet Name Domain - Name Server"
+HOMEPAGE="http://www.isc.org/products/BIND/bind9.html"
+SRC_URI="ftp://ftp.isc.org/isc/bind9/${PV}/${P}.tar.gz
+ doc? ( mirror://gentoo/dyndns-samples.tbz2 )
+ dlz? ( http://dev.gentoo.org/~voxus/bind/ctrix_dlz_${DLZ_VERSION}.patch.bz2 )"
+
+LICENSE="as-is"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
+IUSE="ssl ipv6 doc dlz postgres berkdb mysql odbc ldap selinux idn threads resolvconf"
+
+DEPEND="ssl? ( >=dev-libs/openssl-0.9.6g )
+ mysql? ( >=virtual/mysql-4.0 )
+ odbc? ( >=dev-db/unixODBC-2.2.6 )
+ ldap? ( net-nds/openldap )
+ idn? ( net-dns/idnkit )
+ resolvconf? ( net-dns/resolvconf-gentoo )"
+
+RDEPEND="${DEPEND}
+ selinux? ( sec-policy/selinux-bind )"
+
+pkg_setup() {
+ use threads && {
+ echo
+ ewarn "If you're in vserver enviroment, you're probably want to"
+ ewarn "disable threads support because of linux capabilities dependency"
+ echo
+ }
+
+ ebegin "Creating named group and user"
+ enewgroup named 40
+ enewuser named 40 -1 /etc/bind named
+ eend ${?}
+}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ # Adjusting PATHs in manpages
+ for i in bin/{named/named.8,check/named-checkconf.8,rndc/rndc.8} ; do
+ sed -i \
+ -e 's:/etc/named.conf:/etc/bind/named.conf:g' \
+ -e 's:/etc/rndc.conf:/etc/bind/rndc.conf:g' \
+ -e 's:/etc/rndc.key:/etc/bind/rndc.key:g' \
+ "${i}"
+ done
+
+ use dlz && {
+ epatch ${DISTDIR}/ctrix_dlz_${DLZ_VERSION}.patch.bz2
+ epatch ${FILESDIR}/${PN}-dlzbdb-includes.patch
+
+ use odbc && epatch ${FILESDIR}/${P}-missing_odbc_test.patch
+ }
+
+ # should be installed by bind-tools
+ sed -e "s:nsupdate ::g" -i ${S}/bin/Makefile.in
+
+ WANT_AUTOCONF=2.5 AT_NO_RECURSIVE=1 eautoreconf || die "eautoreconf failed"
+
+ # bug #151839
+ sed \
+ -e 's:<config.h>:<config.h>\n\n#undef SO_BSDCOMPAT:' \
+ -i lib/isc/unix/socket.c
+}
+
+src_compile() {
+ local myconf=""
+
+ use ssl && myconf="${myconf} --with-openssl"
+ use idn && myconf="${myconf} --with-idn"
+
+ 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
+ echo
+ ewarn ""
+ einfo "MySQL uses thread local storage in its C api. Thus MySQL"
+ einfo "requires that each thread of an application execute a MySQL"
+ einfo "\"thread initialization\" to setup the thread local storage."
+ einfo "This is impossible to do safely while staying within the DLZ"
+ einfo "driver API. This is a limitation caused by MySQL, and not"
+ einfo "the DLZ API."
+ ewarn "Because of this BIND MUST only run with a single thread when"
+ ewarn "using the MySQL driver."
+ echo
+ myconf="${myconf} --disable-linux-caps --disable-threads"
+ einfo "Threading support disabled"
+ epause 10
+ else
+ myconf="${myconf} --enable-linux-caps --enable-threads"
+ einfo "Threading support enabled"
+ fi
+ else
+ myconf="${myconf} --disable-linux-caps --disable-threads"
+ fi
+
+ econf \
+ --sysconfdir=/etc/bind \
+ --localstatedir=/var \
+ --with-libtool \
+ `use_enable ipv6` \
+ ${myconf} || die "econf failed"
+
+ emake -j1 || die "failed to compile bind"
+}
+
+src_install() {
+ einstall || die "failed to install bind"
+
+ dodoc CHANGES COPYRIGHT FAQ README
+
+ use doc && {
+ docinto misc
+ dodoc doc/misc/*
+
+ docinto html
+ dohtml doc/arm/*
+
+ docinto draft
+ dodoc doc/draft/*
+
+ docinto rfc
+ dodoc doc/rfc/*
+
+ docinto contrib
+ dodoc contrib/named-bootconf/named-bootconf.sh \
+ contrib/nanny/nanny.pl
+
+ # some handy-dandy dynamic dns examples
+ cd ${D}/usr/share/doc/${PF}
+ tar pjxf ${DISTFILES}/dyndns-samples.tbz2
+ }
+
+ insinto /etc/env.d
+ newins ${FILESDIR}/10bind.env 10bind
+
+ dodir /etc/bind /var/bind/{pri,sec}
+ keepdir /var/bind/sec
+
+ insinto /etc/bind ; newins ${FILESDIR}/named.conf-r3 named.conf
+
+ # ftp://ftp.rs.internic.net/domain/named.ca:
+ insinto /var/bind ; doins ${FILESDIR}/named.ca
+
+ insinto /var/bind/pri
+ doins ${FILESDIR}/127.zone
+ newins ${FILESDIR}/localhost.zone-r2 localhost.zone
+
+ cp ${FILESDIR}/named.init-r4 ${T}/named && doinitd ${T}/named
+ cp ${FILESDIR}/named.confd-r1 ${T}/named && doconfd ${T}/named
+
+ dosym ../../var/bind/named.ca /var/bind/root.cache
+ dosym ../../var/bind/pri /etc/bind/pri
+ dosym ../../var/bind/sec /etc/bind/sec
+
+ # Let's get rid of those tools and their manpages since they're provided by bind-tools
+ rm -f ${D}/usr/share/man/man1/{dig.1,host.1,nslookup.1}
+ rm -f ${D}/usr/bin/{dig,host,nslookup}
+
+ use resolvconf && {
+ exeinto /etc/resolvconf/update.d
+ newexe ${FILESDIR}/resolvconf.bind bind
+ }
+}
+
+pkg_postinst() {
+ if [ ! -f '/etc/bind/rndc.key' ]; then
+ if [ -c /dev/urandom ]; then
+ einfo "Using /dev/urandom for generating rndc.key"
+ /usr/sbin/rndc-confgen -r /dev/urandom -a -u named
+ echo
+ else
+ einfo "Using /dev/random for generating rndc.key"
+ /usr/sbin/rndc-confgen -a -u named
+ echo
+ fi
+ fi
+
+ install -d -o named -g named ${ROOT}/var/run/named \
+ ${ROOT}/var/bind/pri ${ROOT}/var/bind/sec
+ chown -R named:named ${ROOT}/var/bind
+
+ einfo "The default zone files are now installed as *.zone,"
+ einfo "be careful merging config files if you have modified"
+ einfo "/var/bind/pri/127 or /var/bind/pri/localhost"
+ einfo
+ einfo "You can edit /etc/conf.d/named to customize named settings"
+ einfo
+ einfo "The BIND ebuild now includes chroot support."
+ einfo "If you like to run bind in chroot AND this is a new install OR"
+ einfo "your bind doesn't already run in chroot, simply run:"
+ einfo "\`emerge --config '=${CATEGORY}/${PF}'\`"
+ einfo "Before running the above command you might want to change the chroot"
+ einfo "dir in /etc/conf.d/named. Otherwise /chroot/dns will be used."
+ echo
+ einfo "Recently verisign added a wildcard A record to the .COM and .NET TLD"
+ einfo "zones making all .com and .net domains appear to be registered"
+ einfo "This causes many problems such as breaking important anti-spam checks"
+ einfo "which verify source domains exist. ISC released a patch for BIND which"
+ einfo "adds 'delegation-only' zones to allow admins to return the .com and .net"
+ einfo "domain resolution to their normal function."
+ echo
+ einfo "There is no need to create a com or net data file. Just the"
+ einfo "entries to the named.conf file is enough."
+ echo
+ einfo " zone "com" IN { type delegation-only; };"
+ einfo " zone "net" IN { type delegation-only; };"
+
+ echo
+ ewarn "BIND >=9.2.5 makes the priority argument to MX records mandatory"
+ ewarn "when it was previously optional. If the priority is missing, BIND"
+ ewarn "won't load the zone file at all."
+ echo
+}
+
+pkg_config() {
+ CHROOT=`sed -n 's/^[[:blank:]]\?CHROOT="\([^"]\+\)"/\1/p' /etc/conf.d/named 2>/dev/null`
+ EXISTS="no"
+
+ if [ -z "${CHROOT}" -a ! -d "/chroot/dns" ]; then
+ CHROOT="/chroot/dns"
+ elif [ -d ${CHROOT} ]; then
+ eerror; eerror "${CHROOT:-/chroot/dns} already exists. Quitting."; eerror; EXISTS="yes"
+ fi
+
+ if [ ! "$EXISTS" = yes ]; then
+ einfo ; einfon "Setting up the chroot directory..."
+ mkdir -m 700 -p ${CHROOT}
+ mkdir -p ${CHROOT}/{dev,etc,var/run/named}
+ chown -R named:named ${CHROOT}/var/run/named
+ cp -R /etc/bind ${CHROOT}/etc/
+ cp /etc/localtime ${CHROOT}/etc/localtime
+ chown named:named ${CHROOT}/etc/bind/rndc.key
+ cp -R /var/bind ${CHROOT}/var/
+ chown -R named:named ${CHROOT}/var/
+ mknod ${CHROOT}/dev/zero c 1 5
+ mknod ${CHROOT}/dev/random c 1 8
+ chmod 666 ${CHROOT}/dev/{random,zero}
+ chown root:named ${CHROOT}
+ chmod 0750 ${CHROOT}
+
+ grep -q "^#[[:blank:]]\?CHROOT" /etc/conf.d/named ; RETVAL=$?
+ if [ $RETVAL = 0 ]; then
+ sed 's/^# \?\(CHROOT.*\)$/\1/' /etc/conf.d/named > /etc/conf.d/named.orig 2>/dev/null
+ mv --force /etc/conf.d/named.orig /etc/conf.d/named
+ fi
+
+ sleep 1; echo " Done."; sleep 1
+ einfo
+ einfo "Add the following to your root .bashrc or .bash_profile: "
+ einfo " alias rndc='rndc -k ${CHROOT}/etc/bind/rndc.key'"
+ einfo "Then do the following: "
+ einfo " source /root/.bashrc or .bash_profile"
+ einfo
+ fi
+}
diff --git a/net-dns/bind/bind-9.4.0_rc2.ebuild b/net-dns/bind/bind-9.4.0_rc2.ebuild
new file mode 100644
index 000000000000..949f8f785290
--- /dev/null
+++ b/net-dns/bind/bind-9.4.0_rc2.ebuild
@@ -0,0 +1,277 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-dns/bind/bind-9.4.0_rc2.ebuild,v 1.1 2007/02/06 03:21:31 mjolnir Exp $
+
+inherit eutils libtool autotools
+
+DLZ_VERSION="9.3.3"
+
+DESCRIPTION="BIND - Berkeley Internet Name Domain - Name Server"
+HOMEPAGE="http://www.isc.org/products/BIND/bind9.html"
+SRC_URI="ftp://ftp.isc.org/isc/bind9/${PV/_/}/${P/_/}.tar.gz
+ doc? ( mirror://gentoo/dyndns-samples.tbz2 )
+ dlz? ( http://dev.gentoo.org/~voxus/bind/ctrix_dlz_${DLZ_VERSION}.patch.bz2 )"
+
+LICENSE="as-is"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
+IUSE="ssl ipv6 doc dlz postgres berkdb mysql odbc ldap selinux idn threads resolvconf"
+
+DEPEND="ssl? ( >=dev-libs/openssl-0.9.6g )
+ mysql? ( >=virtual/mysql-4.0 )
+ odbc? ( >=dev-db/unixODBC-2.2.6 )
+ ldap? ( net-nds/openldap )
+ idn? ( net-dns/idnkit )
+ resolvconf? ( net-dns/resolvconf-gentoo )"
+
+RDEPEND="${DEPEND}
+ selinux? ( sec-policy/selinux-bind )"
+
+S="${WORKDIR}/${P/_/}"
+
+pkg_setup() {
+ use threads && {
+ echo
+ ewarn "If you're in vserver enviroment, you're probably want to"
+ ewarn "disable threads support because of linux capabilities dependency"
+ echo
+ }
+
+ ebegin "Creating named group and user"
+ enewgroup named 40
+ enewuser named 40 -1 /etc/bind named
+ eend ${?}
+}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ # Adjusting PATHs in manpages
+ for i in bin/{named/named.8,check/named-checkconf.8,rndc/rndc.8} ; do
+ sed -i \
+ -e 's:/etc/named.conf:/etc/bind/named.conf:g' \
+ -e 's:/etc/rndc.conf:/etc/bind/rndc.conf:g' \
+ -e 's:/etc/rndc.key:/etc/bind/rndc.key:g' \
+ "${i}"
+ done
+
+ use dlz && {
+ die "DLZ patch isn't ready yet."
+
+ epatch ${DISTDIR}/ctrix_dlz_${DLZ_VERSION}.patch.bz2
+ epatch ${FILESDIR}/${PN}-dlzbdb-includes.patch
+
+ use odbc && epatch ${FILESDIR}/${P}-missing_odbc_test.patch
+ }
+
+ # should be installed by bind-tools
+ sed -e "s:nsupdate ::g" -i ${S}/bin/Makefile.in
+
+ WANT_AUTOCONF=2.5 AT_NO_RECURSIVE=1 eautoreconf || die "eautoreconf failed"
+
+ # bug #151839
+ sed \
+ -e 's:<config.h>:<config.h>\n\n#undef SO_BSDCOMPAT:' \
+ -i lib/isc/unix/socket.c
+}
+
+src_compile() {
+ local myconf=""
+
+ use ssl && myconf="${myconf} --with-openssl"
+ use idn && myconf="${myconf} --with-idn"
+
+ 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
+ echo
+ ewarn ""
+ einfo "MySQL uses thread local storage in its C api. Thus MySQL"
+ einfo "requires that each thread of an application execute a MySQL"
+ einfo "\"thread initialization\" to setup the thread local storage."
+ einfo "This is impossible to do safely while staying within the DLZ"
+ einfo "driver API. This is a limitation caused by MySQL, and not"
+ einfo "the DLZ API."
+ ewarn "Because of this BIND MUST only run with a single thread when"
+ ewarn "using the MySQL driver."
+ echo
+ myconf="${myconf} --disable-linux-caps --disable-threads"
+ einfo "Threading support disabled"
+ epause 10
+ else
+ myconf="${myconf} --enable-linux-caps --enable-threads"
+ einfo "Threading support enabled"
+ fi
+ else
+ myconf="${myconf} --disable-linux-caps --disable-threads"
+ fi
+
+ econf \
+ --sysconfdir=/etc/bind \
+ --localstatedir=/var \
+ --with-libtool \
+ `use_enable ipv6` \
+ ${myconf} || die "econf failed"
+
+ emake -j1 || die "failed to compile bind"
+}
+
+src_install() {
+ einstall || die "failed to install bind"
+
+ dodoc CHANGES COPYRIGHT FAQ README
+
+ use doc && {
+ docinto misc
+ dodoc doc/misc/*
+
+ docinto html
+ dohtml doc/arm/*
+
+ docinto draft
+ dodoc doc/draft/*
+
+ docinto rfc
+ dodoc doc/rfc/*
+
+ docinto contrib
+ dodoc contrib/named-bootconf/named-bootconf.sh \
+ contrib/nanny/nanny.pl
+
+ # some handy-dandy dynamic dns examples
+ cd ${D}/usr/share/doc/${PF}
+ tar pjxf ${DISTFILES}/dyndns-samples.tbz2
+ }
+
+ insinto /etc/env.d
+ newins ${FILESDIR}/10bind.env 10bind
+
+ dodir /etc/bind /var/bind/{pri,sec}
+ keepdir /var/bind/sec
+
+ insinto /etc/bind ; newins ${FILESDIR}/named.conf-r3 named.conf
+
+ # ftp://ftp.rs.internic.net/domain/named.ca:
+ insinto /var/bind ; doins ${FILESDIR}/named.ca
+
+ insinto /var/bind/pri
+ doins ${FILESDIR}/127.zone
+ newins ${FILESDIR}/localhost.zone-r2 localhost.zone
+
+ cp ${FILESDIR}/named.init-r4 ${T}/named && doinitd ${T}/named
+ cp ${FILESDIR}/named.confd-r1 ${T}/named && doconfd ${T}/named
+
+ dosym ../../var/bind/named.ca /var/bind/root.cache
+ dosym ../../var/bind/pri /etc/bind/pri
+ dosym ../../var/bind/sec /etc/bind/sec
+
+ # Let's get rid of those tools and their manpages since they're provided by bind-tools
+ rm -f ${D}/usr/share/man/man1/{dig.1,host.1,nslookup.1}
+ rm -f ${D}/usr/bin/{dig,host,nslookup}
+
+ use resolvconf && {
+ exeinto /etc/resolvconf/update.d
+ newexe ${FILESDIR}/resolvconf.bind bind
+ }
+}
+
+pkg_postinst() {
+ if [ ! -f '/etc/bind/rndc.key' ]; then
+ if [ -c /dev/urandom ]; then
+ einfo "Using /dev/urandom for generating rndc.key"
+ /usr/sbin/rndc-confgen -r /dev/urandom -a -u named
+ echo
+ else
+ einfo "Using /dev/random for generating rndc.key"
+ /usr/sbin/rndc-confgen -a -u named
+ echo
+ fi
+ fi
+
+ install -d -o named -g named ${ROOT}/var/run/named \
+ ${ROOT}/var/bind/pri ${ROOT}/var/bind/sec
+ chown -R named:named ${ROOT}/var/bind
+
+ einfo "The default zone files are now installed as *.zone,"
+ einfo "be careful merging config files if you have modified"
+ einfo "/var/bind/pri/127 or /var/bind/pri/localhost"
+ einfo
+ einfo "You can edit /etc/conf.d/named to customize named settings"
+ einfo
+ einfo "The BIND ebuild now includes chroot support."
+ einfo "If you like to run bind in chroot AND this is a new install OR"
+ einfo "your bind doesn't already run in chroot, simply run:"
+ einfo "\`emerge --config '=${CATEGORY}/${PF}'\`"
+ einfo "Before running the above command you might want to change the chroot"
+ einfo "dir in /etc/conf.d/named. Otherwise /chroot/dns will be used."
+ echo
+ einfo "Recently verisign added a wildcard A record to the .COM and .NET TLD"
+ einfo "zones making all .com and .net domains appear to be registered"
+ einfo "This causes many problems such as breaking important anti-spam checks"
+ einfo "which verify source domains exist. ISC released a patch for BIND which"
+ einfo "adds 'delegation-only' zones to allow admins to return the .com and .net"
+ einfo "domain resolution to their normal function."
+ echo
+ einfo "There is no need to create a com or net data file. Just the"
+ einfo "entries to the named.conf file is enough."
+ echo
+ einfo " zone "com" IN { type delegation-only; };"
+ einfo " zone "net" IN { type delegation-only; };"
+
+ echo
+ ewarn "BIND >=9.2.5 makes the priority argument to MX records mandatory"
+ ewarn "when it was previously optional. If the priority is missing, BIND"
+ ewarn "won't load the zone file at all."
+ echo
+}
+
+pkg_config() {
+ CHROOT=`sed -n 's/^[[:blank:]]\?CHROOT="\([^"]\+\)"/\1/p' /etc/conf.d/named 2>/dev/null`
+ EXISTS="no"
+
+ if [ -z "${CHROOT}" -a ! -d "/chroot/dns" ]; then
+ CHROOT="/chroot/dns"
+ elif [ -d ${CHROOT} ]; then
+ eerror; eerror "${CHROOT:-/chroot/dns} already exists. Quitting."; eerror; EXISTS="yes"
+ fi
+
+ if [ ! "$EXISTS" = yes ]; then
+ einfo ; einfon "Setting up the chroot directory..."
+ mkdir -m 700 -p ${CHROOT}
+ mkdir -p ${CHROOT}/{dev,etc,var/run/named}
+ chown -R named:named ${CHROOT}/var/run/named
+ cp -R /etc/bind ${CHROOT}/etc/
+ cp /etc/localtime ${CHROOT}/etc/localtime
+ chown named:named ${CHROOT}/etc/bind/rndc.key
+ cp -R /var/bind ${CHROOT}/var/
+ chown -R named:named ${CHROOT}/var/
+ mknod ${CHROOT}/dev/zero c 1 5
+ mknod ${CHROOT}/dev/random c 1 8
+ chmod 666 ${CHROOT}/dev/{random,zero}
+ chown root:named ${CHROOT}
+ chmod 0750 ${CHROOT}
+
+ grep -q "^#[[:blank:]]\?CHROOT" /etc/conf.d/named ; RETVAL=$?
+ if [ $RETVAL = 0 ]; then
+ sed 's/^# \?\(CHROOT.*\)$/\1/' /etc/conf.d/named > /etc/conf.d/named.orig 2>/dev/null
+ mv --force /etc/conf.d/named.orig /etc/conf.d/named
+ fi
+
+ sleep 1; echo " Done."; sleep 1
+ einfo
+ einfo "Add the following to your root .bashrc or .bash_profile: "
+ einfo " alias rndc='rndc -k ${CHROOT}/etc/bind/rndc.key'"
+ einfo "Then do the following: "
+ einfo " source /root/.bashrc or .bash_profile"
+ einfo
+ fi
+}
diff --git a/net-dns/bind/files/bind-9.2.8-missing_odbc_test.patch b/net-dns/bind/files/bind-9.2.8-missing_odbc_test.patch
new file mode 100644
index 000000000000..ead47527451a
--- /dev/null
+++ b/net-dns/bind/files/bind-9.2.8-missing_odbc_test.patch
@@ -0,0 +1,20 @@
+--- configure.in 2006-07-09 22:00:54.000000000 +0000
++++ configure.in 2006-07-09 22:01:05.000000000 +0000
+@@ -686,17 +686,7 @@
+ fi
+ done
+
+- if test -z "`${CC} contrib/sdb/test//test.c -lodbc -o contrib/sdb/test/test.ok 2>&1`"; then
+ DLZ_ODBC_LIB="-lodbc"
+- elif test -z "`${CC} contrib/sdb/test//test.c -liodbc -o contrib/sdb/test/test.ok 2>&1`"; then
+- DLZ_ODBC_LIB="-liodbc"
+- else
+- DLZ_ODBC_LIB=""
+- use_dlz_odbc="no"
+- AC_MSG_RESULT("no ODBC libraries found")
+- fi
+- rm -f contrib/sdb/test/test.ok
+-
+
+ if test "$use_dlz_odbc" = "yes"
+ then
diff --git a/net-dns/bind/files/bind-9.3.4-missing_odbc_test.patch b/net-dns/bind/files/bind-9.3.4-missing_odbc_test.patch
new file mode 100644
index 000000000000..ead47527451a
--- /dev/null
+++ b/net-dns/bind/files/bind-9.3.4-missing_odbc_test.patch
@@ -0,0 +1,20 @@
+--- configure.in 2006-07-09 22:00:54.000000000 +0000
++++ configure.in 2006-07-09 22:01:05.000000000 +0000
+@@ -686,17 +686,7 @@
+ fi
+ done
+
+- if test -z "`${CC} contrib/sdb/test//test.c -lodbc -o contrib/sdb/test/test.ok 2>&1`"; then
+ DLZ_ODBC_LIB="-lodbc"
+- elif test -z "`${CC} contrib/sdb/test//test.c -liodbc -o contrib/sdb/test/test.ok 2>&1`"; then
+- DLZ_ODBC_LIB="-liodbc"
+- else
+- DLZ_ODBC_LIB=""
+- use_dlz_odbc="no"
+- AC_MSG_RESULT("no ODBC libraries found")
+- fi
+- rm -f contrib/sdb/test/test.ok
+-
+
+ if test "$use_dlz_odbc" = "yes"
+ then
diff --git a/net-dns/bind/files/bind-9.4.0_rc2-missing_odbc_test.patch b/net-dns/bind/files/bind-9.4.0_rc2-missing_odbc_test.patch
new file mode 100644
index 000000000000..ead47527451a
--- /dev/null
+++ b/net-dns/bind/files/bind-9.4.0_rc2-missing_odbc_test.patch
@@ -0,0 +1,20 @@
+--- configure.in 2006-07-09 22:00:54.000000000 +0000
++++ configure.in 2006-07-09 22:01:05.000000000 +0000
+@@ -686,17 +686,7 @@
+ fi
+ done
+
+- if test -z "`${CC} contrib/sdb/test//test.c -lodbc -o contrib/sdb/test/test.ok 2>&1`"; then
+ DLZ_ODBC_LIB="-lodbc"
+- elif test -z "`${CC} contrib/sdb/test//test.c -liodbc -o contrib/sdb/test/test.ok 2>&1`"; then
+- DLZ_ODBC_LIB="-liodbc"
+- else
+- DLZ_ODBC_LIB=""
+- use_dlz_odbc="no"
+- AC_MSG_RESULT("no ODBC libraries found")
+- fi
+- rm -f contrib/sdb/test/test.ok
+-
+
+ if test "$use_dlz_odbc" = "yes"
+ then
diff --git a/net-dns/bind/files/digest-bind-9.2.8 b/net-dns/bind/files/digest-bind-9.2.8
new file mode 100644
index 000000000000..6d73dad89748
--- /dev/null
+++ b/net-dns/bind/files/digest-bind-9.2.8
@@ -0,0 +1,9 @@
+MD5 55455401e8b45b79cea89d3d79118ced bind-9.2.8.tar.gz 5208805
+RMD160 4bdba3e75a9d188d05787ca553aa656a416d4534 bind-9.2.8.tar.gz 5208805
+SHA256 4c037a1ffe71f8baa8b416589faa0a3c312b2afe7b79bde9ebf9bbde5af5a11d bind-9.2.8.tar.gz 5208805
+MD5 10b9cf6eeb8f1a63ad49bef6d4739a66 dlz-9.2.7.patch.bz2 100068
+RMD160 d53b00b27e43b645e96d25c3a7bdbc8e0d2ebade dlz-9.2.7.patch.bz2 100068
+SHA256 db255c43cdee05c05ac8f240e1d75dcbee3f010e41e9f08b133c14b209363e8c dlz-9.2.7.patch.bz2 100068
+MD5 2bb12cfcd70284e72fbf9e70e5e2974d dyndns-samples.tbz2 22866
+RMD160 27d5b2d0edb8e1ff16b3f980c38d7af33ccf0c7d dyndns-samples.tbz2 22866
+SHA256 92fb06a92ca99cbbe96b90bcca229ef9c12397db57ae17e199dad9f1218fdbe8 dyndns-samples.tbz2 22866
diff --git a/net-dns/bind/files/digest-bind-9.3.4 b/net-dns/bind/files/digest-bind-9.3.4
new file mode 100644
index 000000000000..52fae07ad51b
--- /dev/null
+++ b/net-dns/bind/files/digest-bind-9.3.4
@@ -0,0 +1,9 @@
+MD5 df5417e7e7cf017fa28b65d0a3d6e999 bind-9.3.4.tar.gz 5405022
+RMD160 8b5fda9542f6afbe7ffb857d72f7e545237d7826 bind-9.3.4.tar.gz 5405022
+SHA256 40152026af715b15ac958f374394e5189a099b562eb913470ccc43f6fbd19c21 bind-9.3.4.tar.gz 5405022
+MD5 00419378bdf3691c7d2fe7737f25007d ctrix_dlz_9.3.3.patch.bz2 66143
+RMD160 ee3a7ef8e1b3167ff572ca8a7836a8d4d64a834d ctrix_dlz_9.3.3.patch.bz2 66143
+SHA256 6550455ba37f5f25f047078bedf825d05eab45bbc4a3d8b7bf23a716749423cf ctrix_dlz_9.3.3.patch.bz2 66143
+MD5 2bb12cfcd70284e72fbf9e70e5e2974d dyndns-samples.tbz2 22866
+RMD160 27d5b2d0edb8e1ff16b3f980c38d7af33ccf0c7d dyndns-samples.tbz2 22866
+SHA256 92fb06a92ca99cbbe96b90bcca229ef9c12397db57ae17e199dad9f1218fdbe8 dyndns-samples.tbz2 22866
diff --git a/net-dns/bind/files/digest-bind-9.4.0_rc2 b/net-dns/bind/files/digest-bind-9.4.0_rc2
new file mode 100644
index 000000000000..95bed2cfead0
--- /dev/null
+++ b/net-dns/bind/files/digest-bind-9.4.0_rc2
@@ -0,0 +1,9 @@
+MD5 95daa3e6f70c979d8a64282011bb3419 bind-9.4.0rc2.tar.gz 6328614
+RMD160 088e13834090b7cb7ede5b00cb0f69cdc40abd5a bind-9.4.0rc2.tar.gz 6328614
+SHA256 ab269867dd2c74cf6b20241457892960a8f106b873d34b80bcce126f3cf6ea23 bind-9.4.0rc2.tar.gz 6328614
+MD5 00419378bdf3691c7d2fe7737f25007d ctrix_dlz_9.3.3.patch.bz2 66143
+RMD160 ee3a7ef8e1b3167ff572ca8a7836a8d4d64a834d ctrix_dlz_9.3.3.patch.bz2 66143
+SHA256 6550455ba37f5f25f047078bedf825d05eab45bbc4a3d8b7bf23a716749423cf ctrix_dlz_9.3.3.patch.bz2 66143
+MD5 2bb12cfcd70284e72fbf9e70e5e2974d dyndns-samples.tbz2 22866
+RMD160 27d5b2d0edb8e1ff16b3f980c38d7af33ccf0c7d dyndns-samples.tbz2 22866
+SHA256 92fb06a92ca99cbbe96b90bcca229ef9c12397db57ae17e199dad9f1218fdbe8 dyndns-samples.tbz2 22866