2 # - change /net to something FHS-compliant ?
5 %bcond_with ldap # build LDAP extension module (need port to heimdal)
8 Summary(de.UTF-8): autofs daemon
9 Summary(es.UTF-8): Servidor autofs
10 Summary(fr.UTF-8): démon autofs
11 Summary(pl.UTF-8): Demon autofs
12 Summary(pt_BR.UTF-8): Servidor autofs
13 Summary(tr.UTF-8): autofs sunucu süreci
20 Source0: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/%{name}-%{version}.tar.bz2
21 # Source0-md5: 2646dde61edd08dd952255558c733c08
23 Source2: %{name}-auto.master
24 Source3: %{name}-auto.media
25 Source4: %{name}-auto.net
26 Source5: %{name}.sysconfig
27 Patch0: %{name}-open_max.patch
28 Patch1: %{name}-5.0.4-fix-dumb-libxml2-check.patch
29 Patch2: %{name}-5.0.4-expire-specific-submount-only.patch
30 Patch3: %{name}-5.0.4-fix-negative-cache-non-existent-key.patch
31 Patch4: %{name}-5.0.4-fix-ldap-detection.patch
32 Patch5: %{name}-5.0.4-use-CLOEXEC-flag.patch
33 Patch6: %{name}-5.0.4-fix-select-fd-limit.patch
34 Patch7: %{name}-5.0.4-make-hash-table-scale-to-thousands-of-entries.patch
35 Patch8: %{name}-5.0.4-fix-quoted-mess.patch
36 Patch9: %{name}-5.0.4-use-CLOEXEC-flag-setmntent.patch
37 Patch10: %{name}-5.0.4-fix-hosts-map-use-after-free.patch
38 Patch11: %{name}-5.0.4-uris-list-locking-fix.patch
39 Patch12: %{name}-5.0.4-renew-sasl-creds-upon-reconnect-fail.patch
40 Patch13: %{name}-5.0.4-library-reload-fix-update.patch
41 Patch14: %{name}-5.0.4-force-unlink-umount.patch
42 Patch15: %{name}-5.0.4-always-read-file-maps.patch
43 Patch16: %{name}-5.0.4-code-analysis-corrections.patch
44 Patch17: %{name}-5.0.4-make-MAX_ERR_BUF-and-PARSE_MAX_BUF-use-easier-to-audit.patch
45 Patch18: %{name}-5.0.4-easy-alloca-replacements.patch
46 Patch19: %{name}-5.0.4-configure-libtirpc.patch
47 Patch20: %{name}-5.0.4-ipv6-name-and-address-support.patch
48 Patch21: %{name}-5.0.4-ipv6-parse.patch
49 Patch22: %{name}-5.0.4-add-missing-changelog-entries.patch
50 Patch23: %{name}-5.0.4-use-CLOEXEC-flag-setmntent-include-fix.patch
51 Patch24: %{name}-5.0.4-easy-alloca-replacements-fix.patch
52 Patch25: %{name}-5.0.4-libxml2-workaround-fix.patch
53 Patch26: %{name}-5.0.4-configure-libtirpc-fix.patch
54 Patch27: %{name}-5.0.4-add-nfs-mount-proto-default-conf-option.patch
55 Patch28: %{name}-5.0.4-fix-bad-token-declare.patch
56 Patch29: %{name}-5.0.4-fix-return-start-status-on-fail.patch
57 Patch30: %{name}-5.0.4-fix-double-free-in-expire_proc.patch
58 Patch31: %{name}-5.0.4-another-easy-alloca-replacements-fix.patch
59 Patch32: %{name}-5.0.4-add-lsb-init-script-parameter-block.patch
60 Patch33: %{name}-5.0.4-always-read-file-maps-fix.patch
61 Patch34: %{name}-5.0.4-use-misc-device.patch
62 Patch35: %{name}-5.0.4-fix-restorecon.patch
63 Patch36: %{name}-5.0.4-clear-rpc-client-on-lookup-fail.patch
64 Patch37: %{name}-5.0.4-fix-lsb-init-script-header.patch
65 Patch38: %{name}-5.0.4-fix-memory-leak-reading-ldap-master.patch
66 Patch39: %{name}-5.0.4-fix-st_remove_tasks-locking.patch
67 Patch40: %{name}-5.0.4-reset-flex-scanner-when-setting-buffer.patch
68 Patch41: %{name}-5.0.4-zero-s_magic-is-valid.patch
69 Patch42: %{name}-5.0.4-use-percent-hack-for-master.patch
70 Patch43: %{name}-5.0.4-use-intr-as-hosts-mount-default.patch
71 Patch44: %{name}-5.0.4-fix-kernel-includes.patch
72 Patch45: %{name}-5.0.4-dont-umount-existing-direct-mount-on-reread.patch
73 Patch46: %{name}-5.0.4-library-reload-fix-update-fix.patch
74 Patch47: %{name}-5.0.4-improve-manual-umount-recovery.patch
75 Patch48: %{name}-5.0.4-dont-fail-on-ipv6-address-adding-host.patch
76 Patch49: %{name}-5.0.4-always-read-file-maps-multi-map-fix.patch
77 Patch50: %{name}-5.0.4-always-read-file-maps-key-lookup-fixes.patch
78 Patch51: %{name}-5.0.4-use-srv-query-for-domain-dn.patch
79 Patch52: %{name}-5.0.4-fix-incorrect-dclist-free.patch
80 Patch53: %{name}-5.0.4-srv-lookup-handle-endian.patch
81 Patch54: %{name}-5.0.4-library-reload-fix-update-fix-2.patch
82 Patch55: %{name}-5.0.4-fix-notify-mount-message-path.patch
83 Patch56: %{name}-5.0.4-remount-we-created-mount-point-fix.patch
84 Patch57: %{name}-5.0.4-fix-double-free-in-do_sasl_bind.patch
85 Patch58: %{name}-5.0.4-manual-umount-recovery-fixes.patch
86 Patch59: %{name}-5.0.4-fix-map-type-info-parse-error.patch
87 Patch60: %{name}-5.0.4-fix-map-type-info-parse-error-update.patch
88 Patch61: %{name}-5.0.4-fix-rpc-fd-leak.patch
89 Patch62: %{name}-5.0.4-allow-automount-daemon-to-dump-core.patch
90 Patch63: %{name}-5.0.4-fix-pthread-push-order-in-expire_proc_direct.patch
91 BuildRequires: autoconf
92 BuildRequires: automake
93 BuildRequires: bind-devel
95 BuildRequires: e2fsprogs
97 BuildRequires: heimdal-devel
98 BuildRequires: hesiod-devel
99 BuildRequires: libxml2-devel
101 %{?with_ldap:BuildRequires: openldap-devel >= 2.4.6}
102 BuildRequires: rpmbuild(macros) >= 1.268
103 Requires(post,preun): /sbin/chkconfig
106 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
108 %define _sysconfdir /etc/autofs
109 %define filterout_ld -Wl,--as-needed
112 autofs is a daemon which automatically mounts filesystems when you use
113 them, and unmounts them later when you are not using them. This can
114 include network filesystems, CD-ROMs, floppies, and so forth.
116 %description -l de.UTF-8
117 autofs ist ein Dämon, der Dateisysteme automatisch montiert, wenn sie
118 benutzt werden, und sie später bei Nichtbenutzung wieder demontiert.
119 Dies kann Netz-Dateisysteme, CD-ROMs, Disketten und ähnliches
122 %description -l es.UTF-8
123 Autofs es un servidor que monta automáticamente sistemas de archivos
124 cuando los usa, y los desmonta, más tarde, al terminar de usarlos.
125 Incluyendo sistemas de archivo en red, CD-ROMS, disquetes, etc.
127 %description -l fr.UTF-8
128 autofs est un démon qui monte automatiquement les systèmes de fichiers
129 lorsqu'on les utilise et les démonte lorsqu'on ne les utilise plus.
130 Cela inclus les systèmes de fichiers réseau, les CD-ROMs, les
133 %description -l pl.UTF-8
134 Autofs jest demonem, który montuje automatycznie systemy plików jeżeli
135 je używasz i odmontowuje później, jeżeli ich nie używasz. Może
136 montować sieciowy system plików, CD-romy, stacje dyskietek i inne.
138 %description -l pt_BR.UTF-8
139 O autofs é um servidor que monta automaticamente sistemas de arquivos
140 quando estes forem usados, desmontando-os mais tarde quando não
141 estiverem mais em uso. Incluindo sistemas de arquivo em rede, CD-ROMS,
144 %description -l tr.UTF-8
145 autofs, kullanılan dosya sistemlerini gerek olunca kendiliğinden
146 bağlar ve kullanımları sona erince yine kendiliğinden çözer. Bu işlem,
147 ağ dosya sistemleri, CD-ROM'lar ve disketler üzerinde yapılabilir.
150 Summary: LDAP lookup module for autofs
151 Summary(pl.UTF-8): Moduł LDAP dla autofs
152 Summary(pt_BR.UTF-8): Suporte a mapas LDAP para o pacote autofs
154 Requires: %{name} = %{epoch}:%{version}-%{release}
157 This package contains the autofs module necessary to use automount
158 maps stored on an LDAP server.
160 %description ldap -l pl.UTF-8
161 Ten pakiet zawiera moduł autofs potrzebny do używania map automounta
162 trzymanych na serwerze LDAP.
234 export initdir=/etc/rc.d/init.d
236 --with-openldap=%{?with_ldap:yes}%{!?with_ldap:no} \
237 --enable-force-shutdown=yes \
238 --with-confdir=%{_sysconfdir} \
239 --with-mapdir=%{_sysconfdir}
242 initdir=/etc/rc.d/init.d \
244 DAEMON_CFLAGS="-fPIE %{rpmcflags}"
247 rm -rf $RPM_BUILD_ROOT
248 install -d $RPM_BUILD_ROOT{/misc,/net,%{_sbindir},%{_libdir}/autofs,%{_mandir}/man{5,8}} \
249 $RPM_BUILD_ROOT/etc/{rc.d/init.d,autofs,sysconfig}
252 INSTALLROOT=$RPM_BUILD_ROOT
254 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/autofs
256 install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/auto.master
257 install %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/auto.media
258 install %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/auto.net
259 install %{SOURCE5} $RPM_BUILD_ROOT/etc/sysconfig/autofs
261 touch $RPM_BUILD_ROOT%{_sysconfdir}/auto.{home,var,tmp}
263 # replaced in PLD by auto.media
264 rm $RPM_BUILD_ROOT%{_sysconfdir}/auto.misc
267 rm -rf $RPM_BUILD_ROOT
270 /sbin/chkconfig --add autofs
271 # triggerpostun would get called after %%post
272 if [ -f /var/lock/subsys/automount ]; then
273 mv /var/lock/subsys/{automount,autofs}
275 %service autofs restart "autofs daemon"
278 if [ "$1" = "0" ]; then
280 /sbin/chkconfig --del autofs
284 %defattr(644,root,root,755)
285 %doc CHANGELOG CREDITS README*
287 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/autofs
288 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/autofs
289 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/auto.home
290 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/auto.master
291 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/auto.media
292 %attr(750,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/auto.net
293 %attr(750,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/auto.smb
294 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/auto.tmp
295 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/auto.var
296 %attr(754,root,root) /etc/rc.d/init.d/autofs
297 %attr(755,root,root) %{_sbindir}/automount
299 %dir %{_libdir}/autofs
300 %attr(755,root,root) %{_libdir}/autofs/lookup_file.so
301 %attr(755,root,root) %{_libdir}/autofs/lookup_files.so
302 %attr(755,root,root) %{_libdir}/autofs/lookup_hesiod.so
303 %attr(755,root,root) %{_libdir}/autofs/lookup_hosts.so
304 %attr(755,root,root) %{_libdir}/autofs/lookup_multi.so
305 %attr(755,root,root) %{_libdir}/autofs/lookup_nis.so
306 %attr(755,root,root) %{_libdir}/autofs/lookup_nisplus.so
307 %attr(755,root,root) %{_libdir}/autofs/lookup_program.so
308 %attr(755,root,root) %{_libdir}/autofs/lookup_userhome.so
309 %attr(755,root,root) %{_libdir}/autofs/lookup_yp.so
310 %attr(755,root,root) %{_libdir}/autofs/mount_afs.so
311 %attr(755,root,root) %{_libdir}/autofs/mount_autofs.so
312 %attr(755,root,root) %{_libdir}/autofs/mount_bind.so
313 %attr(755,root,root) %{_libdir}/autofs/mount_changer.so
314 %attr(755,root,root) %{_libdir}/autofs/mount_ext2.so
315 %attr(755,root,root) %{_libdir}/autofs/mount_ext3.so
316 %attr(755,root,root) %{_libdir}/autofs/mount_generic.so
317 %attr(755,root,root) %{_libdir}/autofs/mount_nfs.so
318 %attr(755,root,root) %{_libdir}/autofs/mount_nfs4.so
319 %attr(755,root,root) %{_libdir}/autofs/parse_hesiod.so
320 %attr(755,root,root) %{_libdir}/autofs/parse_sun.so
325 %defattr(644,root,root,755)
326 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/autofs_ldap_auth.conf
327 %attr(755,root,root) %{_libdir}/autofs/lookup_ldap.so
328 %attr(755,root,root) %{_libdir}/autofs/lookup_ldaps.so