Gentoo Archives: gentoo-commits

From: Christian Ruppert <idl0r@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-dns/bind/
Date: Mon, 25 Feb 2019 14:33:46
Message-Id: 1551105210.0b90f38d20fc568d335775761334f68d5ccafab8.idl0r@gentoo
1 commit: 0b90f38d20fc568d335775761334f68d5ccafab8
2 Author: Christian Ruppert <idl0r <AT> gentoo <DOT> org>
3 AuthorDate: Mon Feb 25 14:26:55 2019 +0000
4 Commit: Christian Ruppert <idl0r <AT> gentoo <DOT> org>
5 CommitDate: Mon Feb 25 14:33:30 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0b90f38d
7
8 net-dns/bind: Cleanup old version
9
10 Package-Manager: Portage-2.3.62, Repoman-2.3.12
11 Signed-off-by: Christian Ruppert <idl0r <AT> gentoo.org>
12
13 net-dns/bind/Manifest | 1 -
14 net-dns/bind/bind-9.11.4_p2.ebuild | 405 -------------------------------------
15 net-dns/bind/metadata.xml | 1 -
16 3 files changed, 407 deletions(-)
17
18 diff --git a/net-dns/bind/Manifest b/net-dns/bind/Manifest
19 index a66bfcf96cf..cc27a263920 100644
20 --- a/net-dns/bind/Manifest
21 +++ b/net-dns/bind/Manifest
22 @@ -1,4 +1,3 @@
23 -DIST bind-9.11.4_p2.tar.gz 9617963 BLAKE2B 409cad7e0976f2e46406d45e87241d61d4d4f00bf08442c4dddbad490ea3d6e42eaad5851fddb83c61a897689a8fdba0cd920aaa0d36329868d26100ba48f946 SHA512 6c01810526fc40485a6c0403d1ddc3b76d2e59b3426b5789436bd671f158d2fa0ea7c0aef2de81998ec715dabd06683fed7b17224d5c794c61e7100a69d4cb60
24 DIST bind-9.12.2_p2.tar.gz 9422128 BLAKE2B c7d56f025f381a0136aa67ccd49a3254fcfe566d5e3601410e5cada26ccab32a901fe6e14bc14e6e287fa2b3904a4eee8e3ef63329f9bc4cb11f204590ff3623 SHA512 458adf6b3d0df286e7d345a21c40b639efcb275e76f9e0bf4e40a5d76dcac875016324393e129f29397be326d1017367c506ec9cbb35871c98fad4281bc4e05a
25 DIST bind-9.12.3_p1.tar.gz 8625693 BLAKE2B 1899e04e409d3dafe63494fb7a0d8b813a6487754149bbfd01888cddc5e134ac675e9ac790684fb6fd8de4b1484e23ed7f1881c01234c9f16b27180c9a4594a9 SHA512 c1c91de88e4297e79b527775edd525c6fa948f169977563ab2e6ca93cac7317f8ca85863567f5cc151d4c6e3c081864ab1cf813bcfdd1165b52e9471b8317c28
26 DIST dyndns-samples.tbz2 22866 BLAKE2B 409890653c6536cb9c0e3ba809d2bfde0e0ae73a2a101b4f229b46c01568466bc022bbbc37712171adbd08c572733e93630feab95a0fcd1ac50a7d37da1d1108 SHA512 83b0bf99f8e9ff709e8e9336d8c5231b98a4b5f0c60c10792f34931e32cc638d261967dfa5a83151ec3740977d94ddd6e21e9ce91267b3e279b88affdbc18cac
27
28 diff --git a/net-dns/bind/bind-9.11.4_p2.ebuild b/net-dns/bind/bind-9.11.4_p2.ebuild
29 deleted file mode 100644
30 index b9ad5d4514c..00000000000
31 --- a/net-dns/bind/bind-9.11.4_p2.ebuild
32 +++ /dev/null
33 @@ -1,405 +0,0 @@
34 -# Copyright 1999-2019 Gentoo Authors
35 -# Distributed under the terms of the GNU General Public License v2
36 -
37 -# Re dlz/mysql and threads, needs to be verified..
38 -# MySQL uses thread local storage in its C api. Thus MySQL
39 -# requires that each thread of an application execute a MySQL
40 -# thread initialization to setup the thread local storage.
41 -# This is impossible to do safely while staying within the DLZ
42 -# driver API. This is a limitation caused by MySQL, and not the DLZ API.
43 -# Because of this BIND MUST only run with a single thread when
44 -# using the MySQL driver.
45 -
46 -EAPI=7
47 -
48 -PYTHON_COMPAT=( python2_7 python3_{4,5,6,7} )
49 -
50 -inherit python-r1 eutils autotools toolchain-funcs flag-o-matic multilib db-use user systemd
51 -
52 -MY_PV="${PV/_p/-P}"
53 -MY_PV="${MY_PV/_rc/rc}"
54 -MY_P="${PN}-${MY_PV}"
55 -
56 -SDB_LDAP_VER="1.1.0-fc14"
57 -
58 -RRL_PV="${MY_PV}"
59 -
60 -NSLINT_DIR="contrib/nslint-3.0a2/"
61 -
62 -# SDB-LDAP: http://bind9-ldap.bayour.com/
63 -
64 -DESCRIPTION="BIND - Berkeley Internet Name Domain - Name Server"
65 -HOMEPAGE="http://www.isc.org/software/bind"
66 -SRC_URI="https://www.isc.org/downloads/file/${MY_P}/?version=tar-gz -> ${P}.tar.gz
67 - doc? ( mirror://gentoo/dyndns-samples.tbz2 )"
68 -# sdb-ldap? (
69 -# http://ftp.disconnected-by-peer.at/pub/bind-sdb-ldap-${SDB_LDAP_VER}.patch.bz2
70 -# )"
71 -
72 -LICENSE="Apache-2.0 BSD BSD-2 GPL-2 HPND ISC MPL-2.0"
73 -SLOT="0"
74 -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"
75 -# -berkdb by default re bug 602682
76 -IUSE="-berkdb +caps dlz dnstap doc filter-aaaa fixed-rrset geoip gost gssapi idn ipv6
77 -json ldap libressl lmdb mysql odbc postgres python rpz seccomp selinux ssl static-libs
78 -+threads urandom xml +zlib"
79 -# sdb-ldap - patch broken
80 -# no PKCS11 currently as it requires OpenSSL to be patched, also see bug 409687
81 -
82 -REQUIRED_USE="postgres? ( dlz )
83 - berkdb? ( dlz )
84 - mysql? ( dlz !threads )
85 - odbc? ( dlz )
86 - ldap? ( dlz )
87 - gost? ( !libressl ssl )
88 - threads? ( caps )
89 - dnstap? ( threads )
90 - python? ( ${PYTHON_REQUIRED_USE} )"
91 -# sdb-ldap? ( dlz )
92 -
93 -DEPEND="
94 - ssl? (
95 - !libressl? ( dev-libs/openssl:0[-bindist] )
96 - libressl? ( dev-libs/libressl )
97 - )
98 - mysql? ( >=virtual/mysql-4.0 )
99 - odbc? ( >=dev-db/unixODBC-2.2.6 )
100 - ldap? ( net-nds/openldap )
101 - idn? ( net-dns/idnkit )
102 - postgres? ( dev-db/postgresql:= )
103 - caps? ( >=sys-libs/libcap-2.1.0 )
104 - xml? ( dev-libs/libxml2 )
105 - geoip? ( >=dev-libs/geoip-1.4.6 )
106 - gssapi? ( virtual/krb5 )
107 - gost? ( >=dev-libs/openssl-1.0.0:0[-bindist] )
108 - seccomp? ( sys-libs/libseccomp )
109 - json? ( dev-libs/json-c:= )
110 - lmdb? ( dev-db/lmdb )
111 - zlib? ( sys-libs/zlib )
112 - dnstap? ( dev-libs/fstrm dev-libs/protobuf-c )
113 - python? (
114 - ${PYTHON_DEPS}
115 - dev-python/ply[${PYTHON_USEDEP}]
116 - )"
117 -# sdb-ldap? ( net-nds/openldap )
118 -
119 -RDEPEND="${DEPEND}
120 - selinux? ( sec-policy/selinux-bind )
121 - || ( sys-process/psmisc >=sys-freebsd/freebsd-ubin-9.0_rc sys-process/fuser-bsd )"
122 -
123 -S="${WORKDIR}/${MY_P}"
124 -
125 -# bug 479092, requires networking
126 -RESTRICT="test"
127 -
128 -pkg_setup() {
129 - ebegin "Creating named group and user"
130 - enewgroup named 40
131 - enewuser named 40 -1 /etc/bind named
132 - eend ${?}
133 -}
134 -
135 -src_prepare() {
136 - default
137 -
138 - # Adjusting PATHs in manpages
139 - for i in bin/{named/named.8,check/named-checkconf.8,rndc/rndc.8} ; do
140 - sed -i \
141 - -e 's:/etc/named.conf:/etc/bind/named.conf:g' \
142 - -e 's:/etc/rndc.conf:/etc/bind/rndc.conf:g' \
143 - -e 's:/etc/rndc.key:/etc/bind/rndc.key:g' \
144 - "${i}" || die "sed failed, ${i} doesn't exist"
145 - done
146 -
147 -# if use dlz; then
148 -# # sdb-ldap patch as per bug #160567
149 -# # Upstream URL: http://bind9-ldap.bayour.com/
150 -# # New patch take from bug 302735
151 -# if use sdb-ldap; then
152 -# epatch "${WORKDIR}"/${PN}-sdb-ldap-${SDB_LDAP_VER}.patch
153 -# cp -fp contrib/sdb/ldap/ldapdb.[ch] bin/named/
154 -# cp -fp contrib/sdb/ldap/{ldap2zone.1,ldap2zone.c} bin/tools/
155 -# cp -fp contrib/sdb/ldap/{zone2ldap.1,zone2ldap.c} bin/tools/
156 -# fi
157 -# fi
158 -
159 - # should be installed by bind-tools
160 - sed -i -r -e "s:(nsupdate|dig|delv) ::g" bin/Makefile.in || die
161 -
162 - # Disable tests for now, bug 406399
163 - sed -i '/^SUBDIRS/s:tests::' bin/Makefile.in lib/Makefile.in || die
164 -
165 - # bug #220361
166 - rm aclocal.m4
167 - rm -rf libtool.m4/
168 - eautoreconf
169 -}
170 -
171 -src_configure() {
172 - local myeconfargs=(
173 - --sysconfdir=/etc/bind
174 - --localstatedir=/var
175 - --with-libtool
176 - --enable-full-report
177 - --without-readline
178 - $(use_enable caps linux-caps)
179 - $(use_enable filter-aaaa)
180 - $(use_enable fixed-rrset)
181 - $(use_enable ipv6)
182 - $(use_enable rpz rpz-nsdname)
183 - $(use_enable rpz rpz-nsip)
184 - $(use_enable seccomp)
185 - # $(use_enable static-libs static)
186 - $(use_enable threads)
187 - $(use_with berkdb dlz-bdb)
188 - $(use_with dlz dlopen)
189 - $(use_with dlz dlz-filesystem)
190 - $(use_with dlz dlz-stub)
191 - $(use_with gost)
192 - $(use_with gssapi)
193 - $(use_with idn)
194 - $(use_with json libjson)
195 - $(use_with ldap dlz-ldap)
196 - $(use_with mysql dlz-mysql)
197 - $(use_with odbc dlz-odbc)
198 - $(use_with postgres dlz-postgres)
199 - $(use_with lmdb)
200 - $(use_with python)
201 - $(use_with ssl ecdsa)
202 - $(use_with ssl openssl "${EPREFIX}"/usr)
203 - $(use_with xml libxml2)
204 - $(use_with zlib)
205 - )
206 -
207 - if use urandom; then
208 - myeconfargs+=( --with-randomdev=/dev/urandom )
209 - else
210 - myeconfargs+=( --with-randomdev=/dev/random )
211 - fi
212 -
213 - use geoip && myeconfargs+=( --with-geoip )
214 -
215 - # bug #158664
216 -# gcc-specs-ssp && replace-flags -O[23s] -O
217 -
218 - # To include db.h from proper path
219 - use berkdb && append-flags "-I$(db_includedir)"
220 -
221 - export BUILD_CC=$(tc-getBUILD_CC)
222 - econf "${myeconfargs[@]}"
223 -
224 - # bug #151839
225 - echo '#undef SO_BSDCOMPAT' >> config.h
226 -}
227 -
228 -src_install() {
229 - emake DESTDIR="${D}" install
230 -
231 - dodoc CHANGES README
232 -
233 - if use idn; then
234 - dodoc contrib/idn/README.idnkit
235 - fi
236 -
237 - if use doc; then
238 - dodoc doc/arm/Bv9ARM.pdf
239 -
240 - docinto misc
241 - dodoc doc/misc/*
242 -
243 - # might a 'html' useflag make sense?
244 - docinto html
245 - dodoc -r doc/arm/*
246 -
247 - docinto contrib
248 - dodoc contrib/scripts/{nanny.pl,named-bootconf.sh}
249 -
250 - # some handy-dandy dynamic dns examples
251 - pushd "${ED%/}"/usr/share/doc/${PF} 1>/dev/null || die
252 - tar xf "${DISTDIR}"/dyndns-samples.tbz2 || die
253 - popd 1>/dev/null || die
254 - fi
255 -
256 - insinto /etc/bind
257 - newins "${FILESDIR}"/named.conf-r8 named.conf
258 -
259 - # ftp://ftp.rs.internic.net/domain/named.cache:
260 - insinto /var/bind
261 - newins "${FILESDIR}"/named.cache-r3 named.cache
262 -
263 - insinto /var/bind/pri
264 - newins "${FILESDIR}"/localhost.zone-r3 localhost.zone
265 -
266 - newinitd "${FILESDIR}"/named.init-r13 named
267 - newconfd "${FILESDIR}"/named.confd-r7 named
268 -
269 - if use gost; then
270 - sed -e 's/^OPENSSL_LIBGOST=${OPENSSL_LIBGOST:-0}$/OPENSSL_LIBGOST=${OPENSSL_LIBGOST:-1}/' \
271 - -i "${ED%/}/etc/init.d/named" || die
272 - else
273 - sed -e 's/^OPENSSL_LIBGOST=${OPENSSL_LIBGOST:-1}$/OPENSSL_LIBGOST=${OPENSSL_LIBGOST:-0}/' \
274 - -i "${ED%/}/etc/init.d/named" || die
275 - fi
276 -
277 - newenvd "${FILESDIR}"/10bind.env 10bind
278 -
279 - # Let's get rid of those tools and their manpages since they're provided by bind-tools
280 - rm -f "${ED%/}"/usr/share/man/man1/{dig,host,nslookup}.1*
281 - rm -f "${ED%/}"/usr/share/man/man8/nsupdate.8*
282 - rm -f "${ED%/}"/usr/bin/{dig,host,nslookup,nsupdate}
283 - rm -f "${ED%/}"/usr/sbin/{dig,host,nslookup,nsupdate}
284 - for tool in dsfromkey importkey keyfromlabel keygen \
285 - revoke settime signzone verify; do
286 - rm -f "${ED%/}"/usr/{,s}bin/dnssec-"${tool}"
287 - rm -f "${ED%/}"/usr/share/man/man8/dnssec-"${tool}".8*
288 - done
289 -
290 - # bug 405251, library archives aren't properly handled by --enable/disable-static
291 - if ! use static-libs; then
292 - find "${ED}" -type f -name '*.a' -delete || die
293 - fi
294 -
295 - # bug 405251
296 - find "${ED}" -type f -name '*.la' -delete || die
297 -
298 - if use python; then
299 - install_python_tools() {
300 - dosbin bin/python/dnssec-{checkds,coverage}
301 - }
302 - python_foreach_impl install_python_tools
303 -
304 - python_replicate_script "${ED%/}/usr/sbin/dnssec-checkds"
305 - python_replicate_script "${ED%/}/usr/sbin/dnssec-coverage"
306 - fi
307 -
308 - # bug 450406
309 - dosym named.cache /var/bind/root.cache
310 -
311 - dosym /var/bind/pri /etc/bind/pri
312 - dosym /var/bind/sec /etc/bind/sec
313 - dosym /var/bind/dyn /etc/bind/dyn
314 - keepdir /var/bind/{pri,sec,dyn}
315 -
316 - dodir /var/log/named
317 -
318 - fowners root:named /{etc,var}/bind /var/log/named /var/bind/{sec,pri,dyn}
319 - fowners root:named /var/bind/named.cache /var/bind/pri/localhost.zone /etc/bind/{bind.keys,named.conf}
320 - fperms 0640 /var/bind/named.cache /var/bind/pri/localhost.zone /etc/bind/{bind.keys,named.conf}
321 - fperms 0750 /etc/bind /var/bind/pri
322 - fperms 0770 /var/log/named /var/bind/{,sec,dyn}
323 -
324 - systemd_newunit "${FILESDIR}/named.service-r1" named.service
325 - systemd_dotmpfilesd "${FILESDIR}"/named.conf
326 - exeinto /usr/libexec
327 - doexe "${FILESDIR}/generate-rndc-key.sh"
328 -}
329 -
330 -pkg_postinst() {
331 - if [ ! -f '/etc/bind/rndc.key' ]; then
332 - if use urandom; then
333 - einfo "Using /dev/urandom for generating rndc.key"
334 - /usr/sbin/rndc-confgen -r /dev/urandom -a
335 - echo
336 - else
337 - einfo "Using /dev/random for generating rndc.key"
338 - /usr/sbin/rndc-confgen -a
339 - echo
340 - fi
341 - chown root:named /etc/bind/rndc.key || die
342 - chmod 0640 /etc/bind/rndc.key || die
343 - fi
344 -
345 - einfo
346 - einfo "You can edit /etc/conf.d/named to customize named settings"
347 - einfo
348 - use mysql || use postgres || use ldap && {
349 - elog "If your named depends on MySQL/PostgreSQL or LDAP,"
350 - elog "uncomment the specified rc_named_* lines in your"
351 - elog "/etc/conf.d/named config to ensure they'll start before bind"
352 - einfo
353 - }
354 - einfo "If you'd like to run bind in a chroot AND this is a new"
355 - einfo "install OR your bind doesn't already run in a chroot:"
356 - einfo "1) Uncomment and set the CHROOT variable in /etc/conf.d/named."
357 - einfo "2) Run \`emerge --config '=${CATEGORY}/${PF}'\`"
358 - einfo
359 -
360 - CHROOT=$(source /etc/conf.d/named 2>/dev/null; echo ${CHROOT})
361 - if [[ -n ${CHROOT} ]]; then
362 - elog "NOTE: As of net-dns/bind-9.4.3_p5-r1 the chroot part of the init-script got some major changes!"
363 - elog "To enable the old behaviour (without using mount) uncomment the"
364 - elog "CHROOT_NOMOUNT option in your /etc/conf.d/named config."
365 - elog "If you decide to use the new/default method, ensure to make backup"
366 - elog "first and merge your existing configs/zones to /etc/bind and"
367 - elog "/var/bind because bind will now mount the needed directories into"
368 - elog "the chroot dir."
369 - fi
370 -}
371 -
372 -pkg_config() {
373 - CHROOT=$(source /etc/conf.d/named; echo ${CHROOT})
374 - CHROOT_NOMOUNT=$(source /etc/conf.d/named; echo ${CHROOT_NOMOUNT})
375 - CHROOT_GEOIP=$(source /etc/conf.d/named; echo ${CHROOT_GEOIP})
376 -
377 - if [[ -z "${CHROOT}" ]]; then
378 - eerror "This config script is designed to automate setting up"
379 - eerror "a chrooted bind/named. To do so, please first uncomment"
380 - eerror "and set the CHROOT variable in '/etc/conf.d/named'."
381 - die "Unset CHROOT"
382 - fi
383 - if [[ -d "${CHROOT}" ]]; then
384 - ewarn "NOTE: As of net-dns/bind-9.4.3_p5-r1 the chroot part of the init-script got some major changes!"
385 - ewarn "To enable the old behaviour (without using mount) uncomment the"
386 - ewarn "CHROOT_NOMOUNT option in your /etc/conf.d/named config."
387 - ewarn
388 - ewarn "${CHROOT} already exists... some things might become overridden"
389 - ewarn "press CTRL+C if you don't want to continue"
390 - sleep 10
391 - fi
392 -
393 - echo; einfo "Setting up the chroot directory..."
394 -
395 - mkdir -m 0750 -p ${CHROOT} || die
396 - mkdir -m 0755 -p ${CHROOT}/{dev,etc,var/log,run} || die
397 - mkdir -m 0750 -p ${CHROOT}/etc/bind || die
398 - mkdir -m 0770 -p ${CHROOT}/var/{bind,log/named} ${CHROOT}/run/named/ || die
399 - # As of bind 9.8.0
400 - if has_version net-dns/bind[gost]; then
401 - mkdir -m 0755 -p ${CHROOT}/usr/$(get_libdir)/engines || die
402 - if [ "$(get_libdir)" = "lib64" ]; then
403 - ln -s lib64 ${CHROOT}/usr/lib || die
404 - fi
405 - fi
406 - chown root:named \
407 - ${CHROOT} \
408 - ${CHROOT}/var/{bind,log/named} \
409 - ${CHROOT}/run/named/ \
410 - ${CHROOT}/etc/bind \
411 - || die
412 -
413 - mknod ${CHROOT}/dev/null c 1 3 || die
414 - chmod 0666 ${CHROOT}/dev/null || die
415 -
416 - mknod ${CHROOT}/dev/zero c 1 5 || die
417 - chmod 0666 ${CHROOT}/dev/zero || die
418 -
419 - if use urandom; then
420 - mknod ${CHROOT}/dev/urandom c 1 9 || die
421 - chmod 0666 ${CHROOT}/dev/urandom || die
422 - else
423 - mknod ${CHROOT}/dev/random c 1 8 || die
424 - chmod 0666 ${CHROOT}/dev/random || die
425 - fi
426 -
427 - if [ "${CHROOT_NOMOUNT:-0}" -ne 0 ]; then
428 - cp -a /etc/bind ${CHROOT}/etc/ || die
429 - cp -a /var/bind ${CHROOT}/var/ || die
430 - fi
431 -
432 - if [ "${CHROOT_GEOIP:-0}" -eq 1 ]; then
433 - mkdir -m 0755 -p ${CHROOT}/usr/share/GeoIP || die
434 - fi
435 -
436 - elog "You may need to add the following line to your syslog-ng.conf:"
437 - elog "source jail { unix-stream(\"${CHROOT}/dev/log\"); };"
438 -}
439
440 diff --git a/net-dns/bind/metadata.xml b/net-dns/bind/metadata.xml
441 index 06a3fa600f2..9db4d957126 100644
442 --- a/net-dns/bind/metadata.xml
443 +++ b/net-dns/bind/metadata.xml
444 @@ -10,7 +10,6 @@
445 <flag name="dnstap">Enables dnstap packet logging</flag>
446 <flag name="dnsrps">Enable the DNS Response Policy Service (DNSRPS) API, a mechanism to allow an external response policy provider</flag>
447 <flag name="dlz">Enables dynamic loaded zones, 3rd party extension</flag>
448 - <flag name="filter-aaaa">Enable filtering of AAAA records over IPv4</flag>
449 <flag name="fixed-rrset">Enables fixed rrset-order option</flag>
450 <flag name="gost">Enables gost OpenSSL engine support</flag>
451 <flag name="gssapi">Enable gssapi support</flag>