Compare commits

...

21 Commits

Author SHA1 Message Date
8e10e423c0 automatic version update by autodist [release 9.11.0.P2-1mamba;Thu Jan 12 2017] 2024-01-05 20:47:27 +01:00
5bd5b22f74 automatic version update by autodist [release 9.11.0.P1-1mamba;Wed Nov 02 2016] 2024-01-05 20:47:27 +01:00
dddb00d258 automatic version update by autodist [release 9.11.0-1mamba;Wed Oct 05 2016] 2024-01-05 20:47:27 +01:00
736799285d automatic version update by autodist [release 9.10.4.P3-1mamba;Wed Sep 28 2016] 2024-01-05 20:47:27 +01:00
9563fb886b automatic version update by autodist [release 9.10.4.P2-1mamba;Tue Jul 19 2016] 2024-01-05 20:47:27 +01:00
288f51c56d automatic version update by autodist [release 9.10.4.P1-1mamba;Thu May 26 2016] 2024-01-05 20:47:27 +01:00
6de249c309 automatic version update by autodist [release 9.10.4-1mamba;Sat Apr 30 2016] 2024-01-05 20:47:27 +01:00
51077ab9f0 automatic version update by autodist [release 9.10.3.P4-1mamba;Thu Mar 10 2016] 2024-01-05 20:47:27 +01:00
0c7c8ef98a automatic version update by autodist [release 9.10.3.P3-1mamba;Wed Jan 20 2016] 2024-01-05 20:47:27 +01:00
642efaff89 automatic version update by autodist [release 9.10.3.P2-1mamba;Wed Dec 16 2015] 2024-01-05 20:47:27 +01:00
98ca25cad5 automatic version update by autodist [release 9.10.3-1mamba;Wed Sep 16 2015] 2024-01-05 20:47:27 +01:00
82eab3a137 automatic version update by autodist [release 9.10.2.P4-1mamba;Thu Sep 03 2015] 2024-01-05 20:47:26 +01:00
47522592f6 automatic version update by autodist [release 9.10.2.P3-1mamba;Wed Jul 29 2015] 2024-01-05 20:47:26 +01:00
832e8ec368 systemd support [release 9.10.2.P2-2mamba;Sat Jul 18 2015] 2024-01-05 20:47:26 +01:00
9526d67dd5 automatic version update by autodist [release 9.10.2.P2-1mamba;Tue Jul 07 2015] 2024-01-05 20:47:26 +01:00
cefeed9315 automatic version update by autodist [release 9.10.2.P1-1mamba;Thu Jun 11 2015] 2024-01-05 20:47:26 +01:00
ba1326179f automatic version update by autodist [release 9.10.2-1mamba;Tue Mar 31 2015] 2024-01-05 20:47:26 +01:00
41d97d33f9 automatic version update by autodist [release 9.10.1.P1-1mamba;Mon Dec 08 2014] 2024-01-05 20:47:26 +01:00
b81e98f68e automatic version update by autodist [release 9.10.1-1mamba;Tue Sep 23 2014] 2024-01-05 20:47:26 +01:00
c179d2a562 automatic version update by autodist [release 9.10.0.P2-1mamba;Thu Jun 12 2014] 2024-01-05 20:47:26 +01:00
06e5dfac06 automatic version update by autodist [release 9.10.0.P1-1mamba;Sun May 18 2014] 2024-01-05 20:47:26 +01:00
3 changed files with 133 additions and 110 deletions

146
bind.spec
View File

