From: saq Date: Wed, 25 Jul 2001 16:30:41 +0000 (+0000) Subject: - use macros in %{pre,post}{,un} X-Git-Tag: autofs-4_0_0pre10-3~5 X-Git-Url: http://git.pld-linux.org/?p=packages%2Fautofs.git;a=commitdiff_plain;h=822ab7190b60e4b51bd41156a760a77ee1923ec6 - use macros in %{pre,post}{,un} - need rebuilt rpm (with new macros.pld) to build these Changed files: autofs.spec -> 1.32 --- diff --git a/autofs.spec b/autofs.spec index 79dfeff..43a4eb6 100644 --- a/autofs.spec +++ b/autofs.spec @@ -100,20 +100,10 @@ touch $RPM_BUILD_ROOT%{_sysconfdir}/auto.{home,misc,var,tmp} gzip -9nf NEWS README %post -/sbin/chkconfig --add autofs -if test -r /var/lock/subsys/automount; then - /etc/rc.d/init.d/autofs restart 1>&2 -else - echo "Run \"/etc/rc.d/init.d/autofs start\" to start autofs daemon." -fi - +DESC="autofs daemon"; %chkconfig_post + %preun -if [ "$1" = "0" ]; then - /sbin/chkconfig --del autofs - if [ -f /var/lock/subsys/automount ]; then - /etc/rc.d/init.d/autofs stop 1>&2 - fi -fi +%chkconfig_preun %clean rm -rf $RPM_BUILD_ROOT