- need rebuilt rpm (with new macros.pld) to build these
Changed files:
pdnsd.spec -> 1.20
rm -rf $RPM_BUILD_ROOT
%post
-/sbin/chkconfig --add pdnsd
-if [ -f %{_localstatedir}/lock/subsys/pdnsd ]; then
- /etc/rc.d/init.d/pdnsd restart >&2
-else
- echo "Run \"/etc/rc.d/init.d/pdnsd start\" to start pdnsd." >&2
-fi
+%chkconfig_add
%preun
-if [ "$1" = "0" ]; then
- if [ -f %{_localstatedir}/lock/subsys/pdnsd ]; then
- /etc/rc.d/init.d/pdnsd stop
- fi
- /sbin/chkconfig --del pdnsd
-fi
+%chkconfig_del
%files
%defattr(644,root,root,755)