diff options
author | Christian Ruppert <idl0r@gentoo.org> | 2010-06-03 16:57:18 +0000 |
---|---|---|
committer | Christian Ruppert <idl0r@gentoo.org> | 2010-06-03 16:57:18 +0000 |
commit | 38c0c98f53261912b6fcc0ed37b0926e30db4760 (patch) | |
tree | cd948ed453684917c13b325edbd58f2080bd39d2 /net-dns/bind | |
parent | version bump (diff) | |
download | gentoo-2-38c0c98f53261912b6fcc0ed37b0926e30db4760.tar.gz gentoo-2-38c0c98f53261912b6fcc0ed37b0926e30db4760.tar.bz2 gentoo-2-38c0c98f53261912b6fcc0ed37b0926e30db4760.zip |
Improve pkg_config, bug 321457, thanks to Duncan <1i5t5.duncan@cox.net>. Remove some old einfo's
(Portage version: 2.2_rc67/cvs/Linux x86_64)
Diffstat (limited to 'net-dns/bind')
-rw-r--r-- | net-dns/bind/ChangeLog | 7 | ||||
-rw-r--r-- | net-dns/bind/bind-9.6.2_p2.ebuild | 30 | ||||
-rw-r--r-- | net-dns/bind/bind-9.7.0_p2-r1.ebuild | 30 |
3 files changed, 22 insertions, 45 deletions
diff --git a/net-dns/bind/ChangeLog b/net-dns/bind/ChangeLog index d65d30c6581f..2fca3ebd5675 100644 --- a/net-dns/bind/ChangeLog +++ b/net-dns/bind/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for net-dns/bind # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-dns/bind/ChangeLog,v 1.275 2010/05/23 20:44:50 idl0r Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-dns/bind/ChangeLog,v 1.276 2010/06/03 16:57:17 idl0r Exp $ + + 03 Jun 2010; Christian Ruppert <idl0r@gentoo.org> bind-9.6.2_p2.ebuild, + bind-9.7.0_p2-r1.ebuild: + Improve pkg_config, bug 321457, thanks to Duncan <1i5t5.duncan@cox.net>. + Remove some old einfo's *bind-9.7.0_p2-r1 (23 May 2010) *bind-9.6.2_p2 (23 May 2010) diff --git a/net-dns/bind/bind-9.6.2_p2.ebuild b/net-dns/bind/bind-9.6.2_p2.ebuild index 56dafb598643..bfacc43c73d9 100644 --- a/net-dns/bind/bind-9.6.2_p2.ebuild +++ b/net-dns/bind/bind-9.6.2_p2.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-dns/bind/bind-9.6.2_p2.ebuild,v 1.1 2010/05/23 20:44:50 idl0r Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-dns/bind/bind-9.6.2_p2.ebuild,v 1.2 2010/06/03 16:57:18 idl0r Exp $ EAPI="3" @@ -268,30 +268,21 @@ pkg_postinst() { 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." einfo - 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." - einfo - einfo "There is no need to create a com or net data file. Just the" - einfo "entries to the named.conf file is enough." - einfo - einfo " zone "com" IN { type delegation-only; };" - einfo " zone "net" IN { type delegation-only; };" - CHROOT=$(sed -n 's/^[[:blank:]]\?CHROOT="\([^"]\+\)"/\1/p' /etc/conf.d/named 2>/dev/null) + CHROOT=$(source /etc/conf.d/named 2>/dev/null; echo ${CHROOT}) if [[ -n ${CHROOT} && -d ${CHROOT} ]]; then ewarn "NOTE: as of 'bind-9.6.1' the chroot part of the init-script got some major changes." fi } pkg_config() { - CHROOT=$(sed -n 's/^[[:blank:]]\?CHROOT="\([^"]\+\)"/\1/p' /etc/conf.d/named 2>/dev/null) + CHROOT=$(source /etc/conf.d/named 2>/dev/null; echo ${CHROOT}) - if [ -z "${CHROOT}" ]; then - CHROOT="/chroot/dns" + if [[ -z "${CHROOT}" ]]; then + eerror "This config script is designed to automate setting up" + eerror "a chrooted bind/named. To do so, please first uncomment" + eerror "and set the CHROOT variable in '/etc/conf.d/named'." + die "Unset CHROOT" fi if [[ -d "${CHROOT}" ]]; then ewarn "NOTE: As of 'bind-9.6.1' the chroot part of the init-script got some major changes." @@ -327,9 +318,4 @@ pkg_config() { elog "You may need to add the following line to your syslog-ng.conf:" elog "source jail { unix-stream(\"${CHROOT}/dev/log\"); };" - - grep -q "^#[[:blank:]]\?CHROOT" /etc/conf.d/named ; RETVAL=$? - if [ $RETVAL = 0 ]; then - sed -i 's/^# \?\(CHROOT.*\)$/\1/' /etc/conf.d/named 2>/dev/null - fi } diff --git a/net-dns/bind/bind-9.7.0_p2-r1.ebuild b/net-dns/bind/bind-9.7.0_p2-r1.ebuild index d9ac1fade18e..255760bf39aa 100644 --- a/net-dns/bind/bind-9.7.0_p2-r1.ebuild +++ b/net-dns/bind/bind-9.7.0_p2-r1.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-dns/bind/bind-9.7.0_p2-r1.ebuild,v 1.1 2010/05/23 20:44:50 idl0r Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-dns/bind/bind-9.7.0_p2-r1.ebuild,v 1.2 2010/06/03 16:57:17 idl0r Exp $ EAPI="3" @@ -268,30 +268,21 @@ pkg_postinst() { 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." einfo - 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." - einfo - einfo "There is no need to create a com or net data file. Just the" - einfo "entries to the named.conf file is enough." - einfo - einfo " zone "com" IN { type delegation-only; };" - einfo " zone "net" IN { type delegation-only; };" - CHROOT=$(sed -n 's/^[[:blank:]]\?CHROOT="\([^"]\+\)"/\1/p' /etc/conf.d/named 2>/dev/null) + CHROOT=$(source /etc/conf.d/named 2>/dev/null; echo ${CHROOT}) if [[ -n ${CHROOT} && -d ${CHROOT} ]]; then ewarn "NOTE: as of 'bind-9.6.1' the chroot part of the init-script got some major changes." fi } pkg_config() { - CHROOT=$(sed -n 's/^[[:blank:]]\?CHROOT="\([^"]\+\)"/\1/p' /etc/conf.d/named 2>/dev/null) + CHROOT=$(source /etc/conf.d/named 2>/dev/null; echo ${CHROOT}) - if [ -z "${CHROOT}" ]; then - CHROOT="/chroot/dns" + if [[ -z "${CHROOT}" ]]; then + eerror "This config script is designed to automate setting up" + eerror "a chrooted bind/named. To do so, please first uncomment" + eerror "and set the CHROOT variable in '/etc/conf.d/named'." + die "Unset CHROOT" fi if [[ -d "${CHROOT}" ]]; then ewarn "NOTE: As of 'bind-9.6.1' the chroot part of the init-script got some major changes." @@ -327,9 +318,4 @@ pkg_config() { elog "You may need to add the following line to your syslog-ng.conf:" elog "source jail { unix-stream(\"${CHROOT}/dev/log\"); };" - - grep -q "^#[[:blank:]]\?CHROOT" /etc/conf.d/named ; RETVAL=$? - if [ $RETVAL = 0 ]; then - sed -i 's/^# \?\(CHROOT.*\)$/\1/' /etc/conf.d/named 2>/dev/null - fi } |