2 # - change /net to something FHS-compliant ?
3 # - fix ac/am regeneration
6 Summary(de.UTF-8): autofs daemon
7 Summary(es.UTF-8): Servidor autofs
8 Summary(fr.UTF-8): démon autofs
9 Summary(pl.UTF-8): Demon autofs
10 Summary(pt_BR.UTF-8): Servidor autofs
11 Summary(tr.UTF-8): autofs sunucu süreci
18 Source0: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/%{name}-%{version}.tar.bz2
19 # Source0-md5: 27839fe6fa8105b2b7d31bc922fd7cf6
21 Source2: %{name}-auto.master
22 Source3: %{name}-auto.media
23 Source4: %{name}-auto.net
24 Source5: %{name}.sysconfig
25 Patch0: %{name}-open_max.patch
26 Patch1: %{name}-hesiod-includes.patch
28 Patch10: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/%{name}-%{version}-ldap-page-control-configure-fix.patch
29 Patch11: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/%{name}-%{version}-xfn-not-supported.patch
30 Patch12: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/%{name}-%{version}-basedn-with-spaces-fix-3.patch
31 Patch13: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/%{name}-%{version}-nfs4-tcp-only.patch
32 Patch14: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/%{name}-%{version}-correct-ldap-lib.patch
33 BuildRequires: autoconf
34 BuildRequires: automake
35 BuildRequires: bind-devel
38 BuildRequires: krb5-devel
39 BuildRequires: libxml2-devel
40 BuildRequires: openldap-devel >= 2.4.6
41 BuildRequires: rpmbuild(macros) >= 1.268
42 Requires(post,preun): /sbin/chkconfig
45 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
47 %define _sysconfdir /etc/autofs
48 %define filterout_ld -Wl,--as-needed
51 autofs is a daemon which automatically mounts filesystems when you use
52 them, and unmounts them later when you are not using them. This can
53 include network filesystems, CD-ROMs, floppies, and so forth.
55 %description -l de.UTF-8
56 autofs ist ein Dämon, der Dateisysteme automatisch montiert, wenn sie
57 benutzt werden, und sie später bei Nichtbenutzung wieder demontiert.
58 Dies kann Netz-Dateisysteme, CD-ROMs, Disketten und ähnliches
61 %description -l es.UTF-8
62 Autofs es un servidor que monta automáticamente sistemas de archivos
63 cuando los usa, y los desmonta, más tarde, al terminar de usarlos.
64 Incluyendo sistemas de archivo en red, CD-ROMS, disquetes, etc.
66 %description -l fr.UTF-8
67 autofs est un démon qui monte automatiquement les systèmes de fichiers
68 lorsqu'on les utilise et les démonte lorsqu'on ne les utilise plus.
69 Cela inclus les systèmes de fichiers réseau, les CD-ROMs, les
72 %description -l pl.UTF-8
73 Autofs jest demonem, który montuje automatycznie systemy plików jeżeli
74 je używasz i odmontowuje później, jeżeli ich nie używasz. Może
75 montować sieciowy system plików, CD-romy, stacje dyskietek i inne.
77 %description -l pt_BR.UTF-8
78 O autofs é um servidor que monta automaticamente sistemas de arquivos
79 quando estes forem usados, desmontando-os mais tarde quando não
80 estiverem mais em uso. Incluindo sistemas de arquivo em rede, CD-ROMS,
83 %description -l tr.UTF-8
84 autofs, kullanılan dosya sistemlerini gerek olunca kendiliğinden
85 bağlar ve kullanımları sona erince yine kendiliğinden çözer. Bu işlem,
86 ağ dosya sistemleri, CD-ROM'lar ve disketler üzerinde yapılabilir.
89 Summary: LDAP lookup module for autofs
90 Summary(pl.UTF-8): Moduł LDAP dla autofs
91 Summary(pt_BR.UTF-8): Suporte a mapas LDAP para o pacote autofs
93 Requires: %{name} = %{epoch}:%{version}-%{release}
96 This package contains the autofs module necessary to use automount
97 maps stored on an LDAP server.
99 %description ldap -l pl.UTF-8
100 Ten pakiet zawiera moduł autofs potrzebny do używania map automounta
101 trzymanych na serwerze LDAP.
118 export initdir=/etc/rc.d/init.d
120 --with-confdir=%{_sysconfdir}
123 initdir=/etc/rc.d/init.d \
125 DAEMON_CFLAGS="-fPIE %{rpmcflags}"
128 rm -rf $RPM_BUILD_ROOT
129 install -d $RPM_BUILD_ROOT{/misc,/net,%{_sbindir},%{_libdir}/autofs,%{_mandir}/man{5,8}} \
130 $RPM_BUILD_ROOT/etc/{rc.d/init.d,autofs,sysconfig}
133 INSTALLROOT=$RPM_BUILD_ROOT
135 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/autofs
137 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/auto.master
138 install %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/auto.media
139 install %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/auto.net
140 install %{SOURCE5} $RPM_BUILD_ROOT/etc/sysconfig/autofs
141 mv $RPM_BUILD_ROOT/etc/auto.smb $RPM_BUILD_ROOT%{_sysconfdir}
143 touch $RPM_BUILD_ROOT%{_sysconfdir}/auto.{home,var,tmp}
146 rm -f $RPM_BUILD_ROOT/etc/auto.{master,misc,net}
149 rm -rf $RPM_BUILD_ROOT
152 /sbin/chkconfig --add autofs
153 # triggerpostun would get called after %%post
154 if [ -f /var/lock/subsys/automount ]; then
155 mv /var/lock/subsys/{automount,autofs}
157 %service autofs restart "autofs daemon"
160 if [ "$1" = "0" ]; then
162 /sbin/chkconfig --del autofs
166 %defattr(644,root,root,755)
167 %doc CHANGELOG CREDITS README*
169 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/autofs
170 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/auto.home
171 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/auto.master
172 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/auto.media
173 %attr(750,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/auto.net
174 %attr(750,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/auto.smb
175 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/auto.tmp
176 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/auto.var
177 %attr(754,root,root) %config /etc/rc.d/init.d/autofs
178 %attr(755,root,root) %{_sbindir}/automount
180 %dir %{_libdir}/autofs
181 %attr(755,root,root) %{_libdir}/autofs/mount_*
182 %attr(755,root,root) %{_libdir}/autofs/parse_*
183 %attr(755,root,root) %{_libdir}/autofs/lookup_[!l]*
187 %defattr(644,root,root,755)
188 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/autofs_ldap_auth.conf
189 %attr(755,root,root) %{_libdir}/autofs/lookup_ldap.so
190 %attr(755,root,root) %{_libdir}/autofs/lookup_ldaps.so