]> git.pld-linux.org Git - packages/autofs.git/blobdiff - autofs.spec
- BuildRequires openldap-devel
[packages/autofs.git] / autofs.spec
index bdf5572285cdbffd44260fb4e77fbc43795dbb50..2a29da7802b069f22eb57d363fc4392454d09e9f 100644 (file)
@@ -4,12 +4,14 @@ Summary(fr):  d
 Summary(pl):   Demon autofs 
 Summary(tr):   autofs sunucu süreci
 Name:          autofs
-Version:       4.0.0pre7
-Release:       24
+Version:       4.0.0pre10
+Release:       4
+Epoch:         1
 License:       GPL
 Group:         Daemons
+Group(de):     Server
 Group(pl):     Serwery
-Source0:       ftp://ftp.kernel.org/pub/linux/daemons/autofs/testing-v4/%{name}-%{version}.tar.gz
+Source0:       ftp://ftp.kernel.org/pub/linux/daemons/autofs/testing-v4/%{name}-%{version}.tar.bz2
 Source1:       %{name}.init
 Source2:       %{name}-auto.master
 Source3:       %{name}-auto.misc
@@ -19,16 +21,18 @@ Source6:    %{name}.sysconfig
 Patch0:                %{name}-clean.patch
 Patch1:                %{name}-doc.patch
 Patch2:                %{name}-hesiod-bind.patch
+# Needed to check !!
 Patch3:                %{name}-initialize.patch
-Patch4:                %{name}-ldap.patch
+Patch4:                %{name}-man.patch
 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
-Requires:      rc-scripts
+Prereq:                rc-scripts
 
 %define                _sysconfdir     /etc/autofs
 
@@ -59,12 +63,24 @@ 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
 %patch1 -p1
 %patch2 -p1
-%patch3 -p1
+#%patch3 -p1
 %patch4 -p1
 #%patch5 -p1
 %patch6 -p1
@@ -72,7 +88,9 @@ a
 %patch8 -p1
 
 %build
-%configure
+chmod 755 configure
+autoconf
+%configure2_13
  
 %{__make} 
 
@@ -99,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."
@@ -108,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
@@ -136,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.035728 seconds and 4 git commands to generate.