rpms/bind/devel bind.spec, 1.112, 1.113 named.init, 1.42, 1.43 namedGetForwarders, 1.1, 1.2

fedora-cvs-commits at redhat.com fedora-cvs-commits at redhat.com
Wed Jul 19 18:46:45 UTC 2006


Author: jvdias

Update of /cvs/dist/rpms/bind/devel
In directory cvs.devel.redhat.com:/tmp/cvs-serv21136

Modified Files:
	bind.spec named.init namedGetForwarders 
Log Message:
fix bug 196398; fix namedGetForwarders for new dbus


Index: bind.spec
===================================================================
RCS file: /cvs/dist/rpms/bind/devel/bind.spec,v
retrieving revision 1.112
retrieving revision 1.113
diff -u -r1.112 -r1.113
--- bind.spec	19 Jul 2006 13:51:38 -0000	1.112
+++ bind.spec	19 Jul 2006 18:46:43 -0000	1.113
@@ -17,7 +17,7 @@
 Name: 		bind
 License: 	BSD-like
 Version: 	9.3.2
-Release: 	28.FC6
+Release: 	30%{?dist}
 Epoch:   	30
 Url: 		http://www.isc.org/products/BIND/
 Buildroot: 	%{_tmppath}/%{name}-root
@@ -609,6 +609,7 @@
 %{_libdir}/libisccc.a
 %{_libdir}/libisccfg.a
 %{_libdir}/liblwres.a
+%exclude %{_libdir}/libbind.so
 %{_libdir}/*so
 %{_includedir}/bind9
 %{_includedir}/dns
@@ -675,6 +676,7 @@
 %{_libdir}/libbind.so*
 %defattr(0644,root,root,0755) 
 %{_libdir}/libbind.a
+%{_libdir}/libbind.so
 %{_libdir}/pkgconfig/libbind.pc
 %{_includedir}/bind
 %{_mandir}/man3/libbind-*
@@ -843,6 +845,11 @@
 :;
 
 %changelog
+* Wed Jul 19 2006 Jason Vas Dias <jvdias at redhat.com> - 30:9.3.2-30
+- fix bug 196398 - Enable -D option automatically in initscript
+  if NetworkManager enabled in any runlevel.
+- fix namedGetForwarders for new dbus
+
 * Wed Jul 19 2006 Matthias Clasen <mclasen at redhat.com> - 30:9.3.2-28.FC6
 - Rebuild against new dbus
 


Index: named.init
===================================================================
RCS file: /cvs/dist/rpms/bind/devel/named.init,v
retrieving revision 1.42
retrieving revision 1.43
diff -u -r1.42 -r1.43
--- named.init	22 Mar 2006 17:55:16 -0000	1.42
+++ named.init	19 Jul 2006 18:46:43 -0000	1.43
@@ -60,9 +60,29 @@
        echo Locating $ROOTDIR/${named_conf} failed:
        failure
        echo;
+       exit 1;
    fi;
 fi;
 
+NetworkManagerEnabled=0
+for l in 0 1 2 3 4 5 6; do 
+    if /sbin/chkconfig --level=$l NetworkManager >/dev/null 2>&1; then 
+	NetworkManagerEnabled=1; 
+    fi; 
+done
+
+dbusEnabled=0;
+for a in $OPTIONS; do
+    if [ $a  = "-D" ]; then
+	dbusEnabled=1;
+    fi;
+done
+
+if [ $dbusEnabled -eq 0 ] && [ $NetworkManagerEnabled -eq 1 ]; then
+   OPTIONS="$OPTIONS -D";
+   dbusEnabled=1;
+fi
+
 start() {
         # Start daemons.
         echo -n $"Starting $named: "
@@ -85,13 +105,7 @@
 		if ! egrep -q '^/proc[[:space:]]+'${ROOTDIR}'/proc' /proc/mounts; then
 		    mount --bind /proc ${ROOTDIR}/proc >/dev/null 2>&1 
 		fi
-		dbus=0;
-		for a in $OPTIONS; do
-		    if [ $a  = "-D" ]; then
-			dbus=1;
-	            fi;
-	        done
-		if [ $dbus -eq 1 ]; then
+		if [ $dbusEnabled -eq 1 ]; then
 		    if ! egrep -q '^/[^[:space:]]+[[:space:]]+'${ROOTDIR}'/var/run/dbus' /proc/mounts; then
 			mkdir -p ${ROOTDIR}/var/run/dbus
 			if [ ! -d  /var/run/dbus ] ; then


Index: namedGetForwarders
===================================================================
RCS file: /cvs/dist/rpms/bind/devel/namedGetForwarders,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- namedGetForwarders	13 Nov 2005 19:40:07 -0000	1.1
+++ namedGetForwarders	19 Jul 2006 18:46:43 -0000	1.2
@@ -42,7 +42,7 @@
 @dn=(); 
 
 open(DNS,
-     '/usr/bin/dbus-send --system --type=method_call --print-reply --reply-timeout=20000 '
+     '/bin/dbus-send --system --type=method_call --print-reply --reply-timeout=20000 '
     .'--dest=com.redhat.named /com/redhat/named com.redhat.named.text.GetForwarders '
     .$zone .'|'
     ) || die("dbus-send failed: $?: $!");




More information about the fedora-cvs-commits mailing list