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