summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMikle Kolyada <zlogene@gentoo.org>2014-05-21 08:59:11 +0000
committerMikle Kolyada <zlogene@gentoo.org>2014-05-21 08:59:11 +0000
commitd8f145f228083bc5aa4a141652ab38d6ec376fec (patch)
treeef323755676b1771ab296335aff60cf30f67a7b0 /net-dns
parentVersion bump to 1.8.1; fixes bug #510878 reported by Chris Torske (ct85711), ... (diff)
downloadhistorical-d8f145f228083bc5aa4a141652ab38d6ec376fec.tar.gz
historical-d8f145f228083bc5aa4a141652ab38d6ec376fec.tar.bz2
historical-d8f145f228083bc5aa4a141652ab38d6ec376fec.zip
Drop insecure version
Package-Manager: portage-2.2.8-r1/cvs/Linux x86_64 Manifest-Sign-Key: 0xC42EB5D6
Diffstat (limited to 'net-dns')
-rw-r--r--net-dns/bind/ChangeLog5
-rw-r--r--net-dns/bind/Manifest14
-rw-r--r--net-dns/bind/bind-9.9.3_p2.ebuild432
3 files changed, 10 insertions, 441 deletions
diff --git a/net-dns/bind/ChangeLog b/net-dns/bind/ChangeLog
index 8d23d299b0e3..b7c02e1cd176 100644
--- a/net-dns/bind/ChangeLog
+++ b/net-dns/bind/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for net-dns/bind
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-dns/bind/ChangeLog,v 1.492 2014/04/27 11:47:02 maekke Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-dns/bind/ChangeLog,v 1.493 2014/05/21 08:59:05 zlogene Exp $
+
+ 21 May 2014; Mikle Kolyada <zlogene@gentoo.org> -bind-9.9.3_p2.ebuild:
+ Drop insecure version
27 Apr 2014; Markus Meier <maekke@gentoo.org> bind-9.9.5-r3.ebuild:
arm stable, bug #506796
diff --git a/net-dns/bind/Manifest b/net-dns/bind/Manifest
index e9007b9173fe..0eb5cec94181 100644
--- a/net-dns/bind/Manifest
+++ b/net-dns/bind/Manifest
@@ -19,8 +19,6 @@ AUX named.service 555 SHA256 2716ea68363f57b54d272eae70f418a19f3624687753d9249ba
AUX named.service-r1 327 SHA256 5c57f181cbb153fe6beb9385c56b874ea56afc19cca105ea3c5cadf2138c349d SHA512 1d3dbf9d1de0c23c398a523b05c0fb266b6b699e54d232818b28205f697ca227acae9f2778d6f41309b117a6cd78eee170b745594b786b1c1571d5f66d6c3de4 WHIRLPOOL fbfbb8ec1bd7bf1796be0daa66ec0918b175f3953b0312c492a09097f4e7c9b60d303330f525c03d1aa7b0934c2bc134e90800afb7e40e06f77f865c8710dd66
DIST bind-9.8.3-P1-geoip-1.3.patch 54137 SHA256 9d5716d661fc3d76b3f201a0bcf563f4c1cd1fedf42c8434e4cce31f666866ff SHA512 33ed5855c1e20681667a7def229a6f6a721d309fb7e4a817825c80e652ce24036c220597c5a0252f6f4a11acaf652319868ae79d8eb3236ca52fb5311298a95a WHIRLPOOL b8e97e15c212710ed6efef508a883cc6adda530c1201263371b8208f85c813389ec9fd6c636d7fcc70ca848cfafea8c4f1edc9195b083995732ad4feef2e7dfe
DIST bind-9.8.6.tar.gz 7275769 SHA256 01cc3a0105b47833b99e61b69acd824be4eeefd6557fffa26eced8e03f1249cd SHA512 09e94e1baa78ba05766078e98251e048aacb440487c8fd72d76e369abc1869fd62d8e8f67f7c12cdd06dca823fc98288c38e41602ad394b00dee4e9db01677b6 WHIRLPOOL d2de919082ac78961df3a14c69386a6c42bbcedbd561f5902fcbd920183a7cd171b2e5e69e451fc3df3568985941ce1842fc27a43a44dea0071fe2154f233b02
-DIST bind-9.9.2-geoip-1.3.patch 54328 SHA256 0d87a1b547b42c775ffb591bc8104f92c18e99ebe2ab3a97e8c5bc5731be6fba SHA512 7673b3001bc7d64e80ee548c63ab083141affdd76edf6704da6980c26de341be7341d7566dd9bc8d3b02a0a08934ccd513bd61d2a426f61b3b47959ec14d21ae WHIRLPOOL f561baae427ff4141022b94ca557e2c3fba58434531f45c28b153ada537cadec2388694689b30c1a5b5db9c10e9cbaaad6c7a42797effc7c429c4403c6516404
-DIST bind-9.9.3-P2.tar.gz 7459422 SHA256 5e8ab06c7b73f38b47ce9ad12ca0afa7c714bbba2f6b7421c26c0d8b84b6c678 SHA512 def149b8b4050d65bf35109db5843502aaf785cd331d041b9336e0e25a43ede3c7337d5ef46f4726542bf1126bddb5e9404eaaad8f4ff9bcb464ef52df31225a WHIRLPOOL dd5ec585c33a3e6c2d1347d450fc7db8a55b1b321523ce695232c2d544761891c48b95447ded818b4333874607b53689feab6d41eb2d4421239f4d2ffc3e2e83
DIST bind-9.9.4-P2.tar.gz 7513077 SHA256 50f3c6431e26d3f322b69092a49c92e163e73029fe4a1933ce532dc97ec40a89 SHA512 73f9501744fd2841453c29bac81a05260328499a188086b93dc42b640cdb33d4946046fecfdcb39d92693902a19374c89f01459f43cefeb6d5bc5ecb0d3afd30 WHIRLPOOL 7ecc0f8e2ded906afaeb6bd9569cf1a7fc402bfc824ae74b27e57a5a2f5046674fa7925e6ff6b64928211b68bbdee1fbab6b0960d666ebb838ff9568a082698a
DIST bind-9.9.4_p2-geoip.patch 54902 SHA256 a5016ad0a06fbe881d48772716062a804c34ac4e4f3c34134961011a1516872c SHA512 4554066ae513c04c90ecfa50400605f98cb2f79ba96cf8751bbbf74ebb078018200ff2b3ae71dde7e7141217bf88d8860923e9a59d7ee5ad5d931dddf9173a64 WHIRLPOOL a6e194d17ba44e48b498c0dfdcdde56a7170e461916f279f03be260a92f4009a5a6dc786b482757f7f8e10f6cfbb00eb0e5e45a3b9c5e0b90de045a80d474aea
DIST bind-9.9.5-geoip.patch 54901 SHA256 df713fd431f01f119bdaabb732401b80b553cd1f768838b5aa59ffcbc1a6a39e SHA512 0068463fe5c25c00e1407dce9588718fea45e730a2dc034783a8159a1eb457554ee4d34ea18550b0e737c0ca46fffe851d4eb2dce1b8f887e83550173f4e3ee2 WHIRLPOOL 2422ace7d86789f39bb1b1eda55f8a4c789a1195596543ed6e15696bcd219f4960f4c1d9ddf0c1be5d1ff946840ef9194f5232eb9f07c955c50e17aaade4b28e
@@ -29,18 +27,18 @@ DIST bind-geoip-1.3-readme.txt 10040 SHA256 380ce89f1a614f46571ad59bddf0f2682756
DIST bind-sdb-ldap-1.1.0-fc14.patch.bz2 9477 SHA256 fe043a573ba187dcc8b0f7313d4408236e6916ec246b0443b7e71b33c8303ae9 SHA512 62690ef3471055e4ae3d8dcedd296c0a5c3a75a3be237c76fdea07aa879f2bb1df4c56b8ca1e3ed9b488a980d16f9c9a3a12a53ef3208607472d18c225916ac5 WHIRLPOOL da3683f815509c5adf0ef819cf1165b64ba35efc6c588fd46b1c6b3d0374766442acb02ecf19dd90bbad5afb174dd27fd3e0894166ea8e78901e95ae870f9f5e
DIST dyndns-samples.tbz2 22866 SHA256 92fb06a92ca99cbbe96b90bcca229ef9c12397db57ae17e199dad9f1218fdbe8 SHA512 83b0bf99f8e9ff709e8e9336d8c5231b98a4b5f0c60c10792f34931e32cc638d261967dfa5a83151ec3740977d94ddd6e21e9ce91267b3e279b88affdbc18cac WHIRLPOOL 08d4e6a817f1d02597631e18152dbd55ea1bc4c82174be150cc77efc9e1f0f03b6471d1cefbe4229cd3161de752ef232a43ca274a07b78e9c974ceb04cfe99a2
DIST rl-9.8.6.patch 103547 SHA256 97ecf02d25334c9d9e32fc8a8fdca7dadd58174872568dcfc95bf26329a929be SHA512 509def04601e7e1cc77fcee3f541b35f35ef31e96eaa844a451ddc4c9da388c14e26165e5ff9b8d8e96690b327be6d37ca6ff1419aa76ecdd3b7330051fefe53 WHIRLPOOL ae8df741218841e11141d812455e21c9bcc11d52f7aac8d39796ccfeb70beaac41a2aaa9b26907c7153924472a589818d9fd703132e0685fa726f8ce639c1692
-DIST rl-9.9.3-P2.patch 104064 SHA256 9aff9d39077160a7a156aa40456f19779b7f5ed2e5b42903b6c0f865acae2fae SHA512 f6e057cf33dd3baf95773637dc75ea1b3fc834e908048e096e57482b583f502cfe73a82104f4045d7f1668cfb531b18429c53b77caba9f12d3c4e605e4b51efa WHIRLPOOL e1a53d0cc7d3a2133e11b5d29e481deefda1562f8f335fc385c3f75205a229f1f861b78218a02e25871a55f572edceca49372e87e81a58dd62bca8d752abeccb
EBUILD bind-9.8.6.ebuild 12997 SHA256 468c62d41326a4d8b11c0e95e45e5b52458aab660c436397654cfb1a9e9ca1bc SHA512 912e65d8ec1771b077ffce6c0cc5ca1471de6b8a6314ea2e0f28b34c7bef3d07c27e9bc8ad76b983d162d1bd25339d0eebf9c771f1e674517bbdedb16e3cc612 WHIRLPOOL 5e2d57b1c0ee7fa6b659c5bb383e6962f28e5a7dbaa6e4c8a2ed64af6dd0c5df9075d2a6465dd9c1c3c8bbbc0a06cbefd2646b555f77a85b6f9b7b9e5e31d333
-EBUILD bind-9.9.3_p2.ebuild 13715 SHA256 072961fe58945c3e40d5344542bf013ba276b8dc33ce24d9a073f8fe88588b74 SHA512 4668304a32b14489569cae921de7b01033f99168f54e667aed3a71f93d9378e75a8fc5bb38ac663cabfd852621189576c3f133fa9881540e388531e9571f4412 WHIRLPOOL 37dfa4879e49198fa75073c9eb38b6d6d85d295d742417327757202ee59b559ad5ca6546038f15e513ad3690eb711a9bf657890a8d286543d4c9f144f02b46e4
EBUILD bind-9.9.4_p2.ebuild 13754 SHA256 15664e078b4db7588f7481d61479fb5ac2366f2135fe004010277d1d00ef5bef SHA512 7b8afe341275a57b617787a74e6bcec0f35ee36a5857d80744b00e4ea302a1b2afa582b0c8f6f64f44186ba5a7a0bae1e86b609966248652f4f289faa76a24b9 WHIRLPOOL 7dd7a5cd422372a8fc5b07219e1da05e7f514eaee1ed4ff4c848070f33182af39ab61d11f1f5f04f6cefff4f2b8b6305e39451e3749bdb4b7c5d2d9af47a1f07
EBUILD bind-9.9.5-r2.ebuild 13906 SHA256 e9fbddd834e0acde5a69202f9150e044d64ab73e9e73694837fa3dfce7334a12 SHA512 33db06ca6f7f5a08a6039953e7b9210c3b341dc3d3fdf08448e023c7062f48c8cf13ba55fec30b1bb4ead69fd3ce1f916da2ccb9a61412ec9651cc456cd4f76a WHIRLPOOL 28f00373538ef8c29573b633da2a32807437ead7f7c601f02485854333b6baf6d6a3319f390b6bcac6f38dd0f937a544edaca53d07c7ab7ce8c4fd4f29a03bb2
EBUILD bind-9.9.5-r3.ebuild 13877 SHA256 9d5a98237de3502666695c9ff2d74b7e14dcc22e0157b29c4ea2a8fc461f8852 SHA512 63f836e67b92d07cc3ace357a11b357a53243474964ff54b36e5527a4224e45566752ea336141ea3d277313bdf30ef371cb5dd02b5d487d79de3338fa6e0c51a WHIRLPOOL d7db80e495e88f1724e4ec74cafdbf4d0aa849dbc6076d9403142386e9627fb28c659d3c597ea56374275fb2f2df006570ed3a09d269fb72e3e558fe48a2aade
-MISC ChangeLog 78710 SHA256 abc98cecb184c11fc9aabf10dd4f5dcb7453e06dde46bbf618dbd63b09452fab SHA512 daeaa6238f6eb34ca67f444b6c520d2031b9f88b26b81f9f4f6b73d29d90a167a5679f0dfa7abbc17798a5a2d2e7abde04994d4b1840749ae0fc3958c221c4a4 WHIRLPOOL e6271c52961b76da8e94129ba38548d809c663f34f467659045662b5eabdf7191c567fab78843645a55cd81bcbc05c11b1e86000c634242ba015fab99a6b6916
+MISC ChangeLog 78809 SHA256 e59247175da74bcb635c3f64a509bac9a38d349462e3d2a0091aec3070816f55 SHA512 ac07509e850dd31aab8be22e1719e3b26e98a82065e31c02bf0bea3bbecb83a226471dafba968a57eb166a90d47804d7a3cb3d16329a201ee7af3473ed13b6fc WHIRLPOOL f21a01ab280c23ff6917875d7f5cdd7b0a887789467ce97e54e702062cfbda507b63621219b96d3364c59bdf52ada6577cd38f164a6b62845749334896081677
MISC metadata.xml 927 SHA256 d2d095b814e2df50ca39c1493c5d4315ad1d5b4b37aec7b34385771d10ae5d9d SHA512 6ac8c5a70b5cc01d0fac54118066a9ea626d089f9e5a2d45ea4b1b9cedacfafa46e5da60717c2d6f872657f8bc780ea223149afbaa51bdeaa3effef1e01dd218 WHIRLPOOL 7ede42b528d5132c0f0e5d6a3c765154ead764d590975472960cee48fce2f23e6e9687c6fc64f610101758c09b50da61c10f00267582dc708fd57e7f7f984e8f
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)
-iEYEAREIAAYFAlNc8BgACgkQkKaRLQcq0GLRuACfRvGhlSi8L+HpgSrBIg2fSwpP
-u+gAn3HPqvR+X3OnwPMgulwXNwCotxio
-=KsDA
+iJwEAQEIAAYFAlN8bCQACgkQG9wOWsQutdYxkQP+Jg8T20YX4KNjqLneL0j7GepU
+JO499AhKT6VoiPkYSahuDuNlKjmPs2WshJZVcOGdLdFTwkVBZpYK5gDD6BVyzaxX
+mxyLRNLHZqAMPehipczgREExf97U+g5ctKQeZCrlYdo1xyVEtB0BtmDmMN469TMI
+w9E9eU40OmhXXLzzbyM=
+=S6/J
-----END PGP SIGNATURE-----
diff --git a/net-dns/bind/bind-9.9.3_p2.ebuild b/net-dns/bind/bind-9.9.3_p2.ebuild
deleted file mode 100644
index 694414feacb5..000000000000
--- a/net-dns/bind/bind-9.9.3_p2.ebuild
+++ /dev/null
@@ -1,432 +0,0 @@
-# Copyright 1999-2014 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-dns/bind/bind-9.9.3_p2.ebuild,v 1.14 2014/01/18 18:16:15 idl0r Exp $
-
-# 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"
-
-PYTHON_DEPEND="python? 2:2.7 3"
-SUPPORT_PYTHON_ABIS="1"
-
-inherit python eutils autotools toolchain-funcs flag-o-matic multilib db-use user systemd
-
-MY_PV="${PV/_p/-P}"
-MY_PV="${MY_PV/_rc/rc}"
-MY_P="${PN}-${MY_PV}"
-
-SDB_LDAP_VER="1.1.0-fc14"
-
-# bind-9.8.0-P1-geoip-1.3.patch
-GEOIP_PV=1.3
-#GEOIP_PV_AGAINST="${MY_PV}"
-GEOIP_PV_AGAINST="9.9.2"
-GEOIP_P="bind-${GEOIP_PV_AGAINST}-geoip-${GEOIP_PV}"
-GEOIP_PATCH_A="${GEOIP_P}.patch"
-GEOIP_DOC_A="bind-geoip-1.3-readme.txt"
-GEOIP_SRC_URI_BASE="http://bind-geoip.googlecode.com/"
-
-RRL_PV="${MY_PV}"
-
-# GeoIP: http://bind-geoip.googlecode.com/
-# DNS RRL: http://www.redbarn.org/dns/ratelimits/
-# SDB-LDAP: http://bind9-ldap.bayour.com/
-
-DESCRIPTION="BIND - Berkeley Internet Name Domain - Name Server"
-HOMEPAGE="http://www.isc.org/software/bind"
-SRC_URI="ftp://ftp.isc.org/isc/bind9/${MY_PV}/${MY_P}.tar.gz
- doc? ( mirror://gentoo/dyndns-samples.tbz2 )
- geoip? ( ${GEOIP_SRC_URI_BASE}/files/${GEOIP_DOC_A}
- ${GEOIP_SRC_URI_BASE}/files/${GEOIP_PATCH_A} )
- sdb-ldap? (
- http://ftp.disconnected-by-peer.at/pub/bind-sdb-ldap-${SDB_LDAP_VER}.patch.bz2
- )
- rrl? ( http://ss.vix.su/~vjs/rl-${RRL_PV}.patch )"
-
-LICENSE="ISC BSD BSD-2 HPND JNIC openssl"
-SLOT="0"
-KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
-IUSE="berkdb caps dlz doc filter-aaaa geoip gost gssapi idn ipv6 ldap mysql odbc
-postgres python rpz rrl sdb-ldap selinux ssl static-libs threads urandom xml"
-# no PKCS11 currently as it requires OpenSSL to be patched, also see bug 409687
-
-REQUIRED_USE="postgres? ( dlz )
- berkdb? ( dlz )
- mysql? ( dlz !threads )
- odbc? ( dlz )
- ldap? ( dlz )
- sdb-ldap? ( dlz )
- gost? ( ssl )
- threads? ( caps )"
-
-DEPEND="ssl? ( dev-libs/openssl:0[-bindist] )
- mysql? ( >=virtual/mysql-4.0 )
- odbc? ( >=dev-db/unixODBC-2.2.6 )
- ldap? ( net-nds/openldap )
- idn? ( net-dns/idnkit )
- postgres? ( dev-db/postgresql-base )
- 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 )
- gost? ( >=dev-libs/openssl-1.0.0:0[-bindist] )
- python? ( virtual/python-argparse )"
-
-RDEPEND="${DEPEND}
- selinux? ( sec-policy/selinux-bind )
- || ( sys-process/psmisc >=sys-freebsd/freebsd-ubin-9.0_rc sys-process/fuser-bsd )"
-
-S="${WORKDIR}/${MY_P}"
-
-pkg_setup() {
- ebegin "Creating named group and user"
- enewgroup named 40
- enewuser named 40 -1 /etc/bind named
- eend ${?}
-
- if use python; then
- python_pkg_setup
- fi
-}
-
-src_prepare() {
- # 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}" || die "sed failed, ${i} doesn't exist"
- done
-
- if use dlz; then
- # bind fails to reconnect to MySQL5 databases, bug #180720, patch by Nicolas Brousse
- # (http://www.shell-tips.com/2007/09/04/bind-950-patch-dlz-mysql-5-for-auto-reconnect/)
- if use mysql && has_version ">=dev-db/mysql-5"; then
- epatch "${FILESDIR}"/bind-dlzmysql5-reconnect.patch
- fi
-
- 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
-
- if use geoip; then
- cp "${DISTDIR}"/${GEOIP_PATCH_A} "${S}" || die
- sed -i -e 's:^ RELEASETYPE=: RELEASETYPE=-P:' \
- -e 's:RELEASEVER=:RELEASEVER=2:' \
- ${GEOIP_PATCH_A} || die
-# sed -i -e 's:RELEASEVER=2:RELEASEVER=3:' ${GEOIP_PATCH_A} || die
- epatch ${GEOIP_PATCH_A}
- fi
-
- if use rrl; then
- cp "${DISTDIR}"/rl-${RRL_PV}.patch "${S}" || die
-# sed -i -e 's:^ RELEASETYPE=: RELEASETYPE=-P:' \
-# -e 's:^ RELEASEVER=: RELEASEVER=1:' \
-# rl-${RRL_PV}.patch || die
-
- # Response Rate Limiting (DNS RRL) - bug 434650
- epatch rl-${RRL_PV}.patch
- fi
-
- # Disable tests for now, bug 406399
- sed -i '/^SUBDIRS/s:tests::' bin/Makefile.in lib/Makefile.in || die
-
- # bug #220361
- rm aclocal.m4
- rm -rf libtool.m4/
- eautoreconf
-}
-
-src_configure() {
- local myconf=""
-
- if use urandom; then
- myconf="${myconf} --with-randomdev=/dev/urandom"
- else
- myconf="${myconf} --with-randomdev=/dev/random"
- fi
-
- use geoip && myconf="${myconf} --with-geoip"
-
- # bug #158664
-# gcc-specs-ssp && replace-flags -O[23s] -O
-
- # To include db.h from proper path
- use berkdb && append-flags "-I$(db_includedir)"
-
- export BUILD_CC=$(tc-getBUILD_CC)
- econf \
- --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 "${EPREFIX}"/usr) \
- $(use_with ssl ecdsa) \
- $(use_with idn) \
- $(use_enable ipv6) \
- $(use_with xml libxml2) \
- $(use_enable xml newstats) \
- $(use_with gssapi) \
- $(use_enable rpz rpz-nsip) \
- $(use_enable rpz rpz-nsdname) \
- $(use_enable caps linux-caps) \
- $(use_with gost) \
- $(use_enable filter-aaaa) \
- $(use_with python) \
- --without-readline \
- ${myconf}
-
- # $(use_enable static-libs static) \
-
- # bug #151839
- echo '#undef SO_BSDCOMPAT' >> config.h
-}
-
-src_install() {
- emake DESTDIR="${D}" install
-
- dodoc CHANGES FAQ README
-
- if use idn; then
- dodoc contrib/idn/README.idnkit
- fi
-
- if use doc; then
- dodoc doc/arm/Bv9ARM.pdf
-
- docinto misc
- dodoc doc/misc/*
-
- # might a 'html' useflag make sense?
- docinto html
- dohtml -r doc/arm/*
-
- docinto contrib
- dodoc contrib/named-bootconf/named-bootconf.sh \
- contrib/nanny/nanny.pl
-
- # some handy-dandy dynamic dns examples
- pushd "${D}"/usr/share/doc/${PF} 1>/dev/null
- tar xf "${DISTDIR}"/dyndns-samples.tbz2 || die
- popd 1>/dev/null
- fi
-
- use geoip && dodoc "${DISTDIR}"/${GEOIP_DOC_A}
-
- insinto /etc/bind
- newins "${FILESDIR}"/named.conf-r6 named.conf
-
- # ftp://ftp.rs.internic.net/domain/named.cache:
- insinto /var/bind
- doins "${FILESDIR}"/named.cache
-
- insinto /var/bind/pri
- newins "${FILESDIR}"/127.zone-r1 127.zone
- newins "${FILESDIR}"/localhost.zone-r3 localhost.zone
-
- newinitd "${FILESDIR}"/named.init-r12 named
- newconfd "${FILESDIR}"/named.confd-r6 named
-
- 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
- fi
-
- newenvd "${FILESDIR}"/10bind.env 10bind
-
- # 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,host,nslookup}.1*
- rm -f "${D}"/usr/share/man/man8/{dnssec-keygen,nsupdate}.8*
- rm -f "${D}"/usr/bin/{dig,host,nslookup,dnssec-keygen,nsupdate}
- rm -f "${D}"/usr/sbin/{dig,host,nslookup,dnssec-keygen,nsupdate}
-
- # bug 405251, library archives aren't properly handled by --enable/disable-static
- if ! use static-libs; then
- find "${D}" -type f -name '*.la' -delete || die
- fi
-
- if use python; then
- install_python_tools() {
- python_convert_shebangs $PYTHON_ABI bin/python/dnssec-checkds
- exeinto /usr/sbin
- newexe bin/python/dnssec-checkds dnssec-checkds-${PYTHON_ABI}
- }
- python_execute_function install_python_tools
-
- rm -f "${D}/usr/sbin/dnssec-checkds"
- python_generate_wrapper_scripts "${D}usr/sbin/dnssec-checkds"
- fi
-
- # bug 450406
- dosym named.cache /var/bind/root.cache
-
- dosym /var/bind/pri /etc/bind/pri
- dosym /var/bind/sec /etc/bind/sec
- dosym /var/bind/dyn /etc/bind/dyn
- keepdir /var/bind/{pri,sec,dyn}
-
- dodir /var/{run,log}/named
-
- fowners root:named /{etc,var}/bind /var/{run,log}/named /var/bind/{sec,pri,dyn}
- fowners root:named /var/bind/named.cache /var/bind/pri/{127,localhost}.zone /etc/bind/{bind.keys,named.conf}
- fperms 0640 /var/bind/named.cache /var/bind/pri/{127,localhost}.zone /etc/bind/{bind.keys,named.conf}
- fperms 0750 /etc/bind /var/bind/pri
- fperms 0770 /var/{run,log}/named /var/bind/{,sec,dyn}
-
- systemd_dounit "${FILESDIR}/named.service"
- systemd_dotmpfilesd "${FILESDIR}/named.conf"
- exeinto /usr/libexec
- doexe "${FILESDIR}/generate-rndc-key.sh"
-}
-
-pkg_postinst() {
- if [ ! -f '/etc/bind/rndc.key' ]; then
- if use urandom; then
- einfo "Using /dev/urandom for generating rndc.key"
- /usr/sbin/rndc-confgen -r /dev/urandom -a
- echo
- else
- einfo "Using /dev/random for generating rndc.key"
- /usr/sbin/rndc-confgen -a
- echo
- fi
- chown root:named /etc/bind/rndc.key
- chmod 0640 /etc/bind/rndc.key
- fi
-
- einfo
- einfo "You can edit /etc/conf.d/named to customize named settings"
- einfo
- use mysql || use postgres || use ldap && {
- elog "If your named depends on MySQL/PostgreSQL or LDAP,"
- elog "uncomment the specified rc_named_* lines in your"
- elog "/etc/conf.d/named config to ensure they'll start before bind"
- einfo
- }
- einfo "If you'd like to run bind in a chroot AND this is a new"
- einfo "install OR your bind doesn't already run in a chroot:"
- einfo "1) Uncomment and set the CHROOT variable in /etc/conf.d/named."
- einfo "2) Run \`emerge --config '=${CATEGORY}/${PF}'\`"
- einfo
-
- CHROOT=$(source /etc/conf.d/named 2>/dev/null; echo ${CHROOT})
- if [[ -n ${CHROOT} ]]; then
- elog "NOTE: As of net-dns/bind-9.4.3_p5-r1 the chroot part of the init-script got some major changes!"
- elog "To enable the old behaviour (without using mount) uncomment the"
- elog "CHROOT_NOMOUNT option in your /etc/conf.d/named config."
- elog "If you decide to use the new/default method, ensure to make backup"
- elog "first and merge your existing configs/zones to /etc/bind and"
- elog "/var/bind because bind will now mount the needed directories into"
- elog "the chroot dir."
- fi
-
- ewarn
- ewarn "NOTE: /var/bind/named.ca has been renamed to /var/bind/named.cache"
- ewarn "you may need to fix your named.conf!"
- ewarn
- ewarn "NOTE: If you upgrade from <net-dns/bind-9.4.3_p5-r1, you may encounter permission problems"
- ewarn "To fix the permissions do:"
- ewarn "chown root:named /{etc,var}/bind /var/{run,log}/named /var/bind/{sec,pri,dyn}"
- ewarn "chown root:named /var/bind/named.cache /var/bind/pri/{127,localhost}.zone /etc/bind/{bind.keys,named.conf}"
- ewarn "chmod 0640 /var/bind/named.cache /var/bind/pri/{127,localhost}.zone /etc/bind/{bind.keys,named.conf}"
- ewarn "chmod 0750 /etc/bind /var/bind/pri"
- ewarn "chmod 0770 /var/{run,log}/named /var/bind/{,sec,dyn}"
- ewarn
-}
-
-pkg_config() {
- CHROOT=$(source /etc/conf.d/named; echo ${CHROOT})
- CHROOT_NOMOUNT=$(source /etc/conf.d/named; echo ${CHROOT_NOMOUNT})
- CHROOT_GEOIP=$(source /etc/conf.d/named; echo ${CHROOT_GEOIP})
-
- if [[ -z "${CHROOT}" ]]; then
- eerror "This config script is designed to automate setting up"
- eerror "a chrooted bind/named. To do so, please first uncomment"
- eerror "and set the CHROOT variable in '/etc/conf.d/named'."
- die "Unset CHROOT"
- fi
- if [[ -d "${CHROOT}" ]]; then
- ewarn "NOTE: As of net-dns/bind-9.4.3_p5-r1 the chroot part of the init-script got some major changes!"
- ewarn "To enable the old behaviour (without using mount) uncomment the"
- ewarn "CHROOT_NOMOUNT option in your /etc/conf.d/named config."
- ewarn
- ewarn "${CHROOT} already exists... some things might become overridden"
- ewarn "press CTRL+C if you don't want to continue"
- sleep 10
- fi
-
- echo; einfo "Setting up the chroot directory..."
-
- mkdir -m 0750 -p ${CHROOT}
- mkdir -m 0755 -p ${CHROOT}/{dev,etc,var/{run,log}}
- 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[gost]; then
- if [ "$(get_libdir)" = "lib64" ]; then
- mkdir -m 0755 -p ${CHROOT}/usr/lib64/engines
- ln -s lib64 ${CHROOT}/usr/lib
- else
- mkdir -m 0755 -p ${CHROOT}/usr/lib/engines
- fi
- fi
- chown root:named ${CHROOT} ${CHROOT}/var/{bind,{run,log}/named} ${CHROOT}/etc/bind
-
- mknod ${CHROOT}/dev/null c 1 3
- chmod 0666 ${CHROOT}/dev/null
-
- mknod ${CHROOT}/dev/zero c 1 5
- chmod 0666 ${CHROOT}/dev/zero
-
- if use urandom; then
- mknod ${CHROOT}/dev/urandom c 1 9
- chmod 0666 ${CHROOT}/dev/urandom
- else
- mknod ${CHROOT}/dev/random c 1 8
- chmod 0666 ${CHROOT}/dev/random
- fi
-
- if [ "${CHROOT_NOMOUNT:-0}" -ne 0 ]; then
- cp -a /etc/bind ${CHROOT}/etc/
- cp -a /var/bind ${CHROOT}/var/
- fi
-
- if [ "${CHROOT_GEOIP:-0}" -eq 1 ]; then
- mkdir -m 0755 -p ${CHROOT}/usr/share/GeoIP
- fi
-
- elog "You may need to add the following line to your syslog-ng.conf:"
- elog "source jail { unix-stream(\"${CHROOT}/dev/log\"); };"
-}