]> git.pld-linux.org Git - packages/autofs.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:
    autofs.spec -> 1.32

autofs.spec

index 79dfeffbcae0e81ef406433422a7cd19199a6c02..43a4eb6d932b377218f956f8cd1e9d53139d1b8b 100644 (file)
@@ -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
This page took 0.03032 seconds and 4 git commands to generate.