]>
Commit | Line | Data |
---|---|---|
6d1c466b | 1 | # TODO: |
d225ae79 | 2 | # - change /net to something FHS-compliant ? |
f09b02b8 PG |
3 | # - fix ac/am regeneration |
4 | # | |
b4cd3ee9 | 5 | Summary: autofs daemon |
46d8cf7b ER |
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 | |
b4cd3ee9 | 12 | Name: autofs |
184af42e | 13 | Version: 5.0.2 |
f09b02b8 | 14 | Release: 2 |
315eeda0 | 15 | Epoch: 1 |
d225ae79 | 16 | License: GPL v2+ |
b4cd3ee9 | 17 | Group: Daemons |
184af42e PG |
18 | Source0: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/%{name}-%{version}.tar.bz2 |
19 | # Source0-md5: fd56817cba70814753bc98f5fb7f23ec | |
9ab321b6 | 20 | Source1: %{name}.init |
21 | Source2: %{name}-auto.master | |
d225ae79 PG |
22 | Source3: %{name}-auto.media |
23 | Source4: %{name}-auto.net | |
24 | Source5: %{name}.sysconfig | |
242d8844 | 25 | Patch0: %{name}-open_max.patch |
26 | Patch1: %{name}-hesiod-includes.patch | |
184af42e PG |
27 | ## Official patches: |
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 | |
514c8eb4 | 90 | BuildRequires: autoconf |
c8133e76 | 91 | BuildRequires: automake |
603eddcc | 92 | BuildRequires: bind-devel |
184af42e | 93 | BuildRequires: krb5-devel |
0fbee45e | 94 | BuildRequires: openldap-devel >= 2.4.6 |
c8133e76 | 95 | BuildRequires: rpmbuild(macros) >= 1.268 |
657df5c3 | 96 | Requires(post,preun): /sbin/chkconfig |
b4cd3ee9 | 97 | Requires: mktemp |
c8133e76 | 98 | Requires: rc-scripts |
0a4dccd8 | 99 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
b4cd3ee9 | 100 | |
650117fe | 101 | %define _sysconfdir /etc/autofs |
102 | ||
b4cd3ee9 | 103 | %description |
104 | autofs is a daemon which automatically mounts filesystems when you use | |
0ef7a180 | 105 | them, and unmounts them later when you are not using them. This can |
b4cd3ee9 | 106 | include network filesystems, CD-ROMs, floppies, and so forth. |
107 | ||
e8296acd JR |
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 | |
112 | einschließen. | |
b4cd3ee9 | 113 | |
e8296acd JR |
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. | |
0a4dccd8 | 117 | Incluyendo sistemas de archivo en red, CD-ROMS, disquetes, etc. |
118 | ||
e8296acd JR |
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 | |
0ef7a180 | 123 | disquettes, etc. |
b4cd3ee9 | 124 | |
e8296acd JR |
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. | |
650117fe | 129 | |
e8296acd JR |
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 | |
0a4dccd8 | 133 | estiverem mais em uso. Incluindo sistemas de arquivo em rede, CD-ROMS, |
134 | disquetes, etc. | |
135 | ||
e8296acd JR |
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. | |
b4cd3ee9 | 140 | |
28322e0b | 141 | %package ldap |
142 | Summary: LDAP lookup module for autofs | |
46d8cf7b ER |
143 | Summary(pl.UTF-8): Moduł LDAP dla autofs |
144 | Summary(pt_BR.UTF-8): Suporte a mapas LDAP para o pacote autofs | |
28322e0b | 145 | Group: Daemons |
603eddcc | 146 | Requires: %{name} = %{epoch}:%{version}-%{release} |
28322e0b | 147 | |
148 | %description ldap | |
149 | This package contains the autofs module necessary to use automount | |
150 | maps stored on an LDAP server. | |
151 | ||
e8296acd JR |
152 | %description ldap -l pl.UTF-8 |
153 | Ten pakiet zawiera moduł autofs potrzebny do używania map automounta | |
22d0409c JB |
154 | trzymanych na serwerze LDAP. |
155 | ||
b4cd3ee9 | 156 | %prep |
157 | %setup -q | |
9ab321b6 | 158 | %patch0 -p1 |
159 | %patch1 -p1 | |
184af42e PG |
160 | |
161 | #Official patches: | |
162 | %patch10 -p1 | |
163 | %patch11 -p1 | |
164 | %patch12 -p1 | |
165 | %patch13 -p1 | |
166 | %patch14 -p1 | |
167 | %patch15 -p1 | |
168 | %patch16 -p1 | |
169 | %patch17 -p1 | |
170 | %patch18 -p1 | |
171 | %patch19 -p1 | |
172 | %patch20 -p1 | |
173 | %patch21 -p1 | |
174 | %patch22 -p1 | |
175 | %patch23 -p1 | |
176 | %patch24 -p1 | |
177 | %patch25 -p1 | |
178 | %patch26 -p1 | |
179 | %patch27 -p1 | |
180 | %patch28 -p1 | |
181 | %patch29 -p1 | |
182 | %patch30 -p1 | |
183 | %patch31 -p1 | |
184 | %patch32 -p1 | |
185 | %patch33 -p1 | |
186 | %patch34 -p1 | |
187 | %patch35 -p1 | |
188 | %patch36 -p1 | |
189 | %patch37 -p1 | |
190 | %patch38 -p1 | |
191 | %patch39 -p1 | |
192 | %patch40 -p1 | |
193 | %patch41 -p1 | |
194 | %patch42 -p1 | |
195 | %patch43 -p1 | |
196 | %patch44 -p1 | |
197 | %patch45 -p1 | |
198 | %patch46 -p1 | |
199 | %patch47 -p1 | |
200 | %patch48 -p1 | |
201 | %patch49 -p1 | |
202 | %patch50 -p1 | |
203 | %patch51 -p1 | |
204 | %patch52 -p1 | |
205 | %patch53 -p1 | |
206 | %patch54 -p1 | |
207 | %patch55 -p1 | |
208 | %patch56 -p1 | |
209 | %patch57 -p1 | |
210 | %patch58 -p1 | |
211 | %patch59 -p1 | |
212 | %patch60 -p1 | |
213 | %patch61 -p1 | |
214 | %patch62 -p1 | |
215 | %patch63 -p1 | |
216 | %patch64 -p1 | |
217 | %patch65 -p1 | |
218 | %patch66 -p1 | |
219 | %patch67 -p1 | |
220 | %patch68 -p1 | |
221 | %patch69 -p1 | |
222 | %patch70 -p1 | |
223 | %patch71 -p1 | |
b4cd3ee9 | 224 | |
225 | %build | |
f09b02b8 PG |
226 | #%{__aclocal} |
227 | #%{__autoconf} | |
ec0170d1 PG |
228 | export initdir=/etc/rc.d/init.d |
229 | %configure \ | |
230 | --with-confdir=%{_sysconfdir} | |
6194200d | 231 | |
d225ae79 PG |
232 | %{__make} \ |
233 | initdir=/etc/rc.d/init.d \ | |
234 | CC="%{__cc}" \ | |
235 | DAEMON_CFLAGS="%{rpmcflags}" | |
b4cd3ee9 | 236 | |
237 | %install | |
238 | rm -rf $RPM_BUILD_ROOT | |
603eddcc | 239 | install -d $RPM_BUILD_ROOT{/misc,/net,%{_sbindir},%{_libdir}/autofs,%{_mandir}/man{5,8}} \ |
d2ed1b07 | 240 | $RPM_BUILD_ROOT/etc/{rc.d/init.d,autofs,sysconfig} |
b4cd3ee9 | 241 | |
0ca9e4df | 242 | %{__make} install \ |
9f76dbd1 | 243 | INSTALLROOT=$RPM_BUILD_ROOT |
b4cd3ee9 | 244 | |
9f76dbd1 | 245 | install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/autofs |
b4cd3ee9 | 246 | |
1704e84b | 247 | install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/auto.master |
d225ae79 PG |
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 | |
6d1c466b | 251 | mv $RPM_BUILD_ROOT/etc/auto.smb $RPM_BUILD_ROOT%{_sysconfdir} |
b4cd3ee9 | 252 | |
d225ae79 PG |
253 | touch $RPM_BUILD_ROOT%{_sysconfdir}/auto.{home,var,tmp} |
254 | ||
255 | # Do some cleanups: | |
256 | rm -f $RPM_BUILD_ROOT/etc/auto.{master,misc,net} | |
9f76dbd1 | 257 | |
22d0409c JB |
258 | %clean |
259 | rm -rf $RPM_BUILD_ROOT | |
260 | ||
650117fe | 261 | %post |
b80c013d | 262 | /sbin/chkconfig --add autofs |
c8133e76 | 263 | # triggerpostun would get called after %%post |
9a4c6df9 | 264 | if [ -f /var/lock/subsys/automount ]; then |
c8133e76 | 265 | mv /var/lock/subsys/{automount,autofs} |
b80c013d | 266 | fi |
c8133e76 | 267 | %service autofs restart "autofs daemon" |
b80c013d | 268 | |
650117fe | 269 | %preun |
b80c013d | 270 | if [ "$1" = "0" ]; then |
c8133e76 | 271 | %service autofs stop |
b80c013d | 272 | /sbin/chkconfig --del autofs |
b80c013d | 273 | fi |
b4cd3ee9 | 274 | |
275 | %files | |
276 | %defattr(644,root,root,755) | |
d225ae79 | 277 | %doc CHANGELOG CREDITS README* |
650117fe | 278 | %dir %{_sysconfdir} |
3672267d SP |
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 | |
d225ae79 | 282 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/auto.media |
3672267d | 283 | %attr(750,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/auto.net |
6d1c466b | 284 | %attr(750,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/auto.smb |
3672267d SP |
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 | |
3ebd5d71 | 287 | %attr(754,root,root) %config /etc/rc.d/init.d/autofs |
8596e52e | 288 | %attr(755,root,root) %{_sbindir}/automount |
9f76dbd1 | 289 | %dir /net |
650117fe | 290 | %dir %{_libdir}/autofs |
28322e0b | 291 | %attr(755,root,root) %{_libdir}/autofs/mount_* |
292 | %attr(755,root,root) %{_libdir}/autofs/parse_* | |
657df5c3 | 293 | %attr(755,root,root) %{_libdir}/autofs/lookup_[!l]* |
1fb67f63 | 294 | %{_mandir}/man[58]/* |
28322e0b | 295 | |
296 | %files ldap | |
297 | %defattr(644,root,root,755) | |
ef3507a1 | 298 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/autofs_ldap_auth.conf |
28322e0b | 299 | %attr(755,root,root) %{_libdir}/autofs/lookup_ldap.so |
ef3507a1 | 300 | %attr(755,root,root) %{_libdir}/autofs/lookup_ldaps.so |