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