]>
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 |
256c27a4 PG |
13 | Version: 5.0.3 |
14 | Release: 0.1 | |
315eeda0 | 15 | Epoch: 1 |
d225ae79 | 16 | License: GPL v2+ |
b4cd3ee9 | 17 | Group: Daemons |
184af42e | 18 | Source0: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/%{name}-%{version}.tar.bz2 |
256c27a4 | 19 | # Source0-md5: 27839fe6fa8105b2b7d31bc922fd7cf6 |
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 | 27 | ## Official patches: |
256c27a4 PG |
28 | Patch10: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/%{name}-%{version}-ldap-page-control-configure-fix.patch |
29 | Patch11: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/%{name}-%{version}-xfn-not-supported.patch | |
30 | Patch12: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/%{name}-%{version}-basedn-with-spaces-fix-3.patch | |
31 | Patch13: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/%{name}-%{version}-nfs4-tcp-only.patch | |
32 | Patch14: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/%{name}-%{version}-correct-ldap-lib.patch | |
514c8eb4 | 33 | BuildRequires: autoconf |
c8133e76 | 34 | BuildRequires: automake |
603eddcc | 35 | BuildRequires: bind-devel |
184af42e | 36 | BuildRequires: krb5-devel |
0fbee45e | 37 | BuildRequires: openldap-devel >= 2.4.6 |
c8133e76 | 38 | BuildRequires: rpmbuild(macros) >= 1.268 |
657df5c3 | 39 | Requires(post,preun): /sbin/chkconfig |
b4cd3ee9 | 40 | Requires: mktemp |
c8133e76 | 41 | Requires: rc-scripts |
0a4dccd8 | 42 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
b4cd3ee9 | 43 | |
650117fe | 44 | %define _sysconfdir /etc/autofs |
45 | ||
b4cd3ee9 | 46 | %description |
47 | autofs is a daemon which automatically mounts filesystems when you use | |
0ef7a180 | 48 | them, and unmounts them later when you are not using them. This can |
b4cd3ee9 | 49 | include network filesystems, CD-ROMs, floppies, and so forth. |
50 | ||
e8296acd JR |
51 | %description -l de.UTF-8 |
52 | autofs ist ein Dämon, der Dateisysteme automatisch montiert, wenn sie | |
53 | benutzt werden, und sie später bei Nichtbenutzung wieder demontiert. | |
54 | Dies kann Netz-Dateisysteme, CD-ROMs, Disketten und ähnliches | |
55 | einschließen. | |
b4cd3ee9 | 56 | |
e8296acd JR |
57 | %description -l es.UTF-8 |
58 | Autofs es un servidor que monta automáticamente sistemas de archivos | |
59 | cuando los usa, y los desmonta, más tarde, al terminar de usarlos. | |
0a4dccd8 | 60 | Incluyendo sistemas de archivo en red, CD-ROMS, disquetes, etc. |
61 | ||
e8296acd JR |
62 | %description -l fr.UTF-8 |
63 | autofs est un démon qui monte automatiquement les systèmes de fichiers | |
64 | lorsqu'on les utilise et les démonte lorsqu'on ne les utilise plus. | |
65 | Cela inclus les systèmes de fichiers réseau, les CD-ROMs, les | |
0ef7a180 | 66 | disquettes, etc. |
b4cd3ee9 | 67 | |
e8296acd JR |
68 | %description -l pl.UTF-8 |
69 | Autofs jest demonem, który montuje automatycznie systemy plików jeżeli | |
70 | je używasz i odmontowuje później, jeżeli ich nie używasz. Może | |
71 | montować sieciowy system plików, CD-romy, stacje dyskietek i inne. | |
650117fe | 72 | |
e8296acd JR |
73 | %description -l pt_BR.UTF-8 |
74 | O autofs é um servidor que monta automaticamente sistemas de arquivos | |
75 | quando estes forem usados, desmontando-os mais tarde quando não | |
0a4dccd8 | 76 | estiverem mais em uso. Incluindo sistemas de arquivo em rede, CD-ROMS, |
77 | disquetes, etc. | |
78 | ||
e8296acd JR |
79 | %description -l tr.UTF-8 |
80 | autofs, kullanılan dosya sistemlerini gerek olunca kendiliğinden | |
81 | bağlar ve kullanımları sona erince yine kendiliğinden çözer. Bu işlem, | |
82 | ağ dosya sistemleri, CD-ROM'lar ve disketler üzerinde yapılabilir. | |
b4cd3ee9 | 83 | |
28322e0b | 84 | %package ldap |
85 | Summary: LDAP lookup module for autofs | |
46d8cf7b ER |
86 | Summary(pl.UTF-8): Moduł LDAP dla autofs |
87 | Summary(pt_BR.UTF-8): Suporte a mapas LDAP para o pacote autofs | |
28322e0b | 88 | Group: Daemons |
603eddcc | 89 | Requires: %{name} = %{epoch}:%{version}-%{release} |
28322e0b | 90 | |
91 | %description ldap | |
92 | This package contains the autofs module necessary to use automount | |
93 | maps stored on an LDAP server. | |
94 | ||
e8296acd JR |
95 | %description ldap -l pl.UTF-8 |
96 | Ten pakiet zawiera moduł autofs potrzebny do używania map automounta | |
22d0409c JB |
97 | trzymanych na serwerze LDAP. |
98 | ||
b4cd3ee9 | 99 | %prep |
100 | %setup -q | |
9ab321b6 | 101 | %patch0 -p1 |
102 | %patch1 -p1 | |
184af42e PG |
103 | |
104 | #Official patches: | |
105 | %patch10 -p1 | |
106 | %patch11 -p1 | |
107 | %patch12 -p1 | |
108 | %patch13 -p1 | |
109 | %patch14 -p1 | |
b4cd3ee9 | 110 | |
111 | %build | |
f09b02b8 PG |
112 | #%{__aclocal} |
113 | #%{__autoconf} | |
ec0170d1 PG |
114 | export initdir=/etc/rc.d/init.d |
115 | %configure \ | |
116 | --with-confdir=%{_sysconfdir} | |
6194200d | 117 | |
d225ae79 PG |
118 | %{__make} \ |
119 | initdir=/etc/rc.d/init.d \ | |
120 | CC="%{__cc}" \ | |
121 | DAEMON_CFLAGS="%{rpmcflags}" | |
b4cd3ee9 | 122 | |
123 | %install | |
124 | rm -rf $RPM_BUILD_ROOT | |
603eddcc | 125 | install -d $RPM_BUILD_ROOT{/misc,/net,%{_sbindir},%{_libdir}/autofs,%{_mandir}/man{5,8}} \ |
d2ed1b07 | 126 | $RPM_BUILD_ROOT/etc/{rc.d/init.d,autofs,sysconfig} |
b4cd3ee9 | 127 | |
0ca9e4df | 128 | %{__make} install \ |
9f76dbd1 | 129 | INSTALLROOT=$RPM_BUILD_ROOT |
b4cd3ee9 | 130 | |
9f76dbd1 | 131 | install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/autofs |
b4cd3ee9 | 132 | |
1704e84b | 133 | install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/auto.master |
d225ae79 PG |
134 | install %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/auto.media |
135 | install %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/auto.net | |
136 | install %{SOURCE5} $RPM_BUILD_ROOT/etc/sysconfig/autofs | |
6d1c466b | 137 | mv $RPM_BUILD_ROOT/etc/auto.smb $RPM_BUILD_ROOT%{_sysconfdir} |
b4cd3ee9 | 138 | |
d225ae79 PG |
139 | touch $RPM_BUILD_ROOT%{_sysconfdir}/auto.{home,var,tmp} |
140 | ||
141 | # Do some cleanups: | |
142 | rm -f $RPM_BUILD_ROOT/etc/auto.{master,misc,net} | |
9f76dbd1 | 143 | |
22d0409c JB |
144 | %clean |
145 | rm -rf $RPM_BUILD_ROOT | |
146 | ||
650117fe | 147 | %post |
b80c013d | 148 | /sbin/chkconfig --add autofs |
c8133e76 | 149 | # triggerpostun would get called after %%post |
9a4c6df9 | 150 | if [ -f /var/lock/subsys/automount ]; then |
c8133e76 | 151 | mv /var/lock/subsys/{automount,autofs} |
b80c013d | 152 | fi |
c8133e76 | 153 | %service autofs restart "autofs daemon" |
b80c013d | 154 | |
650117fe | 155 | %preun |
b80c013d | 156 | if [ "$1" = "0" ]; then |
c8133e76 | 157 | %service autofs stop |
b80c013d | 158 | /sbin/chkconfig --del autofs |
b80c013d | 159 | fi |
b4cd3ee9 | 160 | |
161 | %files | |
162 | %defattr(644,root,root,755) | |
d225ae79 | 163 | %doc CHANGELOG CREDITS README* |
650117fe | 164 | %dir %{_sysconfdir} |
3672267d SP |
165 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/autofs |
166 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/auto.home | |
167 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/auto.master | |
d225ae79 | 168 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/auto.media |
3672267d | 169 | %attr(750,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/auto.net |
6d1c466b | 170 | %attr(750,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/auto.smb |
3672267d SP |
171 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/auto.tmp |
172 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/auto.var | |
3ebd5d71 | 173 | %attr(754,root,root) %config /etc/rc.d/init.d/autofs |
8596e52e | 174 | %attr(755,root,root) %{_sbindir}/automount |
9f76dbd1 | 175 | %dir /net |
650117fe | 176 | %dir %{_libdir}/autofs |
28322e0b | 177 | %attr(755,root,root) %{_libdir}/autofs/mount_* |
178 | %attr(755,root,root) %{_libdir}/autofs/parse_* | |
657df5c3 | 179 | %attr(755,root,root) %{_libdir}/autofs/lookup_[!l]* |
1fb67f63 | 180 | %{_mandir}/man[58]/* |
28322e0b | 181 | |
182 | %files ldap | |
183 | %defattr(644,root,root,755) | |
ef3507a1 | 184 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/autofs_ldap_auth.conf |
28322e0b | 185 | %attr(755,root,root) %{_libdir}/autofs/lookup_ldap.so |
ef3507a1 | 186 | %attr(755,root,root) %{_libdir}/autofs/lookup_ldaps.so |