* bug #109587
authorKonstantin V. Arkhipov <voxus@gentoo.org>
Mon, 17 Oct 2005 18:32:14 +0000 (18:32 +0000)
committerKonstantin V. Arkhipov <voxus@gentoo.org>
Mon, 17 Oct 2005 18:32:14 +0000 (18:32 +0000)
Package-Manager: portage-2.0.53_rc5

net-dns/bind/ChangeLog
net-dns/bind/Manifest
net-dns/bind/bind-9.3.2_beta1.ebuild [new file with mode: 0644]
net-dns/bind/files/digest-bind-9.3.2_beta1 [new file with mode: 0644]

index 28d016b26e8a0f390423e2a05bd065c8cea2154b..a6fba4febddaa60c36d4ff65f01b81bfc15bcc4c 100644 (file)
@@ -1,6 +1,11 @@
 # ChangeLog for net-dns/bind
 # Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-dns/bind/ChangeLog,v 1.91 2005/09/30 22:33:25 voxus Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-dns/bind/ChangeLog,v 1.92 2005/10/17 18:32:14 voxus Exp $
+
+*bind-9.3.2_beta1 (17 Oct 2005)
+
+  17 Oct 2005; Konstantin Arkhipov <voxus@gentoo.org> +bind-9.3.2_beta1.ebuild:
+  Beta bump wrt bug #109587.
 
 *bind-9.2.5-r8 (01 Oct 2005)
 *bind-9.3.1-r6 (01 Oct 2005)
index f98fd20f1a5cca5eea98a0ceb4ba33c8f8235e3d..a4addba4d1b8decc2bb4d9e6241ae404c2482438 100644 (file)
@@ -1,30 +1,32 @@
+MD5 2e80c7163595b3530708103940b9f155 ChangeLog 14916
+MD5 59dbb3246bd5abb0459f7b1c1bbc553b bind-9.2.5-r4.ebuild 8189
 MD5 ec4d3894133e0f89758ceb92e83f0b8d bind-9.2.5-r6.ebuild 8220
 MD5 567da761355ebedae07a39ab212f5f85 bind-9.2.5-r8.ebuild 8235
 MD5 334afa45d7662c79de03b559e98c53f0 bind-9.3.1-r6.ebuild 8042
-MD5 6ec5b5ad581350245f7a4b077906a7e4 ChangeLog 14773
-MD5 bf7284c3e31bd3292a01fa046b3220bb metadata.xml 352
-MD5 59dbb3246bd5abb0459f7b1c1bbc553b bind-9.2.5-r4.ebuild 8189
+MD5 797fd89e5330c72760ca531e48eda322 bind-9.3.2_beta1.ebuild 8101
+MD5 42b5ed5adcee33cf40531d7955412b21 files/10bind.env 27
 MD5 51197afe8da37b1b453456de90ca4f25 files/127 227
+MD5 51197afe8da37b1b453456de90ca4f25 files/127.zone 227
+MD5 4346332cc9681502a3aedfd0a7a1ac41 files/bind-9.2.5-berkdb_fix.patch 537
 MD5 75d14cac80e71b4ac0662775064c06e2 files/bind-9.2.5-dlz-mysql.patch 11296
-MD5 620cf3c88d615f841884ee25bc8f8397 files/named.init 1641
+MD5 9a06b553558342585f8ba88bd5e4c569 files/bind-9.2.5-mysql.patch 11315
 MD5 d47c8a742a2645377ba4d783907700dd files/digest-bind-9.2.5-r4 127
 MD5 d47c8a742a2645377ba4d783907700dd files/digest-bind-9.2.5-r6 127
 MD5 d47c8a742a2645377ba4d783907700dd files/digest-bind-9.2.5-r8 127
-MD5 a8ffc671392ffacafb5c49ffc1c6a4c6 files/named.rc6-pid_fix 488
 MD5 708e6dd2ce57583129d00b3d721bc3a4 files/digest-bind-9.3.1-r6 133
