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: fd56817cba70814753bc98f5fb7f23ec
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}-5.0.2-add-krb5-include.patch
29 Patch11: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/%{name}-5.0.2-bad-proto-init.patch
30 Patch12: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/%{name}-5.0.2-add-missing-multi-support.patch
31 Patch13: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/%{name}-5.0.2-add-multi-nsswitch-lookup.patch
32 Patch14: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/%{name}-5.0.2-consistent-random-selection-option-name.patch
33 Patch15: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/%{name}-5.0.2-fix-offset-dir-create.patch
34 Patch16: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/%{name}-5.0.2-quote-exports.patch
35 Patch17: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/%{name}-5.0.2-hi-res-time.patch
36 Patch18: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/%{name}-5.0.2-quoted-slash-alone.patch
37 Patch19: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/%{name}-5.0.2-fix-dnattr-parse.patch
38 Patch20: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/%{name}-5.0.2-fix-nfs-version-in-get-supported-ver-and-cost.patch
39 Patch21: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/%{name}-5.0.2-instance-stale-mark.patch
40 Patch22: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/%{name}-5.0.2-fix-largefile-dumbness.patch
41 Patch23: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/%{name}-5.0.2-dont-fail-on-empty-master.patch
42 Patch24: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/%{name}-5.0.2-ldap-percent-hack.patch
43 Patch25: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/%{name}-5.0.2-fix-mount-nfs-nosymlink.patch
44 Patch26: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/%{name}-5.0.2-dont-fail-on-empty-master-fix.patch
45 Patch27: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/%{name}-5.0.2-default-nsswitch.patch
46 Patch28: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/%{name}-5.0.2-add-ldap-schema-discovery.patch
47 Patch29: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/%{name}-5.0.2-random-selection-fix.patch
48 Patch30: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/%{name}-5.0.2-timeout-option-parse-fix.patch
49 Patch31: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/%{name}-5.0.2-ldap-check-star.patch
50 Patch32: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/%{name}-5.0.2-add-ldap-schema-discovery-fix.patch
51 Patch33: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/%{name}-5.0.2-ldap-schema-discovery-config-update.patch
52 Patch34: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/%{name}-5.0.2-ldap-search-basedn-list.patch
53 Patch35: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/%{name}-5.0.2-libxml2-workaround.patch
54 Patch36: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/%{name}-5.0.2-reread-config-on-hup.patch
55 Patch37: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/%{name}-5.0.2-add-multiple-server-selection-option.patch
56 Patch38: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/%{name}-5.0.2-foreground-logging.patch
57 Patch39: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/%{name}-5.0.2-cleanup-krb5-comment.patch
58 Patch40: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/%{name}-5.0.2-submount-deadlock.patch
59 Patch41: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/%{name}-5.0.2-add-ferror-check.patch
60 Patch42: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/%{name}-5.0.2-autofs-5-typo.patch
61 Patch43: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/%{name}-5.0.2-swallow-null-macro.patch
62 Patch44: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/%{name}-5.0.2-remove-unsed-export-validation-code.patch
63 Patch45: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/%{name}-5.0.2-dynamic-logging.patch
64 Patch46: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/%{name}-5.0.2-fix-recursive-loopback-mounts.patch
65 Patch47: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/%{name}-5.0.2-log-map-reload.patch
66 Patch48: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/%{name}-5.0.2-basedn-with-spaces.patch
67 Patch49: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/%{name}-5.0.2-dynamic-logging-fixes.patch
68 Patch50: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/%{name}-5.0.2-basedn-with-spaces-fix.patch
69 Patch51: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/%{name}-5.0.2-check-mtab-updated.patch
70 Patch52: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/%{name}-5.0.2-basedn-with-spaces-fix-2.patch
71 Patch53: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/%{name}-5.0.2-check-auto_master.patch
72 Patch54: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/%{name}-5.0.2-add-ldap-schema-discovery-fix-2.patch
73 Patch55: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/%{name}-5.0.2-negative-timeout-update.patch
74 Patch56: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/%{name}-5.0.2-large-groups.patch
75 Patch57: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/%{name}-5.0.2-report-failed-lookups.patch
76 Patch58: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/%{name}-5.0.2-dynamic-logging-non-sasl.patch
77 Patch59: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/%{name}-5.0.2-check-mtab-updated-fix.patch
78 Patch60: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/%{name}-5.0.2-singleton-host-list.patch
79 Patch61: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/%{name}-5.0.2-start-pipe-buff-size.patch
80 Patch62: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/%{name}-5.0.2-fix-off-by-one-lookup.patch
81 Patch63: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/%{name}-5.0.2-improve-server-unavail.patch
82 Patch64: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/%{name}-5.0.2-add-multiple-server-selection-option-fix.patch
83 Patch65: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/%{name}-5.0.2-external-cred-cache.patch
84 Patch66: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/%{name}-5.0.2-percent-hack-fix.patch
85 Patch67: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/%{name}-5.0.2-quote-exports-fix.patch
86 Patch68: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/%{name}-5.0.2-hosts-nosuid-default.patch
87 Patch69: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/%{name}-5.0.2-quote-exports-fix-fix.patch
88 Patch70: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/%{name}-5.0.2-quell-mount-module-message.patch
89 Patch71: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/%{name}-5.0.2-improve-server-unavail-fix.patch
90 BuildRequires: autoconf
91 BuildRequires: automake
92 BuildRequires: bind-devel
93 BuildRequires: krb5-devel
94 BuildRequires: openldap-devel >= 2.4.6
95 BuildRequires: rpmbuild(macros) >= 1.268
96 Requires(post,preun): /sbin/chkconfig
99 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
101 %define _sysconfdir /etc/autofs
104 autofs is a daemon which automatically mounts filesystems when you use
105 them, and unmounts them later when you are not using them. This can
106 include network filesystems, CD-ROMs, floppies, and so forth.
108 %description -l de.UTF-8
109 autofs ist ein Dämon, der Dateisysteme automatisch montiert, wenn sie
110 benutzt werden, und sie später bei Nichtbenutzung wieder demontiert.
111 Dies kann Netz-Dateisysteme, CD-ROMs, Disketten und ähnliches
114 %description -l es.UTF-8
115 Autofs es un servidor que monta automáticamente sistemas de archivos
116 cuando los usa, y los desmonta, más tarde, al terminar de usarlos.
117 Incluyendo sistemas de archivo en red, CD-ROMS, disquetes, etc.
119 %description -l fr.UTF-8
120 autofs est un démon qui monte automatiquement les systèmes de fichiers
121 lorsqu'on les utilise et les démonte lorsqu'on ne les utilise plus.
122 Cela inclus les systèmes de fichiers réseau, les CD-ROMs, les
125 %description -l pl.UTF-8
126 Autofs jest demonem, który montuje automatycznie systemy plików jeżeli
127 je używasz i odmontowuje później, jeżeli ich nie używasz. Może
128 montować sieciowy system plików, CD-romy, stacje dyskietek i inne.
130 %description -l pt_BR.UTF-8
131 O autofs é um servidor que monta automaticamente sistemas de arquivos
132 quando estes forem usados, desmontando-os mais tarde quando não
133 estiverem mais em uso. Incluindo sistemas de arquivo em rede, CD-ROMS,
136 %description -l tr.UTF-8
137 autofs, kullanılan dosya sistemlerini gerek olunca kendiliğinden
138 bağlar ve kullanımları sona erince yine kendiliğinden çözer. Bu işlem,
139 ağ dosya sistemleri, CD-ROM'lar ve disketler üzerinde yapılabilir.
142 Summary: LDAP lookup module for autofs
143 Summary(pl.UTF-8): Moduł LDAP dla autofs
144 Summary(pt_BR.UTF-8): Suporte a mapas LDAP para o pacote autofs
146 Requires: %{name} = %{epoch}:%{version}-%{release}
149 This package contains the autofs module necessary to use automount
150 maps stored on an LDAP server.
152 %description ldap -l pl.UTF-8
153 Ten pakiet zawiera moduł autofs potrzebny do używania map automounta
154 trzymanych na serwerze LDAP.
228 export initdir=/etc/rc.d/init.d
230 --with-confdir=%{_sysconfdir}
233 initdir=/etc/rc.d/init.d \
235 DAEMON_CFLAGS="%{rpmcflags}"
238 rm -rf $RPM_BUILD_ROOT
239 install -d $RPM_BUILD_ROOT{/misc,/net,%{_sbindir},%{_libdir}/autofs,%{_mandir}/man{5,8}} \
240 $RPM_BUILD_ROOT/etc/{rc.d/init.d,autofs,sysconfig}
243 INSTALLROOT=$RPM_BUILD_ROOT
245 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/autofs
247 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/auto.master
248 install %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/auto.media
249 install %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/auto.net
250 install %{SOURCE5} $RPM_BUILD_ROOT/etc/sysconfig/autofs
251 mv $RPM_BUILD_ROOT/etc/auto.smb $RPM_BUILD_ROOT%{_sysconfdir}
253 touch $RPM_BUILD_ROOT%{_sysconfdir}/auto.{home,var,tmp}
256 rm -f $RPM_BUILD_ROOT/etc/auto.{master,misc,net}
259 rm -rf $RPM_BUILD_ROOT
262 /sbin/chkconfig --add autofs
263 # triggerpostun would get called after %%post
264 if [ -f /var/lock/subsys/automount ]; then
265 mv /var/lock/subsys/{automount,autofs}
267 %service autofs restart "autofs daemon"
270 if [ "$1" = "0" ]; then
272 /sbin/chkconfig --del autofs
276 %defattr(644,root,root,755)
277 %doc CHANGELOG CREDITS README*
279 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/autofs
280 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/auto.home
281 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/auto.master
282 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/auto.media
283 %attr(750,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/auto.net
284 %attr(750,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/auto.smb
285 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/auto.tmp
286 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/auto.var
287 %attr(754,root,root) %config /etc/rc.d/init.d/autofs
288 %attr(755,root,root) %{_sbindir}/automount
290 %dir %{_libdir}/autofs
291 %attr(755,root,root) %{_libdir}/autofs/mount_*
292 %attr(755,root,root) %{_libdir}/autofs/parse_*
293 %attr(755,root,root) %{_libdir}/autofs/lookup_[!l]*
297 %defattr(644,root,root,755)
298 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/autofs_ldap_auth.conf
299 %attr(755,root,root) %{_libdir}/autofs/lookup_ldap.so
300 %attr(755,root,root) %{_libdir}/autofs/lookup_ldaps.so