summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Tkac <atkac@fedoraproject.org>2007-12-12 13:27:02 +0000
committerAdam Tkac <atkac@fedoraproject.org>2007-12-12 13:27:02 +0000
commit72f5cc831d9bed40147aa351a67ffd73ad2c8b90 (patch)
tree37dfe8cbd1b67a7eb6764a14432f3143365afc45
parent7c054234813a74aafc305d59613bfb7fd72ab52c (diff)
downloadbind-72f5cc831d9bed40147aa351a67ffd73ad2c8b90.tar.gz
bind-72f5cc831d9bed40147aa351a67ffd73ad2c8b90.tar.xz
bind-72f5cc831d9bed40147aa351a67ffd73ad2c8b90.zip
- added dst/gssapi.h to -devel subpackage (#419091)bind-9_5_0-19_2_b1_fc9
- improved fix for (#417431)
-rw-r--r--bind-9.5-gssapi-header.patch12
-rw-r--r--bind.spec8
-rwxr-xr-xnamed.init32
3 files changed, 34 insertions, 18 deletions
diff --git a/bind-9.5-gssapi-header.patch b/bind-9.5-gssapi-header.patch
new file mode 100644
index 0000000..fe8c694
--- /dev/null
+++ b/bind-9.5-gssapi-header.patch
@@ -0,0 +1,12 @@
+diff -up bind-9.5.0b1/lib/dns/include/dst/Makefile.in.gssapi-header bind-9.5.0b1/lib/dns/include/dst/Makefile.in
+--- bind-9.5.0b1/lib/dns/include/dst/Makefile.in.gssapi-header 2007-12-11 15:50:55.000000000 +0100
++++ bind-9.5.0b1/lib/dns/include/dst/Makefile.in 2007-12-11 15:51:15.000000000 +0100
+@@ -21,7 +21,7 @@ top_srcdir = @top_srcdir@
+
+ @BIND9_VERSION@
+
+-HEADERS = dst.h lib.h result.h
++HEADERS = dst.h gssapi.h lib.h result.h
+
+ SUBDIRS =
+ TARGETS =
diff --git a/bind.spec b/bind.spec
index 7cc8049..00d0118 100644
--- a/bind.spec
+++ b/bind.spec
@@ -21,7 +21,7 @@ Summary: The Berkeley Internet Name Domain (BIND) DNS (Domain Name System) serv
Name: bind
License: ISC
Version: 9.5.0
-Release: 19.1.%{RELEASEVER}%{?dist}
+Release: 19.2.%{RELEASEVER}%{?dist}
Epoch: 32
Url: http://www.isc.org/products/BIND/
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@@ -62,6 +62,7 @@ Patch63: bind-9.4.0-dnssec-directory.patch
Patch69: bind-9.5.0-generate-xml.patch
Patch71: bind-9.5-overflow.patch
Patch72: bind-9.5-dlz-64bit.patch
+Patch84: bind-9.5-gssapi-header.patch
# SDB patches
Patch11: bind-9.3.2b2-sdbsrc.patch
@@ -256,6 +257,7 @@ cp -fp contrib/dbus/{dbus_mgr.h,dbus_service.h} bin/named/include/named
%endif
%patch73 -p1 -b .libidn
%patch83 -p1 -b .libidn2
+%patch84 -p1 -b .gssapi-header
:;
@@ -665,6 +667,10 @@ rm -rf ${RPM_BUILD_ROOT}
%{_sbindir}/bind-chroot-admin
%changelog
+* Wed Dec 12 2007 Adam Tkac <atkac redhat com> 32:9.5.0-19.2.b1
+- added dst/gssapi.h to -devel subpackage (#419091)
+- improved fix for (#417431)
+
* Mon Dec 10 2007 Adam Tkac <atkac redhat com> 32:9.5.0-19.1.b1
- fixed shutdown with initscript when rndc doesn't work (#417431)
- fixed IDN patch (#412241)
diff --git a/named.init b/named.init
index 3304aff..dff9a04 100755
--- a/named.init
+++ b/named.init
@@ -32,7 +32,7 @@ if [ -x /usr/sbin/named-sdb ]; then
fi
# Don't kill named during clean-up
-NAMED_SHUTDOWN_TIMEOUT=${NAMED_SHUTDOWN_TIMEOUT:-100}
+NAMED_SHUTDOWN_TIMEOUT=${NAMED_SHUTDOWN_TIMEOUT:-25}
if [ -n "$ROOTDIR" ]; then
ROOTDIR=`echo $ROOTDIR | sed 's#//*#/#g;s#/$##'`;
@@ -139,22 +139,20 @@ stop() {
echo -n $"Stopping named: "
[ -x /usr/sbin/rndc ] && /usr/sbin/rndc stop >/dev/null 2>&1;
RETVAL=$?
- # is it still here?
- if /sbin/pidof -o %PPID "$named" >/dev/null; then
- timeout=0
- killproc "$named" -TERM >/dev/null 2>&1
- RETVAL=0
- while [ `/sbin/pidof -o %PPID "$named" >/dev/null` ]; do
- if [ $timeout -ge $NAMED_SHUTDOWN_TIMEOUT ]; then
- RETVAL=1
- echo $"no response, killing with -TERM "
- break
- else
- sleep 2 && echo -n "."
- timeout=$((timeout+2))
- fi;
- done
- fi;
+ # was rndc successful?
+ [ "$RETVAL" -eq 0 ] || killproc "$named" -TERM >/dev/null 2>&1
+
+ timeout=0
+ RETVAL=0
+ while [ `/sbin/pidof -o %PPID "$named" >/dev/null` ]; do
+ if [ $timeout -ge $NAMED_SHUTDOWN_TIMEOUT ]; then
+ RETVAL=1
+ break
+ else
+ sleep 2 && echo -n "."
+ timeout=$((timeout+2))
+ fi;
+ done
# remove pid files
if [ $RETVAL -eq 0 ]; then