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