rpms/dhcp/devel dhcp.spec,1.187,1.188

David Cantrell (dcantrel) fedora-extras-commits at redhat.com
Wed Dec 5 01:04:39 UTC 2007


Author: dcantrel

Update of /cvs/pkgs/rpms/dhcp/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv19679

Modified Files:
	dhcp.spec 
Log Message:
* Tue Dec 04 2007 David Cantrell <dcantrell at redhat.com> - 12:3.1.0-11
- Postinstall script fixes



Index: dhcp.spec
===================================================================
RCS file: /cvs/pkgs/rpms/dhcp/devel/dhcp.spec,v
retrieving revision 1.187
retrieving revision 1.188
diff -u -r1.187 -r1.188
--- dhcp.spec	27 Nov 2007 01:57:19 -0000	1.187
+++ dhcp.spec	5 Dec 2007 01:04:07 -0000	1.188
@@ -13,7 +13,7 @@
 Summary:  DHCP (Dynamic Host Configuration Protocol) server and relay agent
 Name:     dhcp
 Version:  3.1.0
-Release:  10%{?dist}
+Release:  11%{?dist}
 # NEVER CHANGE THE EPOCH on this package.  The previous maintainer made
 # incorrect use of the epoch and that's why it is at 12 now.  It should have
 # never been used, but it was.  So we are stuck with it.
@@ -357,27 +357,27 @@
 
 %post
 /sbin/chkconfig --add dhcpd
-/sbin/chkconfig --add dhcrelay
+/sbin/chkconfig --add dhcrelay || :
 
 %preun
 if [ $1 = 0 ]; then
     /sbin/service dhcpd status >/dev/null 2>&1
     if [ $? = 3 ]; then
-        /sbin/service dhcpd stop >/dev/null 2>&1 || :
+        /sbin/service dhcpd stop >/dev/null 2>&1
     fi
 
     /sbin/service dhcrelay status >/dev/null 2>&1
     if [ $? = 3 ]; then
-        /sbin/service dhcrelay stop >/dev/null 2>&1 || :
+        /sbin/service dhcrelay stop >/dev/null 2>&1
     fi
 
     /sbin/chkconfig --del dhcpd
-    /sbin/chkconfig --del dhcrelay
+    /sbin/chkconfig --del dhcrelay || :
 fi
 
 %postun
-if [ "$1" -ge "1" ]; then
-    /sbin/service dhcpd condrestart >/dev/null 2>&1 || :
+if [ $1 -ge 1 ]; then
+    /sbin/service dhcpd condrestart >/dev/null 2>&1
     /sbin/service dhcrelay condrestart >/dev/null 2>&1 || :
 fi
 
@@ -447,6 +447,9 @@
 %{_libdir}/libdhcp4client.a
 
 %changelog
+* Tue Dec 04 2007 David Cantrell <dcantrell at redhat.com> - 12:3.1.0-11
+- Postinstall script fixes
+
 * Mon Nov 19 2007 David Cantrell <dcantrell at redhat.com> - 12:3.1.0-10
 - Remove dhcdbd check from dhcpd init script
 




More information about the fedora-extras-commits mailing list