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