-MD5 4346332cc9681502a3aedfd0a7a1ac41 files/bind-9.2.5-berkdb_fix.patch 537
-MD5 0eab8a4d5b98b79f76b136ab0dffabcf files/named.rc6-smart_pid_fix 1204
-MD5 79c3a341943b393cef4833480deace2d files/named.init-r2 1481
-MD5 9a06b553558342585f8ba88bd5e4c569 files/bind-9.2.5-mysql.patch 11315
-MD5 21e3efd21e18f4c660155978105f8ebe files/named.confd 351
-MD5 51197afe8da37b1b453456de90ca4f25 files/127.zone 227
+MD5 84357fc49d9bc6f4eb8e3396057fefde files/digest-bind-9.3.2_beta1 136
+MD5 2bb12cfcd70284e72fbf9e70e5e2974d files/dyndns-samples.tbz2 22866
 MD5 ccfca63035b534556c3910270d40a4b9 files/localhost 412
+MD5 ccfca63035b534556c3910270d40a4b9 files/localhost.zone 412
+MD5 e83e7a76e253debfdd120311fda73fb6 files/named.ca 2518
 MD5 b3af799ce2505e78a14bb16868cf0593 files/named.conf-r1 758
 MD5 e9bb1e01cf0b7597e739e889499ddd7a files/named.conf-r2 768
 MD5 be5fd752bdbd59385f2a559d603098d5 files/named.conf-r3 1314
-MD5 ccfca63035b534556c3910270d40a4b9 files/localhost.zone 412
-MD5 2bb12cfcd70284e72fbf9e70e5e2974d files/dyndns-samples.tbz2 22866
-MD5 412d666c947769b6015a65a42bb8ea00 files/named.rc6 1434
-MD5 42b5ed5adcee33cf40531d7955412b21 files/10bind.env 27
-MD5 e83e7a76e253debfdd120311fda73fb6 files/named.ca 2518
+MD5 21e3efd21e18f4c660155978105f8ebe files/named.confd 351
+MD5 620cf3c88d615f841884ee25bc8f8397 files/named.init 1641
+MD5 79c3a341943b393cef4833480deace2d files/named.init-r2 1481
 MD5 33e3834bbd0adf80e570fc73aa5a7147 files/named.rc 1644
