fix bugs: 157601, 156797, 155848, 154335
This commit is contained in:
parent
344f2f5906
commit
38983f9757
51
bind.spec
51
bind.spec
@ -3,12 +3,13 @@
|
|||||||
%{?!LIBBIND:%define LIBBIND 1}
|
%{?!LIBBIND:%define LIBBIND 1}
|
||||||
%{?!efence: %define efence 0}
|
%{?!efence: %define efence 0}
|
||||||
%{?!test: %define test 0}
|
%{?!test: %define test 0}
|
||||||
|
%{?!WITH_DBUS: %define WITH_DBUS 0} # enable when dhcdbd is in FC
|
||||||
# Usage: export RPM='/usr/bin/rpmbuild --define "test 1"'; make $arch;
|
# Usage: export RPM='/usr/bin/rpmbuild --define "test 1"'; make $arch;
|
||||||
Summary: The Berkeley Internet Name Domain (BIND) DNS (Domain Name System) server.
|
Summary: The Berkeley Internet Name Domain (BIND) DNS (Domain Name System) server.
|
||||||
Name: bind
|
Name: bind
|
||||||
License: BSD-like
|
License: BSD-like
|
||||||
Version: 9.3.1
|
Version: 9.3.1
|
||||||
Release: 2_FC4
|
Release: 4
|
||||||
Epoch: 24
|
Epoch: 24
|
||||||
Url: http://www.isc.org/products/BIND/
|
Url: http://www.isc.org/products/BIND/
|
||||||
Buildroot: %{_tmppath}/%{name}-root
|
Buildroot: %{_tmppath}/%{name}-root
|
||||||
@ -41,6 +42,8 @@ Patch11: bind-9.3.1rc1-sdbsrc.patch
|
|||||||
Patch12: bind-9.3.1rc1-sdb.patch
|
Patch12: bind-9.3.1rc1-sdb.patch
|
||||||
Patch13: bind-9.3.1rc1-fix_libbind_includedir.patch
|
Patch13: bind-9.3.1rc1-fix_libbind_includedir.patch
|
||||||
Patch14: libbind-9.3.1rc1-fix_h_errno.patch
|
Patch14: libbind-9.3.1rc1-fix_h_errno.patch
|
||||||
|
Patch15: bind-9.3.1.dbus.patch
|
||||||
|
Patch16: bind-9.3.1-redhat_doc.patch
|
||||||
Requires(pre,preun): shadow-utils
|
Requires(pre,preun): shadow-utils
|
||||||
Requires(post,preun): chkconfig
|
Requires(post,preun): chkconfig
|
||||||
Requires(post): textutils, fileutils, sed, grep
|
Requires(post): textutils, fileutils, sed, grep
|
||||||
@ -48,10 +51,18 @@ Requires: bind-libs = %{epoch}:%{version}-%{release}, bind-utils = %{epoch}:%{ve
|
|||||||
#Requires: kernel >= 2.4
|
#Requires: kernel >= 2.4
|
||||||
#Requires: glibc >= 2.3.2-5
|
#Requires: glibc >= 2.3.2-5
|
||||||
%if %{SDB}
|
%if %{SDB}
|
||||||
|
%if %{WITH_DBUS}
|
||||||
|
BuildRequires: openssl-devel gcc dbus-devel glibc-devel >= 2.2.5-26 glibc-kernheaders >= 2.4-7.10 libtool pkgconfig tar openldap-devel postgresql-devel
|
||||||
|
%else
|
||||||
BuildRequires: openssl-devel gcc glibc-devel >= 2.2.5-26 glibc-kernheaders >= 2.4-7.10 libtool pkgconfig tar openldap-devel postgresql-devel
|
BuildRequires: openssl-devel gcc glibc-devel >= 2.2.5-26 glibc-kernheaders >= 2.4-7.10 libtool pkgconfig tar openldap-devel postgresql-devel
|
||||||
|
%endif
|
||||||
|
%else
|
||||||
|
%if %{WITH_DBUS}
|
||||||
|
BuildRequires: openssl-devel gcc dbus-devel glibc-devel >= 2.2.5-26 glibc-kernheaders >= 2.4-7.10 libtool pkgconfig tar
|
||||||
%else
|
%else
|
||||||
BuildRequires: openssl-devel gcc glibc-devel >= 2.2.5-26 glibc-kernheaders >= 2.4-7.10 libtool pkgconfig tar
|
BuildRequires: openssl-devel gcc glibc-devel >= 2.2.5-26 glibc-kernheaders >= 2.4-7.10 libtool pkgconfig tar
|
||||||
%endif
|
%endif
|
||||||
|
%endif
|
||||||
|
|
||||||
%description
|
%description
|
||||||
BIND (Berkeley Internet Name Domain) is an implementation of the DNS
|
BIND (Berkeley Internet Name Domain) is an implementation of the DNS
|
||||||
@ -179,6 +190,11 @@ cp -fp contrib/sdb/pgsql/zonetodb.c bin/sdb_tools
|
|||||||
%patch13 -p1 -b .fix_libbind_includedir
|
%patch13 -p1 -b .fix_libbind_includedir
|
||||||
%patch14 -p1 -b .fix_h_errno
|
%patch14 -p1 -b .fix_h_errno
|
||||||
%endif
|
%endif
|
||||||
|
%if %{WITH_DBUS}
|
||||||
|
%patch15 -p1 -b .dbus
|
||||||
|
%else
|
||||||
|
%patch16 -p1 -b .redhat_doc
|
||||||
|
%endif
|
||||||
|
|
||||||
%build
|
%build
|
||||||
libtoolize --copy --force; aclocal; autoconf
|
libtoolize --copy --force; aclocal; autoconf
|
||||||
@ -208,6 +224,9 @@ export LDFLAGS=-lefence
|
|||||||
--with-openssl=/usr
|
--with-openssl=/usr
|
||||||
%endif
|
%endif
|
||||||
make
|
make
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
exit $?;
|
||||||
|
fi;
|
||||||
cp %{SOURCE5} doc/rfc
|
cp %{SOURCE5} doc/rfc
|
||||||
gzip -9 doc/rfc/*
|
gzip -9 doc/rfc/*
|
||||||
|
|
||||||
@ -274,6 +293,7 @@ if [ "`whoami`" = 'root' ]; then
|
|||||||
else
|
else
|
||||||
echo 'test==1 : only root can run the tests (they require an ifconfig).';
|
echo 'test==1 : only root can run the tests (they require an ifconfig).';
|
||||||
fi
|
fi
|
||||||
|
:;
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%pre
|
%pre
|
||||||
@ -302,6 +322,7 @@ if [ "$1" -eq 1 ]; then
|
|||||||
chown root:named /etc/rndc.conf /etc/rndc.key /etc/named.conf
|
chown root:named /etc/rndc.conf /etc/rndc.key /etc/named.conf
|
||||||
/sbin/ldconfig
|
/sbin/ldconfig
|
||||||
fi
|
fi
|
||||||
|
:;
|
||||||
|
|
||||||
%preun
|
%preun
|
||||||
if [ "$1" = 0 ]; then
|
if [ "$1" = 0 ]; then
|
||||||
@ -310,6 +331,7 @@ if [ "$1" = 0 ]; then
|
|||||||
/usr/sbin/groupdel named 2>/dev/null || :;
|
/usr/sbin/groupdel named 2>/dev/null || :;
|
||||||
/sbin/chkconfig --del named || :;
|
/sbin/chkconfig --del named || :;
|
||||||
fi
|
fi
|
||||||
|
:;
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
if [ "$1" -ge 1 ]; then
|
if [ "$1" -ge 1 ]; then
|
||||||
@ -325,10 +347,12 @@ if [ $1 = 0 ]; then
|
|||||||
/etc/rc.d/init.d/named stop >/dev/null 2>&1 || :;
|
/etc/rc.d/init.d/named stop >/dev/null 2>&1 || :;
|
||||||
fi;
|
fi;
|
||||||
fi;
|
fi;
|
||||||
|
:;
|
||||||
|
|
||||||
%triggerpostun -- bind < 8.2.2_P5-15
|
%triggerpostun -- bind < 8.2.2_P5-15
|
||||||
/sbin/chkconfig --add named
|
/sbin/chkconfig --add named
|
||||||
/sbin/ldconfig
|
/sbin/ldconfig
|
||||||
|
:;
|
||||||
|
|
||||||
%triggerpostun -n bind -- bind <= 22:9.3.0-2
|
%triggerpostun -n bind -- bind <= 22:9.3.0-2
|
||||||
if [ "$1" -gt 0 ]; then
|
if [ "$1" -gt 0 ]; then
|
||||||
@ -362,6 +386,7 @@ fi
|
|||||||
%clean
|
%clean
|
||||||
rm -rf ${RPM_BUILD_ROOT}
|
rm -rf ${RPM_BUILD_ROOT}
|
||||||
# ${RPM_BUILD_DIR}/%{name}-%{version}
|
# ${RPM_BUILD_DIR}/%{name}-%{version}
|
||||||
|
:;
|
||||||
|
|
||||||
%post libs -p /sbin/ldconfig
|
%post libs -p /sbin/ldconfig
|
||||||
|
|
||||||
@ -371,6 +396,9 @@ rm -rf ${RPM_BUILD_ROOT}
|
|||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%doc CHANGES COPYRIGHT README
|
%doc CHANGES COPYRIGHT README
|
||||||
%doc doc/arm doc/misc
|
%doc doc/arm doc/misc
|
||||||
|
%if %{WITH_DBUS}
|
||||||
|
%doc doc/README.DBUS
|
||||||
|
%endif
|
||||||
%config(noreplace) /etc/logrotate.d/named
|
%config(noreplace) /etc/logrotate.d/named
|
||||||
%attr(754,root,root) %config /etc/rc.d/init.d/named
|
%attr(754,root,root) %config /etc/rc.d/init.d/named
|
||||||
%config(noreplace) /etc/sysconfig/named
|
%config(noreplace) /etc/sysconfig/named
|
||||||
@ -471,6 +499,7 @@ rm -rf ${RPM_BUILD_ROOT}
|
|||||||
%if %{SDB}
|
%if %{SDB}
|
||||||
|
|
||||||
%files sdb
|
%files sdb
|
||||||
|
%defattr(-,root,named)
|
||||||
%{_sbindir}/named_sdb
|
%{_sbindir}/named_sdb
|
||||||
%config /etc/openldap/schema/dnszone.schema
|
%config /etc/openldap/schema/dnszone.schema
|
||||||
%{_sbindir}/zone2ldap
|
%{_sbindir}/zone2ldap
|
||||||
@ -501,6 +530,7 @@ if [ "$1" -eq 1 ]; then
|
|||||||
fi;
|
fi;
|
||||||
fi;
|
fi;
|
||||||
fi;
|
fi;
|
||||||
|
:;
|
||||||
|
|
||||||
%preun sdb
|
%preun sdb
|
||||||
if [ -x /usr/sbin/named_sdb ] && [ -f /etc/openldap/slapd.conf ]; then
|
if [ -x /usr/sbin/named_sdb ] && [ -f /etc/openldap/slapd.conf ]; then
|
||||||
@ -513,6 +543,7 @@ if [ -x /usr/sbin/named_sdb ] && [ -f /etc/openldap/slapd.conf ]; then
|
|||||||
[ -x /etc/init.d/ldap ] && /etc/init.d/ldap condrestart >/dev/null 2>&1 || :;
|
[ -x /etc/init.d/ldap ] && /etc/init.d/ldap condrestart >/dev/null 2>&1 || :;
|
||||||
fi;
|
fi;
|
||||||
fi;
|
fi;
|
||||||
|
:;
|
||||||
|
|
||||||
%endif # SDB
|
%endif # SDB
|
||||||
|
|
||||||
@ -575,7 +606,7 @@ if [ -f /etc/named.custom ]; then
|
|||||||
safe_replace /etc/named.custom "%{prefix}/etc/named.custom" root named 644 '' || :;
|
safe_replace /etc/named.custom "%{prefix}/etc/named.custom" root named 644 '' || :;
|
||||||
fi
|
fi
|
||||||
safe_replace /etc/named.conf "%{prefix}/etc/named.conf" root named 644 "$default_ndc"
|
safe_replace /etc/named.conf "%{prefix}/etc/named.conf" root named 644 "$default_ndc"
|
||||||
/usr/bin/find /var/named -type f | /bin/egrep -v /var/named/chroot | while read f;
|
/usr/bin/find /var/named -xdev -type f | /bin/egrep -v '/var/named/chroot' | while read f;
|
||||||
do
|
do
|
||||||
d=`/usr/bin/dirname $f`;
|
d=`/usr/bin/dirname $f`;
|
||||||
if test '!' -d "%{prefix}$d"; then
|
if test '!' -d "%{prefix}$d"; then
|
||||||
@ -598,7 +629,7 @@ chown named:named "%{prefix}/var/named/data"
|
|||||||
|
|
||||||
%preun chroot
|
%preun chroot
|
||||||
if [ "$1" = "0" ]; then
|
if [ "$1" = "0" ]; then
|
||||||
/usr/bin/find /var/named/chroot -type f | while read f;
|
/usr/bin/find /var/named/chroot -xdev -type f | while read f;
|
||||||
do
|
do
|
||||||
F=`echo $f | sed 's#/var/named/chroot##'`;
|
F=`echo $f | sed 's#/var/named/chroot##'`;
|
||||||
if /usr/bin/test -L $F && test `/usr/bin/readlink $F` = $f; then
|
if /usr/bin/test -L $F && test `/usr/bin/readlink $F` = $f; then
|
||||||
@ -614,6 +645,7 @@ if [ "$1" = "0" ]; then
|
|||||||
fi
|
fi
|
||||||
/etc/init.d/named condrestart >/dev/null 2>&1 || :;
|
/etc/init.d/named condrestart >/dev/null 2>&1 || :;
|
||||||
fi
|
fi
|
||||||
|
:;
|
||||||
|
|
||||||
%triggerpostun -n bind-chroot -- bind-chroot
|
%triggerpostun -n bind-chroot -- bind-chroot
|
||||||
# Fix mess left by bind-chroot-9.2.2's %preun (bug 131803)
|
# Fix mess left by bind-chroot-9.2.2's %preun (bug 131803)
|
||||||
@ -625,8 +657,21 @@ if [ "$1" -gt 0 ]; then
|
|||||||
/etc/init.d/named condrestart >/dev/null 2>&1 || :;
|
/etc/init.d/named condrestart >/dev/null 2>&1 || :;
|
||||||
fi;
|
fi;
|
||||||
fi;
|
fi;
|
||||||
|
:;
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Apr 16 2005 Jason Vas Dias <jvdias@redhat.com> - 24:9.2.1-4
|
||||||
|
- Fix bug 157601: give named.init a configtest function
|
||||||
|
- Fix bug 156797: named.init should check SELinux booleans.local before booleans
|
||||||
|
- Fix bug 154335: if no controls in named.conf, stop named with -TERM sig, not rndc
|
||||||
|
- Fix bug 155848: add NOTES section to named.8 man-page with info on all Red Hat
|
||||||
|
BIND quirks and SELinux DDNS / slave zone file configuration
|
||||||
|
- D-BUS patches NOT applied until dhcdbd is in FC
|
||||||
|
|
||||||
|
* Sun Apr 15 2005 Jason Vas Dias <jvdias@redhat.com> - 24:9.3.1-4_dbus
|
||||||
|
- Enhancement to allow dynamic forwarder table management and
|
||||||
|
- DHCP forwarder auto-configuration with D-BUS
|
||||||
|
|
||||||
* Thu Apr 14 2005 Jason Vas Dias <jvdias@redhat.com> - 24:9.3.1-2_FC4
|
* Thu Apr 14 2005 Jason Vas Dias <jvdias@redhat.com> - 24:9.3.1-2_FC4
|
||||||
- Rebuild for bind-sdb libpq.so.3 dependency
|
- Rebuild for bind-sdb libpq.so.3 dependency
|
||||||
- fix bug 150981: don't install libbind man-pages if no libbind
|
- fix bug 150981: don't install libbind man-pages if no libbind
|
||||||
|
Loading…
Reference in New Issue
Block a user