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

at.spec

diff --git a/at.spec b/at.spec
index 729e3dff5d43bac24959cd9f6d9bf4e5514aec5f..7dd80920407932e536ab13d0fc6e6536c3249b1d 100644 (file)
--- a/at.spec
+++ b/at.spec
@@ -122,20 +122,10 @@ gzip -9nf $RPM_BUILD_ROOT%{_mandir}/{man*/*,pl/man?/*} \
 rm -rf $RPM_BUILD_ROOT
 
 %post
-/sbin/chkconfig --add atd
-if [ -f /var/lock/subsys/atd ]; then
-       /etc/rc.d/init.d/atd restart >&2
-else
-       echo "Run \"/etc/rc.d/init.d/atd start\" to start atd daemon."
-fi
+NAME=atd; DESC="atd daemon"; %chkconfig_post
 
 %preun
-if [ "$1" = "0" ] ; then
-       if [ -f /var/lock/subsys/atd ]; then
-               /etc/rc.d/init.d/atd stop >&2
-       fi
-       /sbin/chkconfig --del atd
-fi
+NAME=atd; %chkconfig_preun
 
 %files
 %defattr(644,root,root,755)
This page took 0.059496 seconds and 4 git commands to generate.