- 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
Summary(pl): Serwer DHCP
Name: dhcp
Version: 3.0rc12
-Release: 1
+Release: 2
Epoch: 1
Vendor: ISC
License: Distributable
/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