diff options
author | Konstantin V. Arkhipov <voxus@gentoo.org> | 2006-10-22 18:05:21 +0000 |
---|---|---|
committer | Konstantin V. Arkhipov <voxus@gentoo.org> | 2006-10-22 18:05:21 +0000 |
commit | 8a3f19b8dcffe0b1ff977bbee604ca9542a4e5ad (patch) | |
tree | a7b422a8b7d5b5ca1c9827fb032eff644f562ce2 /net-dns/bind | |
parent | Set UNIONFS_OPT_CFLAG to CFLAGS. (diff) | |
download | historical-8a3f19b8dcffe0b1ff977bbee604ca9542a4e5ad.tar.gz historical-8a3f19b8dcffe0b1ff977bbee604ca9542a4e5ad.tar.bz2 historical-8a3f19b8dcffe0b1ff977bbee604ca9542a4e5ad.zip |
+ forgotten init.
Package-Manager: portage-2.1.2_pre3-r6
Diffstat (limited to 'net-dns/bind')
-rw-r--r-- | net-dns/bind/Manifest | 14 | ||||
-rwxr-xr-x | net-dns/bind/files/named.init-r4 | 70 |
2 files changed, 74 insertions, 10 deletions
diff --git a/net-dns/bind/Manifest b/net-dns/bind/Manifest index 9f3e63e4d254..91fef7e1d084 100644 --- a/net-dns/bind/Manifest +++ b/net-dns/bind/Manifest @@ -1,6 +1,3 @@ ------BEGIN PGP SIGNED MESSAGE----- -Hash: SHA1 - AUX 10bind.env 27 RMD160 872245707b4f72a212cda162c59495744d77a6e3 SHA1 7b8c1abd5910bb7a07c6b7c820c2b34a534b2593 SHA256 5ad6a4402372b43809618051873b63646746f400447bba30dc4dfecd028e3650 MD5 42b5ed5adcee33cf40531d7955412b21 files/10bind.env 27 RMD160 872245707b4f72a212cda162c59495744d77a6e3 files/10bind.env 27 @@ -69,6 +66,10 @@ AUX named.init-r3 1513 RMD160 f69d90d619de354b5962ba7d69c4f39e5e5ac747 SHA1 8cd9 MD5 4677f8a49c240d3ba58b98ddc9655e88 files/named.init-r3 1513 RMD160 f69d90d619de354b5962ba7d69c4f39e5e5ac747 files/named.init-r3 1513 SHA256 244888788cd9ddd0f2bce687621d96ca4d8b960398b6bc3d5cb1da3639861fd4 files/named.init-r3 1513 +AUX named.init-r4 1580 RMD160 31c73f1746b0d473b6a8cb128a9da6a0dd52543e SHA1 f8907beccebd625413cff3fd3b2224eab8593730 SHA256 4a22310694da5440c262ffb5ef247786863b43d4b2d787aa0d9191720c603952 +MD5 e59b4b437cea4c34e8ebb6d791307bea files/named.init-r4 1580 +RMD160 31c73f1746b0d473b6a8cb128a9da6a0dd52543e files/named.init-r4 1580 +SHA256 4a22310694da5440c262ffb5ef247786863b43d4b2d787aa0d9191720c603952 files/named.init-r4 1580 AUX named.rc 1644 RMD160 ab040b05deea9b8b1b2a8a75c174be103aa9a4a9 SHA1 1d3503cb3312f68851bda57c1fd23a90af36256e SHA256 07a1b0958594e067259cfbf8b6eeb33125536e2f82f0e63c2d802943eed1bdb6 MD5 33e3834bbd0adf80e570fc73aa5a7147 files/named.rc 1644 RMD160 ab040b05deea9b8b1b2a8a75c174be103aa9a4a9 files/named.rc 1644 @@ -156,10 +157,3 @@ SHA256 3095c273ca6a59991a75e0f8526dc3e6ba2a6d0b1e129a2271190dd28d1f54ca files/di MD5 332f5323adbe06366904a40316eb1c37 files/digest-bind-9.3.2-r5 738 RMD160 efc4ffc6818f679a6cb736b4bb60827526284a3d files/digest-bind-9.3.2-r5 738 SHA256 3095c273ca6a59991a75e0f8526dc3e6ba2a6d0b1e129a2271190dd28d1f54ca files/digest-bind-9.3.2-r5 738 ------BEGIN PGP SIGNATURE----- -Version: GnuPG v1.4.5 (GNU/Linux) - -iD8DBQFFO6pqbwxeDFj+ScoRApO1AJ9nZil+1CLdUBAsam3aeO3CHnyYtgCgwVye -kvxqeB2BM3JcDpYxjBkLYDk= -=bToM ------END PGP SIGNATURE----- diff --git a/net-dns/bind/files/named.init-r4 b/net-dns/bind/files/named.init-r4 new file mode 100755 index 000000000000..7e18d89d8f5e --- /dev/null +++ b/net-dns/bind/files/named.init-r4 @@ -0,0 +1,70 @@ +#!/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-r4,v 1.1 2006/10/22 18:05:21 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} \ + --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 +} |