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