From: saq Date: Wed, 25 Jul 2001 16:30:41 +0000 (+0000) Subject: - use macros in %{pre,post}{,un} X-Git-Tag: at-3_1_8-26~20 X-Git-Url: http://git.pld-linux.org/?p=packages%2Fat.git;a=commitdiff_plain;h=00080e4da3bf4e8c3a65275f7530c4e6daee3b08 - use macros in %{pre,post}{,un} - need rebuilt rpm (with new macros.pld) to build these Changed files: at.spec -> 1.38 --- diff --git a/at.spec b/at.spec index 729e3df..7dd8092 100644 --- 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)