]> git.pld-linux.org Git - packages/autofs.git/blobdiff - autofs.spec
- BuildRequires openldap-devel
[packages/autofs.git] / autofs.spec
index 79dfeffbcae0e81ef406433422a7cd19199a6c02..2a29da7802b069f22eb57d363fc4392454d09e9f 100644 (file)
@@ -5,7 +5,8 @@ Summary(pl):    Demon autofs
 Summary(tr):   autofs sunucu süreci
 Name:          autofs
 Version:       4.0.0pre10
-Release:       1
+Release:       4
+Epoch:         1
 License:       GPL
 Group:         Daemons
 Group(de):     Server
@@ -27,6 +28,7 @@ Patch5:               %{name}-linux-2.3.patch
 Patch6:                %{name}-loop.patch
 Patch7:                %{name}-modules.patch
 Patch8:                %{name}-open_max.patch
+BuildRequires: openldap-devel
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 Prereq:                /sbin/chkconfig
 Requires:      mktemp
@@ -61,6 +63,18 @@ autofs, kullan
 baðlar ve kullanýmlarý sona erince yine kendiliðinden çözer. Bu iþlem,
 að dosya sistemleri, CD-ROM'lar ve disketler üzerinde yapýlabilir.
 
+%package ldap
+Summary:       LDAP lookup module for autofs
+Summary(pl):   Modu³ LDAP dla autofs
+Group:         Daemons
+Group(de):     Server
+Group(pl):     Serwery
+Requires:      %{name} = %{version}
+
+%description ldap
+This package contains the autofs module necessary to use automount
+maps stored on an LDAP server.
+
 %prep
 %setup -q
 %patch0 -p1
@@ -74,7 +88,9 @@ a
 %patch8 -p1
 
 %build
-%configure
+chmod 755 configure
+autoconf
+%configure2_13
  
 %{__make} 
 
@@ -101,7 +117,11 @@ gzip -9nf NEWS README
 
 %post
 /sbin/chkconfig --add autofs
-if test -r /var/lock/subsys/automount; then
+# triggerpostun would get called after %post
+if [ -f /var/lock/subsys/automount ]; then
+       mv /var/lock/subsys/automount /var/lock/subsys/autofs
+fi
+if test -r /var/lock/subsys/autofs; then
        /etc/rc.d/init.d/autofs restart 1>&2
 else
        echo "Run \"/etc/rc.d/init.d/autofs start\" to start autofs daemon."
@@ -110,7 +130,7 @@ fi
 %preun
 if [ "$1" = "0" ]; then
        /sbin/chkconfig --del autofs
-       if [ -f /var/lock/subsys/automount ]; then
+       if [ -f /var/lock/subsys/autofs ]; then
                /etc/rc.d/init.d/autofs stop 1>&2
        fi
 fi
@@ -138,6 +158,12 @@ rm -rf $RPM_BUILD_ROOT
 %dir /net
 
 %dir %{_libdir}/autofs
-%attr(755,root,root) %{_libdir}/autofs/*
+%attr(755,root,root) %{_libdir}/autofs/mount_*
+%attr(755,root,root) %{_libdir}/autofs/parse_*
+%attr(755,root,root) %{_libdir}/autofs/lookup_[^l]*
 
 %{_mandir}/man[58]/*
+
+%files ldap
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/autofs/lookup_ldap.so
This page took 0.083003 seconds and 4 git commands to generate.