]> git.pld-linux.org Git - packages/fakebo.git/commitdiff
- use macros in %{pre,post}{,un}
authorsaq <saq@pld-linux.org>
Wed, 25 Jul 2001 16:30:44 +0000 (16:30 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- need rebuilt rpm (with new macros.pld) to build these

Changed files:
    fakebo.spec -> 1.5

fakebo.spec

index 31e608fe20670baa836f1eeb2738acfb85a09865..ac7866b0098d676141442cf2f0c2b344e1acba6a 100644 (file)
@@ -44,21 +44,10 @@ gzip -9nf INSTALL HACKING AUTHORS TODO NEWS ChangeLog README \
 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)
This page took 0.056766 seconds and 4 git commands to generate.