+MD5 412d666c947769b6015a65a42bb8ea00 files/named.rc6 1434
+MD5 a8ffc671392ffacafb5c49ffc1c6a4c6 files/named.rc6-pid_fix 488
+MD5 0eab8a4d5b98b79f76b136ab0dffabcf files/named.rc6-smart_pid_fix 1204
+MD5 bf7284c3e31bd3292a01fa046b3220bb metadata.xml 352
diff --git a/net-dns/bind/bind-9.3.2_beta1.ebuild b/net-dns/bind/bind-9.3.2_beta1.ebuild
new file mode 100644 (file)
index 0000000..5fa73e0
--- /dev/null
@@ -0,0 +1,264 @@
+# Copyright 1999-2005 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_beta1.ebuild,v 1.1 2005/10/17 18:32:14 voxus Exp $
+
+inherit eutils libtool
+
+BETA_VERSION="${PV/_beta/b}"
+
+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/${BETA_VERSION}/${PN}-${BETA_VERSION}.tar.gz
+       dlz? ( http://dev.gentoo.org/~voxus/bind/ctrix_dlz_${BETA_VERSION}.patch.bz2 )"
+
+LICENSE="as-is"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sparc ~x86"
+IUSE="ssl ipv6 doc dlz postgres berkdb mysql odbc ldap selinux idn threads"
+
+DEPEND="sys-apps/groff
+       sys-devel/autoconf
+       ssl? ( >=dev-libs/openssl-0.9.6g )
+       mysql? ( >=dev-db/mysql-4 )
+       odbc? ( >=dev-db/unixODBC-2.2.6 )
+       ldap? ( net-nds/openldap )"
+
+RDEPEND="${DEPEND}
+       selinux? ( sec-policy/selinux-bind )"
+
+S="${WORKDIR}/${PN}-${BETA_VERSION}"
+
+pkg_setup() {
+       if use dlz && use idn;
+       then
+               echo
+               eerror "DLZ currently doesn't supports IDN"
+               eerror "You should disable 'idn' or 'dlz' use flag to continue"
+
+               die "dlz doesn't support idn currently"
+       fi
+}
+
+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_${BETA_VERSION}.patch.bz2 || \
+                       die "dlz patch failed"
+       }
+
+       use idn && die "idn patch is broken for this beta"
+
+       # 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 ""
+                       einfo "MySQL uses thread local storage in its C api. Thus MySQL"
+                       einfo "requires that each thread of an application execute a MySQL"
+                       einfo "\"thread initialization\" to setup the thread local storage."
+                       einfo "This is impossible to do safely while staying within the DLZ"
+                       einfo "driver API. This is a limitation caused by MySQL, and not"
+                       einfo "the DLZ API."
+                       ewarn "Because of this BIND MUST only run with a single thread when"
+                       ewarn "using the MySQL driver."
+                       echo
+                       myconf="${myconf} --disable-threads"
+                       einfo "Threading support disabled"
+                       epause 10
+               else
+                       myconf="${myconf} --enable-linux-caps --enable-threads"
+                       einfo "Threading support enabled"
+               fi
+       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 ${FILESDIR}/dyndns-samples.tbz2
+       }
+
+       insinto /etc/env.d
+       newins ${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,localhost}.zone
+
+       cp ${FILESDIR}/named.init-r2 ${T}/named && doinitd ${T}/named
+       cp ${FILESDIR}/named.confd ${T}/named && doconfd ${T}/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}
+
+       ebegin "Creating named group and user"
+       enewgroup named 40
+       enewuser named 40 -1 /etc/bind named
+       eend ${?}
+}
+
+pkg_postinst() {
+       if [ ! -f '/etc/bind/rndc.key' ]; then
+               /usr/sbin/rndc-confgen -a -u named
+       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
+
+       einfo "The default zone files are now installed as *.zone,"
+       einfo "be careful merging config files if you have modified"
+       einfo "/var/bind/pri/127 or /var/bind/pri/localhost"
+       einfo
+       einfo "You can edit /etc/conf.d/named to customize named settings"
+       einfo
+       einfo "The BIND ebuild now includes chroot support."
+       einfo "If you like to run bind in chroot AND this is a new install OR"
+       einfo "your bind doesn't already run in chroot, simply run:"
+       einfo "\`ebuild /var/db/pkg/${CATEGORY}/${PF}/${PF}.ebuild config\`"
+       einfo "Before running the above command you might want to change the chroot"
+       einfo "dir in /etc/conf.d/named. Otherwise /chroot/dns will be used."
+       echo
+       einfo "Recently verisign added a wildcard A record to the .COM and .NET TLD"
+       einfo "zones making all .com and .net domains appear to be registered"
+       einfo "This causes many problems such as breaking important anti-spam checks"
+       einfo "which verify source domains exist. ISC released a patch for BIND which"
+       einfo "adds 'delegation-only' zones to allow admins to return the .com and .net"
+       einfo "domain resolution to their normal function."
+       echo
+       einfo "There is no need to create a com or net data file. Just the"
+       einfo "entries to the named.conf file is enough."
+       echo
+       einfo " zone "com" IN { type delegation-only; };"
+       einfo " 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
+}
diff --git a/net-dns/bind/files/digest-bind-9.3.2_beta1 b/net-dns/bind/files/digest-bind-9.3.2_beta1
new file mode 100644 (file)
index 0000000..8a0ad06
--- /dev/null
@@ -0,0 +1,2 @@
+MD5 2e6a2e42a62112fd9e84c54508715823 bind-9.3.2b1.tar.gz 5297411
+MD5 a70b386bf85c26b1c797e0936be28b79 ctrix_dlz_9.3.2b1.patch.bz2 60982