From 2f7f4bd084026d236ed6f3d5b28ef5bb686d5ec0 Mon Sep 17 00:00:00 2001 From: cvsdist Date: Thu, 9 Sep 2004 03:29:07 +0000 Subject: [PATCH] =?UTF-8?q?auto-import=20changelog=20data=20from=20bind-8.?= =?UTF-8?q?2.2=5FP5-25.src.rpm=20Sat=20Aug=2005=202000=20Bill=20Nottingham?= =?UTF-8?q?=20=20-=20condrestart=20fixes=20Tue=20Jul?= =?UTF-8?q?=2018=202000=20Nalin=20Dahyabhai=20=20-=20cha?= =?UTF-8?q?nge=20the=20init=20script=20to=20take=20condrestart,=20not=20co?= =?UTF-8?q?nd-restart=20-=20add=20sh-utils,=20/bin/cat,=20perl,=20/bin/chm?= =?UTF-8?q?od,=20/usr/sbin/useradd=20as=20prereqs=20=20=20=20=20for=20the?= =?UTF-8?q?=20%pre=20and=20%post=20scripts=20Sun=20Jul=2016=202000=20Bernh?= =?UTF-8?q?ard=20Rosenkraenzer=20=20-=20Don't=20prereq=20?= =?UTF-8?q?/etc/init.d=20Sat=20Jul=2015=202000=20Bill=20Nottingham=20=20-=20move=20initscript=20back=20Wed=20Jul=2012?= =?UTF-8?q?=202000=20Prospector=20=20-=20automatic=20?= =?UTF-8?q?rebuild=20Sun=20Jul=2009=202000=20Florian=20La=20Roche=20=20-=20add=20"exit=200"=20for=20uninstall?= =?UTF-8?q?=20case=20Fri=20Jul=2007=202000=20Florian=20La=20Roche=20=20-=20add=20prereq=20init.d=20and=20clean?= =?UTF-8?q?up=20install=20section=20Fri=20Jun=2030=202000=20Trond=20Eivind?= =?UTF-8?q?=20Glomsr=F8d=20=20-=20fix=20the=20init=20scrip?= =?UTF-8?q?t=20Wed=20Jun=2028=202000=20Nalin=20Dahyabhai=20=20-=20make=20libbind.a=20and=20nslookup.help=20readable=20a?= =?UTF-8?q?gain=20by=20setting=20INSTALL=5FLIB=20to=20=20=20=20=20""=20Mon?= =?UTF-8?q?=20Jun=2026=202000=20Bernhard=20Rosenkr=E4nzer=20=20-=20Fix=20up=20the=20initscript=20(Bug=20#13033)=20-=20Fi?= =?UTF-8?q?x=20build=20with=20current=20glibc=20(Bug=20#12755)=20-=20/etc/?= =?UTF-8?q?rc.d/init.d=20->=20/etc/init.d=20-=20use=20%{=5Fmandir}=20rathe?= =?UTF-8?q?r=20than=20/usr/share/man=20Mon=20Jun=2019=202000=20Bill=20Nott?= =?UTF-8?q?ingham=20=20-=20fix=20conflict=20with=20man?= =?UTF-8?q?-pages=20-=20remove=20compatibilty=20chkconfig=20links=20-=20in?= =?UTF-8?q?itscript=20munging=20Wed=20Jun=2014=202000=20Nalin=20Dahyabhai?= =?UTF-8?q?=20=20-=20modify=20logrotate=20setup=20to=20u?= =?UTF-8?q?se=20PID=20file=20-=20temporarily=20disable=20optimization=20by?= =?UTF-8?q?=20unsetting=20$RPM=5FOPT=5FFLAGS=20at=20=20=20=20=20build-time?= =?UTF-8?q?=20-=20actually=20bump=20the=20release=20this=20time=20Sun=20Ju?= =?UTF-8?q?n=2004=202000=20Bernhard=20Rosenkraenzer=20=20?= =?UTF-8?q?-=20FHS=20compliance=20Mon=20Apr=2017=202000=20Nalin=20Dahyabha?= =?UTF-8?q?i=20=20-=20clean=20up=20restart=20patch=20Mon?= =?UTF-8?q?=20Apr=2010=202000=20Nalin=20Dahyabhai=20=20-?= =?UTF-8?q?=20provide=20/var/named=20(fix=20for=20bugs=20#9847,=20#10205)?= =?UTF-8?q?=20-=20preserve=20args=20when=20restarted=20via=20ndc(8)=20(bug?= =?UTF-8?q?=20#10227)=20-=20make=20resolv.conf(5)=20a=20link=20to=20resolv?= =?UTF-8?q?er(5)=20(bug=20#10245)=20-=20fix=20SYSTYPE=20bug=20in=20all=20m?= =?UTF-8?q?akefiles=20-=20move=20creation=20of=20named=20user=20from=20%po?= =?UTF-8?q?st=20into=20%pre=20Mon=20Feb=2028=202000=20Bernhard=20Rosenkr?= =?UTF-8?q?=E4nzer=20=20-=20Fix=20TTL=20(patch=20from=20I?= =?UTF-8?q?SC,=20Bug=20#9820)=20Wed=20Feb=2016=202000=20Bernhard=20Rosenkr?= =?UTF-8?q?=E4nzer=20=20-=20fix=20typo=20in=20spec=20(it'?= =?UTF-8?q?s=20%post,=20without=20a=20leading=20blank)=20introduced=20in?= =?UTF-8?q?=20-6=20-=20change=20SYSTYPE=20to=20linux=20Fri=20Feb=2011=2020?= =?UTF-8?q?00=20Bill=20Nottingham=20=20-=20pick=20a=20?= =?UTF-8?q?standard=20<=20100=20uid/gid=20for=20named=20Fri=20Feb=2004=202?= =?UTF-8?q?000=20Elliot=20Lee=20=20-=20Pass=20named=20?= =?UTF-8?q?a=20'-u=20named'=20parameter=20by=20default,=20and=20add/remove?= =?UTF-8?q?=20user.=20Thu=20Feb=2003=202000=20Bernhard=20Rosenkraenzer=20=20-=20fix=20host=20mx=20bug=20(Bug=20#9021)=20?= =?UTF-8?q?Mon=20Jan=2031=202000=20Cristian=20Gafton=20?= =?UTF-8?q?=20-=20rebuild=20to=20fix=20dependencies=20-=20man=20pages=20ar?= =?UTF-8?q?e=20compressed=20Wed=20Jan=2019=202000=20Bernhard=20Rosenkraenz?= =?UTF-8?q?er=20=20-=20It's=20/usr/bin/killall,=20not=20/?= =?UTF-8?q?usr/sbin/killall=20(Bug=20#8063)=20Mon=20Jan=2017=202000=20Bern?= =?UTF-8?q?hard=20Rosenkraenzer=20=20-=20Fix=20up=20locat?= =?UTF-8?q?ion=20of=20named-bootconf.pl=20and=20make=20it=20executable=20(?= =?UTF-8?q?Bug=20#8028)=20-=20bind-devel=20requires=20bind=20Mon=20Nov=201?= =?UTF-8?q?5=201999=20Bernhard=20Rosenkraenzer=20=20-=20u?= =?UTF-8?q?pdate=20to=208.2.2-P5=20Wed=20Nov=2010=201999=20Bill=20Nottingh?= =?UTF-8?q?am=20=20-=20update=20to=208.2.2-P3=20Tue=20?= =?UTF-8?q?Oct=2012=201999=20Cristian=20Gafton=20=20-?= =?UTF-8?q?=20add=20patch=20to=20stop=20a=20cache=20only=20server=20from?= =?UTF-8?q?=20complaining=20about=20lame=20servers=20=20=20=20=20on=20ever?= =?UTF-8?q?y=20request.=20Fri=20Sep=2024=201999=20Preston=20Brown=20=20-=20use=20real=20stop=20and=20start=20in=20name?= =?UTF-8?q?d.init=20for=20restart,=20not=20ndc=20restart,=20it=20=20=20=20?= =?UTF-8?q?=20has=20problems=20when=20named=20has=20changed=20during=20a?= =?UTF-8?q?=20package=20update...=20(#=204890)=20Fri=20Sep=2010=201999=20B?= =?UTF-8?q?ill=20Nottingham=20=20-=20chkconfig=20--del?= =?UTF-8?q?=20in=20%preun,=20not=20%postun=20Mon=20Aug=2016=201999=20Bill?= =?UTF-8?q?=20Nottingham=20=20-=20initscript=20munging?= =?UTF-8?q?=20Mon=20Jul=2026=201999=20Bill=20Nottingham=20=20-=20fix=20installed=20chkconfig=20links=20to=20match=20i?= =?UTF-8?q?nit=20file=20Sat=20Jul=2003=201999=20Jeff=20Johnson=20=20-=20conflict=20with=20new=20(in=20man-1.24)=20man=20p?= =?UTF-8?q?ages=20(#3876,#3877).=20Tue=20Jun=2029=201999=20Bill=20Nottingh?= =?UTF-8?q?am=20=20-=20fix=20named.logrotate=20(wrong?= =?UTF-8?q?=20%SOURCE)=20Fri=20Jun=2025=201999=20Jeff=20Johnson=20=20-=20update=20to=208.2.1.=20-=20add=20named.logrotate?= =?UTF-8?q?=20(#3571).=20-=20hack=20around=20egcs-1.1.2=20-m486=20bug=20(#?= =?UTF-8?q?3413,=20#3485).=20-=20vet=20file=20list.=20Fri=20Jun=2018=20199?= =?UTF-8?q?9=20Bill=20Nottingham=20=20-=20don't=20run?= =?UTF-8?q?=20by=20default=20Sun=20May=2030=201999=20Jeff=20Johnson=20=20-=20nslookup=20fixes=20(#2463).=20-=20missing=20?= =?UTF-8?q?files=20(#3152).=20Sat=20May=2001=201999=20Stepan=20Kasal=20=20-=20nslookup=20patched:=20to=20count=20numRe?= =?UTF-8?q?cords=20properly=20to=20fix=20subsequent=20calls=20to=20=20=20?= =?UTF-8?q?=20=20ls=20-d=20to=20parse=20"view"=20and=20"finger"=20commands?= =?UTF-8?q?=20properly=20the=20view=20hack=20=20=20=20=20updated=20for=20b?= =?UTF-8?q?ind-8=20(using=20sed)=20Wed=20Mar=2031=201999=20Bill=20Nottingh?= =?UTF-8?q?am=20=20-=20add=20ISC=20patch=20-=20add=20q?= =?UTF-8?q?uick=20hack=20to=20make=20host=20not=20crash=20-=20add=20more?= =?UTF-8?q?=20docs=20Fri=20Mar=2026=201999=20Cristian=20Gafton=20=20-=20add=20probing=20information=20in=20the=20init?= =?UTF-8?q?=20file=20to=20keep=20linuxconf=20happy=20-=20dont=20strip=20li?= =?UTF-8?q?bbind=20Sun=20Mar=2021=201999=20Cristian=20Gafton=20=20-=20auto=20rebuild=20in=20the=20new=20build=20enviro?= =?UTF-8?q?nment=20(release=203)=20Wed=20Mar=2017=201999=20Preston=20Brown?= =?UTF-8?q?=20=20-=20removed=20'done'=20output=20at=20n?= =?UTF-8?q?amed=20shutdown.=20Tue=20Mar=2016=201999=20Cristian=20Gafton=20?= =?UTF-8?q?=20-=20version=208.2=20Wed=20Dec=2030=201998?= =?UTF-8?q?=20Cristian=20Gafton=20=20-=20patch=20to=20u?= =?UTF-8?q?se=20the=20=5F=5FFDS=5FBITS=20macro=20-=20build=20for=20glibc?= =?UTF-8?q?=202.1=20Wed=20Sep=2023=201998=20Jeff=20Johnson=20=20-=20change=20named.restart=20to=20/usr/sbin/ndc=20restart?= =?UTF-8?q?=20Sat=20Sep=2019=201998=20Jeff=20Johnson=20=20?= =?UTF-8?q?-=20install=20man=20pages=20correctly.=20-=20change=20K10named?= =?UTF-8?q?=20to=20K45named.=20Wed=20Aug=2012=201998=20Jeff=20Johnson=20=20-=20don't=20start=20if=20/etc/named.conf=20doe?= =?UTF-8?q?sn't=20exist.=20Sat=20Aug=2008=201998=20Jeff=20Johnson=20=20-=20autmagically=20create=20/etc/named.conf=20from?= =?UTF-8?q?=20/etc/named.boot=20in=20%post=20-=20remove=20echo=20in=20%pos?= =?UTF-8?q?t=20Wed=20Jun=2010=201998=20Jeff=20Johnson=20?= =?UTF-8?q?=20-=20merge=20in=205.1=20mods=20Sun=20Apr=2012=201998=20Manuel?= =?UTF-8?q?=20J.=20Galan=20=20-=20Several=20essential=20m?= =?UTF-8?q?odifications=20to=20build=20and=20install=20correctly.=20-=20Mo?= =?UTF-8?q?dified=20'ndc'=20to=20avoid=20deprecated=20use=20of=20'-'=20Mon?= =?UTF-8?q?=20Dec=2022=201997=20Scott=20Lampert=20=20-=20Used=20buildroot=20-=20patched=20bin/named/ns=5Fudp.c?= =?UTF-8?q?=20to=20use=20=20for=20include=20on=20Redhat=20?= =?UTF-8?q?=20=20=20=205.0=20instead=20of=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .cvsignore | 3 + bind.spec | 386 ++++++++++++++++++++++++++++++++++++++++++++++++ named.init | 92 ++++++++++++ named.logrotate | 6 + sources | 3 + 5 files changed, 490 insertions(+) create mode 100644 bind.spec create mode 100755 named.init create mode 100644 named.logrotate diff --git a/.cvsignore b/.cvsignore index e69de29..c3ff9f8 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1,3 @@ +bind-8.2.2_P5-contrib.tar.gz +bind-8.2.2_P5-doc.tar.gz +bind-8.2.2_P5-src.tar.gz diff --git a/bind.spec b/bind.spec new file mode 100644 index 0000000..fcc54ff --- /dev/null +++ b/bind.spec @@ -0,0 +1,386 @@ +Summary: A DNS (Domain Name System) server. +Name: bind +Version: 8.2.2_P5 +Release: 25 +Copyright: distributable +Group: System Environment/Daemons +Source0: ftp://ftp.isc.org/isc/bind/src/%{version}/bind-%{version}-src.tar.gz +Source1: ftp://ftp.isc.org/isc/bind/src/%{version}/bind-%{version}-doc.tar.gz +Source2: ftp://ftp.isc.org/isc/bind/src/%{version}/bind-%{version}-contrib.tar.gz +Source3: named.init +Source4: named.logrotate +Url: http://www.isc.org/bind.html +Patch0: bind-8.2.2-rh.patch +Patch1: bind-8.1.2-nonlist.patch +Patch2: bind-8.1.2-fds.patch +Patch3: bind-8.2-glibc21.patch +Patch4: bind-8.2-host.patch +Patch5: bind-8.8.2p5-hostmx.patch +Patch6: bind-8.8.2p5-ttl.patch +Patch7: bind-8.2.2_P5-restart.patch +Buildroot: %{_tmppath}/%{name}-root +Prereq: /sbin/chkconfig, sh-utils, /bin/cat, /bin/chmod, /usr/sbin/useradd, perl + +%description +BIND (Berkeley Internet Name Domain) is an implementation of the DNS +(Domain Name System) protocols. BIND includes a DNS server (named), +which resolves host names to IP addresses, and a resolver library +(routines for applications to use when interfacing with DNS). A DNS +server allows clients to name resources or objects and share the +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 +Summary: Utilities for querying DNS name servers. +Group: Applications/System + +%description utils +Bind-utils contains a collection of utilities for querying DNS (Domain +Name Service) name servers to find out information about Internet hosts. +These tools will provide you with the IP addresses for given host names, +as well as other information about registered domains and network +addresses. + +You should install bind-utils if you need to get information from DNS name +servers. + +%package devel +Summary: Include files and libraries needed for bind DNS development. +Group: Development/Libraries +Requires: bind + +%description devel +The bind-devel package contains all the include files and the +library required for DNS (Domain Name Service) development for +BIND versions 8.x.x. + +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 +%setup -q -c -a 1 -a 2 +%patch0 -p0 -b .rh +%patch1 -p0 -b .nonlist +%patch2 -p1 -b .fds +%patch3 -p1 -b .glibc21 +%patch4 -p1 -b .host +%patch5 -p1 -b .mx +%patch6 -p1 -b .ttl +%patch7 -p1 -b .restart + +rm -f compat/include/sys/cdefs.h + +%build + +# XXX hack around egcs -m486 bug (#3413, #3485) +%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 +rm -rf $RPM_BUILD_ROOT +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}/var/named +MANBASE=`echo %{_mandir} | sed -e "s,/man$,,"` +mkdir -p ${RPM_BUILD_ROOT}/usr/man/{man1,man3,man5,man7,man8} +mkdir -p ${RPM_BUILD_ROOT}${MANBASE} + +make DESTDIR=$RPM_BUILD_ROOT install -C src +make DESTDIR=$RPM_BUILD_ROOT INSTALL=install install -C src SUBDIRS=../doc/man +if test "$MANBASE" != "/usr"; then + 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 644 %SOURCE4 $RPM_BUILD_ROOT/etc/logrotate.d/named +ln -s resolver.5 $RPM_BUILD_ROOT%{_mandir}/man5/resolv.conf.5 + +%pre +/usr/sbin/useradd -c "Named" -u 25 \ + -s /bin/false -r -d /var/named named 2>/dev/null || : + +%post +/sbin/chkconfig --add named +if [ -f /etc/named.boot -a ! -f /etc/named.conf ]; then + if [ -x /usr/sbin/named-bootconf ]; then + cat /etc/named.boot | /usr/sbin/named-bootconf > /etc/named.conf + chmod 644 /etc/named.conf + fi +fi + +%preun +if [ $1 = 0 ]; then + /usr/sbin/userdel named 2>/dev/null || : + /usr/sbin/groupdel named 2>/dev/null || : + /sbin/chkconfig --del named + [ -f /var/lock/subsys/named ] && /sbin/service named stop >/dev/null 2>&1 || : +fi +exit 0 + +%postun +if [ "$1" -ge 1 ]; then + /sbin/service named condrestart >/dev/null 2>&1 || : +fi + +%triggerpostun -- bind < 8.2.2_P5-15 +/sbin/chkconfig --add named + +%clean +rm -rf ${RPM_BUILD_ROOT} + +%files +%defattr(-,root,root) +%doc src/README src/INSTALL src/Version src/CHANGES +%doc src/TODO +%doc doc/bog doc/html doc/misc doc/notes doc/rfc doc/tmac +%config /etc/logrotate.d/named +%config /etc/rc.d/init.d/named + +/usr/sbin/dnskeygen +/usr/sbin/irpd +/usr/sbin/named +/usr/sbin/named-bootconf +/usr/sbin/named-xfer +/usr/sbin/ndc + +%{_mandir}/man1/dnskeygen.1* +%{_mandir}/man5/named.conf.5* +%{_mandir}/man7/hostname.7* +%{_mandir}/man8/named.8* +%{_mandir}/man8/ndc.8* +%{_mandir}/man8/named-bootconf.8* +%{_mandir}/man8/named-xfer.8* + +%attr(-,named,named) %dir /var/named + +%files utils +%defattr(-,root,root) +/usr/bin/addr +/usr/bin/dig +/usr/bin/dnsquery +/usr/bin/host +/usr/bin/mkservdb +/usr/bin/nslookup +/usr/bin/nsupdate +/usr/lib/nslookup.help +%{_mandir}/man1/dig.1* +%{_mandir}/man1/dnsquery.1* +%{_mandir}/man1/host.1* +%{_mandir}/man5/irs.conf.5* +%{_mandir}/man5/resolver.5* +%{_mandir}/man5/resolv.conf.5* +%{_mandir}/man8/nslookup.8* +%{_mandir}/man8/nsupdate.8* + +%files devel +%defattr(-,root,root) +/usr/lib/bind +%{_mandir}/man3/hesiod.3* +%{_mandir}/man3/inet_cidr.3* +%{_mandir}/man3/tsig.3* + +%changelog +* Sat Aug 05 2000 Bill Nottingham +- condrestart fixes + +* Tue Jul 18 2000 Nalin Dahyabhai +- change the init script to take condrestart, not cond-restart +- 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 +- Don't prereq /etc/init.d + +* Sat Jul 15 2000 Bill Nottingham +- move initscript back + +* Wed Jul 12 2000 Prospector +- automatic rebuild + +* Sun Jul 9 2000 Florian La Roche +- add "exit 0" for uninstall case + +* Fri Jul 7 2000 Florian La Roche +- add prereq init.d and cleanup install section + +* Fri Jun 30 2000 Trond Eivind Glomsrød +- fix the init script + +* Wed Jun 28 2000 Nalin Dahyabhai +- make libbind.a and nslookup.help readable again by setting INSTALL_LIB to "" + +* Mon Jun 26 2000 Bernhard Rosenkränzer +- Fix up the initscript (Bug #13033) +- Fix build with current glibc (Bug #12755) +- /etc/rc.d/init.d -> /etc/init.d +- use %%{_mandir} rather than /usr/share/man + +* Mon Jun 19 2000 Bill Nottingham +- fix conflict with man-pages +- remove compatibilty chkconfig links +- initscript munging + +* Wed Jun 14 2000 Nalin Dahyabhai +- modify logrotate setup to use PID file +- temporarily disable optimization by unsetting $RPM_OPT_FLAGS at build-time +- actually bump the release this time + +* Sun Jun 4 2000 Bernhard Rosenkraenzer +- FHS compliance + +* Mon Apr 17 2000 Nalin Dahyabhai +- clean up restart patch + +* Mon Apr 10 2000 Nalin Dahyabhai +- provide /var/named (fix for bugs #9847, #10205) +- preserve args when restarted via ndc(8) (bug #10227) +- make resolv.conf(5) a link to resolver(5) (bug #10245) +- fix SYSTYPE bug in all makefiles +- move creation of named user from %%post into %%pre + +* Mon Feb 28 2000 Bernhard Rosenkränzer +- Fix TTL (patch from ISC, Bug #9820) + +* Wed Feb 16 2000 Bernhard Rosenkränzer +- fix typo in spec (it's %post, without a leading blank) introduced in -6 +- change SYSTYPE to linux + +* Sat Feb 11 2000 Bill Nottingham +- pick a standard < 100 uid/gid for named + +* Thu Feb 04 2000 Elliot Lee +- Pass named a '-u named' parameter by default, and add/remove user. + +* Thu Feb 3 2000 Bernhard Rosenkraenzer +- fix host mx bug (Bug #9021) + +* Mon Jan 31 2000 Cristian Gafton +- rebuild to fix dependencies +- man pages are compressed + +* Wed Jan 19 2000 Bernhard Rosenkraenzer +- It's /usr/bin/killall, not /usr/sbin/killall (Bug #8063) + +* Mon Jan 17 2000 Bernhard Rosenkraenzer +- Fix up location of named-bootconf.pl and make it executable + (Bug #8028) +- bind-devel requires bind + +* Mon Nov 15 1999 Bernhard Rosenkraenzer +- update to 8.2.2-P5 + +* Wed Nov 10 1999 Bill Nottingham +- update to 8.2.2-P3 + +* Tue Oct 12 1999 Cristian Gafton +- add patch to stop a cache only server from complaining about lame servers + on every request. + +* Fri Sep 24 1999 Preston Brown +- use real stop and start in named.init for restart, not ndc restart, it has + problems when named has changed during a package update... (# 4890) + +* Fri Sep 10 1999 Bill Nottingham +- chkconfig --del in %preun, not %postun + +* Mon Aug 16 1999 Bill Nottingham +- initscript munging + +* Mon Jul 26 1999 Bill Nottingham +- fix installed chkconfig links to match init file + +* Sat Jul 3 1999 Jeff Johnson +- conflict with new (in man-1.24) man pages (#3876,#3877). + +* Tue Jun 29 1999 Bill Nottingham +- fix named.logrotate (wrong %SOURCE) + +* Fri Jun 25 1999 Jeff Johnson +- update to 8.2.1. +- add named.logrotate (#3571). +- hack around egcs-1.1.2 -m486 bug (#3413, #3485). +- vet file list. + +* Fri Jun 18 1999 Bill Nottingham +- don't run by default + +* Sun May 30 1999 Jeff Johnson +- nslookup fixes (#2463). +- missing files (#3152). + +* Sat May 1 1999 Stepan Kasal +- nslookup patched: + to count numRecords properly + to fix subsequent calls to ls -d + to parse "view" and "finger" commands properly + the view hack updated for bind-8 (using sed) + +* Wed Mar 31 1999 Bill Nottingham +- add ISC patch +- add quick hack to make host not crash +- add more docs + +* Fri Mar 26 1999 Cristian Gafton +- add probing information in the init file to keep linuxconf happy +- dont strip libbind + +* Sun Mar 21 1999 Cristian Gafton +- auto rebuild in the new build environment (release 3) + +* Wed Mar 17 1999 Preston Brown +- removed 'done' output at named shutdown. + +* Tue Mar 16 1999 Cristian Gafton +- version 8.2 + +* Wed Dec 30 1998 Cristian Gafton +- patch to use the __FDS_BITS macro +- build for glibc 2.1 + +* Wed Sep 23 1998 Jeff Johnson +- change named.restart to /usr/sbin/ndc restart + +* Sat Sep 19 1998 Jeff Johnson +- install man pages correctly. +- change K10named to K45named. + +* Wed Aug 12 1998 Jeff Johnson +- don't start if /etc/named.conf doesn't exist. + +* Sat Aug 8 1998 Jeff Johnson +- autmagically create /etc/named.conf from /etc/named.boot in %post +- remove echo in %post + +* Wed Jun 10 1998 Jeff Johnson +- merge in 5.1 mods + +* Sun Apr 12 1998 Manuel J. Galan +- Several essential modifications to build and install correctly. +- Modified 'ndc' to avoid deprecated use of '-' + +* Mon Dec 22 1997 Scott Lampert +- Used buildroot +- patched bin/named/ns_udp.c to use for include + on Redhat 5.0 instead of + diff --git a/named.init b/named.init new file mode 100755 index 0000000..80fdb3d --- /dev/null +++ b/named.init @@ -0,0 +1,92 @@ +#!/bin/bash +# +# named This shell script takes care of starting and stopping +# named (BIND DNS server). +# +# chkconfig: - 55 45 +# description: named (BIND) is a Domain Name Server (DNS) \ +# that is used to resolve host names to IP addresses. +# probe: true + +# Source function library. +. /etc/rc.d/init.d/functions + +# Source networking configuration. +. /etc/sysconfig/network + +# Check that networking is up. +[ ${NETWORKING} = "no" ] && exit 0 + +[ -f /usr/sbin/named ] || exit 0 + +[ -f /etc/named.conf ] || exit 0 + +RETVAL=0 + +start() { + # Start daemons. + echo -n "Starting named: " + daemon named -u named + RETVAL=$? + [ $RETVAL -eq 0 ] && touch /var/lock/subsys/named + echo + return $RETVAL +} +stop() { + # Stop daemons. + echo -n "Shutting down named: " + killproc named + RETVAL=$? + [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/named + echo + return $RETVAL +} +rhstatus() { + /usr/sbin/ndc status + return $? +} +restart() { + stop + start +} +reload() { + /usr/sbin/ndc reload + return $? +} +probe() { + # named knows how to reload intelligently; we don't want linuxconf + # to offer to restart every time + /usr/sbin/ndc reload >/dev/null 2>&1 || echo start + return $? +} + +# See how we were called. +case "$1" in + start) + start + ;; + stop) + stop + ;; + status) + rhstatus + ;; + restart) + restart + ;; + condrestart) + [ -f /var/lock/subsys/named ] && restart || : + ;; + reload) + reload + ;; + probe) + probe + ;; + *) + echo "Usage: named {start|stop|status|restart|condrestart|reload|probe}" + exit 1 +esac + +exit $? + diff --git a/named.logrotate b/named.logrotate new file mode 100644 index 0000000..24cc507 --- /dev/null +++ b/named.logrotate @@ -0,0 +1,6 @@ +/var/log/named.log { + missingok + postrotate + /usr/bin/kill -HUP `cat /var/run/named.pid 2> /dev/null` 2> /dev/null || true + endscript +} diff --git a/sources b/sources index e69de29..7614484 100644 --- a/sources +++ b/sources @@ -0,0 +1,3 @@ +414ddb56d706b5bec1d5135344f3ccb0 bind-8.2.2_P5-contrib.tar.gz +32f60488e6c2c5ef583c96742f0c8f07 bind-8.2.2_P5-doc.tar.gz +fd8ab0befccc3546531904eac12cf6f7 bind-8.2.2_P5-src.tar.gz