]> git.pld-linux.org Git - packages/autofs.git/blobdiff - autofs.spec
efc5887f0c2b0df153d490cf6b9bc024 autofs-4.0.0pre6.tar.gz
[packages/autofs.git] / autofs.spec
index 6cd9b10985621b39b60139f323b68bc5111a1602..055a7ca361c99d1cc70a45374f7d5764a7ffe9fd 100644 (file)
@@ -5,7 +5,7 @@ Summary(pl):    Demon autofs
 Summary(tr):   autofs sunucu süreci
 Name:          autofs
 Version:       3.1.3
-Release:       5
+Release:       6
 Copyright:     GPL
 Group:         Daemons
 Group(pl):     Serwery
@@ -15,6 +15,7 @@ Patch:                autofs.patch
 Buildroot:     /tmp/%{name}-%{version}-root
 Prereq:                /sbin/chkconfig
 Requires:      mktemp
+Requires:      rc-scripts
 
 %define                _sysconfdir     /etc/autofs
 
@@ -76,7 +77,7 @@ gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man[58]/* \
 
 %post
 /sbin/chkconfig --add autofs
-if test -r /var/run/autofs.pid; then
+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."
@@ -85,7 +86,7 @@ fi
 %preun
 if [ "$1" = "0" ]; then
        /sbin/chkconfig --del autofs
-       if [ -f /var/lock/subsys/autofs ]; then
+       if [ -f /var/lock/subsys/automount ]; then
                /etc/rc.d/init.d/autofs stop 1>&2
        fi
 fi
This page took 0.031487 seconds and 4 git commands to generate.