2 # What about unpacked files:
6 # Probably Source{2,3,5} are obsolete.
8 Summary(de): autofs daemon
9 Summary(es): Servidor autofs
10 Summary(fr): démon autofs
11 Summary(pl): Demon autofs
12 Summary(pt_BR): Servidor autofs
13 Summary(tr): autofs sunucu süreci
20 Source0: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v4/%{name}-%{version}.tar.bz2
21 # Source0-md5: 7e3949114c00665b4636f0c318179657
23 Source2: %{name}-auto.master
24 Source3: %{name}-auto.misc
25 Source4: %{name}-auto.mnt
26 Source5: %{name}-auto.net
27 Source6: %{name}.sysconfig
28 Patch0: %{name}-open_max.patch
29 Patch1: %{name}-hesiod-includes.patch
30 Patch2: http://www.kernel.org/pub/linux/daemons/autofs/v4/%{name}-4.1.4-misc-fixes.patch
31 Patch3: http://www.kernel.org/pub/linux/daemons/autofs/v4/%{name}-4.1.4-multi-parse-fix.patch
32 Patch4: http://www.kernel.org/pub/linux/daemons/autofs/v4/%{name}-4.1.4-no-unlink-upstream.patch
33 Patch5: http://www.kernel.org/pub/linux/daemons/autofs/v4/%{name}-4.1.4-non-replicated-ping.patch
34 BuildRequires: autoconf
35 BuildRequires: automake
36 BuildRequires: bind-devel
37 BuildRequires: openldap-devel >= 2.3.0
38 BuildRequires: rpmbuild(macros) >= 1.268
39 Requires(post,preun): /sbin/chkconfig
42 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
44 %define _sysconfdir /etc/autofs
47 autofs is a daemon which automatically mounts filesystems when you use
48 them, and unmounts them later when you are not using them. This can
49 include network filesystems, CD-ROMs, floppies, and so forth.
52 autofs ist ein Dämon, der Dateisysteme automatisch montiert, wenn sie
53 benutzt werden, und sie später bei Nichtbenutzung wieder demontiert.
54 Dies kann Netz-Dateisysteme, CD-ROMs, Disketten und ähnliches
58 Autofs es un servidor que monta automáticamente sistemas de archivos
59 cuando los usa, y los desmonta, más tarde, al terminar de usarlos.
60 Incluyendo sistemas de archivo en red, CD-ROMS, disquetes, etc.
63 autofs est un démon qui monte automatiquement les systèmes de fichiers
64 lorsqu'on les utilise et les démonte lorsqu'on ne les utilise plus.
65 Cela inclus les systèmes de fichiers réseau, les CD-ROMs, les
69 Autofs jest demonem, który montuje automatycznie systemy plików je¿eli
70 je u¿ywasz i odmontowuje pó¼niej, je¿eli ich nie u¿ywasz. Mo¿e
71 montowaæ sieciowy system plików, CD-romy, stacje dyskietek i inne.
74 O autofs é um servidor que monta automaticamente sistemas de arquivos
75 quando estes forem usados, desmontando-os mais tarde quando não
76 estiverem mais em uso. Incluindo sistemas de arquivo em rede, CD-ROMS,
80 autofs, kullanýlan dosya sistemlerini gerek olunca kendiliðinden
81 baðlar ve kullanýmlarý sona erince yine kendiliðinden çözer. Bu iþlem,
82 að dosya sistemleri, CD-ROM'lar ve disketler üzerinde yapýlabilir.
85 Summary: LDAP lookup module for autofs
86 Summary(pl): Modu³ LDAP dla autofs
87 Summary(pt_BR): Suporte a mapas LDAP para o pacote autofs
89 Requires: %{name} = %{epoch}:%{version}-%{release}
92 This package contains the autofs module necessary to use automount
93 maps stored on an LDAP server.
95 %description ldap -l pl
96 Ten pakiet zawiera modu³ autofs potrzebny do u¿ywania map automounta
97 trzymanych na serwerze LDAP.
117 rm -rf $RPM_BUILD_ROOT
118 install -d $RPM_BUILD_ROOT{/misc,/net,%{_sbindir},%{_libdir}/autofs,%{_mandir}/man{5,8}} \
119 $RPM_BUILD_ROOT/etc/{rc.d/init.d,autofs,sysconfig}
122 INSTALLROOT=$RPM_BUILD_ROOT
124 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/autofs
126 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/auto.master
127 install %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/auto.misc
128 install %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/auto.mnt
129 install %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/auto.net
130 install %{SOURCE6} $RPM_BUILD_ROOT/etc/sysconfig/autofs
131 mv $RPM_BUILD_ROOT/etc/auto.smb $RPM_BUILD_ROOT%{_sysconfdir}
133 touch $RPM_BUILD_ROOT%{_sysconfdir}/auto.{home,misc,var,tmp}
136 rm -rf $RPM_BUILD_ROOT
139 /sbin/chkconfig --add autofs
140 # triggerpostun would get called after %%post
141 if [ -f /var/lock/subsys/automount ]; then
142 mv /var/lock/subsys/{automount,autofs}
144 %service autofs restart "autofs daemon"
147 if [ "$1" = "0" ]; then
149 /sbin/chkconfig --del autofs
153 %defattr(644,root,root,755)
154 %doc README* CHANGELOG
156 %attr(754,root,root) %config /etc/rc.d/init.d/autofs
158 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/autofs
159 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/auto.home
160 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/auto.master
161 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/auto.misc
162 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/auto.mnt
163 %attr(750,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/auto.net
164 %attr(750,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/auto.smb
165 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/auto.tmp
166 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/auto.var
167 %attr(755,root,root) %{_sbindir}/automount
172 %dir %{_libdir}/autofs
173 %attr(755,root,root) %{_libdir}/autofs/mount_*
174 %attr(755,root,root) %{_libdir}/autofs/parse_*
175 %attr(755,root,root) %{_libdir}/autofs/lookup_[!l]*
180 %defattr(644,root,root,755)
181 %attr(755,root,root) %{_libdir}/autofs/lookup_ldap.so