@@ -6,7 +6,7 @@
%define MAJver %(echo %version | cut -d. -f 1-2)
Name: bind
Version: 9.9.5.W1
Version: 9.11.0.P2
Release: 1mamba
Summary: A DNS (Domain Name System) server
Group: System/Servers
@@ -16,7 +16,7 @@ Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://www.isc.org/products/BIND/
Source0: ftp://ftp.isc.org/isc/bind9/%{pkgver}/bind-%{pkgver}.tar.gz
Source1: dhcp-dynamic-dns-examples.tar.bz2
Source2: named.init
Source2: named.service
Source3: named.logrotate
Source4: named.sysconfig
Source5: keygen.c
@@ -37,11 +37,13 @@ BuildRequires: libopenssl-devel
BuildRequires: libxml2-devel
BuildRequires: libz-devel
## AUTOBUILDREQ-END
BuildRequires: python-ply
BuildRequires: python-argparse
%if "%{stage1}" != "1"
BuildRequires: openjade
BuildRequires: jadetex
%endif
Requires: python-ply
Requires: python-argparse
Requires: %{name}-utils = %{version}-%{release}
BuildRoot: %{_tmppath}/%{name}-%{version}-root
@@ -77,7 +79,7 @@ You should install bind-utils if you need to get information from DNS name serve
%prep
%setup -q -n %{name}-%{pkgver}
%patch -p1 -b .mktemp
#%patch -p1 -b .mktemp
#pushd contrib/queryperf
#autoconf
@@ -85,6 +87,9 @@ You should install bind-utils if you need to get information from DNS name serve
tar xjf %{S:1}
# Fix detection of jsoncpp
sed "s|/include/json/json.h|/include/json/json.h.no|" configure
%build
%configure \
--enable-threads \
@@ -92,6 +97,7 @@ tar xjf %{S:1}
LIBS="-ltermcap" \
%if "%{_host}" != "%{_build}"
--enable-epoll \
--with-python \
--with-randomdev=/dev/random \
BUILD_CC=%{_build}-gcc
%endif
@@ -109,13 +115,14 @@ mkdir -p %{buildroot}%{_var}/named/slave
%makeinstall
touch %{buildroot}%{_sysconfdir}/rndc.key
cp contrib/named-bootconf/named-bootconf.sh \
cp contrib/scripts/named-bootconf.sh \
%{buildroot}%{_sbindir}/named-bootconf
cp contrib/nanny/nanny.pl %{buildroot}%{_sbindir}
cp contrib/scripts/nanny.pl %{buildroot}%{_sbindir}
#cp contrib/queryperf/queryperf %{buildroot}%{_sbindir}
cp contrib/queryperf/README ./README.queryperf
cp %{S:2} %{buildroot}%{_initrddir}/named
install -D -m0644 %{S:2} %{buildroot}%{_unitdir}/named.service
cp %{S:3} %{buildroot}%{_sysconfdir}/logrotate.d/named
cp %{S:4} %{buildroot}/etc/sysconfig/named
@@ -135,6 +142,7 @@ cp %{S:15} %{buildroot}%{_sysconfdir}/rndc.conf
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%pre
if [ $1 -eq 1 ]; then
# new install
@@ -155,21 +163,22 @@ key "rndckey" {
};
_EOF
fi
%systemd_post named
if [ $1 -ge 1 ]; then
# clean old sysv broken links
find /etc/rc[0-6].d/ -type l -xtype l -exec rm -f {} \;
systemctl -q daemon-reload
systemctl -q enable named
fi
exit 0
%preun
if [ $1 -eq 0 ]; then
# erase
[ -f /var/run/named/named.pid ] && service named stop
chkconfig --del named
fi
%systemd_preun named
exit 0
%postun
if [ $1 -eq 1 ]; then
# update
[ -f /var/run/named/named.pid ] && service named restart
fi
%systemd_postun_with_restart named
exit 0
%files
@@ -195,20 +204,26 @@ exit 0
%{_sbindir}/dnssec-verify
%{_sbindir}/lwresd
%{_sbindir}/named
%{_bindir}/named-rrchecker
%attr(0755,root,root) %{_sbindir}/named-bootconf
%{_sbindir}/named-checkconf
%{_sbindir}/named-checkzone
%{_sbindir}/named-compilezone
%{_sbindir}/named-journalprint
%{_sbindir}/named-nzd2nzf
%attr(0755,root,root) %{_sbindir}/nanny.pl
%attr(0755,root,root) %{_sbindir}/new_key.pl
%{_sbindir}/rndc
%{_sbindir}/rndc-confgen
%{_sbindir}/tsig-keygen
%attr(0755,root,root) %{_sbindir}/update_bind.pl
%attr(0755,root,root) %config(noreplace) %{_initrddir}/named
%attr(0755,root,root) %config(noreplace) %{_unitdir}/named.service
%dir %attr(0755,named,named) %{_localstatedir}/named
%dir %attr(0755,named,named) %{_localstatedir}/named/slave
%dir %attr(0755,named,named) %{_localstatedir}/run/named
%{python27_sitelib}/isc-*.egg-info
%dir %{python27_sitelib}/isc
%{python27_sitelib}/isc/*
%attr(0755,named,named) %{_var}/named/*
%{_mandir}/man3/*
%{_mandir}/man5/named.conf.*
@@ -218,6 +233,7 @@ exit 0
%{_mandir}/man8/dnssec-coverage.8*
%{_mandir}/man8/dnssec-dsfromkey.*
%{_mandir}/man8/dnssec-keyfromlabel.*
%{_mandir}/man8/dnssec-importkey.8*
%{_mandir}/man8/dnssec-signzone.*
%{_mandir}/man8/dnssec-keygen.*
%{_mandir}/man8/dnssec-revoke.*
@@ -228,30 +244,48 @@ exit 0
%{_mandir}/man8/named-checkzone.*
%{_mandir}/man8/named-compilezone.*
%{_mandir}/man8/named-journalprint.*
%{_mandir}/man8/named-nzd2nzf.8*
%{_mandir}/man8/named.*
%{_mandir}/man8/rndc-confgen.*
%{_mandir}/man8/rndc.*
%{_mandir}/man8/tsig-keygen.8*
%files devel
%defattr(-,root,root)
%{_bindir}/bind9-config
%{_includedir}/dns/
%{_includedir}/isc/
%{_includedir}/isccc/
%{_includedir}/isccfg/
%{_includedir}/lwres/
%{_includedir}/dst/
%{_includedir}/bind9/
%dir %{_includedir}/dns/
%{_includedir}/dns/*
%dir %{_includedir}/irs/
%{_includedir}/irs/*
%dir %{_includedir}/isc/
%{_includedir}/isc/*
%dir %{_includedir}/isccc/
%{_includedir}/isccc/*
%dir %{_includedir}/isccfg/
%{_includedir}/isccfg/*
%dir %{_includedir}/lwres/
%{_includedir}/lwres/*
%dir %{_includedir}/dst/
%{_includedir}/dst/*
%dir %{_includedir}/bind9/
%{_includedir}/bind9/*
%dir %{_includedir}/pk11/
%{_includedir}/pk11/*
%dir %{_includedir}/pkcs11/
%{_includedir}/pkcs11/*
%{_libdir}/*
%files utils
%defattr(-,root,root)
%{_bindir}/arpaname
%{_bindir}/delv
%{_bindir}/dig
%{_bindir}/mdig
%{_bindir}/host
%{_bindir}/isc-config.sh
%{_bindir}/nslookup
%{_bindir}/nsupdate
%{_sbindir}/arpaname
%{_sbindir}/dnssec-keymgr
%{_sbindir}/genrandom
%{_sbindir}/isc-hmac-fixup
%{_sbindir}/nsec3hash
@@ -259,8 +293,72 @@ exit 0
%{_mandir}/man8/genrandom.*
%{_mandir}/man8/isc-hmac-fixup.*
%{_mandir}/man8/nsec3hash.*
%{_mandir}/man8/dnssec-keymgr.8*
%changelog
* Thu Jan 12 2017 Automatic Build System <autodist@mambasoft.it> 9.11.0.P2-1mamba
- automatic version update by autodist
* Wed Nov 02 2016 Automatic Build System <autodist@mambasoft.it> 9.11.0.P1-1mamba
- automatic version update by autodist
* Wed Oct 05 2016 Automatic Build System <autodist@mambasoft.it> 9.11.0-1mamba
- automatic version update by autodist
* Wed Sep 28 2016 Automatic Build System <autodist@mambasoft.it> 9.10.4.P3-1mamba
- automatic version update by autodist
* Tue Jul 19 2016 Automatic Build System <autodist@mambasoft.it> 9.10.4.P2-1mamba
- automatic version update by autodist
* Thu May 26 2016 Automatic Build System <autodist@mambasoft.it> 9.10.4.P1-1mamba
- automatic version update by autodist
* Sat Apr 30 2016 Automatic Build System <autodist@mambasoft.it> 9.10.4-1mamba
- automatic version update by autodist
* Thu Mar 10 2016 Automatic Build System <autodist@mambasoft.it> 9.10.3.P4-1mamba
- automatic version update by autodist
* Wed Jan 20 2016 Automatic Build System <autodist@mambasoft.it> 9.10.3.P3-1mamba
- automatic version update by autodist
* Wed Dec 16 2015 Automatic Build System <autodist@mambasoft.it> 9.10.3.P2-1mamba
- automatic version update by autodist
* Wed Sep 16 2015 Automatic Build System <autodist@mambasoft.it> 9.10.3-1mamba
- automatic version update by autodist
* Thu Sep 03 2015 Automatic Build System <autodist@mambasoft.it> 9.10.2.P4-1mamba
- automatic version update by autodist
* Wed Jul 29 2015 Automatic Build System <autodist@mambasoft.it> 9.10.2.P3-1mamba
- automatic version update by autodist
* Sat Jul 18 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 9.10.2.P2-2mamba
- systemd support
* Tue Jul 07 2015 Automatic Build System <autodist@mambasoft.it> 9.10.2.P2-1mamba
- automatic version update by autodist
* Thu Jun 11 2015 Automatic Build System <autodist@mambasoft.it> 9.10.2.P1-1mamba
- automatic version update by autodist
* Tue Mar 31 2015 Automatic Build System <autodist@mambasoft.it> 9.10.2-1mamba
- automatic version update by autodist
* Mon Dec 08 2014 Automatic Build System <autodist@mambasoft.it> 9.10.1.P1-1mamba
- automatic version update by autodist
* Tue Sep 23 2014 Automatic Build System <autodist@mambasoft.it> 9.10.1-1mamba
- automatic version update by autodist
* Thu Jun 12 2014 Automatic Build System <autodist@mambasoft.it> 9.10.0.P2-1mamba
- automatic version update by autodist
* Sun May 18 2014 Automatic Build System <autodist@mambasoft.it> 9.10.0.P1-1mamba
- automatic version update by autodist
* Sun Apr 13 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 9.9.5.W1-1mamba
- update to 9.9.5.W1

View File

@@ -1,86 +0,0 @@
#!/bin/bash
#
# named -- This shell script takes care of starting and stopping
# named (BIND DNS server).
#
# chkconfig: 345 30 45
# description: named (BIND) is a Domain Name Server (DNS) \
# that is used to resolve host names to IP addresses.
# Source function library.
. /etc/rc.d/init.d/functions
# Source networking configuration.
[ -r /etc/sysconfig/network ] && . /etc/sysconfig/network
NAME=named
DAEMON=/usr/sbin/$NAME
DAEMONPID=/var/run/$NAME.pid
DAEMONCONF=/etc/named.conf
DAEMONLOG=
OPTIONS=
[ -x $DAEMON ] || exit 0
# Check that networking is up.
[ "${NETWORKING}" = "no" ] && exit 0
[ -r /etc/sysconfig/$NAME ] && . /etc/sysconfig/$NAME
[ -r ${ROOTDIR}${DAEMONCONF} ] || exit 0
RETVAL=0
# See how we were called.
case "$1" in
start)
echo -n $"Starting $NAME: "
if [ -n "$ROOTDIR" -a "x$ROOTDIR" != "x/" ]; then
OPTIONS="$OPTIONS -t $ROOTDIR"
fi
daemon $DAEMON -u named $OPTIONS
RETVAL=$?
[ $RETVAL -eq 0 ] && touch /var/lock/subsys/$NAME
echo
# perform a query so we are sure service is working
# before the system starts other services
dig > /dev/null
exit $RETVAL
;;
stop)
echo -n $"Stopping $NAME: "
killproc $DAEMON
RETVAL=$?
echo
[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$NAME
exit $RETVAL
;;
restart|force-reload)
$0 stop
sleep 1
$0 start
;;
condrestart)
[ -e /var/lock/subsys/$NAME ] && $0 restart
;;
reload)
/usr/sbin/rndc -c $ROOTDIR/etc/rndc.conf reload >/dev/null 2>&1 || \
/usr/bin/killall -HUP $NAME
exit $?
;;
status)
/usr/sbin/rndc -c $ROOTDIR/etc/rndc.conf status
exit $?
;;
probe)
# named knows how to reload intelligently; we don't want linuxconf
# to offer to restart every time
/usr/sbin/rndc -c $ROOTDIR/etc/rndc.conf reload >/dev/null 2>&1 || \
echo start
exit $?
;;
*)
echo $"Usage: ""/etc/init.d/$NAME {start|stop|status|restart|condrestart|reload|probe}"
exit 1
;;
esac

11
named.service Normal file
View File

@@ -0,0 +1,11 @@
[Unit]
Description=Internet domain name server
After=network.target
[Service]
ExecStart=/usr/sbin/named -f -u named
ExecReload=/usr/sbin/rndc reload
ExecStop=/usr/sbin/rndc stop
[Install]
WantedBy=multi-user.target