diff options
author | Konstantin V. Arkhipov <voxus@gentoo.org> | 2007-06-02 22:34:48 +0000 |
---|---|---|
committer | Konstantin V. Arkhipov <voxus@gentoo.org> | 2007-06-02 22:34:48 +0000 |
commit | 8cc113b2cb7ffdf9a013ed5d272dfc54e6e178c1 (patch) | |
tree | 3de9c0508a810bc1c9263fe838ab2e90e4cc793a /net-dns/bind/files | |
parent | Stable on x86 (diff) | |
download | gentoo-2-8cc113b2cb7ffdf9a013ed5d272dfc54e6e178c1.tar.gz gentoo-2-8cc113b2cb7ffdf9a013ed5d272dfc54e6e178c1.tar.bz2 gentoo-2-8cc113b2cb7ffdf9a013ed5d272dfc54e6e178c1.zip |
* closing bugs #151839 and #175644
(Portage version: 2.1.2.9)
Diffstat (limited to 'net-dns/bind/files')
-rw-r--r-- | net-dns/bind/files/digest-bind-9.2.8-r3 (renamed from net-dns/bind/files/digest-bind-9.2.8-r2) | 0 | ||||
-rw-r--r-- | net-dns/bind/files/digest-bind-9.3.4-r3 | 9 | ||||
-rw-r--r-- | net-dns/bind/files/digest-bind-9.4.1-r1 (renamed from net-dns/bind/files/digest-bind-9.4.1) | 0 | ||||
-rw-r--r-- | net-dns/bind/files/named.confd-r2 | 20 | ||||
-rwxr-xr-x | net-dns/bind/files/named.init-r5 | 71 |
5 files changed, 100 insertions, 0 deletions
diff --git a/net-dns/bind/files/digest-bind-9.2.8-r2 b/net-dns/bind/files/digest-bind-9.2.8-r3 index 6d73dad89748..6d73dad89748 100644 --- a/net-dns/bind/files/digest-bind-9.2.8-r2 +++ b/net-dns/bind/files/digest-bind-9.2.8-r3 diff --git a/net-dns/bind/files/digest-bind-9.3.4-r3 b/net-dns/bind/files/digest-bind-9.3.4-r3 new file mode 100644 index 000000000000..52fae07ad51b --- /dev/null +++ b/net-dns/bind/files/digest-bind-9.3.4-r3 @@ -0,0 +1,9 @@ +MD5 df5417e7e7cf017fa28b65d0a3d6e999 bind-9.3.4.tar.gz 5405022 +RMD160 8b5fda9542f6afbe7ffb857d72f7e545237d7826 bind-9.3.4.tar.gz 5405022 +SHA256 40152026af715b15ac958f374394e5189a099b562eb913470ccc43f6fbd19c21 bind-9.3.4.tar.gz 5405022 +MD5 00419378bdf3691c7d2fe7737f25007d ctrix_dlz_9.3.3.patch.bz2 66143 +RMD160 ee3a7ef8e1b3167ff572ca8a7836a8d4d64a834d ctrix_dlz_9.3.3.patch.bz2 66143 +SHA256 6550455ba37f5f25f047078bedf825d05eab45bbc4a3d8b7bf23a716749423cf ctrix_dlz_9.3.3.patch.bz2 66143 +MD5 2bb12cfcd70284e72fbf9e70e5e2974d dyndns-samples.tbz2 22866 +RMD160 27d5b2d0edb8e1ff16b3f980c38d7af33ccf0c7d dyndns-samples.tbz2 22866 +SHA256 92fb06a92ca99cbbe96b90bcca229ef9c12397db57ae17e199dad9f1218fdbe8 dyndns-samples.tbz2 22866 diff --git a/net-dns/bind/files/digest-bind-9.4.1 b/net-dns/bind/files/digest-bind-9.4.1-r1 index 2c4c145380ec..2c4c145380ec 100644 --- a/net-dns/bind/files/digest-bind-9.4.1 +++ b/net-dns/bind/files/digest-bind-9.4.1-r1 diff --git a/net-dns/bind/files/named.confd-r2 b/net-dns/bind/files/named.confd-r2 new file mode 100644 index 000000000000..2106938c5308 --- /dev/null +++ b/net-dns/bind/files/named.confd-r2 @@ -0,0 +1,20 @@ +# Set various named options here. +# +OPTIONS="" + +# Set this to the number of processors you have. +# +CPU="1" + +# If you wish to run bind in a chroot, run: +# emerge --config =<bind-version> +# and un-comment the following line. +# You can specify a different chroot directory but MAKE SURE it's empty. +# CHROOT="/chroot/dns" + +# Default pid file location +PIDFILE="${CHROOT}/var/run/named/named.pid" + +# Scheduling priority: 19 is the lowest and -20 is the highest. +# +NAMED_NICELEVEL="0" diff --git a/net-dns/bind/files/named.init-r5 b/net-dns/bind/files/named.init-r5 new file mode 100755 index 000000000000..734ac5d76b36 --- /dev/null +++ b/net-dns/bind/files/named.init-r5 @@ -0,0 +1,71 @@ +#!/sbin/runscript +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-dns/bind/files/named.init-r5,v 1.1 2007/06/02 22:34:48 voxus Exp $ + +opts="start stop reload restart" + +depend() { + need net + use logger + provide dns +} + +checkconfig() { + if [ ! -f ${CHROOT}/etc/bind/named.conf ] ; then + eerror "No ${CHROOT}/etc/bind/named.conf file exists!" + fi + + # In case someone doesn't have $CPU set from /etc/conf.d/named + if [ ! ${CPU} ] ; then + CPU="1" + fi + + # as suggested in bug #107724 + [ -n "${PIDFILE}" ] || PIDFILE=${CHROOT}$(\ + egrep -v \ + "^([[:cntrl:] ]+(#|//|/\*)|(#|//|/\*))" \ + ${CHROOT}/etc/bind/named.conf \ + | egrep -o -m1 "pid\-file +\".+\" *;" \ + | cut -d\" -f2 + ) + + KEY="${CHROOT}/etc/bind/rndc.key" +} + +start() { + ebegin "Starting ${CHROOT:+chrooted }named" + checkconfig || return 1 + start-stop-daemon --start --quiet --pidfile ${PIDFILE} \ + --nicelevel ${NAMED_NICELEVEL:-0} \ + --exec /usr/sbin/named \ + -- -u named -n ${CPU} ${OPTIONS} ${CHROOT:+-t} ${CHROOT} + eend $? +} + +stop() { + ebegin "Stopping ${CHROOT:+chrooted }named" + checkconfig || return 2 + if [ -f $KEY ] ; then + rndc -k $KEY stop &>/dev/null + else + start-stop-daemon --stop --quiet --pidfile $PIDFILE \ + --exec /usr/sbin/named -- stop + fi + eend $? +} + +reload() { + checkconfig || return 3 + if [ ! -f $PIDFILE ] ; then + /etc/init.d/named start &>/dev/null + exit + fi + + if [ -f $KEY ] ; then + ebegin "Reloading named.conf and zone files" + rndc -k $KEY reload &>/dev/null + eend $? + else /etc/init.d/named restart &>/dev/null + fi +} |