auto-import changelog data from bind-9.1.0-10.src.rpm

Thu Mar 15 2001 Bernhard Rosenkraenzer <bero@redhat.com> 9.1.0-10
- Merge fixes from 9.1.1rc5
Sun Mar 11 2001 Bernhard Rosenkraenzer <bero@redhat.com> 9.1.0-9
- Work around bind 8 -> bind 9 migration problem when using buggy zone
    files: accept zones without a TTL, but spew out a big fat warning.
    (#31393)
Thu Mar 08 2001 Bernhard Rosenkraenzer <bero@redhat.com>
- Add fixes from rc4
Fri Mar 02 2001 Nalin Dahyabhai <nalin@redhat.com>
- rebuild in new environment
Thu Mar 01 2001 Bernhard Rosenkraenzer <bero@redhat.com>
- killall -HUP named if rndc reload fails (#30113)
Tue Feb 27 2001 Bernhard Rosenkraenzer <bero@redhat.com>
- Merge some fixes from 9.1.1rc3
Tue Feb 20 2001 Bernhard Rosenkraenzer <bero@redhat.com>
- Don't use the standard rndc key from the documentation, instead, create a
    random one at installation time (#26358)
- Make /etc/rndc.conf readable by user named only, it contains secret keys
Tue Feb 20 2001 Bernhard Rosenkraenzer <bero@redhat.com>
- 9.1.1 probably won't be out in time, revert to 9.1.0 and apply fixes from
    9.1.1rc2
- bind requires bind-utils (#28317)
Tue Feb 13 2001 Bernhard Rosenkraenzer <bero@redhat.com>
- Update to rc2, fixes 2 more bugs
- Fix build with glibc >= 2.2.1-7
Thu Feb 08 2001 Bernhard Rosenkraenzer <bero@redhat.com>
- Update to 9.1.1rc1; fixes 17 bugs (14 of them affecting us;
1 was fixed in a Red Hat patch already, 2 others are portability
    improvements)
Wed Feb 07 2001 Bernhard Rosenkraenzer <bero@redhat.com>
- Remove initscripts 5.54 requirement (#26489)
Mon Jan 29 2001 Bernhard Rosenkraenzer <bero@redhat.com>
- Add named-checkconf, named-checkzone (#25170)
Mon Jan 29 2001 Trond Eivind Glomsrd <teg@redhat.com>
- use echo, not gprintf
This commit is contained in:
cvsdist 2004-09-09 03:30:04 +00:00
parent a47288d890
commit aed7121864
7 changed files with 264 additions and 148 deletions

View File

@ -1,3 +1,3 @@
bind-contrib.tar.gz bind-9.1.0-fixes.patch.bz2
bind-doc.tar.gz bind-9.1.0.tar.bz2
bind-src.tar.gz bind-manpages.tar.bz2

345
bind.spec
View File

@ -1,121 +1,100 @@
Summary: A DNS (Domain Name System) server. Summary: A DNS (Domain Name System) server.
Name: bind Name: bind
Version: 8.2.3 Version: 9.1.0
Release: 1 Release: 10
Copyright: distributable Copyright: BSD-like
Group: System Environment/Daemons Group: System Environment/Daemons
Source0: ftp://ftp.isc.org/isc/bind/src/%{version}/bind-src.tar.gz Source0: ftp://ftp.isc.org/isc/bind9/%{version}/bind-%{version}.tar.bz2
Source1: ftp://ftp.isc.org/isc/bind/src/%{version}/bind-doc.tar.gz Source1: bind-manpages.tar.bz2
Source2: ftp://ftp.isc.org/isc/bind/src/%{version}/bind-contrib.tar.gz Source2: named.sysconfig
Source3: named.init Source3: named.init
Source4: named.logrotate Source4: named.logrotate
Url: http://www.isc.org/bind.html Source5: keygen.c
Patch0: bind-8.2.2-rh.patch Patch: bind-9.1.0b1-reverse.patch
Patch1: bind-8.1.2-nonlist.patch Patch1: bind-9.1.0b1-varrun.patch
Patch2: bind-8.1.2-fds.patch Patch2: bind-9.1.0-fixes.patch.bz2
Patch4: bind-8.2-host.patch Patch3: bind-9.1.0-key.patch
Patch7: bind-8.2.2_P5-restart.patch Patch4: bind-9.1.0-ttl.patch
Url: http://www.isc.org/products/BIND/
Buildroot: %{_tmppath}/%{name}-root Buildroot: %{_tmppath}/%{name}-root
Prereq: /sbin/chkconfig, sh-utils, /bin/cat, /bin/chmod, /usr/sbin/useradd, perl BuildPrereq: tar >= 1.13.18
Requires(pre,preun): shadow-utils
Requires(post,preun): chkconfig
Requires(post): textutils, fileutils, sed
Requires: bind-utils
%description %description
BIND (Berkeley Internet Name Domain) is an implementation of the DNS BIND (Berkeley Internet Name Domain) is an implementation of the DNS
(Domain Name System) protocols. BIND includes a DNS server (named), (Domain Name System) protocols. BIND includes a DNS server (named),
which resolves host names to IP addresses, and a resolver library which resolves host names to IP addresses; a resolver library
(routines for applications to use when interfacing with DNS). A DNS (routines for applications to use when interfacing with DNS); and
server allows clients to name resources or objects and share the tools for verifying that the DNS server is operating properly.
information with other network machines. The named DNS server can be
used on workstations as a caching name server, but is generally only
needed on one machine for an entire network. Note that the
configuration files for making BIND act as a simple caching nameserver
are included in the caching-nameserver package.
Install the bind package if you need a DNS server for your network. If
you want bind to act a caching name server, you will also need to install
the caching-nameserver package.
%package utils %package utils
Summary: Utilities for querying DNS name servers. Summary: A DNS (Domain Name System) server.
Group: Applications/System Group: System Environment/Daemons
%description utils %description utils
Bind-utils contains a collection of utilities for querying DNS (Domain BIND (Berkeley Internet Name Domain) is an implementation of the DNS
Name Service) name servers to find out information about Internet hosts. (Domain Name System) protocols. BIND includes a DNS server (named),
These tools will provide you with the IP addresses for given host names, which resolves host names to IP addresses; a resolver library
as well as other information about registered domains and network (routines for applications to use when interfacing with DNS); and
addresses. tools for verifying that the DNS server is operating properly.
You should install bind-utils if you need to get information from DNS name
servers.
%package devel %package devel
Summary: Include files and libraries needed for bind DNS development. Summary: A DNS (Domain Name System) server.
Group: Development/Libraries Group: System Environment/Daemons
Requires: bind Requires: bind = %{version}
%description devel %description devel
The bind-devel package contains all the include files and the BIND (Berkeley Internet Name Domain) is an implementation of the DNS
library required for DNS (Domain Name Service) development for (Domain Name System) protocols. BIND includes a DNS server (named),
BIND versions 8.x.x. which resolves host names to IP addresses; a resolver library
(routines for applications to use when interfacing with DNS); and
tools for verifying that the DNS server is operating properly.
You should install bind-devel if you want to develop bind DNS
applications. If you install bind-devel, you'll also need to install
bind.
%prep %prep
%setup -q -c -a 1 -a 2 %setup -q -n %{name}-%{version}
%patch0 -p0 -b .rh %patch -p1 -b .rev
%patch1 -p0 -b .nonlist %patch1 -p1 -b .varrun
%patch2 -p1 -b .fds %patch2 -p1 -b .fixes
%patch4 -p1 -b .host %patch3 -p1 -b .key
%patch7 -p1 -b .restart %patch4 -p1 -b .ttl
%ifarch ia64 # We don't want backups in the doc files
for i in src/lib/bsd src/lib/dst src/lib/cylink src/lib/dnssafe src/lib/inet src/lib/irs src/lib/isc src/lib/nameser src/lib/resolv; do find doc -name "*.fixes" |xargs rm -f
cat $i/Makefile |sed -e "s/^CFLAGS.*/& -fPIC/" >$i/Makefile.new
mv -f $i/Makefile.new $i/Makefile
done
%endif
find . -name Makefile |xargs perl -pi -e "s/^INSTALL_LIB.*//g" # Fix build as user
rm -f compat/include/sys/cdefs.h
%build %build
%configure --with-libtool --with-openssl=/usr
# XXX hack around egcs -m486 bug (#3413, #3485) make
%ifarch i386
RPM_OPT_FLAGS="`echo $RPM_OPT_FLAGS | sed -e 's|-m486||'`"
%endif
unset RPM_OPT_FLAGS
# Work around a bind bug: SYSTYPE is always set to bsdos
find src -name Makefile | xargs -n 1 perl -pi -e "s/^SYSTYPE=.*/SYSTYPE=linux/g"
find src -name Makefile | xargs -n 1 perl -pi -e "s/^SYSTYPE =.*/SYSTYPE=linux/g"
find src -name Makefile | xargs -n 1 perl -pi -e "s/^CDEBUG=.*/CDEBUG=$RPM_OPT_FLAGS/g"
find src -name Makefile | xargs -n 1 perl -pi -e "s/^CDEBUG =.*/CDEBUG=$RPM_OPT_FLAGS/g"
make -C src
make clean all -C src SUBDIRS=../doc/man
%install %install
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
mkdir -p ${RPM_BUILD_ROOT}/etc/{rc.d/init.d,logrotate.d} mkdir -p ${RPM_BUILD_ROOT}/etc/{rc.d/init.d,logrotate.d}
mkdir -p ${RPM_BUILD_ROOT}/usr/{bin,lib,sbin} mkdir -p ${RPM_BUILD_ROOT}/usr/{bin,lib,sbin,include}
mkdir -p ${RPM_BUILD_ROOT}/var/named mkdir -p ${RPM_BUILD_ROOT}/var/named
MANBASE=`echo %{_mandir} | sed -e "s,/man$,,"` mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/{man1,man5,man8}
mkdir -p ${RPM_BUILD_ROOT}/usr/man/{man1,man3,man5,man7,man8} mkdir -p ${RPM_BUILD_ROOT}/var/run/named
mkdir -p ${RPM_BUILD_ROOT}${MANBASE}
make DESTDIR=$RPM_BUILD_ROOT install -C src make DESTDIR=$RPM_BUILD_ROOT install
make DESTDIR=$RPM_BUILD_ROOT INSTALL=install install -C src SUBDIRS=../doc/man install -c -m 640 bin/rndc/rndc.conf $RPM_BUILD_ROOT/etc
if test "$MANBASE" != "/usr"; then install -c -m 755 contrib/named-bootconf/named-bootconf.sh $RPM_BUILD_ROOT/usr/sbin/named-bootconf
rm -rf $RPM_BUILD_ROOT%{_mandir}
mv ${RPM_BUILD_ROOT}/usr/man $RPM_BUILD_ROOT$MANBASE
fi
install -c -m 755 src/bin/named-bootconf/Grot/named-bootconf.pl $RPM_BUILD_ROOT/usr/sbin/named-bootconf
install -c -m 755 %SOURCE3 $RPM_BUILD_ROOT/etc/rc.d/init.d/named install -c -m 755 %SOURCE3 $RPM_BUILD_ROOT/etc/rc.d/init.d/named
install -c -m 644 %SOURCE4 $RPM_BUILD_ROOT/etc/logrotate.d/named install -c -m 644 %SOURCE4 $RPM_BUILD_ROOT/etc/logrotate.d/named
ln -s resolver.5 $RPM_BUILD_ROOT%{_mandir}/man5/resolv.conf.5 install -c -m 644 doc/man/bin/named.8 $RPM_BUILD_ROOT%{_mandir}/man8
install -c -m 644 doc/man/bin/rndc.8 $RPM_BUILD_ROOT%{_mandir}/man8
install -c -m 644 doc/man/bin/rndc.conf.5 $RPM_BUILD_ROOT%{_mandir}/man5
install -c -m 644 doc/man/bin/host.1 $RPM_BUILD_ROOT%{_mandir}/man1
install -c -m 644 doc/man/bin/lwresd.8 $RPM_BUILD_ROOT%{_mandir}/man8
install -c -m 644 doc/man/bin/nsupdate.8 $RPM_BUILD_ROOT%{_mandir}/man8
install -c -m 755 bin/dig/.libs/nslookup $RPM_BUILD_ROOT/usr/bin
gcc $RPM_OPT_FLAGS -o $RPM_BUILD_ROOT/usr/sbin/dns-keygen %{SOURCE5}
cd $RPM_BUILD_ROOT%{_mandir}
tar xjf %{SOURCE1}
mkdir -p $RPM_BUILD_ROOT/etc/sysconfig
cp %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/named
%pre %pre
/usr/sbin/useradd -c "Named" -u 25 \ /usr/sbin/useradd -c "Named" -u 25 \
@ -129,101 +108,207 @@ if [ -f /etc/named.boot -a ! -f /etc/named.conf ]; then
chmod 644 /etc/named.conf chmod 644 /etc/named.conf
fi fi
fi fi
if [ ! -e /etc/rndc.conf.rpmnew ]; then
sed -e "s/@KEY@/`/usr/sbin/dns-keygen`/" /etc/rndc.conf >/etc/rndc.conf.tmp
mv -f /etc/rndc.conf.tmp /etc/rndc.conf
fi
%preun %preun
if [ $1 = 0 ]; then if [ $1 = 0 ]; then
/usr/sbin/userdel named 2>/dev/null || : /usr/sbin/userdel named 2>/dev/null || :
/usr/sbin/groupdel named 2>/dev/null || : /usr/sbin/groupdel named 2>/dev/null || :
/sbin/chkconfig --del named /sbin/chkconfig --del named
[ -f /var/lock/subsys/named ] && /sbin/service named stop >/dev/null 2>&1 || : [ -f /var/lock/subsys/named ] && /etc/rc.d/init.d/named stop >/dev/null 2>&1
fi fi
exit 0 exit 0
%postun %postun
if [ "$1" -ge 1 ]; then if [ "$1" -ge 1 ]; then
/sbin/service named condrestart >/dev/null 2>&1 || : /etc/rc.d/init.d/named condrestart >/dev/null 2>&1 || :
fi fi
%triggerpostun -- bind < 8.2.2_P5-15 %triggerpostun -- bind < 8.2.2_P5-15
/sbin/chkconfig --add named /sbin/chkconfig --add named
%clean %clean
rm -rf ${RPM_BUILD_ROOT} rm -rf ${RPM_BUILD_ROOT} ${RPM_BUILD_DIR}/%{name}-%{version}
%post utils -p /sbin/ldconfig
%postun utils -p /sbin/ldconfig
%files %files
%defattr(-,root,root) %defattr(-,root,root)
%doc src/README src/INSTALL src/Version src/CHANGES %doc CHANGES README
%doc src/TODO %doc doc/arm doc/draft doc/rfc doc/misc
%doc doc/bog doc/html doc/misc doc/notes doc/rfc doc/tmac %config(noreplace) /etc/logrotate.d/named
%config /etc/logrotate.d/named
%config /etc/rc.d/init.d/named %config /etc/rc.d/init.d/named
%config(noreplace) /etc/sysconfig/named
%config(noreplace) %attr(0600,named,named) /etc/rndc.conf
/usr/sbin/dnskeygen /usr/sbin/dnssec*
/usr/sbin/irpd /usr/sbin/lwresd
/usr/sbin/named /usr/sbin/named
/usr/sbin/named-bootconf /usr/sbin/named-bootconf
/usr/sbin/named-xfer /usr/sbin/named-check*
/usr/sbin/ndc /usr/sbin/rndc
/usr/sbin/dns-keygen
%{_mandir}/man1/dnskeygen.1* %{_mandir}/man5/rndc.conf.5*
%{_mandir}/man5/named.conf.5* %{_mandir}/man8/rndc.8*
%{_mandir}/man7/hostname.7*
%{_mandir}/man8/named.8* %{_mandir}/man8/named.8*
%{_mandir}/man8/ndc.8* %{_mandir}/man8/lwresd.8*
%{_mandir}/man8/named-bootconf.8*
%{_mandir}/man8/named-xfer.8*
%attr(-,named,named) %dir /var/named %attr(-,named,named) %dir /var/named
%attr(-,named,named) %dir /var/run/named
%files utils %files utils
%defattr(-,root,root) %defattr(-,root,root)
/usr/bin/addr
/usr/bin/dig /usr/bin/dig
/usr/bin/dnsquery
/usr/bin/host /usr/bin/host
/usr/bin/mkservdb
/usr/bin/nslookup /usr/bin/nslookup
/usr/bin/nsupdate /usr/bin/nsupdate
/usr/lib/nslookup.help /usr/lib/*.so.*
%{_mandir}/man1/dig.1*
%{_mandir}/man1/dnsquery.1*
%{_mandir}/man1/host.1* %{_mandir}/man1/host.1*
%{_mandir}/man5/irs.conf.5* %{_mandir}/man8/nsupdate.8*
%{_mandir}/man1/dig.1*
%{_mandir}/man5/resolver.5* %{_mandir}/man5/resolver.5*
%{_mandir}/man5/resolv.conf.5* %{_mandir}/man5/resolv.conf.5*
%{_mandir}/man8/nslookup.8* %{_mandir}/man8/nslookup.8*
%{_mandir}/man8/nsupdate.8*
%files devel %files devel
%defattr(-,root,root) %defattr(-,root,root)
/usr/lib/bind /usr/lib/*.so
%{_mandir}/man3/hesiod.3* /usr/lib/*.la
%{_mandir}/man3/inet_cidr.3* /usr/lib/*.a
%{_mandir}/man3/tsig.3* /usr/include/*
%changelog %changelog
* Sat Jan 27 2001 Bernhard Rosenkraenzer <bero@redhat.com> * Thu Mar 15 2001 Bernhard Rosenkraenzer <bero@redhat.com> 9.1.0-10
- 8.2.3, fixes several security problems - Merge fixes from 9.1.1rc5
* Tue Nov 14 2000 Bill Nottingham <notting@redhat.com> * Sun Mar 11 2001 Bernhard Rosenkraenzer <bero@redhat.com> 9.1.0-9
- static libraries may be used in shared objects. Build with -fPIC on ia64 - Work around bind 8 -> bind 9 migration problem when using buggy zone files:
accept zones without a TTL, but spew out a big fat warning. (#31393)
* Fri Nov 10 2000 Bernhard Rosenkraenzer <bero@redhat.com> * Thu Mar 8 2001 Bernhard Rosenkraenzer <bero@redhat.com>
- 8.2.2-P7 (fixes Bug #20546) - Add fixes from rc4
* Sat Aug 05 2000 Bill Nottingham <notting@redhat.com> * Fri Mar 2 2001 Nalin Dahyabhai <nalin@redhat.com>
- condrestart fixes - rebuild in new environment
* Tue Jul 18 2000 Nalin Dahyabhai <nalin@redhat.com> * Thu Mar 1 2001 Bernhard Rosenkraenzer <bero@redhat.com>
- change the init script to take condrestart, not cond-restart - killall -HUP named if rndc reload fails (#30113)
- add sh-utils, /bin/cat, perl, /bin/chmod, /usr/sbin/useradd as prereqs for
the %pre and %post scripts
* Sun Jul 16 2000 Bernhard Rosenkraenzer <bero@redhat.com> * Tue Feb 27 2001 Bernhard Rosenkraenzer <bero@redhat.com>
- Don't prereq /etc/init.d - Merge some fixes from 9.1.1rc3
* Sat Jul 15 2000 Bill Nottingham <notting@redhat.com> * Tue Feb 20 2001 Bernhard Rosenkraenzer <bero@redhat.com>
- move initscript back - Don't use the standard rndc key from the documentation, instead, create a random one
at installation time (#26358)
- Make /etc/rndc.conf readable by user named only, it contains secret keys
* Tue Feb 20 2001 Bernhard Rosenkraenzer <bero@redhat.com>
- 9.1.1 probably won't be out in time, revert to 9.1.0 and apply fixes
from 9.1.1rc2
- bind requires bind-utils (#28317)
* Tue Feb 13 2001 Bernhard Rosenkraenzer <bero@redhat.com>
- Update to rc2, fixes 2 more bugs
- Fix build with glibc >= 2.2.1-7
* Thu Feb 8 2001 Bernhard Rosenkraenzer <bero@redhat.com>
- Update to 9.1.1rc1; fixes 17 bugs (14 of them affecting us;
1 was fixed in a Red Hat patch already, 2 others are portability
improvements)
* Wed Feb 7 2001 Bernhard Rosenkraenzer <bero@redhat.com>
- Remove initscripts 5.54 requirement (#26489)
* Mon Jan 29 2001 Bernhard Rosenkraenzer <bero@redhat.com>
- Add named-checkconf, named-checkzone (#25170)
* Mon Jan 29 2001 Trond Eivind Glomsrød <teg@redhat.com>
- use echo, not gprintf
* Wed Jan 24 2001 Bernhard Rosenkraenzer <bero@redhat.com>
- Fix problems with $GENERATE
Patch from Daniel Roesen <droesen@entire-systems.com>
Bug #24890
* Thu Jan 18 2001 Bernhard Rosenkraenzer <bero@redhat.com>
- 9.1.0 final
* Sat Jan 13 2001 Bernhard Rosenkraenzer <bero@redhat.com>
- 9.1.0rc1
- i18nify init script
- bzip2 source to save space
* Thu Jan 11 2001 Bernhard Rosenkraenzer <bero@redhat.com>
- Fix %%postun script
* Tue Jan 9 2001 Bernhard Rosenkraenzer <bero@redhat.com>
- 9.1.0b3
* Mon Jan 8 2001 Bernhard Rosenkraenzer <bero@redhat.com>
- Add named.conf man page from bind8 (#23503)
* Sun Jan 7 2001 Bernhard Rosenkraenzer <bero@redhat.com>
- Make /etc/rndc.conf and /etc/sysconfig/named noreplace
- Make devel require bind = %%{version} rather than just bind
* Sun Jan 7 2001 Bernhard Rosenkraenzer <bero@redhat.com>
- Fix init script for real
* Sat Jan 6 2001 Bernhard Rosenkraenzer <bero@redhat.com>
- Fix init script when ROOTDIR is not set
* Thu Jan 4 2001 Bernhard Rosenkraenzer <bero@redhat.com>
- Add hooks for setting up named to run chroot (RFE #23246)
- Fix up requirements
* Fri Dec 29 2000 Bernhard Rosenkraenzer <bero@redhat.com>
- 9.1.0b2
* Wed Dec 20 2000 Bernhard Rosenkraenzer <bero@redhat.com>
- Move run files to /var/run/named/ - /var/run isn't writable
by the user we're running as. (Bug #20665)
* Tue Dec 19 2000 Bernhard Rosenkraenzer <bero@redhat.com>
- Fix reverse lookups (#22272)
- Run ldconfig in %post utils
* Tue Dec 12 2000 Karsten Hopp <karsten@redhat.de>
- fixed logrotate script (wrong path to kill)
- include header files in -devel package
- bugzilla #22049, #19147, 21606
* Fri Dec 8 2000 Bernhard Rosenkraenzer <bero@redhat.com>
- 9.1.0b1 (9.1.0 is in our timeframe and less buggy)
* Mon Nov 13 2000 Bernhard Rosenkraenzer <bero@redhat.com>
- 9.0.1
* Mon Oct 30 2000 Bernhard Rosenkraenzer <bero@redhat.com>
- Fix initscript (Bug #19956)
- Add sample rndc.conf (Bug #19956)
- Fix build with tar 1.13.18
* Tue Oct 10 2000 Bernhard Rosenkraenzer <bero@redhat.com>
- Add some missing man pages (taken from bind8) (Bug #18794)
* Sun Sep 17 2000 Bernhard Rosenkraenzer <bero@redhat.com>
- 9.0.0 final
* Wed Aug 30 2000 Bernhard Rosenkraenzer <bero@redhat.com>
- rc5
- fix up nslookup
* Thu Aug 24 2000 Bernhard Rosenkraenzer <bero@redhat.com>
- rc4
* Thu Jul 13 2000 Bernhard Rosenkraenzer <bero@redhat.com>
- 9.0.0rc1
* Wed Jul 12 2000 Prospector <bugzilla@redhat.com> * Wed Jul 12 2000 Prospector <bugzilla@redhat.com>
- automatic rebuild - automatic rebuild

19
keygen.c Normal file
View File

@ -0,0 +1,19 @@
#include <stdio.h>
#include <string.h>
int main(int argc, char **argv)
{
FILE *f=fopen("/dev/urandom", "r");
char key[61];
int i=0;
char tmp;
memset(key, 0, 61);
while(i<60) {
tmp=fgetc(f);
if((tmp>='a' && tmp<='z') ||
(tmp>='A' && tmp<='Z') ||
(tmp>='0' && tmp<='0'))
key[i++]=tmp;
}
puts(key);
fclose(f);
}

View File

@ -15,18 +15,24 @@
. /etc/sysconfig/network . /etc/sysconfig/network
# Check that networking is up. # Check that networking is up.
[ ${NETWORKING} = "no" ] && exit 0 [ "${NETWORKING}" = "no" ] && exit 0
[ -f /etc/sysconfig/named ] && . /etc/sysconfig/named
[ -f /usr/sbin/named ] || exit 0 [ -f /usr/sbin/named ] || exit 0
[ -f /etc/named.conf ] || exit 0 [ -f /etc/named.conf ] || exit 0
RETVAL=0 RETVAL=0
prog="named"
start() { start() {
# Start daemons. # Start daemons.
echo -n "Starting named: " echo -n $"Starting $prog: "
daemon named -u named if [ -n "${ROOTDIR}" -a "x${ROOTDIR}" != "x/" ]; then
OPTIONS="${OPTIONS} -t ${ROOTDIR}"
fi
daemon named -u named ${OPTIONS}
RETVAL=$? RETVAL=$?
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/named [ $RETVAL -eq 0 ] && touch /var/lock/subsys/named
echo echo
@ -34,7 +40,7 @@ start() {
} }
stop() { stop() {
# Stop daemons. # Stop daemons.
echo -n "Shutting down named: " echo -n $"Stopping $prog: "
killproc named killproc named
RETVAL=$? RETVAL=$?
[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/named [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/named
@ -42,7 +48,7 @@ stop() {
return $RETVAL return $RETVAL
} }
rhstatus() { rhstatus() {
/usr/sbin/ndc status /usr/sbin/rndc status
return $? return $?
} }
restart() { restart() {
@ -50,13 +56,13 @@ restart() {
start start
} }
reload() { reload() {
/usr/sbin/ndc reload /usr/sbin/rndc reload >/dev/null 2>&1 || /usr/bin/killall -HUP named
return $? return $?
} }
probe() { probe() {
# named knows how to reload intelligently; we don't want linuxconf # named knows how to reload intelligently; we don't want linuxconf
# to offer to restart every time # to offer to restart every time
/usr/sbin/ndc reload >/dev/null 2>&1 || echo start /usr/sbin/rndc reload >/dev/null 2>&1 || echo start
return $? return $?
} }
@ -75,7 +81,7 @@ case "$1" in
restart restart
;; ;;
condrestart) condrestart)
[ -f /var/lock/subsys/named ] && restart || : [ -f /var/lock/subsys/named ] && restart
;; ;;
reload) reload)
reload reload
@ -84,7 +90,7 @@ case "$1" in
probe probe
;; ;;
*) *)
echo "Usage: named {start|stop|status|restart|condrestart|reload|probe}" echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|probe}"
exit 1 exit 1
esac esac

View File

@ -1,6 +1,6 @@
/var/log/named.log { /var/log/named.log {
missingok missingok
postrotate postrotate
/usr/bin/kill -HUP `cat /var/run/named.pid 2> /dev/null` 2> /dev/null || true /bin/kill -HUP `cat /var/run/named.pid 2> /dev/null` 2> /dev/null || true
endscript endscript
} }

6
named.sysconfig Normal file
View File

@ -0,0 +1,6 @@
# Currently, you can use the following options:
# ROOTDIR="/some/where" -- will run named in a chroot environment.
# you must set up the chroot environment before
# doing this.
# OPTIONS="whatever" -- These additional options will be passed to named
# at startup. Don't add -t here, use ROOTDIR instead.

View File

@ -1,3 +1,3 @@
d9cf8e675911fc98b1b5a540bfbc72a3 bind-contrib.tar.gz 98036b01f17ef9f22cdc6749fb14cae4 bind-9.1.0-fixes.patch.bz2
c26474bb791552cc0cbc5af72190a772 bind-doc.tar.gz ad89ac14b5226c41d8ba06a597881982 bind-9.1.0.tar.bz2
e21e2854d72afd2ffbee17cfe8caa581 bind-src.tar.gz fa68c1a90588c518651199523f5b6f2a bind-manpages.tar.bz2