]> git.pld-linux.org Git - packages/dhcp.git/commitdiff
- release 2, dhcp-3_0rc12-2
authorkloczek <kloczek@pld-linux.org>
Fri, 31 Aug 2001 18:56:09 +0000 (18:56 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- added "%triggerpostun -- dhcp < 3.0" script with add on top dhcpd.conf
  "ddns-update-style none;" line if not exist. Thos allow smooth upgrade from
  < 3.0 dhcp to current because new dhcpd reuires in dhcpd.conf entry with info
  about dynamic dns update style handling. This trigger by default adds
  disabled ddns update.

Changed files:
    dhcp.spec -> 1.61

dhcp.spec

index 60414a2e313018073f3b82c1421dfdd2966e8795..9f9f97e7c38b2ff565b3a8c2c6db8f964f61621f 100644 (file)
--- a/dhcp.spec
+++ b/dhcp.spec
@@ -2,7 +2,7 @@ Summary:        DHCP Server
 Summary(pl):   Serwer DHCP 
 Name:          dhcp
 Version:       3.0rc12
-Release:       1
+Release:       2
 Epoch:         1
 Vendor:                ISC
 License:       Distributable
@@ -155,6 +155,14 @@ if [ "$1" = "0" ];then
        /sbin/chkconfig --del dhcp-relay
 fi
 
+%triggerpostun -- dhcp < 3.0
+if [ `grep ddns-update-style /etc/dhcpd.conf` = "" ]; then
+       echo "ddns-update-style none;" > /etc/dhcpd.conf.tmp
+       echo "" >> /etc/dhcpd.conf.tmp
+       cat /etc/dhcpd.conf >>/etc/dhcpd.conf.tmp
+       mv -f /etc/dhcpd.conf.tmp /etc/dhcpd.conf
+fi
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
This page took 0.082629 seconds and 4 git commands to generate.