From 822ab7190b60e4b51bd41156a760a77ee1923ec6 Mon Sep 17 00:00:00 2001 From: saq Date: Wed, 25 Jul 2001 16:30:41 +0000 Subject: [PATCH] - use macros in %{pre,post}{,un} - need rebuilt rpm (with new macros.pld) to build these Changed files: autofs.spec -> 1.32 --- autofs.spec | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) 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 -- 2.44.0