From e7a1987fcaeebf324ce847eeb0a2ca755b8ef1ec Mon Sep 17 00:00:00 2001 From: saq Date: Wed, 25 Jul 2001 16:30:42 +0000 Subject: [PATCH] - use macros in %{pre,post}{,un} - need rebuilt rpm (with new macros.pld) to build these Changed files: crossfire.spec -> 1.6 --- crossfire.spec | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-) diff --git a/crossfire.spec b/crossfire.spec index c979579..7290d25 100644 --- a/crossfire.spec +++ b/crossfire.spec @@ -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) -- 2.43.0