]>
Commit | Line | Data |
---|---|---|
6d1c466b | 1 | # TODO: |
d225ae79 | 2 | # - change /net to something FHS-compliant ? |
d225ae79 | 3 | # - build of ldap-related things has some errors |
b4cd3ee9 | 4 | Summary: autofs daemon |
46d8cf7b ER |
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 | |
b4cd3ee9 | 11 | Name: autofs |
184af42e PG |
12 | Version: 5.0.2 |
13 | Release: 0.1 | |
315eeda0 | 14 | Epoch: 1 |
d225ae79 | 15 | License: GPL v2+ |
b4cd3ee9 | 16 | Group: Daemons |
184af42e PG |
17 | Source0: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/%{name}-%{version}.tar.bz2 |
18 | # Source0-md5: fd56817cba70814753bc98f5fb7f23ec | |
9ab321b6 | 19 | Source1: %{name}.init |
20 | Source2: %{name}-auto.master | |
d225ae79 PG |
21 | Source3: %{name}-auto.media |
22 | Source4: %{name}-auto.net | |
23 | Source5: %{name}.sysconfig | |
242d8844 | 24 | Patch0: %{name}-open_max.patch |
25 | Patch1: %{name}-hesiod-includes.patch | |
184af42e PG |
26 | ## Official patches: |
27 | Patch10: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/%{name}-5.0.2-add-krb5-include.patch | |
28 | Patch11: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/%{name}-5.0.2-bad-proto-init.patch | |
29 | Patch12: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/%{name}-5.0.2-add-missing-multi-support.patch | |
30 | Patch13: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/%{name}-5.0.2-add-multi-nsswitch-lookup.patch | |
31 | Patch14: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/%{name}-5.0.2-consistent-random-selection-option-name.patch | |
32 | Patch15: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/%{name}-5.0.2-fix-offset-dir-create.patch | |
33 | Patch16: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/%{name}-5.0.2-quote-exports.patch | |
34 | Patch17: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/%{name}-5.0.2-hi-res-time.patch | |
35 | Patch18: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/%{name}-5.0.2-quoted-slash-alone.patch | |
36 | Patch19: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/%{name}-5.0.2-fix-dnattr-parse.patch | |
37 | Patch20: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/%{name}-5.0.2-fix-nfs-version-in-get-supported-ver-and-cost.patch | |
38 | Patch21: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/%{name}-5.0.2-instance-stale-mark.patch | |
39 | Patch22: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/%{name}-5.0.2-fix-largefile-dumbness.patch | |
40 | Patch23: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/%{name}-5.0.2-dont-fail-on-empty-master.patch | |
41 | Patch24: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/%{name}-5.0.2-ldap-percent-hack.patch | |
42 | Patch25: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/%{name}-5.0.2-fix-mount-nfs-nosymlink.patch | |
43 | Patch26: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/%{name}-5.0.2-dont-fail-on-empty-master-fix.patch | |
44 | Patch27: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/%{name}-5.0.2-default-nsswitch.patch | |
45 | Patch28: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/%{name}-5.0.2-add-ldap-schema-discovery.patch | |
46 | Patch29: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/%{name}-5.0.2-random-selection-fix.patch | |
47 | Patch30: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/%{name}-5.0.2-timeout-option-parse-fix.patch | |
48 | Patch31: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/%{name}-5.0.2-ldap-check-star.patch | |
49 | Patch32: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/%{name}-5.0.2-add-ldap-schema-discovery-fix.patch | |
50 | Patch33: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/%{name}-5.0.2-ldap-schema-discovery-config-update.patch | |
51 | Patch34: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/%{name}-5.0.2-ldap-search-basedn-list.patch | |
52 | Patch35: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/%{name}-5.0.2-libxml2-workaround.patch | |
53 | Patch36: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/%{name}-5.0.2-reread-config-on-hup.patch | |
54 | Patch37: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/%{name}-5.0.2-add-multiple-server-selection-option.patch | |
55 | Patch38: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/%{name}-5.0.2-foreground-logging.patch | |
56 | Patch39: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/%{name}-5.0.2-cleanup-krb5-comment.patch | |
57 | Patch40: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/%{name}-5.0.2-submount-deadlock.patch | |
58 | Patch41: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/%{name}-5.0.2-add-ferror-check.patch | |
59 | Patch42: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/%{name}-5.0.2-autofs-5-typo.patch | |
60 | Patch43: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/%{name}-5.0.2-swallow-null-macro.patch | |
61 | Patch44: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/%{name}-5.0.2-remove-unsed-export-validation-code.patch | |
62 | Patch45: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/%{name}-5.0.2-dynamic-logging.patch | |
63 | Patch46: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/%{name}-5.0.2-fix-recursive-loopback-mounts.patch | |
64 | Patch47: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/%{name}-5.0.2-log-map-reload.patch | |
65 | Patch48: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/%{name}-5.0.2-basedn-with-spaces.patch | |
66 | Patch49: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/%{name}-5.0.2-dynamic-logging-fixes.patch | |
67 | Patch50: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/%{name}-5.0.2-basedn-with-spaces-fix.patch | |
68 | Patch51: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/%{name}-5.0.2-check-mtab-updated.patch | |
69 | Patch52: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/%{name}-5.0.2-basedn-with-spaces-fix-2.patch | |
70 | Patch53: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/%{name}-5.0.2-check-auto_master.patch | |
71 | Patch54: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/%{name}-5.0.2-add-ldap-schema-discovery-fix-2.patch | |
72 | Patch55: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/%{name}-5.0.2-negative-timeout-update.patch | |
73 | Patch56: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/%{name}-5.0.2-large-groups.patch | |
74 | Patch57: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/%{name}-5.0.2-report-failed-lookups.patch | |
75 | Patch58: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/%{name}-5.0.2-dynamic-logging-non-sasl.patch | |
76 | Patch59: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/%{name}-5.0.2-check-mtab-updated-fix.patch | |
77 | Patch60: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/%{name}-5.0.2-singleton-host-list.patch | |
78 | Patch61: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/%{name}-5.0.2-start-pipe-buff-size.patch | |
79 | Patch62: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/%{name}-5.0.2-fix-off-by-one-lookup.patch | |
80 | Patch63: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/%{name}-5.0.2-improve-server-unavail.patch | |
81 | Patch64: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/%{name}-5.0.2-add-multiple-server-selection-option-fix.patch | |
82 | Patch65: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/%{name}-5.0.2-external-cred-cache.patch | |
83 | Patch66: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/%{name}-5.0.2-percent-hack-fix.patch | |
84 | Patch67: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/%{name}-5.0.2-quote-exports-fix.patch | |
85 | Patch68: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/%{name}-5.0.2-hosts-nosuid-default.patch | |
86 | Patch69: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/%{name}-5.0.2-quote-exports-fix-fix.patch | |
87 | Patch70: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/%{name}-5.0.2-quell-mount-module-message.patch | |
88 | Patch71: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/%{name}-5.0.2-improve-server-unavail-fix.patch | |
514c8eb4 | 89 | BuildRequires: autoconf |
c8133e76 | 90 | BuildRequires: automake |
603eddcc | 91 | BuildRequires: bind-devel |
184af42e | 92 | BuildRequires: krb5-devel |
0fbee45e | 93 | BuildRequires: openldap-devel >= 2.4.6 |
c8133e76 | 94 | BuildRequires: rpmbuild(macros) >= 1.268 |
657df5c3 | 95 | Requires(post,preun): /sbin/chkconfig |
b4cd3ee9 | 96 | Requires: mktemp |
c8133e76 | 97 | Requires: rc-scripts |
0a4dccd8 | 98 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
b4cd3ee9 | 99 | |
650117fe | 100 | %define _sysconfdir /etc/autofs |
101 | ||
b4cd3ee9 | 102 | %description |
103 | autofs is a daemon which automatically mounts filesystems when you use | |
0ef7a180 | 104 | them, and unmounts them later when you are not using them. This can |
b4cd3ee9 | 105 | include network filesystems, CD-ROMs, floppies, and so forth. |
106 | ||
e8296acd JR |
107 | %description -l de.UTF-8 |
108 | autofs ist ein Dämon, der Dateisysteme automatisch montiert, wenn sie | |
109 | benutzt werden, und sie später bei Nichtbenutzung wieder demontiert. | |
110 | Dies kann Netz-Dateisysteme, CD-ROMs, Disketten und ähnliches | |
111 | einschließen. | |
b4cd3ee9 | 112 | |
e8296acd JR |
113 | %description -l es.UTF-8 |
114 | Autofs es un servidor que monta automáticamente sistemas de archivos | |
115 | cuando los usa, y los desmonta, más tarde, al terminar de usarlos. | |
0a4dccd8 | 116 | Incluyendo sistemas de archivo en red, CD-ROMS, disquetes, etc. |
117 | ||
e8296acd JR |
118 | %description -l fr.UTF-8 |
119 | autofs est un démon qui monte automatiquement les systèmes de fichiers | |
120 | lorsqu'on les utilise et les démonte lorsqu'on ne les utilise plus. | |
121 | Cela inclus les systèmes de fichiers réseau, les CD-ROMs, les | |
0ef7a180 | 122 | disquettes, etc. |
b4cd3ee9 | 123 | |
e8296acd JR |
124 | %description -l pl.UTF-8 |
125 | Autofs jest demonem, który montuje automatycznie systemy plików jeżeli | |
126 | je używasz i odmontowuje później, jeżeli ich nie używasz. Może | |
127 | montować sieciowy system plików, CD-romy, stacje dyskietek i inne. | |
650117fe | 128 | |
e8296acd JR |
129 | %description -l pt_BR.UTF-8 |
130 | O autofs é um servidor que monta automaticamente sistemas de arquivos | |
131 | quando estes forem usados, desmontando-os mais tarde quando não | |
0a4dccd8 | 132 | estiverem mais em uso. Incluindo sistemas de arquivo em rede, CD-ROMS, |
133 | disquetes, etc. | |
134 | ||
e8296acd JR |
135 | %description -l tr.UTF-8 |
136 | autofs, kullanılan dosya sistemlerini gerek olunca kendiliğinden | |
137 | bağlar ve kullanımları sona erince yine kendiliğinden çözer. Bu işlem, | |
138 | ağ dosya sistemleri, CD-ROM'lar ve disketler üzerinde yapılabilir. | |
b4cd3ee9 | 139 | |
28322e0b | 140 | %package ldap |
141 | Summary: LDAP lookup module for autofs | |
46d8cf7b ER |
142 | Summary(pl.UTF-8): Moduł LDAP dla autofs |
143 | Summary(pt_BR.UTF-8): Suporte a mapas LDAP para o pacote autofs | |
28322e0b | 144 | Group: Daemons |
603eddcc | 145 | Requires: %{name} = %{epoch}:%{version}-%{release} |
28322e0b | 146 | |
147 | %description ldap | |
148 | This package contains the autofs module necessary to use automount | |
149 | maps stored on an LDAP server. | |
150 | ||
e8296acd JR |
151 | %description ldap -l pl.UTF-8 |
152 | Ten pakiet zawiera moduł autofs potrzebny do używania map automounta | |
22d0409c JB |
153 | trzymanych na serwerze LDAP. |
154 | ||
b4cd3ee9 | 155 | %prep |
156 | %setup -q | |
9ab321b6 | 157 | %patch0 -p1 |
158 | %patch1 -p1 | |
184af42e PG |
159 | |
160 | #Official patches: | |
161 | %patch10 -p1 | |
162 | %patch11 -p1 | |
163 | %patch12 -p1 | |
164 | %patch13 -p1 | |
165 | %patch14 -p1 | |
166 | %patch15 -p1 | |
167 | %patch16 -p1 | |
168 | %patch17 -p1 | |
169 | %patch18 -p1 | |
170 | %patch19 -p1 | |
171 | %patch20 -p1 | |
172 | %patch21 -p1 | |
173 | %patch22 -p1 | |
174 | %patch23 -p1 | |
175 | %patch24 -p1 | |
176 | %patch25 -p1 | |
177 | %patch26 -p1 | |
178 | %patch27 -p1 | |
179 | %patch28 -p1 | |
180 | %patch29 -p1 | |
181 | %patch30 -p1 | |
182 | %patch31 -p1 | |
183 | %patch32 -p1 | |
184 | %patch33 -p1 | |
185 | %patch34 -p1 | |
186 | %patch35 -p1 | |
187 | %patch36 -p1 | |
188 | %patch37 -p1 | |
189 | %patch38 -p1 | |
190 | %patch39 -p1 | |
191 | %patch40 -p1 | |
192 | %patch41 -p1 | |
193 | %patch42 -p1 | |
194 | %patch43 -p1 | |
195 | %patch44 -p1 | |
196 | %patch45 -p1 | |
197 | %patch46 -p1 | |
198 | %patch47 -p1 | |
199 | %patch48 -p1 | |
200 | %patch49 -p1 | |
201 | %patch50 -p1 | |
202 | %patch51 -p1 | |
203 | %patch52 -p1 | |
204 | %patch53 -p1 | |
205 | %patch54 -p1 | |
206 | %patch55 -p1 | |
207 | %patch56 -p1 | |
208 | %patch57 -p1 | |
209 | %patch58 -p1 | |
210 | %patch59 -p1 | |
211 | %patch60 -p1 | |
212 | %patch61 -p1 | |
213 | %patch62 -p1 | |
214 | %patch63 -p1 | |
215 | %patch64 -p1 | |
216 | %patch65 -p1 | |
217 | %patch66 -p1 | |
218 | %patch67 -p1 | |
219 | %patch68 -p1 | |
220 | %patch69 -p1 | |
221 | %patch70 -p1 | |
222 | %patch71 -p1 | |
b4cd3ee9 | 223 | |
224 | %build | |
184af42e PG |
225 | #chmod a+w configure |
226 | #%{__aclocal} | |
227 | #%{__autoconf} | |
514c8eb4 | 228 | %configure |
6194200d | 229 | |
d225ae79 PG |
230 | %{__make} \ |
231 | initdir=/etc/rc.d/init.d \ | |
232 | CC="%{__cc}" \ | |
233 | DAEMON_CFLAGS="%{rpmcflags}" | |
b4cd3ee9 | 234 | |
235 | %install | |
236 | rm -rf $RPM_BUILD_ROOT | |
603eddcc | 237 | install -d $RPM_BUILD_ROOT{/misc,/net,%{_sbindir},%{_libdir}/autofs,%{_mandir}/man{5,8}} \ |
d2ed1b07 | 238 | $RPM_BUILD_ROOT/etc/{rc.d/init.d,autofs,sysconfig} |
b4cd3ee9 | 239 | |
0ca9e4df | 240 | %{__make} install \ |
9f76dbd1 | 241 | INSTALLROOT=$RPM_BUILD_ROOT |
b4cd3ee9 | 242 | |
9f76dbd1 | 243 | install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/autofs |
b4cd3ee9 | 244 | |
1704e84b | 245 | install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/auto.master |
d225ae79 PG |
246 | install %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/auto.media |
247 | install %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/auto.net | |
248 | install %{SOURCE5} $RPM_BUILD_ROOT/etc/sysconfig/autofs | |
6d1c466b | 249 | mv $RPM_BUILD_ROOT/etc/auto.smb $RPM_BUILD_ROOT%{_sysconfdir} |
b4cd3ee9 | 250 | |
d225ae79 PG |
251 | touch $RPM_BUILD_ROOT%{_sysconfdir}/auto.{home,var,tmp} |
252 | ||
253 | # Do some cleanups: | |
254 | rm -f $RPM_BUILD_ROOT/etc/auto.{master,misc,net} | |
9f76dbd1 | 255 | |
22d0409c JB |
256 | %clean |
257 | rm -rf $RPM_BUILD_ROOT | |
258 | ||
650117fe | 259 | %post |
b80c013d | 260 | /sbin/chkconfig --add autofs |
c8133e76 | 261 | # triggerpostun would get called after %%post |
9a4c6df9 | 262 | if [ -f /var/lock/subsys/automount ]; then |
c8133e76 | 263 | mv /var/lock/subsys/{automount,autofs} |
b80c013d | 264 | fi |
c8133e76 | 265 | %service autofs restart "autofs daemon" |
b80c013d | 266 | |
650117fe | 267 | %preun |
b80c013d | 268 | if [ "$1" = "0" ]; then |
c8133e76 | 269 | %service autofs stop |
b80c013d | 270 | /sbin/chkconfig --del autofs |
b80c013d | 271 | fi |
b4cd3ee9 | 272 | |
273 | %files | |
274 | %defattr(644,root,root,755) | |
d225ae79 | 275 | %doc CHANGELOG CREDITS README* |
650117fe | 276 | %dir %{_sysconfdir} |
3672267d SP |
277 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/autofs |
278 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/auto.home | |
279 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/auto.master | |
d225ae79 | 280 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/auto.media |
3672267d | 281 | %attr(750,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/auto.net |
6d1c466b | 282 | %attr(750,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/auto.smb |
3672267d SP |
283 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/auto.tmp |
284 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/auto.var | |
3ebd5d71 | 285 | %attr(754,root,root) %config /etc/rc.d/init.d/autofs |
8596e52e | 286 | %attr(755,root,root) %{_sbindir}/automount |
9f76dbd1 | 287 | %dir /net |
650117fe | 288 | %dir %{_libdir}/autofs |
28322e0b | 289 | %attr(755,root,root) %{_libdir}/autofs/mount_* |
290 | %attr(755,root,root) %{_libdir}/autofs/parse_* | |
657df5c3 | 291 | %attr(755,root,root) %{_libdir}/autofs/lookup_[!l]* |
1fb67f63 | 292 | %{_mandir}/man[58]/* |
28322e0b | 293 | |
294 | %files ldap | |
295 | %defattr(644,root,root,755) | |
296 | %attr(755,root,root) %{_libdir}/autofs/lookup_ldap.so |