Portage is a package management system used by Gentoo Linux
# ChangeLog for net-dns/bind
# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/net-dns/bind/ChangeLog,v 1.193 2008/06/06 14:40:52 dertobi123 Exp $
06 Jun 2008; Tobias Scherbaum
Remove useless DLZ_VERSION
*bind-9.5.0 (04 Jun 2008)
04 Jun 2008; Tobias Scherbaum
Version bump, #224239
29 May 2008; Raúl Porcel
bind-9.2.8-r3.ebuild, bind-9.3.4.ebuild, bind-9.3.4-r2.ebuild,
bind-9.3.4-r3.ebuild, bind-9.4.1-r1.ebuild, bind-9.4.1_p1.ebuild:
Fix depend on openresolv, since resolvconf-gentoo is masked
11 May 2008;
- cross compile fix
09 May 2008; Tobias Scherbaum
Fix building with libtool-2, patch by Rafał Mużyło and Christian
Schmidt, #220361
03 May 2008; Tobias Scherbaum
+files/bind-dlzmysql5-reconnect.patch, bind-9.4.2.ebuild:
Fix dlz/mysql5 autoreconnect, patch by Nicolas Brousse, #180720
03 May 2008; Tobias Scherbaum
-bind-9.3.3.ebuild:
Nuke 9.2.7 and 9.3.3 (# 208676)
*bind-9.4.2 (03 May 2008)
03 May 2008; Tobias Scherbaum
files/named.ca, +bind-9.4.2.ebuild:
Bump to 9.4.2, add epunt_cxx to remove useless c++ checks (# 185596),
update hints file wrt new ip for L root server and IPv6 additions
(#197959), fix 127.zone configuration (# 198011), move resolconf use to
RDEPEND and add openresolv (# 218808)
17 Mar 2008;
bind-9.4.1-r1.ebuild, bind-9.4.1_p1.ebuild:
Drop to ~mips due to unstable deps
29 Feb 2008; Raúl Porcel
bind-9.2.8-r3.ebuild, bind-9.3.2-r5.ebuild, bind-9.3.4-r3.ebuild:
alpha/ia64/sparc/x86 stable
01 Aug 2007; Joshua Kinard
Stable on mips, per #186556.
30 Jul 2007; Markus Rothe
Stable on ppc64; bug #186556
28 Jul 2007; Steve Dibb
amd64 stable, security bug 186556
28 Jul 2007; Tobias Scherbaum
bind-9.4.1_p1.ebuild:
ppc stable, bug #186556
28 Jul 2007; Raúl Porcel
alpha/ia64/x86 stable wrt security #186556
27 Jul 2007; Gustavo Zacarias
Stable on sparc wrt security #186556
27 Jul 2007; Jeroen Roovers
Stable for HPPA (bug #186556).
*bind-9.4.1_p1 (27 Jul 2007)
27 Jul 2007; Tobias Scherbaum
+bind-9.4.1_p1.ebuild:
Version bump, bug #186556
21 Jun 2007; Raúl Porcel
ia64 stable wrt security #131337
21 Jun 2007; Joshua Kinard
Stable on mips, per #131337.
17 Jun 2007; René Nussbaumer
Stable on hppa. See bug #181556.
17 Jun 2007; Tobias Scherbaum
bind-9.4.1-r1.ebuild:
ppc stable, bug #181556
12 Jun 2007;
marking stable on amd64
11 Jun 2007; Raúl Porcel
alpha/x86 stable and add ~ia64 wrt #181556
11 Jun 2007; Gustavo Zacarias
Stable on sparc wrt #181556
11 Jun 2007; Markus Rothe
Stable on ppc64; bug #181556
10 Jun 2007; Joshua Kinard
Marked unstable on mips, per #181556.
*bind-9.4.1-r1 (02 Jun 2007)
*bind-9.3.4-r3 (02 Jun 2007)
*bind-9.2.8-r3 (02 Jun 2007)
02 Jun 2007; Konstantin V. Arkhipov
+files/named.confd-r2, +files/named.init-r5, -bind-9.2.8-r2.ebuild,
+bind-9.2.8-r3.ebuild, +bind-9.3.4-r3.ebuild, -bind-9.4.1.ebuild,
+bind-9.4.1-r1.ebuild:
Closing bugs #151839 and #175644.
12 May 2007; Roy Marples
Fix chroots for non bash shells, #178050 thanks to Pierre Guinoiseau.
12 May 2007; Joshua Kinard
Stable on mips.
11 May 2007; Konstantin V. Arkhipov
Closing bug #177902.
06 May 2007; Marius Mauch
bind-9.2.6-r3.ebuild, bind-9.2.6-r4.ebuild, bind-9.2.6-r5.ebuild,
bind-9.2.7.ebuild, bind-9.2.8.ebuild, bind-9.2.8-r2.ebuild,
bind-9.3.2.ebuild, bind-9.3.2-r3.ebuild, bind-9.3.2-r4.ebuild,
bind-9.3.2-r5.ebuild, bind-9.3.3.ebuild, bind-9.3.4.ebuild,
bind-9.3.4-r2.ebuild, bind-9.4.1.ebuild:
Replacing einfo with elog/ewarn.
*bind-9.4.1 (01 May 2007)
01 May 2007; Konstantin V. Arkhipov
-bind-9.4.0-r2.ebuild, +bind-9.4.1.ebuild:
Version bump wrt bug #176677.
28 Apr 2007; Sven Wegener
bind-9.2.6-r3.ebuild, bind-9.2.6-r4.ebuild, bind-9.2.6-r5.ebuild,
bind-9.2.7.ebuild, bind-9.2.8.ebuild, bind-9.2.8-r2.ebuild,
bind-9.3.2.ebuild, bind-9.3.2-r3.ebuild, bind-9.3.2-r4.ebuild,
bind-9.3.2-r5.ebuild, bind-9.3.3.ebuild, bind-9.3.4.ebuild,
bind-9.3.4-r2.ebuild, bind-9.4.0-r2.ebuild:
Fix *initd, *confd and *envd calls (#173884, #174266)
22 Apr 2007; Raúl Porcel
ia64 stable
16 Apr 2007; Markus Rothe
Stable on ppc64
06 Apr 2007; Tobias Scherbaum
bind-9.3.4-r2.ebuild:
ppc stable
22 Mar 2007; Gustavo Zacarias
Stable on sparc
13 Mar 2007; Konstantin V. Arkhipov
bind-9.3.4-r2.ebuild:
Stable on amd64 due to ssp-related problems.
13 Mar 2007; Tony Vroon
Mark stable on X86, this is the only 9.3.4 so far that does not silently
implode on hardened systems.
*bind-9.2.8-r2 (12 Mar 2007)
12 Mar 2007; Konstantin V. Arkhipov
-bind-9.2.8-r1.ebuild, +bind-9.2.8-r2.ebuild:
Filtering propagated from 9.3/9.4 branches, bug #158664.
*bind-9.4.0-r2 (12 Mar 2007)
*bind-9.3.4-r2 (12 Mar 2007)
12 Mar 2007; Konstantin V. Arkhipov
-bind-9.3.4-r1.ebuild, +bind-9.3.4-r2.ebuild, -bind-9.4.0-r1.ebuild,
+bind-9.4.0-r2.ebuild:
Added CFLAGS filtering for ssp-enabled compilers, wrt to bug #158664, comment
#31.
*bind-9.4.0-r1 (02 Mar 2007)
02 Mar 2007; Konstantin V. Arkhipov
+files/bind-9.4.0-dlzbdb-close_cursor.patch,
-files/bind-9.4.0_rc2-missing_odbc_test.patch, -bind-9.4.0.ebuild,
+bind-9.4.0-r1.ebuild:
Support for /dev/urandom added, patch by Aurélien Requiem
*bind-9.4.0 (28 Feb 2007)
28 Feb 2007; Konstantin V. Arkhipov
-bind-9.4.0_rc2.ebuild, +bind-9.4.0.ebuild:
Version bump, closing bug #168356.
*bind-9.3.4-r1 (22 Feb 2007)
*bind-9.2.8-r1 (22 Feb 2007)
22 Feb 2007; Konstantin V. Arkhipov
+files/bind-dlzbdb-close_cursor.patch, +bind-9.2.8-r1.ebuild,
+bind-9.3.4-r1.ebuild:
Closing bug #167605.
14 Feb 2007; Bryan Østergaard
bind-9.3.4.ebuild:
Stable on IA64, bug 163692.
13 Feb 2007; Markus Rothe
bind-9.3.4.ebuild:
Stable on ppc64; bug #163692
13 Feb 2007; Marcus D. Hanwell
bind-9.3.4.ebuild:
Stable on amd64, bug 163692.
10 Feb 2007; Jose Luis Rivero
bind-9.3.4.ebuild:
Stable on alpha wrt security #163692
08 Feb 2007; Tobias Scherbaum
Stable on ppc wrt bug #163692.
07 Feb 2007; Gustavo Zacarias
bind-9.3.4.ebuild:
Stable on sparc wrt security #163692
07 Feb 2007; Jeroen Roovers
Stable for HPPA (bug #163692).
07 Feb 2007; Jeroen Roovers
Stable for HPPA (bug #163692).
06 Feb 2007; Raúl Porcel
bind-9.3.4.ebuild:
x86 stable wrt security bug 163692
*bind-9.4.0_rc2 (06 Feb 2007)
*bind-9.3.4 (06 Feb 2007)
*bind-9.2.8 (06 Feb 2007)
06 Feb 2007; Martin Jackson
+files/bind-9.2.8-missing_odbc_test.patch,
+files/bind-9.3.4-missing_odbc_test.patch,
+files/bind-9.4.0_rc2-missing_odbc_test.patch, +bind-9.2.8.ebuild,
+bind-9.3.4.ebuild, +bind-9.4.0_rc2.ebuild:
Updates for bugs #163691 #163692 and #164293
20 Dec 2006; René Nussbaumer
Stable on hppa. See bug #158217.
19 Dec 2006; Tobias Scherbaum
Stable on ppc wrt bug #158217.
18 Dec 2006; Markus Rothe
bind-9.3.3.ebuild:
Stable on ppc64; bug #158217
18 Dec 2006; Gustavo Zacarias
Stable on sparc too bleh me
18 Dec 2006; Gustavo Zacarias
Stable on sparc wrt security #158217
18 Dec 2006; Konstantin V. Arkhipov
bind-9.3.3.ebuild:
Goes stable on amd64 wrt security bug #158217.
18 Dec 2006; Christian Faulhammer
bind-9.3.3.ebuild:
stable x86, security bug #158217
*bind-9.3.3 (17 Dec 2006)
*bind-9.2.7 (17 Dec 2006)
17 Dec 2006; Konstantin V. Arkhipov
+files/localhost.zone-r2, +bind-9.2.7.ebuild, +bind-9.3.3.ebuild:
Version bumps, wrt security bugs #158217 and #131337. Also closing #153601 and
#151839. Support for net-dns/resolvconf-gentoo added.
23 Nov 2006; Francesco Riosa
bind-9.2.6-r3.ebuild, bind-9.2.6-r4.ebuild, bind-9.2.6-r5.ebuild,
bind-9.3.2.ebuild, bind-9.3.2-r3.ebuild, bind-9.3.2-r4.ebuild,
bind-9.3.2-r5.ebuild:
dev-db/mysql => virtual/mysql
*bind-9.3.2-r5 (22 Oct 2006)
*bind-9.2.6-r5 (22 Oct 2006)
22 Oct 2006; Konstantin V. Arkhipov
+bind-9.2.6-r5.ebuild, +bind-9.3.2-r5.ebuild:
Closing bugs #130649 and #151839.
22 Sep 2006; Javier Villavicencio
bind-9.3.2-r4.ebuild:
Add ~x86-fbsd keyword.
19 Sep 2006; Konstantin Arkhipov
bind-9.3.2-r4.ebuild:
Closing bug #148178.
14 Sep 2006; Gustavo Zacarias
bind-9.3.2-r4.ebuild:
Stable on hppa wrt security #146486
13 Sep 2006; Aron Griffis
Mark 9.3.2-r4 stable on ia64. #146486
13 Sep 2006; Aron Griffis
bind-9.2.6-r3.ebuild, bind-9.2.6-r4.ebuild, bind-9.3.2.ebuild,
bind-9.3.2-r3.ebuild, bind-9.3.2-r4.ebuild:
Use -j1 unconditionally since the Makefiles aren't parallel safe. Checking
for distcc in FEATURES is bogus.
12 Sep 2006; Tony Vroon
bind-9.3.2-r4.ebuild:
Stable on X86 wrt security bug #146486.
12 Sep 2006; Thomas Cort
bind-9.3.2-r4.ebuild:
Stable on alpha wrt security Bug #146486.
12 Sep 2006; Jason Wever
Stable on SPARC wrt security bug #146486.
11 Sep 2006; Markus Rothe
bind-9.3.2-r4.ebuild:
Stable on ppc64; bug #146486
11 Sep 2006; Tobias Scherbaum
bind-9.3.2-r4.ebuild:
ppc stable, bug #146486
11 Sep 2006; Konstantin Arkhipov
bind-9.2.6-r4.ebuild:
Goes stable on amd64.
*bind-9.3.2-r4 (11 Sep 2006)
*bind-9.2.6-r4 (11 Sep 2006)
11 Sep 2006; Konstantin Arkhipov
+bind-9.2.6-r4.ebuild:
Bump, bug #146486.
*bind-9.3.2-r3 (31 Jul 2006)
*bind-9.2.6-r3 (31 Jul 2006)
31 Jul 2006; Konstantin Arkhipov
+bind-9.2.6-r3.ebuild, -bind-9.3.2-r2.ebuild, -bind-9.2.6-r2.ebuild:
Closing bug #139354.
28 Jul 2006; Konstantin Arkhipov
bind-9.2.6-r2.ebuild:
Corrected postinst's info, wrt bug #140371.
04 Jul 2006; Konstantin Arkhipov
-bind-9.2.6-r1.ebuild, +bind-9.3.2-r2.ebuild, -bind-9.3.2-r1.ebuild:
Closing bug #132109.
15 May 2006; Konstantin Arkhipov
-bind-9.2.5-r6.ebuild, bind-9.2.6.ebuild, bind-9.2.6-r1.ebuild,
bind-9.3.2.ebuild, bind-9.3.2-r1.ebuild:
Dropped unneeded deps as suggested by phreak, cleaned out 9.2.5 ebuilds.
25 Apr 2006; Thomas Cort
bind-9.3.2.ebuild:
Stable on alpha wrt Bug #122561.
20 Apr 2006; Konstantin Arkhipov
bind-9.2.6.ebuild, bind-9.3.2.ebuild, bind-9.2.5-r6.ebuild:
enew{user,group} moved to pkg_setup().
*bind-9.3.2-r1 (26 Mar 2006)
*bind-9.2.5-r1 (26 Mar 2006)
26 Mar 2006; Konstantin Arkhipov
+bind-9.2.6-r1.ebuild, +files/bind-dlzbdb-includes.patch:
Closing bugs: #119679, #124680, #127564.
23 Feb 2006; Konstantin Arkhipov
bind-9.2.5-r6.ebuild, bind-9.2.6.ebuild, bind-9.3.2.ebuild,
-files/dyndns-samples.tbz2:
Moved to mirror wrt bug #123634.
20 Feb 2006; Joshua Kinard
bind-9.3.2.ebuild:
Marked stable on mips.
17 Feb 2006; Joseph Jezak
Marked ppc stable for bug #122561.
17 Feb 2006; Michael Hanselmann
Stable on ppc.
15 Feb 2006; Mark Loeser
bind-9.3.2.ebuild:
Stable on x86; bug #122561
16 Feb 2006; Konstantin Arkhipov
bind-9.3.2.ebuild:
Stable on amd64, bug #122561.
15 Feb 2006; Markus Rothe
bind-9.3.2.ebuild:
Stable on ppc64; bug #122561
14 Feb 2006; Gustavo Zacarias
bind-9.3.2.ebuild:
Stable on sparc wrt #122561
*bind-9.3.2 (02 Jan 2006)
*bind-9.2.6 (02 Jan 2006)
02 Jan 2006; Konstantin Arkhipov
+bind-9.3.2.ebuild, -bind-9.3.1-r8.ebuild, -bind-9.3.2_beta2-r2.ebuild,
-bind-9.2.5-r10.ebuild:
Version bump.
02 Jan 2006; Konstantin Arkhipov
Restored wrongly deleted conf file. Closing bug #114770.
*bind-9.3.2_beta2-r2 (12 Nov 2005)
*bind-9.3.1-r8 (12 Nov 2005)
*bind-9.2.5-r10 (12 Nov 2005)
12 Nov 2005; Konstantin Arkhipov
-bind-9.3.1-r7.ebuild, -bind-9.3.2_beta2-r1.ebuild, +bind-9.2.5-r10.ebuild,
+bind-9.3.1-r8.ebuild, +bind-9.3.2_beta2-r2.ebuild:
Closing bugs #106784 and #106974.
*bind-9.3.2_beta2-r1 (11 Nov 2005)
11 Nov 2005; Konstantin Arkhipov
-files/localhost, -files/named.conf-r1, -files/named.conf-r2,
-bind-9.3.2_beta2.ebuild, +bind-9.3.2_beta2-r1.ebuild:
Cleaned out unused files, bug #108123 fixed only in 9.3.2_beta2 for now.
*bind-9.3.2_beta2 (09 Nov 2005)
*bind-9.3.1-r7 (09 Nov 2005)
*bind-9.2.5-r9 (09 Nov 2005)
09 Nov 2005; Konstantin Arkhipov
-bind-9.3.1-r6.ebuild, -bind-9.3.2_beta1.ebuild, -files/named.init-r3,
-files/named.confd-r1, +bind-9.3.2_beta2.ebuild, +bind-9.3.1-r7.ebuild,
+bind-9.2.5-r9.ebuild, +files/named.init-r3, +files/named.confd-r1:
Once again closing #107724. Also parallel build is now disabled only for
distcc-systems.
02 Nov 2005; Konstantin Arkhipov
Dropped all stable keywords due to compile races and bug #107724.
31 Oct 2005; Gustavo Zacarias
Stable on sparc
30 Oct 2005; Konstantin Arkhipov
bind-9.2.5-r6.ebuild, bind-9.2.5-r8.ebuild, bind-9.3.1-r6.ebuild,
bind-9.3.2_beta1.ebuild:
Chroot's configuration way changed wrt bug #109482. Added warning about
vserver' enviroment.
Also 9.3.1 finally goes stable on amd64 and x86.
*bind-9.3.2_beta1 (17 Oct 2005)
17 Oct 2005; Konstantin Arkhipov
Beta bump wrt bug #109587.
*bind-9.2.5-r8 (01 Oct 2005)
*bind-9.3.1-r6 (01 Oct 2005)
01 Oct 2005; Konstantin Arkhipov
+bind-9.3.1-r6.ebuild, -bind-9.2.5-r7.ebuild, -bind-9.3.1-r5.ebuild,
-files/named.init-r1, +files/named.init-r2:
Be more accuracy when looking for pid-file. Thanks to Kerin Millar
*bind-9.2.5-r7 (30 Sep 2005)
*bind-9.3.1-r5 (30 Sep 2005)
30 Sep 2005; Konstantin Arkhipov
+bind-9.3.1-r5.ebuild, +files/named.init-r1, -bind-9.3.1-r4.ebuild:
Closing bugs regarding pid-file detecting: #107724 and #102135.
24 Sep 2005; Markus Rothe
Stable on ppc64
17 Sep 2005; Michael Hanselmann
Stable on ppc.
17 Sep 2005; Aron Griffis
Mark 9.2.5-r6 stable on ia64
15 Sep 2005; Aron Griffis
Mark 9.2.5-r6 stable on alpha
14 Sep 2005; Gustavo Zacarias
Stable on sparc
13 Sep 2005; Konstantin Arkhipov
Goes stable on x86 and amd64.
*bind-9.2.5-r6 (02 Sep 2005)
*bind-9.3.1-r4 (02 Sep 2005)
02 Sep 2005; Konstantin Arkhipov
+bind-9.3.1-r4.ebuild, -bind-9.2.5-r5.ebuild, -bind-9.3.1-r3.ebuild:
Fixed enewuser wrt bug #103421.
*bind-9.2.5-r5 (03 Aug 2005)
*bind-9.3.1-r3 (03 Aug 2005)
03 Aug 2005; Konstantin Arkhipov
+bind-9.3.1-r3.ebuild, -bind-9.3.1-r1.ebuild, -bind-9.3.1-r2.ebuild,
+files/named.rc:
Closing bug #99597 by adding enew{user,group}. Closing bug #99878 by new
init script. Cleanups also.
02 Jul 2005; Konstantin Arkhipov
-bind-9.2.5.ebuild, -files/bind-9.2.2-mysql.patch:
Cleaning up.
29 Jun 2005; Joshua Kinard
Marked stable on mips.
*bind-9.3.1-r2 (23 Jun 2005)
23 Jun 2005; Konstantin Arkhipov
+files/named.init:
Added dlz-support to bind-9.3.1, ebuild submitted by
Francesco Riosa
17 Jun 2005; Michael Hanselmann
Stable on ppc.
12 Jun 2005; Bryan Østergaard
Stable on alpha.
06 Jun 2005; Markus Rothe
Stable on ppc64
20 May 2005; Gustavo Zacarias
Stable on sparc
18 May 2005; Konstantin Arkhipov
Goes stable on x86 and amd64.
10 May 2005; Konstantin Arkhipov
Added missing dependency on mysql for mysql-bind.
*bind-9.2.5-r4 (29 Apr 2005)
29 Apr 2005; Konstantin Arkhipov
+bind-9.2.5-r4.ebuild:
Now threading automatically disables when DLZ and MySQL is requested.
*bind-9.2.5-r3 (26 Apr 2005)
26 Apr 2005; Konstantin Arkhipov
+bind-9.2.5-r3.ebuild:
Fixed mysql path's, closing bug #90429. Also added missing ODBC dependency.
25 Apr 2005; Michael Hanselmann
Stable on ppc.
*bind-9.2.5-r2 (15 Apr 2005)
15 Apr 2005; Konstantin Arkhipov
+bind-9.2.5-r2.ebuild, -bind-9.3.1.ebuild, +bind-9.3.1-r1.ebuild,
+files/named.rc6-smart_pid_fix:
Dropped "caps" use flag. Capabilities now automatically enabled by ebuild,
if "threads" is used. Closes bug #89358.
Yet again fixed init-script, closes bug #65335 and bug #79875.
Patch provided by Jacob Joseph
13 Apr 2005; Konstantin Arkhipov
bind-9.2.5-r1.ebuild:
Added warning note about MX's priority argument, closing bug #88888.
*bind-9.2.5-r1 (12 Apr 2005)
12 Apr 2005; Konstantin Arkhipov
-bind-9.2.2-r1.ebuild, -bind-9.2.2-r2.ebuild, -bind-9.2.2-r4.ebuild,
-bind-9.2.2-r5.ebuild, -bind-9.2.3.ebuild, +bind-9.2.5-r1.ebuild,
bind-9.3.1.ebuild:
Dropped old ebuild, closing bug #88712 by 9.2.5-r1 and minor cosmetic
changes for 9.3.1.
10 Apr 2005; Joshua Kinard
Added ~mips to keywords.
06 Apr 2005; Bryan Østergaard
Stable on alpha, bug 87902.
04 Apr 2005; Michael Hanselmann
Stable on ppc.
04 Apr 2005; Guy Martin
Stable on hppa.
04 Apr 2005; Gustavo Zacarias
Stable on sparc wrt #87902
04 Apr 2005; Konstantin Arkhipov
nsupdate's sed should go after all patches.
04 Apr 2005; Konstantin Arkhipov
Stable on x86 and amd64 due to bug #87902.
25 Mar 2005; Sven Wegener
Fixed invalid atoms in *DEPEND.
*bind-9.3.1 (26 Mar 2005)
26 Mar 2005; Konstantin Arkhipov
-bind-9.3.0_rc2.ebuild, -bind-9.3.1_beta2.ebuild:
Version bump. Closing bugs #54230, #54230 and #76806.
However, masked for heavy testing.
*bind-9.2.5 (26 Mar 2005)
26 Mar 2005; Konstantin Arkhipov
+files/bind-9.2.5-berkdb_fix.patch, +files/bind-9.2.5-dlz-mysql.patch,
+files/bind-9.2.5-mysql.patch, +files/named.rc6-pid_fix:
Version bump. Also closes bugs: #45254, #32908, #48610, #58932, #51577,
#65885, #65885, #65885, #76348, #76820, #76820, #85292, #85419, #73257.
06 Feb 2005; Joshua Kinard
Marked stable on mips.
*bind-9.2.2-r5 (31 Jan 2005)
31 Jan 2005;
new ebuild for dlz support, see bug #60555, thanks to Charlie Gehlin
*bind-9.3.1_beta2 (28 Jan 2005)
28 Jan 2005; Robin H. Johnson
+bind-9.3.1_beta2.ebuild:
Bug #77989, new version of bind-9.3, masked.
01 Jan 2005; Jason Wever
Changed -sparc keyword to ~sparc.
03 Nov 2004; Bret Curtis
bind-9.2.2-r4.ebuild, bind-9.2.3.ebuild:
added to ~mips for testing
19 Oct 2004; Dylan Carlson
Stable on amd64.
29 Jul 2004; Guy Martin
Stable on hppa.
15 Jul 2004; Gustavo Zacarias
Stable on sparc
11 Jul 2004; Jeffrey Forman
bind-9.2.2-r3 stable on x86
*bind-9.3.0_rc2 (11 Jul 2004)
11 Jul 2004; Jeffrey Forman
initial bind-9.3.0rc2 into portage. had to remove --enable-threads, would not
allow -u named. please test why.
06 Jul 2004; Jeffrey Forman
Removing stale _rc1-r2 ebuild, later stable ones
*bind-9.2.2-r4 (23 Jun 2004)
23 June 2004; Jeffrey Forman
add mysql functionality into bind.
21 Jun 2004; Michael Sterrett
updated named.ca (bug #53848)
02 Jun 2004; Jon Portnoy
Remove metadata.
27 Apr 2004; Aron Griffis
Add inherit eutils
26 Apr 2004; Aron Griffis
bind-9.2.2-r2.ebuild, bind-9.2.2-r3.ebuild, bind-9.2.2.ebuild,
bind-9.2.2_rc1-r2.ebuild:
Add die following econf for bug 48950
12 Jan 2004; Martin Holzer
changed rc script. this should really close 31125.
30 Nov 2003; Chris PeBenito
bind-9.2.2-r2.ebuild, bind-9.2.2-r3.ebuild, bind-9.2.2.ebuild,
bind-9.2.2_rc1-r2.ebuild, bind-9.2.3.ebuild:
Add SELinux policy RDEP.
26 Nov 2003; Stewart Honsberger
bind-9.2.3.ebuild:
Marked 9.2.2 stable on PPC
Marked 9.2.3 unstable on all arches; critical library conflicts.
*bind-9.2.3 (29 Oct 2003)
29 Oct 2003; Stewart Honsberger
New BIND version; includes "Delegation-Only" patch, bugfixes
02 Oct 2003; Brad House
add ~amd64 flag
*bind-9.2.2-r3 (17 Sep 2003)
17 Sep 2003;
Recently verisign added a wildcard A record to the .COM and .NET TLD DNS zones
making all .com and .net domains appear to be registered. Adding ISC bind
patch. Updated ebuild submission by Bryan Stine. Added a few comments from
Danny and Corporate Gadfly to pkg_postinst.
15 Jul 2003; Martin Holzer
Fixed pid patch. Closes #24497
15 Jul 2003; Christian Birchinger
Added sparc stable keyword
29 Jun 2003; Martin Holzer
Fixed path to PIDFILE. Closes #23682.
10 Jun 2003;
DEPEND on sed >= 4
01 Jun 2003; Brandon Low
Fix rcfiles
*bind-9.2.2-r2 (27 Apr 2003)
03 Aug 2003; Guy Martin
Added hppa to KEYWORDS.
27 Apr 2003; Brandon Low
files/named.rc7:
Fix bug 19971.
*bind-9.2.2-r1 (19 Apr 2003)
19 Apr 2003; Brandon Low
files/127.zone, files/localhost.zone, files/named.conf-r2:
Fix bug 14467 WRT to .zone extension for zone files. Also keepdir dirs that
need to be kept.
*bind-9.2.2 (04 Mar 2003)
15 Apr 2003; Martin Holzer
Now ebuild config recreate chroot if deleted. closes #18290.
07 Apr 2003; Kyle Manna
Updated to match a root name server address being changed.
06 Apr 2003; Zach Welch
add arm keyword
30 Mar 2003; Christian Birchinger
Added sparc stable keyword
24 Mar 2003; Brandon Low
move to stable on x86, others please follow
04 Mar 2003; Brandon Low
files/10bind.env:
Update to latest version, and add /var/bind to env.d, this should make
it behave nicer when merging and no clobber config files.
*bind-9.2.2_rc1-r2 (14 Feb 2003)
14 Feb 2003; Nick Hadaway
files/digest-bind-9.2.2_rc1-r2, files/127, files/named.conf-r1 :
Updated default config so all 127.* traffic is localhost. Thanks
to Rich Edelman on bug #15637 for noticing this.
15 Dec 2002; Maik Schreiber
Added "use logger" (bug #8771).
06 Dec 2002; Rodney Rees
*bind-9.2.2_rc1-r1 (16 Aug 2002)
12 Oct 2002; Donny Davies
Help out the #8759 people ;)
06 Oct 2002; Jack Morgan
Added sparc/sparc64 to keywords
02 Oct 2002; Seemant Kulleen
Adjustment of files/{localhost,named.rc6} to be more gentoo friendly and
usable. Thanks to j2ee in #gentoo-dev in bug #7872
19 Aug 2002; Mark Guertin
Added ppc to keywords
16 Aug 2002; Seemant Kulleen
Many bugfixes with config files, and optional documentation installation
(doc USE flag). Thanks again to kevin@aptbasilicata.it (Maurizio
Disimino) in bug #6590.
*bind-9.2.2_rc1 (16 Aug 2002)
16 Aug 2002; Seemant Kulleen
files/nslookup.8 files/digest-bind-9.2.2_rc1 :
Security fix upgrade. Please see: http://www.kb.cert.org/vuls/id/803539
Thanks to kevin@aptbasilicata.it (Maurizio Disimino) in bug #6578.
*bind-9.2.1-r2 (5 Aug 2002)
8 Aug 2002; Kyle Manna
Minor changes yesterday and today. Hopefully we can unmask soon.
6 Aug 2002; Kyle Manna
Minor cosmetic changes. Nothing big enough to cause a revision bump.
5 Aug 2002; Kyle Manna
Added support for chroot, updated init script.
*bind-9.2.1-r1 (2 May 2002)
21 Jul 2002; Owen Stampflee
Added PPC to KEYWORDS.
20 Jul 2002; Kyle Manna
Moved away from emake to make. Parallel builds break on some systems.
1 Jun 2002; Kyle Manna
*Alot* of bug fixes:
+ We now have a man page for named.conf
+ Included a basic /etc/bind/named.conf
+ Will automatically create a /etc/bind/rndc.key if file doesn't exist
+ With the additon of rndc, we now have '/etc/init.d/named reload'
+ Chown /var/run/named and make sure it gets created, bug #2872
+ Moved root.cache to named.ca, it was annoying me ;)
+ Added multi-threading support to the default configure
+ Added support for 'use ssl' and 'use ipv6'
+ And other stuff
*bind-9.2.1 (2 May 2002)
2 May 2002; William McArthur
New upstream bugfix release, I just bumped the ebuild file name and added
a LICENSE line.
*bind-9.1.3-r7 (21 Mar 2002)
21 Mar 2002; Ferry Meyndert
Updated too new version
*bind-9.1.3-r7 (8 Feb 2002)
8 Feb 2002; Donny Davies
bind-9.1.3-r7.ebuild :
Close bug #483. Use /var/run/named for bind's pidfile.
*bind-9.1.3-r6 (1 Feb 2002)
1 Feb 2002; G.Bevin
Added initial ChangeLog which should be updated whenever the package is
updated in any way. This changelog is targetted to users. This means that the
comments should well explained and written in clean English. The details about
writing correct changelogs are explained in the skel.ChangeLog file which you
can find in the root directory of the portage repository.
AUX 10bind.env 27 RMD160 872245707b4f72a212cda162c59495744d77a6e3 SHA1 7b8c1abd5910bb7a07c6b7c820c2b34a534b2593 SHA256 5ad6a4402372b43809618051873b63646746f400447bba30dc4dfecd028e3650
AUX 127.zone 227 RMD160 66ab92f201d71da613702a85806d2e8d27f6516f SHA1 6787635fd44b1f29dc34b31053ca28e4353f69e0 SHA256 65b909fc1398dfa5b532ab395d6920758937093cf7e5b5bec8242dff4fe15e89
AUX bind-9.2.5-berkdb_fix.patch 537 RMD160 db4a569f94447687410d6c0145790185a5e2b177 SHA1 e21f0148987e79a27a5d3c662223fb743a67f6c9 SHA256 f2602bb014e5e60da50019447aefadff4ff352467ed9c360aaaec01b54115ff8
AUX bind-9.2.5-dlz-mysql.patch 11296 RMD160 8a414c89c2479ad1e0212b0d6e263bbc77bed4e8 SHA1 019b83f2f87919820267d473b05d57d2052c921d SHA256 c7130b90a0afa27d91117466a6e09783b43a0ae9227e86d9f2d7e08b89539b37
AUX bind-9.2.5-mysql.patch 11315 RMD160 6161e9ebaed3b13a64d3cc17edcce8a0e64e48fc SHA1 d22cf2f08c1f4a923513c8ae06a596ac51c2441c SHA256 f275c2f5566bdc57dbe54c6a17db4397f54999715bda1c06a5457b10a8dbbc94
AUX bind-9.2.8-missing_odbc_test.patch 613 RMD160 ec141cef65e470dfc8df4c641ec96bfbd5d8cdd1 SHA1 dbc3a933cac7e474fa62fb2f71e50be91825b963 SHA256 5e6465bdb01cbb662333cc2b0a00ad51905a0cda2eb6b7abc3a0b2dd3e701f4e
AUX bind-9.3.2-missing_odbc_test.patch 613 RMD160 ec141cef65e470dfc8df4c641ec96bfbd5d8cdd1 SHA1 dbc3a933cac7e474fa62fb2f71e50be91825b963 SHA256 5e6465bdb01cbb662333cc2b0a00ad51905a0cda2eb6b7abc3a0b2dd3e701f4e
AUX bind-9.3.4-missing_odbc_test.patch 613 RMD160 ec141cef65e470dfc8df4c641ec96bfbd5d8cdd1 SHA1 dbc3a933cac7e474fa62fb2f71e50be91825b963 SHA256 5e6465bdb01cbb662333cc2b0a00ad51905a0cda2eb6b7abc3a0b2dd3e701f4e
AUX bind-9.4.0-dlzbdb-close_cursor.patch 338 RMD160 3c92206a6c77ac8e9ea854dfc22fda5753b653a9 SHA1 903383e2b142d76a73030c27f2cdab8d100df150 SHA256 4a004d72565d6db683b879851ae8dfaddcf1b39fd0f97a995d9c5d22d72c6395
AUX bind-dlzbdb-close_cursor.patch 307 RMD160 1bbf09d393b5db40b483a952db5f39fe60efda7c SHA1 4214a98ca49b6b85366f85d40dd9d5bbfd008151 SHA256 e18fb5668ffaa540d8ec3e01fe40b1f0d1c562a094c06fa902ef67953daed9f5
AUX bind-dlzbdb-includes.patch 465 RMD160 07e120527c34ebc044f1312e491a8d8dc13ec558 SHA1 0184830214317aac4c2f60a8eeabdbbdbf3b2276 SHA256 16ac0b8ba61287a2172c99ab21dd66d0a46b104ef34f710da5933720604f70c6
AUX bind-dlzmysql5-reconnect.patch 1842 RMD160 687f6128b6511dbeecdfc81b197520b1afd74005 SHA1 7b9b8e1b85f1344e4b5d8566ab868fcb1e87a049 SHA256 7376ac37c2d3fbcf5d8e886008639bdbe642f44c9021f435af370bddd3f03bd4
AUX localhost.zone 412 RMD160 74d734f124f9078c300d089218536bcb108643d9 SHA1 8ed1efa7ba9560f59eff83712b65a4d75cee8340 SHA256 a67891fb66beb12999ade1b599f57a349337ec9a7f941962db94ac5816bc4088
AUX localhost.zone-r1 419 RMD160 4013a4c855081d823c3b17f898e483d96eac2c3a SHA1 e0c5329c72039b6abd5dca60199aee2b617475f3 SHA256 bb7ec96335f265f7d6d21b6dd63e0a794477c0ec2675864a4851717a72ac447f
AUX localhost.zone-r2 423 RMD160 d4b5c18d7f1678595799320b0bfa238d23e5119e SHA1 0e7bdf1cf307b553a572a6775efd69d9a254a77c SHA256 b6dff70386920adb21883566610b0a45b9de5a3847a870e4ad1902c5c7900399
AUX named.ca 2878 RMD160 f374039998071794501461ccc13012c052b7d117 SHA1 c2f8c46a51493e4209fca6c3f2ba7755ae6dcf2b SHA256 0bd88f7f5cab2f872d3619700e382c1df6837a8aacf28cf6a0bf336742a0ee56
AUX named.conf-r2 768 RMD160 911a089113451cf0ac58446069f6046b90f3250a SHA1 60ae31cde6a84694a1773de862c423c150e2f974 SHA256 1f6f47647c9e332ed6636f2b154cb23adad9ee53a50d0cec16b6243547418fb4
AUX named.conf-r3 1314 RMD160 b8189eaac58eb27b612eacc66826802748e145ca SHA1 d8b2af94a89472ed0b767bdebadcfebcbf6ddfd3 SHA256 ab2f7305e9a1d30406528c5ef079beb4970c89572e90d57bb5ddb27b8126ad13
AUX named.confd 319 RMD160 621fa073325cba947ffe63f7ff2867128bd90193 SHA1 c4fb9131c5b9b245ac247a2c0233dcb3bfa834da SHA256 c61a8f3b2488e0b007c9441a761026a94c40537acec4dbf7a9f8d22a14c4f3e0
AUX named.confd-r1 392 RMD160 eb80118694d541aeb06df96473ca7d226adf0f6c SHA1 8a0a19237cb661c9d10f545041783edc0f3795ce SHA256 7f985999486b6cfea652b7a7470976bc703c259ef8cbc1cedc3eaacb302805a6
AUX named.confd-r2 479 RMD160 0a0452bf9bb6f18d4628ee72abe82a52d484a2cb SHA1 d0b0e2f5d72d43862c5aaff9a226fd8599992323 SHA256 bae05257852ecbc7f66bd30e452162f15b6f6e8c3fc170fb6dfdfa7d22361915
AUX named.init 1641 RMD160 8f6ff9334b258a1167ac02572391bc4c71d946d2 SHA1 1dd468ba20c1c050b428d5dedd5bb61b44fc3006 SHA256 505604e2e1ac3d7f8e5aea74e1f9fba543570809dadc4769a0de179a10637c1b
AUX named.init-r2 1481 RMD160 e94af8ecbc639f59951ce9828fd3583e9616ca2a SHA1 e619db5d9370325e9bdb40e178dcf5da6f6809d8 SHA256 cbe7b55cf66b606ffede1847dec08e4810c1efd666d38ebc4f75dbe8277f1c13
AUX named.init-r3 1513 RMD160 f69d90d619de354b5962ba7d69c4f39e5e5ac747 SHA1 8cd9657761f1ed080e9a8494fdf0b472808e1a26 SHA256 244888788cd9ddd0f2bce687621d96ca4d8b960398b6bc3d5cb1da3639861fd4
AUX named.init-r4 1585 RMD160 30ed0f443f0ec1b63d3fd15e4d32fc79ad6199af SHA1 e600929124b4e993552896f6f111f06a706fed89 SHA256 f2eb9393a7380f670af0e09bd378cf619681e33b81ed7e5c7f5b7a1b01964821
AUX named.init-r5 1620 RMD160 37279362e437241188a07e5f274730e68645827e SHA1 00a14819a322b391183084c79cc9a4dc04d0d484 SHA256 07fb9d653f086319680d04abde0218495ed09d3528087257788bf294252a0bad
AUX named.rc 1644 RMD160 ab040b05deea9b8b1b2a8a75c174be103aa9a4a9 SHA1 1d3503cb3312f68851bda57c1fd23a90af36256e SHA256 07a1b0958594e067259cfbf8b6eeb33125536e2f82f0e63c2d802943eed1bdb6
AUX named.rc6 1434 RMD160 f56a0c837609467df4b18b63979542ee7447c83b SHA1 992ef568bade0a5125c58258019b725ca6ac8fc3 SHA256 2619fc7695b84a35f9362bc1c0da4a3835e207f99f1164a56e0bbb97e70df057
AUX named.rc6-pid_fix 488 RMD160 e59636895b54535a6e7e378635791c3c01728907 SHA1 3b57a5dce713716617de2e94eb1cb53b9876fc84 SHA256 612fbc406fff920a4a2a35ee6146ff31cf8ca1535b21a6a5eed1c912ee631cb5
AUX named.rc6-smart_pid_fix 1204 RMD160 376ecf34ef5543571f1551a7d83da504ac420628 SHA1 7da3b265235a486686affc2806bd497d98ffc68b SHA256 703aa04162bee124fd492c991ba21ca7276112c61c297f0fa424e2cd4333f060
DIST bind-9.2.6-P1.tar.gz 5126606 RMD160 5fbfe63c6ff5c28dbbf9c800e13264b7618df9b4 SHA1 ced5d6b3efc68f5ac5b558dc5bb85f26cbffd170 SHA256 ecd5180b6afbaecac6a468462e7378e37bc1cc118c4ca9749da74e23c11893e8
DIST bind-9.2.6.tar.gz 5125776 RMD160 6c732cf9fbc9c68d822833689088701af97a6b3a SHA1 0d6e714298f8f9e2384ecd9ce38b148043ec1596 SHA256 05f4be2c62beacc38a5ab29520a33ec1f716222f3f09634ec89345671b4c758d
DIST bind-9.2.8.tar.gz 5208805 RMD160 4bdba3e75a9d188d05787ca553aa656a416d4534 SHA1 77694d04be063f071e48b243ddb441451410ca57 SHA256 4c037a1ffe71f8baa8b416589faa0a3c312b2afe7b79bde9ebf9bbde5af5a11d
DIST bind-9.3.2-P1.tar.gz 5303237 RMD160 49c1f9ba1d9a4d831ed6dfbe7997c8d5fcd3dcf8 SHA1 4172b7a2814707efecf60a3c484d9fc90e06abfb SHA256 7c61230a0bd5b85de383a7053ec9b1b101295aa6a6bb681968f5fe0deeacefe0
DIST bind-9.3.2.tar.gz 5302112 RMD160 c825b6308eb374e9bcf9b6ccc48f65d8753c0a6d SHA1 13efeaf496ed110980088fb5cbe22460f04a0fac SHA256 4d4298abd85d06083a0643091dde05ffbe3db051439524dbe4a81c689735c694
DIST bind-9.3.4.tar.gz 5405022 RMD160 8b5fda9542f6afbe7ffb857d72f7e545237d7826 SHA1 f53c7e24157ae1fd881834351804bfee3c2782ee SHA256 40152026af715b15ac958f374394e5189a099b562eb913470ccc43f6fbd19c21
DIST bind-9.4.1-P1.tar.gz 6341409 RMD160 ced75a96098d78a7fdd8cc1d1e3daf2ad142ee9f SHA1 c65bfd3d6ff1dd78b678fe350e323bfb6d47fe1b SHA256 912d07be9a6b4fa180d38637bf32ac4e802b087e46fbbf2a76314ecc3444b693
DIST bind-9.4.1.tar.gz 6334215 RMD160 53dcfa9a0e2422aeb9f3e4d12f09b1595784cb45 SHA1 d00899008cac044c34084cfc0b0d3b402b0d24c8 SHA256 79c671ec6c32d84984a5a07e691dbed57a744c3602837cc8e3f4fd0e450a42fa
DIST bind-9.4.2.tar.gz 6574042 RMD160 61d7cb11d6c8cf6857658c2d0bb7474855bc8c1e SHA1 7a42377da256b146a66ea182cc665e857d76c218 SHA256 5add82a67dc98b89b4a0f95a467480b0f6b7d3a6b563a13076d9f701286960bd
DIST bind-9.5.0.tar.gz 6749437 RMD160 1f40217a7baab442f30e024698999ba845f6f05d SHA1 8d622ebcb6061518770cbc66072258c7ff051cb8 SHA256 fbb4c02c792a5298f8c71d617dfbab2acebbbdd51ea1d1e94d1aa66de48ddd61
DIST ctrix_dlz_9.3.2b1.patch.bz2 60982 RMD160 dd76c79d58fdcf75d5c991bac4b6de54aeb4f8bb SHA1 a3c65ef330846f62e22655261954a7fe982cb616 SHA256 f0764290a08b4a839eae8b82a6e27301ce9ff41f3132f697139d73698f89cffc
DIST ctrix_dlz_9.3.3.patch.bz2 66143 RMD160 ee3a7ef8e1b3167ff572ca8a7836a8d4d64a834d SHA1 9fb2faab9112529c8784be7d44df60b38e710371 SHA256 6550455ba37f5f25f047078bedf825d05eab45bbc4a3d8b7bf23a716749423cf
DIST dlz-9.2.5.patch.bz2 135932 RMD160 d1686658b04b8896828e0b40c1cb869a2b3735f1 SHA1 d90b47284260dbc1437232b44da5d9a98ae54a6a SHA256 051ba8ba5825fe3a4f77adcc75e46471bc3ed74c132043bc9e6a6b8d516cd442
DIST dlz-9.2.7.patch.bz2 100068 RMD160 d53b00b27e43b645e96d25c3a7bdbc8e0d2ebade SHA1 14eff4e6fbb15158558ce4dc7b8c2ba37f1a7212 SHA256 db255c43cdee05c05ac8f240e1d75dcbee3f010e41e9f08b133c14b209363e8c
DIST dyndns-samples.tbz2 22866 RMD160 27d5b2d0edb8e1ff16b3f980c38d7af33ccf0c7d SHA1 0a62e9458d0e16b67a3a2f63ea485ce969f1fb4d SHA256 92fb06a92ca99cbbe96b90bcca229ef9c12397db57ae17e199dad9f1218fdbe8
EBUILD bind-9.2.6-r3.ebuild 8760 RMD160 a7c3081fbf922b68fb5d55c600e942b2ec854d99 SHA1 02271b71d4e16302fa0cc85a9345b23c45b9bf6f SHA256 e22b416fef7cc4fcdf3af5dc0635f472750d1ce1b6a5ba1547c51adb4b920df0
EBUILD bind-9.2.6-r4.ebuild 8838 RMD160 448bf24d9c4f91f90d835feb8940485abe0e6560 SHA1 1574e7cee94fa727aece8cd1295370e9bc76b1fa SHA256 8198c2cf70b24535d6a6ab8246d20675d6514be76e94152fd2eccda30ec04415
EBUILD bind-9.2.6-r5.ebuild 8949 RMD160 4dd06cedcadf3e9cc938090884c9455b8db155f0 SHA1 751cd5df3d890ee1c66f750f25f197fd7aeb696e SHA256 4f326cff1f7220d8aece090f888f9f6b8f31b81d4aa225367807a548f1357586
EBUILD bind-9.2.6.ebuild 8701 RMD160 0cd3b8ee0628b987d05ccbd4a5848d7b769d8e06 SHA1 fa5b8f6719614f7aeef43ddcec68122eb88b8592 SHA256 eb5b4502ca3e8eb15c0b295ba4a2a4658d7a54b436d20cd63f22a4f9814d10b2
EBUILD bind-9.2.8-r3.ebuild 8518 RMD160 688378feb0d4f453dae4ddaa6697e8f8b17861bb SHA1 da72c86f54e89169918241bd31f4468a1a50ffec SHA256 3c12c6180dec333eb3f13ed5dad19ee3374f52aae1f93576a6b93762c67a1f88
EBUILD bind-9.2.8.ebuild 8353 RMD160 5a812f38af015d4d6f08e7f98a7c3ef12643338a SHA1 d06f4737a57b1ec1269de09cf4f611ff18d4b5b7 SHA256 cfbbf72a14cd15186388fba8d5433875e4b8c78c62fdf0a6b32ea474666f5cb0
EBUILD bind-9.3.2-r3.ebuild 8378 RMD160 c9d6c03aa54ecf141fad9b2482e99f9f5c6e5b54 SHA1 e333fa32f39bd00760ab60a1955979a0a51236f7 SHA256 9f39d5a2a97e23250f0b4c03597e609502ef43249cf92be3a4254a6c808fda24
EBUILD bind-9.3.2-r4.ebuild 8444 RMD160 9425022ad4d7b9b2c6d0cd11fae16af69adb0058 SHA1 dae74c540bb725d6dfe10b326b46e2898e09c688 SHA256 771fa6a31e74b450f7516f960e1bf4911d3fed5b05ad404bc8172dccc7542dba
EBUILD bind-9.3.2-r5.ebuild 8546 RMD160 e842b39f937e840b4ae056bc7e4ffa0ee3d0222c SHA1 801892608c7d4f0975da5fccbe225d718399f4a2 SHA256 efb7d01a278b662ee70a457b6aa80f60ba6605dfe9b73cf5b015a791125a5ff6
EBUILD bind-9.3.2.ebuild 8341 RMD160 7d5242fee8b8bf8a77ba968e81bcf13066f00f9c SHA1 d3518b959d2e17577633e72488680d479e434fe6 SHA256 b85d001bbe305e2e75f4a56321356c7a98d4b207de7347312b0ff0c55f6a0ca7
EBUILD bind-9.3.4-r2.ebuild 8471 RMD160 b65ccbacfe8446fb91de1764b742eac853552cf7 SHA1 7eec8860a9b3bcd31ce401f6ad609d449063104d SHA256 ef62a79378d420e8cb9ff8a65eb5b156a67b2022888be5799b102c0720af7ee6
EBUILD bind-9.3.4-r3.ebuild 8490 RMD160 3127e6dc66f06e80b56cd55f561c6f735e30e04f SHA1 2a4e207bade7e1ba99e994defa35a799d7c413ff SHA256 cc6c4184b42cb7f34fe5075500cd8e8e9962de1c4b78b75fe2e9a0df1554af3b
EBUILD bind-9.3.4.ebuild 8325 RMD160 815cf7c68c38f9b83df466d7712dc130c6cc6ce2 SHA1 db7639116b2191f9d1c58386768c27100f814f04 SHA256 6bdf51a995111397445ee76c8b0f1aa68382593b3b9e4ba65e21306513c6ec2e
EBUILD bind-9.4.1-r1.ebuild 8407 RMD160 686e9a642cfc9bcfa6032c935532b62ba9a1453f SHA1 2cd5253fda909ed1e95ac24633afc5f1fb5966ea SHA256 b3cbbfc485c96699c03ac10e81314c1554e9dfec7df4394eb0484d14466e0d28
EBUILD bind-9.4.1_p1.ebuild 8434 RMD160 2d6ff9f4d984d7f9dc47392c3f161be9e1fee06d SHA1 590b2db49ff7107557a9521ef8cf7a2d296331d1 SHA256 85131ea65b76672f129a06b9d6efa56729b4c2f46ff601291b40f0f50ee5eaad
EBUILD bind-9.4.2.ebuild 8894 RMD160 6a3955833b75dc3809a775c290d229321e4ccde0 SHA1 4b72e477f72568800ec65a0969e3fb65a81bdf7b SHA256 1a34f54ed6bc71218091d07fbfa99a475c8105c574ba8bc427154c6171d005ea
EBUILD bind-9.5.0.ebuild 8878 RMD160 6c4bd2e0c4a142bf787aaf671003932e01a973a9 SHA1 3c709f8856c8c55678bde95d2044bcf3043aef45 SHA256 764e753965138e0329ae5930465a1773bc475280f7e4fd7cf790de4d1327c98f
MISC ChangeLog 31261 RMD160 a33b7e2344101b26158a7eade24480162c76de3d SHA1 ef6fb2e73b91891d7a02ddd73ef1ca1bf2639044 SHA256 30c654f2705fdd2b2b3fda9079519b2afbc3a1563536550623396b38e6798077
MISC ChangeLog.orig 331 RMD160 f0ab0fd424ef0caed2d581e269dddf47d5c95dcd SHA1 eb7e07640e6a2a94cec6590a8a3ab60d17b69505 SHA256 bb89988973d681eabc014b66c5ee1b70ad25288d4a9953015bd160f74492ddde
MISC metadata.xml 352 RMD160 0c1a848023a0dd76c5173c0a2135beed46e90263 SHA1 24f998969c955accd1fd4f3719bdf83d4e9d432b SHA256 f6f6ae15da16a20d5e0ce76563e3e27901e25787131b8784ffe872ffe3ddd034
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-dns/bind/bind-9.2.6-r3.ebuild,v 1.8 2007/05/06 08:50:30 genone Exp $
inherit eutils libtool autotools
DLZ_VERSION="9.2.5"
DESCRIPTION="BIND - Berkeley Internet Name Domain - Name Server"
HOMEPAGE="http://www.isc.org/products/BIND/bind9.html"
SRC_URI="ftp://ftp.isc.org/isc/bind9/${PV}/${P}.tar.gz
mirror://gentoo/dyndns-samples.tbz2
dlz? ( http://dev.gentoo.org/~voxus/dlz/dlz-${DLZ_VERSION}.patch.bz2 )"
LICENSE="as-is"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
IUSE="ssl ipv6 doc dlz postgres berkdb bind-mysql mysql odbc ldap selinux idn threads"
DEPEND="!net-dns/idnkit
ssl? ( >=dev-libs/openssl-0.9.6g )
mysql? ( >=virtual/mysql-4.0 )
bind-mysql? ( >=virtual/mysql-4.0 )
odbc? ( >=dev-db/unixODBC-2.2.6 )
ldap? ( net-nds/openldap )"
RDEPEND="${DEPEND}
selinux? ( sec-policy/selinux-bind )"
pkg_setup() {
ebegin "Creating named group and user"
enewgroup named 40
enewuser named 40 -1 /etc/bind named
eend ${?}
}
src_unpack() {
use threads && {
echo
ewarn "If you're in vserver enviroment, you're probably want to"
ewarn "disable threads support because of linux capabilities dependency"
echo
}
unpack ${A} && cd ${S}
# Adjusting PATHs in manpages
for i in `echo bin/{named/named.8,check/named-checkconf.8,rndc/rndc.8}`; do
sed -i -e 's:/etc/named.conf:/etc/bind/named.conf:g' \
-e 's:/etc/rndc.conf:/etc/bind/rndc.conf:g' \
-e 's:/etc/rndc.key:/etc/bind/rndc.key:g' \
${i}
done
if use dlz; then
epatch ${DISTDIR}/dlz-${DLZ_VERSION}.patch.bz2
epatch ${FILESDIR}/bind-${DLZ_VERSION}-berkdb_fix.patch
epatch ${FILESDIR}/${PN}-dlzbdb-includes.patch
fi
if use bind-mysql; then
if use dlz; then
MP=${P}-dlz-mysql.patch
else
MP=${P}-mysql.patch
fi
ebegin "Fixing mysql patch"
eindent
cp ${FILESDIR}/${MP} ${T}/${MP}
sed -e "s:-I/usr/local/include:`mysql_config --include`:" \
-e "s:-L/usr/local/lib/mysql -lmysqlclient:`mysql_config --libs`:" \
-i ${T}/${MP}
epatch ${T}/${MP}
eoutdent
eend $?
fi
if use idn; then
epatch ${S}/contrib/idn/idnkit-1.0-src/patch/bind9/${P}-patch
fi
# it should be installed by bind-tools
sed -e "s:nsupdate ::g" -i ${S}/bin/Makefile.in
cd ${S}
WANT_AUTOCONF=2.5 autoconf || die "autoconf failed"
}
src_compile() {
local myconf=""
use ssl && myconf="${myconf} --with-openssl"
use dlz && {
myconf="${myconf} --with-dlz-filesystem --with-dlz-stub"
use postgres && myconf="${myconf} --with-dlz-postgres"
use mysql && myconf="${myconf} --with-dlz-mysql"
use berkdb && myconf="${myconf} --with-dlz-bdb"
use ldap && myconf="${myconf} --with-dlz-ldap"
use odbc && myconf="${myconf} --with-dlz-odbc=/usr/include"
}
if use threads; then
if use dlz && use mysql; then
echo
ewarn
ewarn "MySQL uses thread local storage in its C api. Thus MySQL"
ewarn "requires that each thread of an application execute a MySQL"
ewarn "\"thread initialization\" to setup the thread local storage."
ewarn "This is impossible to do safely while staying within the DLZ"
ewarn "driver API. This is a limitation caused by MySQL, and not the"
ewarn "DLZ API."
ewarn "Because of this BIND MUST only run with a single thread when"
ewarn "using the MySQL driver."
ewarn
myconf="${myconf} --disable-linux-caps --disable-threads"
ewarn "Threading support disabled"
epause 10
else
myconf="${myconf} --enable-linux-caps --enable-threads"
einfo "Threading support enabled"
fi
else
myconf="${myconf} --disable-linux-caps --disable-threads"
fi
econf \
--sysconfdir=/etc/bind \
--localstatedir=/var \
`use_enable ipv6` \
--with-libtool \
${myconf} || die "econf failed"
emake -j1 || die "failed to compile bind"
if use idn; then
cd ${S}/contrib/idn/idnkit-1.0-src
econf || die "idn econf failed"
emake || die "idn emake failed"
fi
}
src_install() {
einstall || die "failed to install bind"
dodoc CHANGES COPYRIGHT FAQ README
use doc && {
docinto misc ; dodoc doc/misc/*
docinto html ; dohtml doc/arm/*
docinto draft ; dodoc doc/draft/*
docinto rfc ; dodoc doc/rfc/*
docinto contrib ; dodoc contrib/named-bootconf/named-bootconf.sh \
contrib/nanny/nanny.pl
}
newenvd ${FILESDIR}/10bind.env 10bind
# some handy-dandy dynamic dns examples
cd ${D}/usr/share/doc/${PF}
tar pjxf ${DISTDIR}/dyndns-samples.tbz2
dodir /etc/bind /var/bind/{pri,sec}
keepdir /var/bind/sec
insinto /etc/bind ; newins ${FILESDIR}/named.conf-r3 named.conf
# ftp://ftp.rs.internic.net/domain/named.ca:
insinto /var/bind ; doins ${FILESDIR}/named.ca
insinto /var/bind/pri ; doins ${FILESDIR}/{127,localhost}.zone
newinitd ${FILESDIR}/named.init-r3 named
newconfd ${FILESDIR}/named.confd-r1 named
dosym ../../var/bind/named.ca /var/bind/root.cache
dosym ../../var/bind/pri /etc/bind/pri
dosym ../../var/bind/sec /etc/bind/sec
if use idn; then
cd ${S}/contrib/idn/idnkit-1.0-src
einstall || die "failed to install idn kit"
docinto idn
dodoc ChangeLog INSTALL{,.ja} README{,.ja} NEWS
fi
# Let's get rid of those tools and their manpages since they're provided by bind-tools
rm -f ${D}/usr/share/man/man1/{dig.1,host.1,nslookup.1}
rm -f ${D}/usr/bin/{dig,host,nslookup}
}
pkg_postinst() {
if [ ! -f '/etc/bind/rndc.key' ]; then
if [ -c /dev/urandom ]; then
einfo "Using /dev/urandom for generating rndc.key"
/usr/sbin/rndc-confgen -r /dev/urandom -a -u named
echo
else
einfo "Using /dev/random for generating rndc.key"
/usr/sbin/rndc-confgen -a -u named
echo
fi
fi
install -d -o named -g named ${ROOT}/var/run/named \
${ROOT}/var/bind/pri ${ROOT}/var/bind/sec
chown -R named:named ${ROOT}/var/bind
elog "The default zone files are now installed as *.zone,"
elog "be careful merging config files if you have modified"
elog "/var/bind/pri/127 or /var/bind/pri/localhost"
elog
elog "You can edit /etc/conf.d/named to customize named settings"
elog
elog "The BIND ebuild now includes chroot support."
elog "If you like to run bind in chroot AND this is a new install OR"
elog "your bind doesn't already run in chroot, simply run:"
elog "\`emerge --config =${CATEGORY}/${PF}\`"
elog "Before running the above command you might want to change the chroot"
elog "dir in /etc/conf.d/named. Otherwise /chroot/dns will be used."
elog
elog "Recently verisign added a wildcard A record to the .COM and .NET TLD"
elog "zones making all .com and .net domains appear to be registered"
elog "This causes many problems such as breaking important anti-spam checks"
elog "which verify source domains exist. ISC released a patch for BIND which"
elog "adds 'delegation-only' zones to allow admins to return the .com and .net"
elog "domain resolution to their normal function."
elog
elog "There is no need to create a com or net data file. Just the"
elog "entries to the named.conf file is enough."
elog
elog " zone "com" IN { type delegation-only; };"
elog " zone "net" IN { type delegation-only; };"
echo
ewarn "BIND >=9.2.5 makes the priority argument to MX records mandatory"
ewarn "when it was previously optional. If the priority is missing, BIND"
ewarn "won't load the zone file at all."
echo
}
pkg_config() {
CHROOT=`sed -n 's/^[[:blank:]]\?CHROOT="\([^"]\+\)"/\1/p' /etc/conf.d/named 2>/dev/null`
EXISTS="no"
if [ -z "${CHROOT}" -a ! -d "/chroot/dns" ]; then
CHROOT="/chroot/dns"
elif [ -d ${CHROOT} ]; then
eerror; eerror "${CHROOT:-/chroot/dns} already exists. Quitting."; eerror; EXISTS="yes"
fi
if [ ! "$EXISTS" = yes ]; then
einfo ; einfon "Setting up the chroot directory..."
mkdir -m 700 -p ${CHROOT}
mkdir -p ${CHROOT}/{dev,etc,var/run/named}
chown -R named:named ${CHROOT}/var/run/named
cp -R /etc/bind ${CHROOT}/etc/
cp /etc/localtime ${CHROOT}/etc/localtime
chown named:named ${CHROOT}/etc/bind/rndc.key
cp -R /var/bind ${CHROOT}/var/
chown -R named:named ${CHROOT}/var/
mknod ${CHROOT}/dev/zero c 1 5
mknod ${CHROOT}/dev/random c 1 8
chmod 666 ${CHROOT}/dev/{random,zero}
chown root:named ${CHROOT}
chmod 0750 ${CHROOT}
grep -q "^#[[:blank:]]\?CHROOT" /etc/conf.d/named ; RETVAL=$?
if [ $RETVAL = 0 ]; then
sed 's/^# \?\(CHROOT.*\)$/\1/' /etc/conf.d/named > /etc/conf.d/named.orig 2>/dev/null
mv --force /etc/conf.d/named.orig /etc/conf.d/named
fi
sleep 1; echo " Done."; sleep 1
einfo
einfo "Add the following to your root .bashrc or .bash_profile: "
einfo " alias rndc='rndc -k ${CHROOT}/etc/bind/rndc.key'"
einfo "Then do the following: "
einfo " source /root/.bashrc or .bash_profile"
einfo
fi
}
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-dns/bind/bind-9.2.6-r4.ebuild,v 1.15 2007/08/25 14:32:26 vapier Exp $
inherit eutils libtool autotools
DLZ_VERSION="9.2.5"
MY_P="${P}-P1"
MY_PV="${PV}-P1"
DESCRIPTION="BIND - Berkeley Internet Name Domain - Name Server"
HOMEPAGE="http://www.isc.org/products/BIND/bind9.html"
SRC_URI="ftp://ftp.isc.org/isc/bind9/${MY_PV}/${MY_P}.tar.gz
mirror://gentoo/dyndns-samples.tbz2
dlz? ( http://dev.gentoo.org/~voxus/dlz/dlz-${DLZ_VERSION}.patch.bz2 )"
LICENSE="as-is"
SLOT="0"
KEYWORDS="alpha amd64 arm hppa ~ia64 ~mips ~ppc ppc64 s390 sh sparc x86"
IUSE="ssl ipv6 doc dlz postgres berkdb bind-mysql mysql odbc ldap selinux idn threads"
DEPEND="!net-dns/idnkit
ssl? ( >=dev-libs/openssl-0.9.6g )
mysql? ( >=virtual/mysql-4.0 )
bind-mysql? ( >=virtual/mysql-4.0 )
odbc? ( >=dev-db/unixODBC-2.2.6 )
ldap? ( net-nds/openldap )"
RDEPEND="${DEPEND}
selinux? ( sec-policy/selinux-bind )"
S="${WORKDIR}/${MY_P}"
pkg_setup() {
ebegin "Creating named group and user"
enewgroup named 40
enewuser named 40 -1 /etc/bind named
eend ${?}
}
src_unpack() {
use threads && {
echo
ewarn "If you're in vserver enviroment, you're probably want to"
ewarn "disable threads support because of linux capabilities dependency"
echo
}
unpack ${A} && cd ${S}
# Adjusting PATHs in manpages
for i in `echo bin/{named/named.8,check/named-checkconf.8,rndc/rndc.8}`; do
sed -i -e 's:/etc/named.conf:/etc/bind/named.conf:g' \
-e 's:/etc/rndc.conf:/etc/bind/rndc.conf:g' \
-e 's:/etc/rndc.key:/etc/bind/rndc.key:g' \
${i}
done
if use dlz; then
epatch ${DISTDIR}/dlz-${DLZ_VERSION}.patch.bz2
epatch ${FILESDIR}/bind-${DLZ_VERSION}-berkdb_fix.patch
epatch ${FILESDIR}/${PN}-dlzbdb-includes.patch
fi
if use bind-mysql; then
if use dlz; then
MP=${P}-dlz-mysql.patch
else
MP=${P}-mysql.patch
fi
ebegin "Fixing mysql patch"
eindent
cp ${FILESDIR}/${MP} ${T}/${MP}
sed -e "s:-I/usr/local/include:`mysql_config --include`:" \
-e "s:-L/usr/local/lib/mysql -lmysqlclient:`mysql_config --libs`:" \
-i ${T}/${MP}
epatch ${T}/${MP}
eoutdent
eend $?
fi
if use idn; then
epatch ${S}/contrib/idn/idnkit-1.0-src/patch/bind9/${P}-patch
fi
# it should be installed by bind-tools
sed -e "s:nsupdate ::g" -i ${S}/bin/Makefile.in
cd ${S}
WANT_AUTOCONF=2.5 AT_NO_RECURSIVE=1 eautoreconf || die "eautoreconf failed"
}
src_compile() {
local myconf=""
use ssl && myconf="${myconf} --with-openssl"
use dlz && {
myconf="${myconf} --with-dlz-filesystem --with-dlz-stub"
use postgres && myconf="${myconf} --with-dlz-postgres"
use mysql && myconf="${myconf} --with-dlz-mysql"
use berkdb && myconf="${myconf} --with-dlz-bdb"
use ldap && myconf="${myconf} --with-dlz-ldap"
use odbc && myconf="${myconf} --with-dlz-odbc=/usr/include"
}
if use threads; then
if use dlz && use mysql; then
echo
ewarn
ewarn "MySQL uses thread local storage in its C api. Thus MySQL"
ewarn "requires that each thread of an application execute a MySQL"
ewarn "\"thread initialization\" to setup the thread local storage."
ewarn "This is impossible to do safely while staying within the DLZ"
ewarn "driver API. This is a limitation caused by MySQL, and not the"
ewarn "DLZ API."
ewarn "Because of this BIND MUST only run with a single thread when"
ewarn "using the MySQL driver."
ewarn
myconf="${myconf} --disable-linux-caps --disable-threads"
ewarn "Threading support disabled"
epause 10
else
myconf="${myconf} --enable-linux-caps --enable-threads"
einfo "Threading support enabled"
fi
else
myconf="${myconf} --disable-linux-caps --disable-threads"
fi
econf \
--sysconfdir=/etc/bind \
--localstatedir=/var \
`use_enable ipv6` \
--with-libtool \
${myconf} || die "econf failed"
emake -j1 || die "failed to compile bind"
if use idn; then
cd ${S}/contrib/idn/idnkit-1.0-src
econf || die "idn econf failed"
emake || die "idn emake failed"
fi
}
src_install() {
einstall || die "failed to install bind"
dodoc CHANGES COPYRIGHT FAQ README
use doc && {
docinto misc ; dodoc doc/misc/*
docinto html ; dohtml doc/arm/*
docinto draft ; dodoc doc/draft/*
docinto rfc ; dodoc doc/rfc/*
docinto contrib ; dodoc contrib/named-bootconf/named-bootconf.sh \
contrib/nanny/nanny.pl
}
newenvd ${FILESDIR}/10bind.env 10bind
# some handy-dandy dynamic dns examples
cd ${D}/usr/share/doc/${PF}
tar pjxf ${DISTDIR}/dyndns-samples.tbz2
dodir /etc/bind /var/bind/{pri,sec}
keepdir /var/bind/sec
insinto /etc/bind ; newins ${FILESDIR}/named.conf-r3 named.conf
# ftp://ftp.rs.internic.net/domain/named.ca:
insinto /var/bind ; doins ${FILESDIR}/named.ca
insinto /var/bind/pri ; doins ${FILESDIR}/{127,localhost}.zone
newinitd ${FILESDIR}/named.init-r3 named
newconfd ${FILESDIR}/named.confd-r1 named
dosym ../../var/bind/named.ca /var/bind/root.cache
dosym ../../var/bind/pri /etc/bind/pri
dosym ../../var/bind/sec /etc/bind/sec
if use idn; then
cd ${S}/contrib/idn/idnkit-1.0-src
einstall || die "failed to install idn kit"
docinto idn
dodoc ChangeLog INSTALL{,.ja} README{,.ja} NEWS
fi
# Let's get rid of those tools and their manpages since they're provided by bind-tools
rm -f ${D}/usr/share/man/man1/{dig.1,host.1,nslookup.1}
rm -f ${D}/usr/bin/{dig,host,nslookup}
}
pkg_postinst() {
if [ ! -f '/etc/bind/rndc.key' ]; then
if [ -c /dev/urandom ]; then
einfo "Using /dev/urandom for generating rndc.key"
/usr/sbin/rndc-confgen -r /dev/urandom -a -u named
echo
else
einfo "Using /dev/random for generating rndc.key"
/usr/sbin/rndc-confgen -a -u named
echo
fi
fi
install -d -o named -g named ${ROOT}/var/run/named \
${ROOT}/var/bind/pri ${ROOT}/var/bind/sec
chown -R named:named ${ROOT}/var/bind
elog "The default zone files are now installed as *.zone,"
elog "be careful merging config files if you have modified"
elog "/var/bind/pri/127 or /var/bind/pri/localhost"
elog
elog "You can edit /etc/conf.d/named to customize named settings"
elog
elog "The BIND ebuild now includes chroot support."
elog "If you like to run bind in chroot AND this is a new install OR"
elog "your bind doesn't already run in chroot, simply run:"
elog "\`emerge --config =${CATEGORY}/${PF}\`"
elog "Before running the above command you might want to change the chroot"
elog "dir in /etc/conf.d/named. Otherwise /chroot/dns will be used."
elog
elog "Recently verisign added a wildcard A record to the .COM and .NET TLD"
elog "zones making all .com and .net domains appear to be registered"
elog "This causes many problems such as breaking important anti-spam checks"
elog "which verify source domains exist. ISC released a patch for BIND which"
elog "adds 'delegation-only' zones to allow admins to return the .com and .net"
elog "domain resolution to their normal function."
elog
elog "There is no need to create a com or net data file. Just the"
elog "entries to the named.conf file is enough."
elog
elog " zone "com" IN { type delegation-only; };"
elog " zone "net" IN { type delegation-only; };"
echo
ewarn "BIND >=9.2.5 makes the priority argument to MX records mandatory"
ewarn "when it was previously optional. If the priority is missing, BIND"
ewarn "won't load the zone file at all."
echo
}
pkg_config() {
CHROOT=`sed -n 's/^[[:blank:]]\?CHROOT="\([^"]\+\)"/\1/p' /etc/conf.d/named 2>/dev/null`
EXISTS="no"
if [ -z "${CHROOT}" -a ! -d "/chroot/dns" ]; then
CHROOT="/chroot/dns"
elif [ -d ${CHROOT} ]; then
eerror; eerror "${CHROOT:-/chroot/dns} already exists. Quitting."; eerror; EXISTS="yes"
fi
if [ ! "$EXISTS" = yes ]; then
einfo ; einfon "Setting up the chroot directory..."
mkdir -m 700 -p ${CHROOT}
mkdir -p ${CHROOT}/{dev,etc,var/run/named}
chown -R named:named ${CHROOT}/var/run/named
cp -R /etc/bind ${CHROOT}/etc/
cp /etc/localtime ${CHROOT}/etc/localtime
chown named:named ${CHROOT}/etc/bind/rndc.key
cp -R /var/bind ${CHROOT}/var/
chown -R named:named ${CHROOT}/var/
mknod ${CHROOT}/dev/zero c 1 5
mknod ${CHROOT}/dev/random c 1 8
chmod 666 ${CHROOT}/dev/{random,zero}
chown root:named ${CHROOT}
chmod 0750 ${CHROOT}
grep -q "^#[[:blank:]]\?CHROOT" /etc/conf.d/named ; RETVAL=$?
if [ $RETVAL = 0 ]; then
sed 's/^# \?\(CHROOT.*\)$/\1/' /etc/conf.d/named > /etc/conf.d/named.orig 2>/dev/null
mv --force /etc/conf.d/named.orig /etc/conf.d/named
fi
sleep 1; echo " Done."; sleep 1
einfo
einfo "Add the following to your root .bashrc or .bash_profile: "
einfo " alias rndc='rndc -k ${CHROOT}/etc/bind/rndc.key'"
einfo "Then do the following: "
einfo " source /root/.bashrc or .bash_profile"
einfo
fi
}
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-dns/bind/bind-9.2.6-r5.ebuild,v 1.8 2008/02/29 21:59:32 armin76 Exp $
inherit eutils libtool autotools
DLZ_VERSION="9.2.5"
MY_P="${P}-P1"
MY_PV="${PV}-P1"
DESCRIPTION="BIND - Berkeley Internet Name Domain - Name Server"
HOMEPAGE="http://www.isc.org/products/BIND/bind9.html"
SRC_URI="ftp://ftp.isc.org/isc/bind9/${MY_PV}/${MY_P}.tar.gz
mirror://gentoo/dyndns-samples.tbz2
dlz? ( http://dev.gentoo.org/~voxus/dlz/dlz-${DLZ_VERSION}.patch.bz2 )"
LICENSE="as-is"
SLOT="0"
KEYWORDS="alpha ~amd64 ~arm ~hppa ia64 ~mips ~ppc ~ppc64 ~s390 ~sh sparc ~x86"
IUSE="ssl ipv6 doc dlz postgres berkdb bind-mysql mysql odbc ldap selinux idn threads"
DEPEND="!net-dns/idnkit
ssl? ( >=dev-libs/openssl-0.9.6g )
mysql? ( >=virtual/mysql-4.0 )
bind-mysql? ( >=virtual/mysql-4.0 )
odbc? ( >=dev-db/unixODBC-2.2.6 )
ldap? ( net-nds/openldap )"
RDEPEND="${DEPEND}
selinux? ( sec-policy/selinux-bind )"
S="${WORKDIR}/${MY_P}"
pkg_setup() {
ebegin "Creating named group and user"
enewgroup named 40
enewuser named 40 -1 /etc/bind named
eend ${?}
}
src_unpack() {
use threads && {
echo
ewarn "If you're in vserver enviroment, you're probably want to"
ewarn "disable threads support because of linux capabilities dependency"
echo
}
unpack ${A} && cd ${S}
# Adjusting PATHs in manpages
for i in `echo bin/{named/named.8,check/named-checkconf.8,rndc/rndc.8}`; do
sed -i -e 's:/etc/named.conf:/etc/bind/named.conf:g' \
-e 's:/etc/rndc.conf:/etc/bind/rndc.conf:g' \
-e 's:/etc/rndc.key:/etc/bind/rndc.key:g' \
${i}
done
if use dlz; then
epatch ${DISTDIR}/dlz-${DLZ_VERSION}.patch.bz2
epatch ${FILESDIR}/bind-${DLZ_VERSION}-berkdb_fix.patch
epatch ${FILESDIR}/${PN}-dlzbdb-includes.patch
fi
if use bind-mysql; then
if use dlz; then
MP=${P}-dlz-mysql.patch
else
MP=${P}-mysql.patch
fi
ebegin "Fixing mysql patch"
eindent
cp ${FILESDIR}/${MP} ${T}/${MP}
sed -e "s:-I/usr/local/include:`mysql_config --include`:" \
-e "s:-L/usr/local/lib/mysql -lmysqlclient:`mysql_config --libs`:" \
-i ${T}/${MP}
epatch ${T}/${MP}
eoutdent
eend $?
fi
if use idn; then
epatch ${S}/contrib/idn/idnkit-1.0-src/patch/bind9/${P}-patch
fi
# it should be installed by bind-tools
sed -e "s:nsupdate ::g" -i ${S}/bin/Makefile.in
cd "${S}"
WANT_AUTOCONF=2.5 AT_NO_RECURSIVE=1 eautoreconf || die "eautoreconf failed"
# bug #151839
sed \
-e 's:CDEFINES = :CDEFINES = -USO_BSDCOMPAT:' \
-i lib/isc/unix/Makefile.in
}
src_compile() {
local myconf=""
use ssl && myconf="${myconf} --with-openssl"
use dlz && {
myconf="${myconf} --with-dlz-filesystem --with-dlz-stub"
use postgres && myconf="${myconf} --with-dlz-postgres"
use mysql && myconf="${myconf} --with-dlz-mysql"
use berkdb && myconf="${myconf} --with-dlz-bdb"
use ldap && myconf="${myconf} --with-dlz-ldap"
use odbc && myconf="${myconf} --with-dlz-odbc=/usr/include"
}
if use threads; then
if use dlz && use mysql; then
echo
ewarn
ewarn "MySQL uses thread local storage in its C api. Thus MySQL"
ewarn "requires that each thread of an application execute a MySQL"
ewarn "\"thread initialization\" to setup the thread local storage."
ewarn "This is impossible to do safely while staying within the DLZ"
ewarn "driver API. This is a limitation caused by MySQL, and not the"
ewarn "DLZ API."
ewarn "Because of this BIND MUST only run with a single thread when"
ewarn "using the MySQL driver."
ewarn
myconf="${myconf} --disable-linux-caps --disable-threads"
ewarn "Threading support disabled"
epause 10
else
myconf="${myconf} --enable-linux-caps --enable-threads"
ewarn "Threading support enabled"
fi
else
myconf="${myconf} --disable-linux-caps --disable-threads"
fi
econf \
--sysconfdir=/etc/bind \
--localstatedir=/var \
`use_enable ipv6` \
--with-libtool \
${myconf} || die "econf failed"
emake -j1 || die "failed to compile bind"
if use idn; then
cd ${S}/contrib/idn/idnkit-1.0-src
econf || die "idn econf failed"
emake || die "idn emake failed"
fi
}
src_install() {
einstall || die "failed to install bind"
dodoc CHANGES COPYRIGHT FAQ README
use doc && {
docinto misc ; dodoc doc/misc/*
docinto html ; dohtml doc/arm/*
docinto draft ; dodoc doc/draft/*
docinto rfc ; dodoc doc/rfc/*
docinto contrib ; dodoc contrib/named-bootconf/named-bootconf.sh \
contrib/nanny/nanny.pl
}
newenvd ${FILESDIR}/10bind.env 10bind
# some handy-dandy dynamic dns examples
cd ${D}/usr/share/doc/${PF}
tar pjxf ${DISTDIR}/dyndns-samples.tbz2
dodir /etc/bind /var/bind/{pri,sec}
keepdir /var/bind/sec
insinto /etc/bind ; newins ${FILESDIR}/named.conf-r3 named.conf
# ftp://ftp.rs.internic.net/domain/named.ca:
insinto /var/bind ; doins ${FILESDIR}/named.ca
insinto /var/bind/pri ; doins ${FILESDIR}/{127,localhost}.zone
newinitd ${FILESDIR}/named.init-r4 named
newconfd ${FILESDIR}/named.confd-r1 named
dosym ../../var/bind/named.ca /var/bind/root.cache
dosym ../../var/bind/pri /etc/bind/pri
dosym ../../var/bind/sec /etc/bind/sec
if use idn; then
cd ${S}/contrib/idn/idnkit-1.0-src
einstall || die "failed to install idn kit"
docinto idn
dodoc ChangeLog INSTALL{,.ja} README{,.ja} NEWS
fi
# Let's get rid of those tools and their manpages since they're provided by bind-tools
rm -f ${D}/usr/share/man/man1/{dig.1,host.1,nslookup.1}
rm -f ${D}/usr/bin/{dig,host,nslookup}
}
pkg_postinst() {
if [ ! -f '/etc/bind/rndc.key' ]; then
if [ -c /dev/urandom ]; then
einfo "Using /dev/urandom for generating rndc.key"
/usr/sbin/rndc-confgen -r /dev/urandom -a -u named
echo
else
einfo "Using /dev/random for generating rndc.key"
/usr/sbin/rndc-confgen -a -u named
echo
fi
fi
install -d -o named -g named ${ROOT}/var/run/named \
${ROOT}/var/bind/pri ${ROOT}/var/bind/sec
chown -R named:named ${ROOT}/var/bind
elog "The default zone files are now installed as *.zone,"
elog "be careful merging config files if you have modified"
elog "/var/bind/pri/127 or /var/bind/pri/localhost"
elog
elog "You can edit /etc/conf.d/named to customize named settings"
elog
elog "The BIND ebuild now includes chroot support."
elog "If you like to run bind in chroot AND this is a new install OR"
elog "your bind doesn't already run in chroot, simply run:"
elog "\`emerge --config =${CATEGORY}/${PF}\`"
elog "Before running the above command you might want to change the chroot"
elog "dir in /etc/conf.d/named. Otherwise /chroot/dns will be used."
elog
elog "Recently verisign added a wildcard A record to the .COM and .NET TLD"
elog "zones making all .com and .net domains appear to be registered"
elog "This causes many problems such as breaking important anti-spam checks"
elog "which verify source domains exist. ISC released a patch for BIND which"
elog "adds 'delegation-only' zones to allow admins to return the .com and .net"
elog "domain resolution to their normal function."
elog
elog "There is no need to create a com or net data file. Just the"
elog "entries to the named.conf file is enough."
elog
elog " zone "com" IN { type delegation-only; };"
elog " zone "net" IN { type delegation-only; };"
echo
ewarn "BIND >=9.2.5 makes the priority argument to MX records mandatory"
ewarn "when it was previously optional. If the priority is missing, BIND"
ewarn "won't load the zone file at all."
echo
}
pkg_config() {
CHROOT=`sed -n 's/^[[:blank:]]\?CHROOT="\([^"]\+\)"/\1/p' /etc/conf.d/named 2>/dev/null`
EXISTS="no"
if [ -z "${CHROOT}" -a ! -d "/chroot/dns" ]; then
CHROOT="/chroot/dns"
elif [ -d ${CHROOT} ]; then
eerror; eerror "${CHROOT:-/chroot/dns} already exists. Quitting."; eerror; EXISTS="yes"
fi
if [ ! "$EXISTS" = yes ]; then
einfo ; einfon "Setting up the chroot directory..."
mkdir -m 700 -p ${CHROOT}
mkdir -p ${CHROOT}/{dev,etc,var/run/named}
chown -R named:named ${CHROOT}/var/run/named
cp -R /etc/bind ${CHROOT}/etc/
cp /etc/localtime ${CHROOT}/etc/localtime
chown named:named ${CHROOT}/etc/bind/rndc.key
cp -R /var/bind ${CHROOT}/var/
chown -R named:named ${CHROOT}/var/
mknod ${CHROOT}/dev/zero c 1 5
mknod ${CHROOT}/dev/random c 1 8
chmod 666 ${CHROOT}/dev/{random,zero}
chown root:named ${CHROOT}
chmod 0750 ${CHROOT}
grep -q "^#[[:blank:]]\?CHROOT" /etc/conf.d/named ; RETVAL=$?
if [ $RETVAL = 0 ]; then
sed 's/^# \?\(CHROOT.*\)$/\1/' /etc/conf.d/named > /etc/conf.d/named.orig 2>/dev/null
mv --force /etc/conf.d/named.orig /etc/conf.d/named
fi
sleep 1; echo " Done."; sleep 1
einfo
einfo "Add the following to your root .bashrc or .bash_profile: "
einfo " alias rndc='rndc -k ${CHROOT}/etc/bind/rndc.key'"
einfo "Then do the following: "
einfo " source /root/.bashrc or .bash_profile"
einfo
fi
}
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-dns/bind/bind-9.2.6.ebuild,v 1.21 2008/03/17 05:08:52 ricmm Exp $
inherit eutils libtool
DLZ_VERSION="9.2.5"
DESCRIPTION="BIND - Berkeley Internet Name Domain - Name Server"
HOMEPAGE="http://www.isc.org/products/BIND/bind9.html"
SRC_URI="ftp://ftp.isc.org/isc/bind9/${PV}/${P}.tar.gz
mirror://gentoo/dyndns-samples.tbz2
dlz? ( http://dev.gentoo.org/~voxus/dlz/dlz-${DLZ_VERSION}.patch.bz2 )"
LICENSE="as-is"
SLOT="0"
KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86"
IUSE="ssl ipv6 doc dlz postgres berkdb bind-mysql mysql odbc ldap selinux idn threads"
DEPEND="!net-dns/idnkit
ssl? ( >=dev-libs/openssl-0.9.6g )
mysql? ( >=virtual/mysql-4.0 )
bind-mysql? ( >=virtual/mysql-4.0 )
odbc? ( >=dev-db/unixODBC-2.2.6 )
ldap? ( net-nds/openldap )"
RDEPEND="${DEPEND}
selinux? ( sec-policy/selinux-bind )"
pkg_setup() {
ebegin "Creating named group and user"
enewgroup named 40
enewuser named 40 -1 /etc/bind named
eend ${?}
}
src_unpack() {
use threads && {
echo
ewarn "If you're in vserver enviroment, you're probably want to"
ewarn "disable threads support because of linux capabilities dependency"
echo
}
unpack ${A} && cd ${S}
# Adjusting PATHs in manpages
for i in `echo bin/{named/named.8,check/named-checkconf.8,rndc/rndc.8}`; do
sed -i -e 's:/etc/named.conf:/etc/bind/named.conf:g' \
-e 's:/etc/rndc.conf:/etc/bind/rndc.conf:g' \
-e 's:/etc/rndc.key:/etc/bind/rndc.key:g' \
${i}
done
if use dlz; then
epatch ${DISTDIR}/dlz-${DLZ_VERSION}.patch.bz2
epatch ${FILESDIR}/bind-${DLZ_VERSION}-berkdb_fix.patch
fi
if use bind-mysql; then
if use dlz; then
MP=${P}-dlz-mysql.patch
else
MP=${P}-mysql.patch
fi
ebegin "Fixing mysql patch"
eindent
cp ${FILESDIR}/${MP} ${T}/${MP}
sed -e "s:-I/usr/local/include:`mysql_config --include`:" \
-e "s:-L/usr/local/lib/mysql -lmysqlclient:`mysql_config --libs`:" \
-i ${T}/${MP}
epatch ${T}/${MP}
eoutdent
eend $?
fi
if use idn; then
epatch ${S}/contrib/idn/idnkit-1.0-src/patch/bind9/${P}-patch
fi
# it should be installed by bind-tools
sed "s:nsupdate ::g" ${S}/bin/Makefile.in > ${T}/Makefile
mv ${T}/Makefile ${S}/bin/Makefile.in
cd ${S}
WANT_AUTOCONF=2.5 autoconf || die "autoconf failed"
}
src_compile() {
local myconf=""
use ssl && myconf="${myconf} --with-openssl"
use dlz && {
myconf="${myconf} --with-dlz-filesystem --with-dlz-stub"
use postgres && myconf="${myconf} --with-dlz-postgres"
use mysql && myconf="${myconf} --with-dlz-mysql"
use berkdb && myconf="${myconf} --with-dlz-bdb"
use ldap && myconf="${myconf} --with-dlz-ldap"
use odbc && myconf="${myconf} --with-dlz-odbc"
}
if use threads; then
if use dlz && use mysql; then
echo
ewarn
ewarn "MySQL uses thread local storage in its C api. Thus MySQL"
ewarn "requires that each thread of an application execute a MySQL"
ewarn "\"thread initialization\" to setup the thread local storage."
ewarn "This is impossible to do safely while staying within the DLZ"
ewarn "driver API. This is a limitation caused by MySQL, and not the"
ewarn "DLZ API."
ewarn "Because of this BIND MUST only run with a single thread when"
ewarn "using the MySQL driver."
ewarn
myconf="${myconf} --disable-linux-caps --disable-threads"
ewarn "Threading support disabled"
epause 10
else
myconf="${myconf} --enable-linux-caps --enable-threads"
einfo "Threading support enabled"
fi
else
myconf="${myconf} --disable-linux-caps --disable-threads"
fi
econf \
--sysconfdir=/etc/bind \
--localstatedir=/var \
`use_enable ipv6` \
--with-libtool \
${myconf} || die "econf failed"
emake -j1 || die "failed to compile bind"
if use idn; then
cd ${S}/contrib/idn/idnkit-1.0-src
econf || die "idn econf failed"
emake || die "idn emake failed"
fi
}
src_install() {
einstall || die "failed to install bind"
dodoc CHANGES COPYRIGHT FAQ README
use doc && {
docinto misc ; dodoc doc/misc/*
docinto html ; dohtml doc/arm/*
docinto draft ; dodoc doc/draft/*
docinto rfc ; dodoc doc/rfc/*
docinto contrib ; dodoc contrib/named-bootconf/named-bootconf.sh \
contrib/nanny/nanny.pl
}
newenvd ${FILESDIR}/10bind.env 10bind
# some handy-dandy dynamic dns examples
cd ${D}/usr/share/doc/${PF}
tar pjxf ${DISTDIR}/dyndns-samples.tbz2
dodir /etc/bind /var/bind/{pri,sec}
keepdir /var/bind/sec
insinto /etc/bind ; newins ${FILESDIR}/named.conf-r3 named.conf
# ftp://ftp.rs.internic.net/domain/named.ca:
insinto /var/bind ; doins ${FILESDIR}/named.ca
insinto /var/bind/pri ; doins ${FILESDIR}/{127,localhost}.zone
newinitd ${FILESDIR}/named.init-r3 named
newconfd ${FILESDIR}/named.confd-r1 named
dosym ../../var/bind/named.ca /var/bind/root.cache
dosym ../../var/bind/pri /etc/bind/pri
dosym ../../var/bind/sec /etc/bind/sec
if use idn; then
cd ${S}/contrib/idn/idnkit-1.0-src
einstall || die "failed to install idn kit"
docinto idn
dodoc ChangeLog INSTALL{,.ja} README{,.ja} NEWS
fi
# Let's get rid of those tools and their manpages since they're provided by bind-tools
rm -f ${D}/usr/share/man/man1/{dig.1,host.1,nslookup.1}
rm -f ${D}/usr/bin/{dig,host,nslookup}
}
pkg_postinst() {
if [ ! -f '/etc/bind/rndc.key' ]; then
if [ -c /dev/urandom ]; then
einfo "Using /dev/urandom for generating rndc.key"
/usr/sbin/rndc-confgen -r /dev/urandom -a -u named
echo
else
einfo "Using /dev/random for generating rndc.key"
/usr/sbin/rndc-confgen -a -u named
echo
fi
fi
install -d -o named -g named ${ROOT}/var/run/named \
${ROOT}/var/bind/pri ${ROOT}/var/bind/sec
chown -R named:named ${ROOT}/var/bind
elog "The default zone files are now installed as *.zone,"
elog "be careful merging config files if you have modified"
elog "/var/bind/pri/127 or /var/bind/pri/localhost"
elog
elog "You can edit /etc/conf.d/named to customize named settings"
elog
elog "The BIND ebuild now includes chroot support."
elog "If you like to run bind in chroot AND this is a new install OR"
elog "your bind doesn't already run in chroot, simply run:"
elog "\`emerge --config =${CATEGORY}/${PF}\`"
elog "Before running the above command you might want to change the chroot"
elog "dir in /etc/conf.d/named. Otherwise /chroot/dns will be used."
elog
elog "Recently verisign added a wildcard A record to the .COM and .NET TLD"
elog "zones making all .com and .net domains appear to be registered"
elog "This causes many problems such as breaking important anti-spam checks"
elog "which verify source domains exist. ISC released a patch for BIND which"
elog "adds 'delegation-only' zones to allow admins to return the .com and .net"
elog "domain resolution to their normal function."
elog
elog "There is no need to create a com or net data file. Just the"
elog "entries to the named.conf file is enough."
elog
elog " zone "com" IN { type delegation-only; };"
elog " zone "net" IN { type delegation-only; };"
echo
ewarn "BIND >=9.2.5 makes the priority argument to MX records mandatory"
ewarn "when it was previously optional. If the priority is missing, BIND"
ewarn "won't load the zone file at all."
echo
}
pkg_config() {
CHROOT=`sed -n 's/^[[:blank:]]\?CHROOT="\([^"]\+\)"/\1/p' /etc/conf.d/named 2>/dev/null`
EXISTS="no"
if [ -z "${CHROOT}" -a ! -d "/chroot/dns" ]; then
CHROOT="/chroot/dns"
elif [ -d ${CHROOT} ]; then
eerror; eerror "${CHROOT:-/chroot/dns} already exists. Quitting."; eerror; EXISTS="yes"
fi
if [ ! "$EXISTS" = yes ]; then
einfo ; einfon "Setting up the chroot directory..."
mkdir -m 700 -p ${CHROOT}
mkdir -p ${CHROOT}/{dev,etc,var/run/named}
chown -R named:named ${CHROOT}/var/run/named
cp -R /etc/bind ${CHROOT}/etc/
cp /etc/localtime ${CHROOT}/etc/localtime
chown named:named ${CHROOT}/etc/bind/rndc.key
cp -R /var/bind ${CHROOT}/var/
chown -R named:named ${CHROOT}/var/
mknod ${CHROOT}/dev/zero c 1 5
mknod ${CHROOT}/dev/random c 1 8
chmod 666 ${CHROOT}/dev/{random,zero}
chown named:named ${CHROOT}
grep -q "^#[[:blank:]]\?CHROOT" /etc/conf.d/named ; RETVAL=$?
if [ $RETVAL = 0 ]; then
sed 's/^# \?\(CHROOT.*\)$/\1/' /etc/conf.d/named > /etc/conf.d/named.orig 2>/dev/null
mv --force /etc/conf.d/named.orig /etc/conf.d/named
fi
sleep 1; echo " Done."; sleep 1
einfo
einfo "Add the following to your root .bashrc or .bash_profile: "
einfo " alias rndc='rndc -k ${CHROOT}/etc/bind/rndc.key'"
einfo "Then do the following: "
einfo " source /root/.bashrc or .bash_profile"
einfo
fi
}
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-dns/bind/bind-9.2.8-r3.ebuild,v 1.3 2008/05/29 19:11:36 armin76 Exp $
inherit eutils libtool autotools toolchain-funcs flag-o-matic
DLZ_VERSION="9.2.7"
DESCRIPTION="BIND - Berkeley Internet Name Domain - Name Server"
HOMEPAGE="http://www.isc.org/products/BIND/bind9.html"
SRC_URI="ftp://ftp.isc.org/isc/bind9/${PV}/${P}.tar.gz
doc? ( mirror://gentoo/dyndns-samples.tbz2 )
dlz? ( http://dev.gentoo.org/~voxus/dlz/dlz-${DLZ_VERSION}.patch.bz2 )"
LICENSE="as-is"
SLOT="0"
KEYWORDS="alpha ~amd64 ~hppa ia64 ~ppc ~ppc64 sparc ~x86"
IUSE="ssl ipv6 doc dlz postgres berkdb mysql odbc ldap selinux idn threads resolvconf"
DEPEND="ssl? ( >=dev-libs/openssl-0.9.6g )
mysql? ( >=virtual/mysql-4.0 )
odbc? ( >=dev-db/unixODBC-2.2.6 )
ldap? ( net-nds/openldap )
idn? ( net-dns/idnkit )
resolvconf? ( || ( net-dns/openresolv net-dns/resolvconf-gentoo ) )"
RDEPEND="${DEPEND}
selinux? ( sec-policy/selinux-bind )"
pkg_setup() {
use threads && {
echo
ewarn "If you're in vserver enviroment, you're probably want to"
ewarn "disable threads support because of linux capabilities dependency"
echo
}
ebegin "Creating named group and user"
enewgroup named 40
enewuser named 40 -1 /etc/bind named
eend ${?}
}
src_unpack() {
unpack ${A}
cd "${S}"
# Adjusting PATHs in manpages
for i in bin/{named/named.8,check/named-checkconf.8,rndc/rndc.8} ; do
sed -i \
-e 's:/etc/named.conf:/etc/bind/named.conf:g' \
-e 's:/etc/rndc.conf:/etc/bind/rndc.conf:g' \
-e 's:/etc/rndc.key:/etc/bind/rndc.key:g' \
"${i}"
done
use dlz && {
epatch ${DISTDIR}/dlz-${DLZ_VERSION}.patch.bz2
epatch ${FILESDIR}/bind-9.2.5-berkdb_fix.patch
epatch ${FILESDIR}/${PN}-dlzbdb-includes.patch
epatch ${FILESDIR}/${PN}-dlzbdb-close_cursor.patch
# use odbc && epatch ${FILESDIR}/${P}-missing_odbc_test.patch
}
# should be installed by bind-tools
sed -e "s:nsupdate ::g" -i ${S}/bin/Makefile.in
WANT_AUTOCONF=2.5 AT_NO_RECURSIVE=1 eautoreconf || die "eautoreconf failed"
# bug #151839
sed -e \
's:struct isc_socket {:#undef SO_BSDCOMPAT\n\nstruct isc_socket {:' \
-i lib/isc/unix/socket.c
}
src_compile() {
local myconf=""
use ssl && myconf="${myconf} --with-openssl"
use idn && myconf="${myconf} --with-idn"
use dlz && {
myconf="${myconf} --with-dlz-filesystem --with-dlz-stub"
use postgres && myconf="${myconf} --with-dlz-postgres"
use mysql && myconf="${myconf} --with-dlz-mysql"
use berkdb && myconf="${myconf} --with-dlz-bdb"
use ldap && myconf="${myconf} --with-dlz-ldap"
use odbc && myconf="${myconf} --with-dlz-odbc"
}
if use threads; then
if use dlz && use mysql; then
echo
ewarn
ewarn "MySQL uses thread local storage in its C api. Thus MySQL"
ewarn "requires that each thread of an application execute a MySQL"
ewarn "\"thread initialization\" to setup the thread local storage."
ewarn "This is impossible to do safely while staying within the DLZ"
ewarn "driver API. This is a limitation caused by MySQL, and not"
ewarn "the DLZ API."
ewarn "Because of this BIND MUST only run with a single thread when"
ewarn "using the MySQL driver."
ewarn
myconf="${myconf} --disable-linux-caps --disable-threads"
ewarn "Threading support disabled"
epause 10
else
myconf="${myconf} --enable-linux-caps --enable-threads"
einfo "Threading support enabled"
fi
else
myconf="${myconf} --disable-linux-caps --disable-threads"
fi
# bug #158664
gcc-specs-ssp && replace-flags -O[23s] -O
econf \
--sysconfdir=/etc/bind \
--localstatedir=/var \
--with-libtool \
`use_enable ipv6` \
${myconf} || die "econf failed"
emake -j1 || die "failed to compile bind"
}
src_install() {
einstall || die "failed to install bind"
dodoc CHANGES COPYRIGHT FAQ README
use doc && {
docinto misc
dodoc doc/misc/*
docinto html
dohtml doc/arm/*
docinto draft
dodoc doc/draft/*
docinto rfc
dodoc doc/rfc/*
docinto contrib
dodoc contrib/named-bootconf/named-bootconf.sh \
contrib/nanny/nanny.pl
# some handy-dandy dynamic dns examples
cd ${D}/usr/share/doc/${PF}
tar pjxf ${DISTFILES}/dyndns-samples.tbz2
}
newenvd ${FILESDIR}/10bind.env 10bind
dodir /etc/bind /var/bind/{pri,sec}
keepdir /var/bind/sec
insinto /etc/bind ; newins ${FILESDIR}/named.conf-r3 named.conf
# ftp://ftp.rs.internic.net/domain/named.ca:
insinto /var/bind ; doins ${FILESDIR}/named.ca
insinto /var/bind/pri
doins ${FILESDIR}/127.zone
newins ${FILESDIR}/localhost.zone-r2 localhost.zone
newinitd ${FILESDIR}/named.init-r5 named
newconfd ${FILESDIR}/named.confd-r2 named
dosym ../../var/bind/named.ca /var/bind/root.cache
dosym ../../var/bind/pri /etc/bind/pri
dosym ../../var/bind/sec /etc/bind/sec
# Let's get rid of those tools and their manpages since they're provided by bind-tools
rm -f ${D}/usr/share/man/man1/{dig.1,host.1,nslookup.1}
rm -f ${D}/usr/bin/{dig,host,nslookup}
use resolvconf && {
exeinto /etc/resolvconf/update.d
newexe ${FILESDIR}/resolvconf.bind bind
}
}
pkg_postinst() {
if [ ! -f '/etc/bind/rndc.key' ]; then
if [ -c /dev/urandom ]; then
einfo "Using /dev/urandom for generating rndc.key"
/usr/sbin/rndc-confgen -r /dev/urandom -a -u named
echo
else
einfo "Using /dev/random for generating rndc.key"
/usr/sbin/rndc-confgen -a -u named
echo
fi
fi
install -d -o named -g named ${ROOT}/var/run/named \
${ROOT}/var/bind/pri ${ROOT}/var/bind/sec
chown -R named:named ${ROOT}/var/bind
elog "The default zone files are now installed as *.zone,"
elog "be careful merging config files if you have modified"
elog "/var/bind/pri/127 or /var/bind/pri/localhost"
elog
elog "You can edit /etc/conf.d/named to customize named settings"
elog
elog "The BIND ebuild now includes chroot support."
elog "If you like to run bind in chroot AND this is a new install OR"
elog "your bind doesn't already run in chroot, simply run:"
elog "\`emerge --config '=${CATEGORY}/${PF}'\`"
elog "Before running the above command you might want to change the chroot"
elog "dir in /etc/conf.d/named. Otherwise /chroot/dns will be used."
elog
elog "Recently verisign added a wildcard A record to the .COM and .NET TLD"
elog "zones making all .com and .net domains appear to be registered"
elog "This causes many problems such as breaking important anti-spam checks"
elog "which verify source domains exist. ISC released a patch for BIND which"
elog "adds 'delegation-only' zones to allow admins to return the .com and .net"
elog "domain resolution to their normal function."
elog
elog "There is no need to create a com or net data file. Just the"
elog "entries to the named.conf file is enough."
elog
elog " zone "com" IN { type delegation-only; };"
elog " zone "net" IN { type delegation-only; };"
echo
ewarn "BIND >=9.2.5 makes the priority argument to MX records mandatory"
ewarn "when it was previously optional. If the priority is missing, BIND"
ewarn "won't load the zone file at all."
echo
}
pkg_config() {
CHROOT=`sed -n 's/^[[:blank:]]\?CHROOT="\([^"]\+\)"/\1/p' /etc/conf.d/named 2>/dev/null`
EXISTS="no"
if [ -z "${CHROOT}" -a ! -d "/chroot/dns" ]; then
CHROOT="/chroot/dns"
elif [ -d ${CHROOT} ]; then
eerror; eerror "${CHROOT:-/chroot/dns} already exists. Quitting."; eerror; EXISTS="yes"
fi
if [ ! "$EXISTS" = yes ]; then
einfo ; einfon "Setting up the chroot directory..."
mkdir -m 700 -p ${CHROOT}
mkdir -p ${CHROOT}/{dev,etc,var/run/named}
chown -R named:named ${CHROOT}/var/run/named
cp -R /etc/bind ${CHROOT}/etc/
cp /etc/localtime ${CHROOT}/etc/localtime
chown named:named ${CHROOT}/etc/bind/rndc.key
cp -R /var/bind ${CHROOT}/var/
chown -R named:named ${CHROOT}/var/
mknod ${CHROOT}/dev/zero c 1 5
mknod ${CHROOT}/dev/random c 1 8
chmod 666 ${CHROOT}/dev/{random,zero}
chown root:named ${CHROOT}
chmod 0750 ${CHROOT}
grep -q "^#[[:blank:]]\?CHROOT" /etc/conf.d/named ; RETVAL=$?
if [ $RETVAL = 0 ]; then
sed 's/^# \?\(CHROOT.*\)$/\1/' /etc/conf.d/named > /etc/conf.d/named.orig 2>/dev/null
mv --force /etc/conf.d/named.orig /etc/conf.d/named
fi
sleep 1; echo " Done."; sleep 1
einfo
einfo "Add the following to your root .bashrc or .bash_profile: "
einfo " alias rndc='rndc -k ${CHROOT}/etc/bind/rndc.key'"
einfo "Then do the following: "
einfo " source /root/.bashrc or .bash_profile"
einfo
fi
}
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-dns/bind/bind-9.2.8.ebuild,v 1.13 2008/05/29 19:11:36 armin76 Exp $
inherit eutils libtool autotools
DLZ_VERSION="9.2.7"
DESCRIPTION="BIND - Berkeley Internet Name Domain - Name Server"
HOMEPAGE="http://www.isc.org/products/BIND/bind9.html"
SRC_URI="ftp://ftp.isc.org/isc/bind9/${PV}/${P}.tar.gz
doc? ( mirror://gentoo/dyndns-samples.tbz2 )
dlz? ( http://dev.gentoo.org/~voxus/dlz/dlz-${DLZ_VERSION}.patch.bz2 )"
LICENSE="as-is"
SLOT="0"
KEYWORDS="alpha amd64 hppa ia64 ~ppc ppc64 sparc x86"
IUSE="ssl ipv6 doc dlz postgres berkdb mysql odbc ldap selinux idn threads resolvconf"
DEPEND="ssl? ( >=dev-libs/openssl-0.9.6g )
mysql? ( >=virtual/mysql-4.0 )
odbc? ( >=dev-db/unixODBC-2.2.6 )
ldap? ( net-nds/openldap )
idn? ( net-dns/idnkit )
resolvconf? ( || ( net-dns/openresolv net-dns/resolvconf-gentoo ) )"
RDEPEND="${DEPEND}
selinux? ( sec-policy/selinux-bind )"
pkg_setup() {
use threads && {
echo
ewarn "If you're in vserver enviroment, you're probably want to"
ewarn "disable threads support because of linux capabilities dependency"
echo
}
ebegin "Creating named group and user"
enewgroup named 40
enewuser named 40 -1 /etc/bind named
eend ${?}
}
src_unpack() {
unpack ${A}
cd "${S}"
# Adjusting PATHs in manpages
for i in bin/{named/named.8,check/named-checkconf.8,rndc/rndc.8} ; do
sed -i \
-e 's:/etc/named.conf:/etc/bind/named.conf:g' \
-e 's:/etc/rndc.conf:/etc/bind/rndc.conf:g' \
-e 's:/etc/rndc.key:/etc/bind/rndc.key:g' \
"${i}"
done
use dlz && {
epatch ${DISTDIR}/dlz-${DLZ_VERSION}.patch.bz2
epatch ${FILESDIR}/bind-9.2.5-berkdb_fix.patch
epatch ${FILESDIR}/${PN}-dlzbdb-includes.patch
# use odbc && epatch ${FILESDIR}/${P}-missing_odbc_test.patch
}
# should be installed by bind-tools
sed -e "s:nsupdate ::g" -i ${S}/bin/Makefile.in
WANT_AUTOCONF=2.5 AT_NO_RECURSIVE=1 eautoreconf || die "eautoreconf failed"
# bug #151839
sed \
-e 's:
-i lib/isc/unix/socket.c
}
src_compile() {
local myconf=""
use ssl && myconf="${myconf} --with-openssl"
use idn && myconf="${myconf} --with-idn"
use dlz && {
myconf="${myconf} --with-dlz-filesystem --with-dlz-stub"
use postgres && myconf="${myconf} --with-dlz-postgres"
use mysql && myconf="${myconf} --with-dlz-mysql"
use berkdb && myconf="${myconf} --with-dlz-bdb"
use ldap && myconf="${myconf} --with-dlz-ldap"
use odbc && myconf="${myconf} --with-dlz-odbc"
}
if use threads; then
if use dlz && use mysql; then
echo
ewarn
ewarn "MySQL uses thread local storage in its C api. Thus MySQL"
ewarn "requires that each thread of an application execute a MySQL"
ewarn "\"thread initialization\" to setup the thread local storage."
ewarn "This is impossible to do safely while staying within the DLZ"
ewarn "driver API. This is a limitation caused by MySQL, and not"
ewarn "the DLZ API."
ewarn "Because of this BIND MUST only run with a single thread when"
ewarn "using the MySQL driver."
ewarn
myconf="${myconf} --disable-linux-caps --disable-threads"
ewarn "Threading support disabled"
epause 10
else
myconf="${myconf} --enable-linux-caps --enable-threads"
einfo "Threading support enabled"
fi
else
myconf="${myconf} --disable-linux-caps --disable-threads"
fi
econf \
--sysconfdir=/etc/bind \
--localstatedir=/var \
--with-libtool \
`use_enable ipv6` \
${myconf} || die "econf failed"
emake -j1 || die "failed to compile bind"
}
src_install() {
einstall || die "failed to install bind"
dodoc CHANGES COPYRIGHT FAQ README
use doc && {
docinto misc
dodoc doc/misc/*
docinto html
dohtml doc/arm/*
docinto draft
dodoc doc/draft/*
docinto rfc
dodoc doc/rfc/*
docinto contrib
dodoc contrib/named-bootconf/named-bootconf.sh \
contrib/nanny/nanny.pl
# some handy-dandy dynamic dns examples
cd ${D}/usr/share/doc/${PF}
tar pjxf ${DISTFILES}/dyndns-samples.tbz2
}
newenvd ${FILESDIR}/10bind.env 10bind
dodir /etc/bind /var/bind/{pri,sec}
keepdir /var/bind/sec
insinto /etc/bind ; newins ${FILESDIR}/named.conf-r3 named.conf
# ftp://ftp.rs.internic.net/domain/named.ca:
insinto /var/bind ; doins ${FILESDIR}/named.ca
insinto /var/bind/pri
doins ${FILESDIR}/127.zone
newins ${FILESDIR}/localhost.zone-r2 localhost.zone
newinitd ${FILESDIR}/named.init-r4 named
newconfd ${FILESDIR}/named.confd-r1 named
dosym ../../var/bind/named.ca /var/bind/root.cache
dosym ../../var/bind/pri /etc/bind/pri
dosym ../../var/bind/sec /etc/bind/sec
# Let's get rid of those tools and their manpages since they're provided by bind-tools
rm -f ${D}/usr/share/man/man1/{dig.1,host.1,nslookup.1}
rm -f ${D}/usr/bin/{dig,host,nslookup}
use resolvconf && {
exeinto /etc/resolvconf/update.d
newexe ${FILESDIR}/resolvconf.bind bind
}
}
pkg_postinst() {
if [ ! -f '/etc/bind/rndc.key' ]; then
if [ -c /dev/urandom ]; then
einfo "Using /dev/urandom for generating rndc.key"
/usr/sbin/rndc-confgen -r /dev/urandom -a -u named
echo
else
einfo "Using /dev/random for generating rndc.key"
/usr/sbin/rndc-confgen -a -u named
echo
fi
fi
install -d -o named -g named ${ROOT}/var/run/named \
${ROOT}/var/bind/pri ${ROOT}/var/bind/sec
chown -R named:named ${ROOT}/var/bind
elog "The default zone files are now installed as *.zone,"
elog "be careful merging config files if you have modified"
elog "/var/bind/pri/127 or /var/bind/pri/localhost"
elog
elog "You can edit /etc/conf.d/named to customize named settings"
elog
elog "The BIND ebuild now includes chroot support."
elog "If you like to run bind in chroot AND this is a new install OR"
elog "your bind doesn't already run in chroot, simply run:"
elog "\`emerge --config '=${CATEGORY}/${PF}'\`"
elog "Before running the above command you might want to change the chroot"
elog "dir in /etc/conf.d/named. Otherwise /chroot/dns will be used."
elog
elog "Recently verisign added a wildcard A record to the .COM and .NET TLD"
elog "zones making all .com and .net domains appear to be registered"
elog "This causes many problems such as breaking important anti-spam checks"
elog "which verify source domains exist. ISC released a patch for BIND which"
elog "adds 'delegation-only' zones to allow admins to return the .com and .net"
elog "domain resolution to their normal function."
elog
elog "There is no need to create a com or net data file. Just the"
elog "entries to the named.conf file is enough."
elog
elog " zone "com" IN { type delegation-only; };"
elog " zone "net" IN { type delegation-only; };"
echo
ewarn "BIND >=9.2.5 makes the priority argument to MX records mandatory"
ewarn "when it was previously optional. If the priority is missing, BIND"
ewarn "won't load the zone file at all."
echo
}
pkg_config() {
CHROOT=`sed -n 's/^[[:blank:]]\?CHROOT="\([^"]\+\)"/\1/p' /etc/conf.d/named 2>/dev/null`
EXISTS="no"
if [ -z "${CHROOT}" -a ! -d "/chroot/dns" ]; then
CHROOT="/chroot/dns"
elif [ -d ${CHROOT} ]; then
eerror; eerror "${CHROOT:-/chroot/dns} already exists. Quitting."; eerror; EXISTS="yes"
fi
if [ ! "$EXISTS" = yes ]; then
einfo ; einfon "Setting up the chroot directory..."
mkdir -m 700 -p ${CHROOT}
mkdir -p ${CHROOT}/{dev,etc,var/run/named}
chown -R named:named ${CHROOT}/var/run/named
cp -R /etc/bind ${CHROOT}/etc/
cp /etc/localtime ${CHROOT}/etc/localtime
chown named:named ${CHROOT}/etc/bind/rndc.key
cp -R /var/bind ${CHROOT}/var/
chown -R named:named ${CHROOT}/var/
mknod ${CHROOT}/dev/zero c 1 5
mknod ${CHROOT}/dev/random c 1 8
chmod 666 ${CHROOT}/dev/{random,zero}
chown root:named ${CHROOT}
chmod 0750 ${CHROOT}
grep -q "^#[[:blank:]]\?CHROOT" /etc/conf.d/named ; RETVAL=$?
if [ $RETVAL = 0 ]; then
sed 's/^# \?\(CHROOT.*\)$/\1/' /etc/conf.d/named > /etc/conf.d/named.orig 2>/dev/null
mv --force /etc/conf.d/named.orig /etc/conf.d/named
fi
sleep 1; echo " Done."; sleep 1
einfo
einfo "Add the following to your root .bashrc or .bash_profile: "
einfo " alias rndc='rndc -k ${CHROOT}/etc/bind/rndc.key'"
einfo "Then do the following: "
einfo " source /root/.bashrc or .bash_profile"
einfo
fi
}
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-dns/bind/bind-9.3.2-r3.ebuild,v 1.8 2007/05/06 08:50:30 genone Exp $
inherit eutils libtool autotools
DLZ_VERSION="9.3.2b1"
DESCRIPTION="BIND - Berkeley Internet Name Domain - Name Server"
HOMEPAGE="http://www.isc.org/products/BIND/bind9.html"
SRC_URI="ftp://ftp.isc.org/isc/bind9/${PV}/${P}.tar.gz
doc? ( mirror://gentoo/dyndns-samples.tbz2 )
dlz? ( http://dev.gentoo.org/~voxus/bind/ctrix_dlz_${DLZ_VERSION}.patch.bz2 )"
LICENSE="as-is"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
IUSE="ssl ipv6 doc dlz postgres berkdb mysql odbc ldap selinux idn threads"
DEPEND="!net-dns/idnkit
ssl? ( >=dev-libs/openssl-0.9.6g )
mysql? ( >=virtual/mysql-4.0 )
odbc? ( >=dev-db/unixODBC-2.2.6 )
ldap? ( net-nds/openldap )"
RDEPEND="${DEPEND}
selinux? ( sec-policy/selinux-bind )"
pkg_setup() {
use threads && {
echo
ewarn "If you're in vserver enviroment, you're probably want to"
ewarn "disable threads support because of linux capabilities dependency"
echo
}
ebegin "Creating named group and user"
enewgroup named 40
enewuser named 40 -1 /etc/bind named
eend ${?}
}
src_unpack() {
unpack ${A} && cd ${S}
# Adjusting PATHs in manpages
for i in `echo bin/{named/named.8,check/named-checkconf.8,rndc/rndc.8}`; do
sed -i -e 's:/etc/named.conf:/etc/bind/named.conf:g' \
-e 's:/etc/rndc.conf:/etc/bind/rndc.conf:g' \
-e 's:/etc/rndc.key:/etc/bind/rndc.key:g' \
${i}
done
use dlz && {
epatch ${DISTDIR}/ctrix_dlz_${DLZ_VERSION}.patch.bz2
epatch ${FILESDIR}/${PN}-dlzbdb-includes.patch
use odbc && epatch ${FILESDIR}/${P}-missing_odbc_test.patch
}
use idn && epatch ${S}/contrib/idn/idnkit-1.0-src/patch/bind9/${P}-patch
# should be installed by bind-tools
sed -e "s:nsupdate ::g" -i ${S}/bin/Makefile.in
cd ${S}
WANT_AUTOCONF=2.5 autoconf || die "autoconf failed"
}
src_compile() {
local myconf=""
use ssl && myconf="${myconf} --with-openssl"
use dlz && {
myconf="${myconf} --with-dlz-filesystem --with-dlz-stub"
use postgres && myconf="${myconf} --with-dlz-postgres"
use mysql && myconf="${myconf} --with-dlz-mysql"
use berkdb && myconf="${myconf} --with-dlz-bdb"
use ldap && myconf="${myconf} --with-dlz-ldap"
use odbc && myconf="${myconf} --with-dlz-odbc"
}
if use threads; then
if use dlz && use mysql; then
echo
ewarn
ewarn "MySQL uses thread local storage in its C api. Thus MySQL"
ewarn "requires that each thread of an application execute a MySQL"
ewarn "\"thread initialization\" to setup the thread local storage."
ewarn "This is impossible to do safely while staying within the DLZ"
ewarn "driver API. This is a limitation caused by MySQL, and not"
ewarn "the DLZ API."
ewarn "Because of this BIND MUST only run with a single thread when"
ewarn "using the MySQL driver."
ewarn
myconf="${myconf} --disable-linux-caps --disable-threads"
ewarn "Threading support disabled"
epause 10
else
myconf="${myconf} --enable-linux-caps --enable-threads"
einfo "Threading support enabled"
fi
else
myconf="${myconf} --disable-linux-caps --disable-threads"
fi
econf \
--sysconfdir=/etc/bind \
--localstatedir=/var \
--with-libtool \
`use_enable ipv6` \
${myconf} || die "econf failed"
emake -j1 || die "failed to compile bind"
use idn && {
cd ${S}/contrib/idn/idnkit-1.0-src
econf || die "idn econf failed"
emake || die "idn emake failed"
}
}
src_install() {
einstall || die "failed to install bind"
dodoc CHANGES COPYRIGHT FAQ README
use doc && {
docinto misc
dodoc doc/misc/*
docinto html
dohtml doc/arm/*
docinto draft
dodoc doc/draft/*
docinto rfc
dodoc doc/rfc/*
docinto contrib
dodoc contrib/named-bootconf/named-bootconf.sh \
contrib/nanny/nanny.pl
# some handy-dandy dynamic dns examples
cd ${D}/usr/share/doc/${PF}
tar pjxf ${DISTFILES}/dyndns-samples.tbz2
}
newenvd ${FILESDIR}/10bind.env 10bind
dodir /etc/bind /var/bind/{pri,sec}
keepdir /var/bind/sec
insinto /etc/bind ; newins ${FILESDIR}/named.conf-r3 named.conf
# ftp://ftp.rs.internic.net/domain/named.ca:
insinto /var/bind ; doins ${FILESDIR}/named.ca
insinto /var/bind/pri
doins ${FILESDIR}/127.zone
newins ${FILESDIR}/localhost.zone-r1 localhost.zone
newinitd ${FILESDIR}/named.init-r3 named
newconfd ${FILESDIR}/named.confd-r1 named
dosym ../../var/bind/named.ca /var/bind/root.cache
dosym ../../var/bind/pri /etc/bind/pri
dosym ../../var/bind/sec /etc/bind/sec
if use idn; then
cd ${S}/contrib/idn/idnkit-1.0-src
einstall || die "failed to install idn kit"
docinto idn
dodoc ChangeLog INSTALL{,.ja} README{,.ja} NEWS
fi
# Let's get rid of those tools and their manpages since they're provided by bind-tools
rm -f ${D}/usr/share/man/man1/{dig.1,host.1,nslookup.1}
rm -f ${D}/usr/bin/{dig,host,nslookup}
}
pkg_postinst() {
if [ ! -f '/etc/bind/rndc.key' ]; then
if [ -c /dev/urandom ]; then
einfo "Using /dev/urandom for generating rndc.key"
/usr/sbin/rndc-confgen -r /dev/urandom -a -u named
echo
else
einfo "Using /dev/random for generating rndc.key"
/usr/sbin/rndc-confgen -a -u named
echo
fi
fi
install -d -o named -g named ${ROOT}/var/run/named \
${ROOT}/var/bind/pri ${ROOT}/var/bind/sec
chown -R named:named ${ROOT}/var/bind
elog "The default zone files are now installed as *.zone,"
elog "be careful merging config files if you have modified"
elog "/var/bind/pri/127 or /var/bind/pri/localhost"
elog
elog "You can edit /etc/conf.d/named to customize named settings"
elog
elog "The BIND ebuild now includes chroot support."
elog "If you like to run bind in chroot AND this is a new install OR"
elog "your bind doesn't already run in chroot, simply run:"
elog "\`emerge --config '=${CATEGORY}/${PF}'\`"
elog "Before running the above command you might want to change the chroot"
elog "dir in /etc/conf.d/named. Otherwise /chroot/dns will be used."
elog
elog "Recently verisign added a wildcard A record to the .COM and .NET TLD"
elog "zones making all .com and .net domains appear to be registered"
elog "This causes many problems such as breaking important anti-spam checks"
elog "which verify source domains exist. ISC released a patch for BIND which"
elog "adds 'delegation-only' zones to allow admins to return the .com and .net"
elog "domain resolution to their normal function."
elog
elog "There is no need to create a com or net data file. Just the"
elog "entries to the named.conf file is enough."
elog
elog " zone "com" IN { type delegation-only; };"
elog " zone "net" IN { type delegation-only; };"
echo
ewarn "BIND >=9.2.5 makes the priority argument to MX records mandatory"
ewarn "when it was previously optional. If the priority is missing, BIND"
ewarn "won't load the zone file at all."
echo
}
pkg_config() {
CHROOT=`sed -n 's/^[[:blank:]]\?CHROOT="\([^"]\+\)"/\1/p' /etc/conf.d/named 2>/dev/null`
EXISTS="no"
if [ -z "${CHROOT}" -a ! -d "/chroot/dns" ]; then
CHROOT="/chroot/dns"
elif [ -d ${CHROOT} ]; then
eerror; eerror "${CHROOT:-/chroot/dns} already exists. Quitting."; eerror; EXISTS="yes"
fi
if [ ! "$EXISTS" = yes ]; then
einfo ; einfon "Setting up the chroot directory..."
mkdir -m 700 -p ${CHROOT}
mkdir -p ${CHROOT}/{dev,etc,var/run/named}
chown -R named:named ${CHROOT}/var/run/named
cp -R /etc/bind ${CHROOT}/etc/
cp /etc/localtime ${CHROOT}/etc/localtime
chown named:named ${CHROOT}/etc/bind/rndc.key
cp -R /var/bind ${CHROOT}/var/
chown -R named:named ${CHROOT}/var/
mknod ${CHROOT}/dev/zero c 1 5
mknod ${CHROOT}/dev/random c 1 8
chmod 666 ${CHROOT}/dev/{random,zero}
chown root:named ${CHROOT}
chmod 0750 ${CHROOT}
grep -q "^#[[:blank:]]\?CHROOT" /etc/conf.d/named ; RETVAL=$?
if [ $RETVAL = 0 ]; then
sed 's/^# \?\(CHROOT.*\)$/\1/' /etc/conf.d/named > /etc/conf.d/named.orig 2>/dev/null
mv --force /etc/conf.d/named.orig /etc/conf.d/named
fi
sleep 1; echo " Done."; sleep 1
einfo
einfo "Add the following to your root .bashrc or .bash_profile: "
einfo " alias rndc='rndc -k ${CHROOT}/etc/bind/rndc.key'"
einfo "Then do the following: "
einfo " source /root/.bashrc or .bash_profile"
einfo
fi
}
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-dns/bind/bind-9.3.2-r4.ebuild,v 1.19 2007/05/06 08:50:30 genone Exp $
inherit eutils libtool autotools
DLZ_VERSION="9.3.2b1"
MY_P="${P}-P1"
MY_PV="${PV}-P1"
DESCRIPTION="BIND - Berkeley Internet Name Domain - Name Server"
HOMEPAGE="http://www.isc.org/products/BIND/bind9.html"
SRC_URI="ftp://ftp.isc.org/isc/bind9/${MY_PV}/${MY_P}.tar.gz
doc? ( mirror://gentoo/dyndns-samples.tbz2 )
dlz? ( http://dev.gentoo.org/~voxus/bind/ctrix_dlz_${DLZ_VERSION}.patch.bz2 )"
LICENSE="as-is"
SLOT="0"
KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd"
IUSE="ssl ipv6 doc dlz postgres berkdb mysql odbc ldap selinux idn threads"
DEPEND="!net-dns/idnkit
ssl? ( >=dev-libs/openssl-0.9.6g )
mysql? ( >=virtual/mysql-4.0 )
odbc? ( >=dev-db/unixODBC-2.2.6 )
ldap? ( net-nds/openldap )"
RDEPEND="${DEPEND}
selinux? ( sec-policy/selinux-bind )"
S=${WORKDIR}/${MY_P}
pkg_setup() {
use threads && {
echo
ewarn "If you're in vserver enviroment, you're probably want to"
ewarn "disable threads support because of linux capabilities dependency"
echo
}
ebegin "Creating named group and user"
enewgroup named 40
enewuser named 40 -1 /etc/bind named
eend ${?}
}
src_unpack() {
unpack ${A}
cd "${S}"
# Adjusting PATHs in manpages
for i in bin/{named/named.8,check/named-checkconf.8,rndc/rndc.8} ; do
sed -i \
-e 's:/etc/named.conf:/etc/bind/named.conf:g' \
-e 's:/etc/rndc.conf:/etc/bind/rndc.conf:g' \
-e 's:/etc/rndc.key:/etc/bind/rndc.key:g' \
"${i}"
done
use dlz && {
epatch ${DISTDIR}/ctrix_dlz_${DLZ_VERSION}.patch.bz2
epatch ${FILESDIR}/${PN}-dlzbdb-includes.patch
use odbc && epatch ${FILESDIR}/${P}-missing_odbc_test.patch
}
use idn && epatch ${S}/contrib/idn/idnkit-1.0-src/patch/bind9/${P}-patch
# should be installed by bind-tools
sed -e "s:nsupdate ::g" -i ${S}/bin/Makefile.in
cd ${S}
WANT_AUTOCONF=2.5 AT_NO_RECURSIVE=1 eautoreconf || die "eautoreconf failed"
}
src_compile() {
local myconf=""
use ssl && myconf="${myconf} --with-openssl"
use dlz && {
myconf="${myconf} --with-dlz-filesystem --with-dlz-stub"
use postgres && myconf="${myconf} --with-dlz-postgres"
use mysql && myconf="${myconf} --with-dlz-mysql"
use berkdb && myconf="${myconf} --with-dlz-bdb"
use ldap && myconf="${myconf} --with-dlz-ldap"
use odbc && myconf="${myconf} --with-dlz-odbc"
}
if use threads; then
if use dlz && use mysql; then
echo
ewarn
ewarn "MySQL uses thread local storage in its C api. Thus MySQL"
ewarn "requires that each thread of an application execute a MySQL"
ewarn "\"thread initialization\" to setup the thread local storage."
ewarn "This is impossible to do safely while staying within the DLZ"
ewarn "driver API. This is a limitation caused by MySQL, and not"
ewarn "the DLZ API."
ewarn "Because of this BIND MUST only run with a single thread when"
ewarn "using the MySQL driver."
ewarn
myconf="${myconf} --disable-linux-caps --disable-threads"
ewarn "Threading support disabled"
epause 10
else
myconf="${myconf} --enable-linux-caps --enable-threads"
einfo "Threading support enabled"
fi
else
myconf="${myconf} --disable-linux-caps --disable-threads"
fi
econf \
--sysconfdir=/etc/bind \
--localstatedir=/var \
--with-libtool \
`use_enable ipv6` \
${myconf} || die "econf failed"
emake -j1 || die "failed to compile bind"
use idn && {
cd ${S}/contrib/idn/idnkit-1.0-src
econf || die "idn econf failed"
emake || die "idn emake failed"
}
}
src_install() {
einstall || die "failed to install bind"
dodoc CHANGES COPYRIGHT FAQ README
use doc && {
docinto misc
dodoc doc/misc/*
docinto html
dohtml doc/arm/*
docinto draft
dodoc doc/draft/*
docinto rfc
dodoc doc/rfc/*
docinto contrib
dodoc contrib/named-bootconf/named-bootconf.sh \
contrib/nanny/nanny.pl
# some handy-dandy dynamic dns examples
cd ${D}/usr/share/doc/${PF}
tar pjxf ${DISTFILES}/dyndns-samples.tbz2
}
newenvd ${FILESDIR}/10bind.env 10bind
dodir /etc/bind /var/bind/{pri,sec}
keepdir /var/bind/sec
insinto /etc/bind ; newins ${FILESDIR}/named.conf-r3 named.conf
# ftp://ftp.rs.internic.net/domain/named.ca:
insinto /var/bind ; doins ${FILESDIR}/named.ca
insin