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
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
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
%patch8 -p1
%build
-%configure
+chmod 755 configure
+autoconf
+%configure2_13
%{__make}
%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."
%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
%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