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