]> git.pld-linux.org Git - packages/crossfire.git/commitdiff
- use macros in %{pre,post}{,un}
authorsaq <saq@pld-linux.org>
Wed, 25 Jul 2001 16:30:42 +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:
    crossfire.spec -> 1.6

crossfire.spec

index c9795792150e4004c4049f117eb5cbedcbf8355a..7290d253310c9b86ec022b74a79ede1f3d5fb33c 100644 (file)
@@ -65,23 +65,10 @@ touch $RPM_BUILD_ROOT/var/log/crossfire
 rm -rf $RPM_BUILD_ROOT
 
 %post
-/sbin/chkconfig --add crossfire
-if [ -r /var/lock/subsys/crossfire ]; then
-       /etc/rc.d/init.d/crossfire restart >&2
-else
-       echo "Run \"/etc/rc.d/init.d/crossfire start\" to start Crossfire server."
-fi
+DESC="Crossfire server"; %chkconfig_add
 
 %preun
-if [ "$1" = "0" ]; then
-       if [ -r /var/lock/subsys/crossfire ]; then
-               /etc/rc.d/init.d/crossfire stop >&2
-       fi
-       /sbin/chkconfig --del crossfire
-fi
-
-
-
+%chkconfig_del
 
 %files
 %defattr(644,root,root,755)
This page took 0.145038 seconds and 4 git commands to generate.