1 |
idl0r 11/09/01 15:20:13 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: bind-9.8.1.ebuild |
5 |
Removed: bind-9.8.0_p4.ebuild |
6 |
Log: |
7 |
Version bump to 9.8.1. Add "dnssec-validation auto" example to named.conf. |
8 |
|
9 |
(Portage version: 2.2.0_alpha51/cvs/Linux x86_64) |
10 |
|
11 |
Revision Changes Path |
12 |
1.349 net-dns/bind/ChangeLog |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/bind/ChangeLog?rev=1.349&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/bind/ChangeLog?rev=1.349&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/bind/ChangeLog?r1=1.348&r2=1.349 |
17 |
|
18 |
Index: ChangeLog |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/net-dns/bind/ChangeLog,v |
21 |
retrieving revision 1.348 |
22 |
retrieving revision 1.349 |
23 |
diff -u -r1.348 -r1.349 |
24 |
--- ChangeLog 9 Jul 2011 16:31:30 -0000 1.348 |
25 |
+++ ChangeLog 1 Sep 2011 15:20:13 -0000 1.349 |
26 |
@@ -1,6 +1,12 @@ |
27 |
# ChangeLog for net-dns/bind |
28 |
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/net-dns/bind/ChangeLog,v 1.348 2011/07/09 16:31:30 armin76 Exp $ |
30 |
+# $Header: /var/cvsroot/gentoo-x86/net-dns/bind/ChangeLog,v 1.349 2011/09/01 15:20:13 idl0r Exp $ |
31 |
+ |
32 |
+*bind-9.8.1 (01 Sep 2011) |
33 |
+ |
34 |
+ 01 Sep 2011; Christian Ruppert <idl0r@g.o> -bind-9.8.0_p4.ebuild, |
35 |
+ +bind-9.8.1.ebuild, files/named.conf-r5: |
36 |
+ Version bump to 9.8.1. Add "dnssec-validation auto" example to named.conf. |
37 |
|
38 |
09 Jul 2011; Raúl Porcel <armin76@g.o> bind-9.7.3_p3.ebuild: |
39 |
alpha/arm/ia64/s390/sh/sparc stable wrt #374201 |
40 |
|
41 |
|
42 |
|
43 |
1.1 net-dns/bind/bind-9.8.1.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/bind/bind-9.8.1.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-dns/bind/bind-9.8.1.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: bind-9.8.1.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2011 Gentoo Foundation |
51 |
# Distributed under the terms of the GNU General Public License v2 |
52 |
# $Header: /var/cvsroot/gentoo-x86/net-dns/bind/bind-9.8.1.ebuild,v 1.1 2011/09/01 15:20:13 idl0r Exp $ |
53 |
|
54 |
EAPI="3" |
55 |
|
56 |
inherit eutils autotools toolchain-funcs flag-o-matic multilib |
57 |
|
58 |
MY_PV="${PV/_p/-P}" |
59 |
MY_PV="${MY_PV/_rc/rc}" |
60 |
MY_P="${PN}-${MY_PV}" |
61 |
|
62 |
SDB_LDAP_VER="1.1.0-fc14" |
63 |
|
64 |
# bind-9.8.0-P1-geoip-1.3.patch |
65 |
GEOIP_PV=1.3 |
66 |
#GEOIP_PV_AGAINST="${MY_PV}" |
67 |
GEOIP_PV_AGAINST="9.8.0-P1" |
68 |
GEOIP_P="bind-${GEOIP_PV_AGAINST}-geoip-${GEOIP_PV}" |
69 |
GEOIP_PATCH_A="${GEOIP_P}.patch" |
70 |
GEOIP_DOC_A="bind-geoip-1.3-readme.txt" |
71 |
GEOIP_SRC_URI_BASE="http://bind-geoip.googlecode.com/" |
72 |
|
73 |
DESCRIPTION="BIND - Berkeley Internet Name Domain - Name Server" |
74 |
HOMEPAGE="http://www.isc.org/software/bind" |
75 |
SRC_URI="ftp://ftp.isc.org/isc/bind9/${MY_PV}/${MY_P}.tar.gz |
76 |
doc? ( mirror://gentoo/dyndns-samples.tbz2 ) |
77 |
geoip? ( ${GEOIP_SRC_URI_BASE}/files/${GEOIP_DOC_A} |
78 |
${GEOIP_SRC_URI_BASE}/files/${GEOIP_PATCH_A} ) |
79 |
sdb-ldap? ( http://ftp.disconnected-by-peer.at/pub/bind-sdb-ldap-${SDB_LDAP_VER}.patch.bz2 )" |
80 |
|
81 |
LICENSE="as-is" |
82 |
SLOT="0" |
83 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" |
84 |
IUSE="ssl ipv6 doc dlz postgres berkdb mysql odbc ldap selinux idn threads |
85 |
resolvconf urandom xml geoip gssapi sdb-ldap" |
86 |
|
87 |
DEPEND="ssl? ( >=dev-libs/openssl-0.9.6g ) |
88 |
mysql? ( >=virtual/mysql-4.0 ) |
89 |
odbc? ( >=dev-db/unixODBC-2.2.6 ) |
90 |
ldap? ( net-nds/openldap ) |
91 |
idn? ( net-dns/idnkit ) |
92 |
postgres? ( dev-db/postgresql-base ) |
93 |
threads? ( >=sys-libs/libcap-2.1.0 ) |
94 |
xml? ( dev-libs/libxml2 ) |
95 |
geoip? ( >=dev-libs/geoip-1.4.6 ) |
96 |
gssapi? ( virtual/krb5 ) |
97 |
sdb-ldap? ( net-nds/openldap )" |
98 |
|
99 |
RDEPEND="${DEPEND} |
100 |
selinux? ( sec-policy/selinux-bind ) |
101 |
resolvconf? ( net-dns/openresolv ) |
102 |
sys-process/psmisc" |
103 |
|
104 |
S="${WORKDIR}/${MY_P}" |
105 |
|
106 |
pkg_setup() { |
107 |
use threads && { |
108 |
ewarn |
109 |
ewarn "If you're in vserver enviroment, you're probably want to" |
110 |
ewarn "disable threads support because of linux capabilities dependency" |
111 |
ewarn |
112 |
} |
113 |
|
114 |
ebegin "Creating named group and user" |
115 |
enewgroup named 40 |
116 |
enewuser named 40 -1 /etc/bind named |
117 |
eend ${?} |
118 |
} |
119 |
|
120 |
src_prepare() { |
121 |
# Adjusting PATHs in manpages |
122 |
for i in bin/{named/named.8,check/named-checkconf.8,rndc/rndc.8} ; do |
123 |
sed -i \ |
124 |
-e 's:/etc/named.conf:/etc/bind/named.conf:g' \ |
125 |
-e 's:/etc/rndc.conf:/etc/bind/rndc.conf:g' \ |
126 |
-e 's:/etc/rndc.key:/etc/bind/rndc.key:g' \ |
127 |
"${i}" || die "sed failed, ${i} doesn't exist" |
128 |
done |
129 |
|
130 |
if use dlz; then |
131 |
# bind fails to reconnect to MySQL5 databases, bug #180720, patch by Nicolas Brousse |
132 |
# (http://www.shell-tips.com/2007/09/04/bind-950-patch-dlz-mysql-5-for-auto-reconnect/) |
133 |
if use mysql && has_version ">=dev-db/mysql-5"; then |
134 |
epatch "${FILESDIR}"/bind-dlzmysql5-reconnect.patch |
135 |
fi |
136 |
|
137 |
if use odbc; then |
138 |
epatch "${FILESDIR}/${PN}-9.7.3-odbc-dlz-detect.patch" |
139 |
fi |
140 |
fi |
141 |
|
142 |
# should be installed by bind-tools |
143 |
sed -i -r -e "s:(nsupdate|dig) ::g" bin/Makefile.in || die |
144 |
|
145 |
# sdb-ldap patch as per bug #160567 |
146 |
# Upstream URL: http://bind9-ldap.bayour.com/ |
147 |
# New patch take from bug 302735 |
148 |
if use sdb-ldap; then |
149 |
epatch "${WORKDIR}"/${PN}-sdb-ldap-${SDB_LDAP_VER}.patch |
150 |
cp -fp contrib/sdb/ldap/ldapdb.[ch] bin/named |
151 |
cp -fp contrib/sdb/ldap/{ldap2zone.1,ldap2zone.c} bin/tools |
152 |
cp -fp contrib/sdb/ldap/{zone2ldap.1,zone2ldap.c} bin/tools |
153 |
fi |
154 |
|
155 |
if use geoip; then |
156 |
cp "${DISTDIR}"/${GEOIP_PATCH_A} "${S}" || die |
157 |
sed -i -e 's:RELEASETYPE=-P:RELEASETYPE=:' \ |
158 |
-e 's:RELEASEVER=1:RELEASEVER=:' ${GEOIP_PATCH_A} || die |
159 |
epatch ${GEOIP_PATCH_A} |
160 |
fi |
161 |
|
162 |
# bug #220361 |
163 |
rm {aclocal,libtool}.m4 |
164 |
WANT_AUTOCONF=2.5 AT_NO_RECURSIVE=1 eautoreconf |
165 |
|
166 |
# remove useless c++ checks |
167 |
epunt_cxx |
168 |
} |
169 |
|
170 |
src_configure() { |
171 |
local myconf="" |
172 |
|
173 |
use dlz && { |
174 |
myconf="${myconf} --with-dlz-filesystem --with-dlz-stub" |
175 |
use postgres && myconf="${myconf} --with-dlz-postgres" |
176 |
use mysql && myconf="${myconf} --with-dlz-mysql" |
177 |
use berkdb && myconf="${myconf} --with-dlz-bdb" |
178 |
use ldap && myconf="${myconf} --with-dlz-ldap" |
179 |
use odbc && myconf="${myconf} --with-dlz-odbc" |
180 |
} |
181 |
|
182 |
if use threads; then |
183 |
if use dlz && use mysql; then |
184 |
ewarn |
185 |
ewarn "MySQL uses thread local storage in its C api. Thus MySQL" |
186 |
ewarn "requires that each thread of an application execute a MySQL" |
187 |
ewarn "\"thread initialization\" to setup the thread local storage." |
188 |
ewarn "This is impossible to do safely while staying within the DLZ" |
189 |
ewarn "driver API. This is a limitation caused by MySQL, and not" |
190 |
ewarn "the DLZ API." |
191 |
ewarn "Because of this BIND MUST only run with a single thread when" |
192 |
ewarn "using the MySQL driver." |
193 |
ewarn |
194 |
myconf="${myconf} --disable-linux-caps --disable-threads" |
195 |
ewarn "Threading support disabled" |
196 |
else |
197 |
myconf="${myconf} --enable-linux-caps --enable-threads" |
198 |
einfo "Threading support enabled" |
199 |
fi |
200 |
else |
201 |
myconf="${myconf} --disable-linux-caps --disable-threads" |
202 |
fi |
203 |
|
204 |
if use urandom; then |
205 |
myconf="${myconf} --with-randomdev=/dev/urandom" |
206 |
else |
207 |
myconf="${myconf} --with-randomdev=/dev/random" |
208 |
fi |
209 |
|
210 |
use geoip && myconf="${myconf} --with-geoip" |
211 |
|
212 |
# bug #158664 |
213 |
gcc-specs-ssp && replace-flags -O[23s] -O |
214 |
|
215 |
export BUILD_CC=$(tc-getBUILD_CC) |
216 |
econf \ |
217 |
--sysconfdir=/etc/bind \ |
218 |
--localstatedir=/var \ |
219 |
--with-libtool \ |
220 |
$(use_with ssl openssl) \ |
221 |
$(use_with idn) \ |
222 |
$(use_enable ipv6) \ |
223 |
$(use_with xml libxml2) \ |
224 |
$(use_with gssapi) \ |
225 |
${myconf} |
226 |
|
227 |
# bug #151839 |
228 |
echo '#undef SO_BSDCOMPAT' >> config.h |
229 |
} |
230 |
|
231 |
src_install() { |
232 |
emake DESTDIR="${D}" install || die |
233 |
|
234 |
dodoc CHANGES FAQ README |
235 |
|
236 |
if use idn; then |
237 |
dodoc contrib/idn/README.idnkit || die |
238 |
fi |
239 |
|
240 |
if use doc; then |
241 |
dodoc doc/arm/Bv9ARM.pdf || die |
242 |
|
243 |
docinto misc |
244 |
dodoc doc/misc/* || die |
245 |
|
246 |
# might a 'html' useflag make sense? |
247 |
docinto html |
248 |
dohtml -r doc/arm/* || die |
249 |
|
250 |
docinto draft |
251 |
dodoc doc/draft/* || die |
252 |
|
253 |
docinto rfc |
254 |
dodoc doc/rfc/* || die |
255 |
|
256 |
docinto contrib |
257 |
dodoc contrib/named-bootconf/named-bootconf.sh \ |
258 |
contrib/nanny/nanny.pl || die |
259 |
|
260 |
# some handy-dandy dynamic dns examples |
261 |
cd "${D}"/usr/share/doc/${PF} |
262 |
tar xf "${DISTDIR}"/dyndns-samples.tbz2 || die |
263 |
fi |
264 |
|
265 |
use geoip && dodoc "${DISTDIR}"/${GEOIP_DOC_A} |
266 |
|
267 |
insinto /etc/bind |
268 |
newins "${FILESDIR}"/named.conf-r5 named.conf || die |
269 |
|
270 |
# ftp://ftp.rs.internic.net/domain/named.cache: |
271 |
insinto /var/bind |
272 |
doins "${FILESDIR}"/named.cache || die |
273 |
|
274 |
insinto /var/bind/pri |
275 |
newins "${FILESDIR}"/127.zone-r1 127.zone || die |
276 |
newins "${FILESDIR}"/localhost.zone-r3 localhost.zone || die |
277 |
|
278 |
newinitd "${FILESDIR}"/named.init-r11 named || die |
279 |
newconfd "${FILESDIR}"/named.confd-r6 named || die |
280 |
|
281 |
if use ssl && [ -e /usr/lib/engines/libgost.so ]; then |
282 |
sed -i -e 's/^OPENSSL_LIBGOST=${OPENSSL_LIBGOST:-0}$/OPENSSL_LIBGOST=${OPENSSL_LIBGOST:-1}/' "${D}/etc/init.d/named" || die |
283 |
else |
284 |
sed -i -e 's/^OPENSSL_LIBGOST=${OPENSSL_LIBGOST:-1}$/OPENSSL_LIBGOST=${OPENSSL_LIBGOST:-0}/' "${D}/etc/init.d/named" || die |
285 |
fi |
286 |
|
287 |
newenvd "${FILESDIR}"/10bind.env 10bind || die |
288 |
|
289 |
# Let's get rid of those tools and their manpages since they're provided by bind-tools |
290 |
rm -f "${D}"/usr/share/man/man1/{dig,host,nslookup}.1* |
291 |
rm -f "${D}"/usr/share/man/man8/{dnssec-keygen,nsupdate}.8* |
292 |
rm -f "${D}"/usr/bin/{dig,host,nslookup,dnssec-keygen,nsupdate} |
293 |
rm -f "${D}"/usr/sbin/{dig,host,nslookup,dnssec-keygen,nsupdate} |
294 |
|
295 |
dosym /var/bind/named.cache /var/bind/root.cache || die |
296 |
dosym /var/bind/pri /etc/bind/pri || die |
297 |
dosym /var/bind/sec /etc/bind/sec || die |
298 |
dosym /var/bind/dyn /etc/bind/dyn || die |
299 |
keepdir /var/bind/{pri,sec,dyn} |
300 |
|
301 |
dodir /var/{run,log}/named || die |
302 |
|
303 |
fowners root:named /{etc,var}/bind /var/{run,log}/named /var/bind/{sec,pri,dyn} |
304 |
fowners root:named /var/bind/named.cache /var/bind/pri/{127,localhost}.zone /etc/bind/{bind.keys,named.conf} |
305 |
fperms 0640 /var/bind/named.cache /var/bind/pri/{127,localhost}.zone /etc/bind/{bind.keys,named.conf} |
306 |
fperms 0750 /etc/bind /var/bind/pri |
307 |
fperms 0770 /var/{run,log}/named /var/bind/{,sec,dyn} |
308 |
} |
309 |
|
310 |
pkg_postinst() { |
311 |
if [ ! -f '/etc/bind/rndc.key' ]; then |
312 |
if use urandom; then |
313 |
einfo "Using /dev/urandom for generating rndc.key" |
314 |
/usr/sbin/rndc-confgen -r /dev/urandom -a |
315 |
echo |
316 |
else |
317 |
einfo "Using /dev/random for generating rndc.key" |
318 |
/usr/sbin/rndc-confgen -a |
319 |
echo |
320 |
fi |
321 |
chown root:named /etc/bind/rndc.key |
322 |
chmod 0640 /etc/bind/rndc.key |
323 |
fi |
324 |
|
325 |
einfo |
326 |
einfo "You can edit /etc/conf.d/named to customize named settings" |
327 |
einfo |
328 |
use mysql || use postgres || use ldap && { |
329 |
elog "If your named depends on MySQL/PostgreSQL or LDAP," |
330 |
elog "uncomment the specified rc_named_* lines in your" |
331 |
elog "/etc/conf.d/named config to ensure they'll start before bind" |
332 |
einfo |
333 |
} |
334 |
einfo "If you'd like to run bind in a chroot AND this is a new" |
335 |
einfo "install OR your bind doesn't already run in a chroot:" |
336 |
einfo "1) Uncomment and set the CHROOT variable in /etc/conf.d/named." |
337 |
einfo "2) Run \`emerge --config '=${CATEGORY}/${PF}'\`" |
338 |
einfo |
339 |
|
340 |
CHROOT=$(source /etc/conf.d/named 2>/dev/null; echo ${CHROOT}) |
341 |
if [[ -n ${CHROOT} ]]; then |
342 |
elog "NOTE: As of net-dns/bind-9.4.3_p5-r1 the chroot part of the init-script got some major changes!" |
343 |
elog "To enable the old behaviour (without using mount) uncomment the" |
344 |
elog "CHROOT_NOMOUNT option in your /etc/conf.d/named config." |
345 |
elog "If you decide to use the new/default method, ensure to make backup" |
346 |
elog "first and merge your existing configs/zones to /etc/bind and" |
347 |
elog "/var/bind because bind will now mount the needed directories into" |
348 |
elog "the chroot dir." |
349 |
fi |
350 |
|
351 |
ewarn |
352 |
ewarn "NOTE: /var/bind/named.ca has been renamed to /var/bind/named.cache" |
353 |
ewarn "you may need to fix your named.conf!" |
354 |
ewarn |
355 |
ewarn "NOTE: If you upgrade from <net-dns/bind-9.4.3_p5-r1, you may encounter permission problems" |
356 |
ewarn "To fix the permissions do:" |
357 |
ewarn "chown root:named /{etc,var}/bind /var/{run,log}/named /var/bind/{sec,pri,dyn}" |
358 |
ewarn "chown root:named /var/bind/named.cache /var/bind/pri/{127,localhost}.zone /etc/bind/{bind.keys,named.conf}" |
359 |
ewarn "chmod 0640 /var/bind/named.cache /var/bind/pri/{127,localhost}.zone /etc/bind/{bind.keys,named.conf}" |
360 |
ewarn "chmod 0750 /etc/bind /var/bind/pri" |
361 |
ewarn "chmod 0770 /var/{run,log}/named /var/bind/{,sec,dyn}" |
362 |
ewarn |
363 |
} |
364 |
|
365 |
pkg_config() { |
366 |
CHROOT=$(source /etc/conf.d/named; echo ${CHROOT}) |
367 |
CHROOT_NOMOUNT=$(source /etc/conf.d/named; echo ${CHROOT_NOMOUNT}) |
368 |
CHROOT_GEOIP=$(source /etc/conf.d/named; echo ${CHROOT_GEOIP}) |
369 |
|
370 |
if [[ -z "${CHROOT}" ]]; then |
371 |
eerror "This config script is designed to automate setting up" |
372 |
eerror "a chrooted bind/named. To do so, please first uncomment" |
373 |
eerror "and set the CHROOT variable in '/etc/conf.d/named'." |
374 |
die "Unset CHROOT" |
375 |
fi |
376 |
if [[ -d "${CHROOT}" ]]; then |
377 |
ewarn "NOTE: As of net-dns/bind-9.4.3_p5-r1 the chroot part of the init-script got some major changes!" |
378 |
ewarn "To enable the old behaviour (without using mount) uncomment the" |
379 |
ewarn "CHROOT_NOMOUNT option in your /etc/conf.d/named config." |
380 |
ewarn |
381 |
ewarn "${CHROOT} already exists... some things might become overridden" |
382 |
ewarn "press CTRL+C if you don't want to continue" |
383 |
sleep 10 |
384 |
fi |
385 |
|
386 |
echo; einfo "Setting up the chroot directory..." |
387 |
|
388 |
mkdir -m 0750 -p ${CHROOT} |
389 |
mkdir -m 0755 -p ${CHROOT}/{dev,etc,var/{run,log}} |
390 |
mkdir -m 0750 -p ${CHROOT}/etc/bind |
391 |
mkdir -m 0770 -p ${CHROOT}/var/{bind,{run,log}/named} |
392 |
# As of bind 9.8.0 |
393 |
if has_version net-dns/bind[ssl] -a -e /usr/lib/engines/libgost.so; then |
394 |
if [ "$(get_libdir)" = "lib64" ]; then |
395 |
mkdir -m 0755 -p ${CHROOT}/usr/lib64/engines |
396 |
ln -s lib64 ${CHROOT}/usr/lib |
397 |
else |
398 |
mkdir -m 0755 -p ${CHROOT}/usr/lib/engines |
399 |
fi |
400 |
fi |
401 |
chown root:named ${CHROOT} ${CHROOT}/var/{bind,{run,log}/named} ${CHROOT}/etc/bind |
402 |
|
403 |
mknod ${CHROOT}/dev/null c 1 3 |
404 |
chmod 0666 ${CHROOT}/dev/null |
405 |
|
406 |
mknod ${CHROOT}/dev/zero c 1 5 |
407 |
chmod 0666 ${CHROOT}/dev/zero |
408 |
|
409 |
if use urandom; then |
410 |
mknod ${CHROOT}/dev/urandom c 1 9 |
411 |
chmod 0666 ${CHROOT}/dev/urandom |
412 |
else |
413 |
mknod ${CHROOT}/dev/random c 1 8 |
414 |
chmod 0666 ${CHROOT}/dev/random |
415 |
fi |
416 |
|
417 |
if [ "${CHROOT_NOMOUNT:-0}" -ne 0 ]; then |
418 |
cp -a /etc/bind ${CHROOT}/etc/ |
419 |
cp -a /var/bind ${CHROOT}/var/ |
420 |
fi |
421 |
|
422 |
if [ "${CHROOT_GEOIP:-0}" -eq 1 ]; then |
423 |
mkdir -m 0755 -p ${CHROOT}/usr/share/GeoIP |
424 |
fi |
425 |
|
426 |
elog "You may need to add the following line to your syslog-ng.conf:" |
427 |
elog "source jail { unix-stream(\"${CHROOT}/dev/log\"); };" |
428 |
} |