]>
Commit | Line | Data |
---|---|---|
6d1c466b | 1 | # TODO: |
d225ae79 | 2 | # - change /net to something FHS-compliant ? |
f09b02b8 | 3 | # |
841e1924 | 4 | # Conditional build: |
1bc45ec7 | 5 | %bcond_with ldap # build LDAP extension module (need port to heimdal) |
841e1924 | 6 | # |
b4cd3ee9 | 7 | Summary: autofs daemon |
46d8cf7b ER |
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 | |
b4cd3ee9 | 14 | Name: autofs |
7ad3f853 PS |
15 | Version: 5.0.5 |
16 | Release: 0.1 | |
315eeda0 | 17 | Epoch: 1 |
d225ae79 | 18 | License: GPL v2+ |
b4cd3ee9 | 19 | Group: Daemons |
184af42e | 20 | Source0: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/%{name}-%{version}.tar.bz2 |
7ad3f853 | 21 | # Source0-md5: a1d262cb6ebef0c2dd0fe22232fb3d5a |
9ab321b6 | 22 | Source1: %{name}.init |
23 | Source2: %{name}-auto.master | |
d225ae79 PG |
24 | Source3: %{name}-auto.media |
25 | Source4: %{name}-auto.net | |
26 | Source5: %{name}.sysconfig | |
242d8844 | 27 | Patch0: %{name}-open_max.patch |
514c8eb4 | 28 | BuildRequires: autoconf |
c8133e76 | 29 | BuildRequires: automake |
603eddcc | 30 | BuildRequires: bind-devel |
05c95841 | 31 | BuildRequires: bison |
bf9430f2 | 32 | BuildRequires: e2fsprogs |
05c95841 | 33 | BuildRequires: flex |
9943e90e | 34 | BuildRequires: heimdal-devel |
5d362306 | 35 | BuildRequires: hesiod-devel |
05c95841 | 36 | BuildRequires: libxml2-devel |
bf9430f2 | 37 | BuildRequires: mount |
841e1924 | 38 | %{?with_ldap:BuildRequires: openldap-devel >= 2.4.6} |
c8133e76 | 39 | BuildRequires: rpmbuild(macros) >= 1.268 |
657df5c3 | 40 | Requires(post,preun): /sbin/chkconfig |
b4cd3ee9 | 41 | Requires: mktemp |
c8133e76 | 42 | Requires: rc-scripts |
0a4dccd8 | 43 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
b4cd3ee9 | 44 | |
650117fe | 45 | %define _sysconfdir /etc/autofs |
05c95841 | 46 | %define filterout_ld -Wl,--as-needed |
650117fe | 47 | |
b4cd3ee9 | 48 | %description |
49 | autofs is a daemon which automatically mounts filesystems when you use | |
0ef7a180 | 50 | them, and unmounts them later when you are not using them. This can |
b4cd3ee9 | 51 | include network filesystems, CD-ROMs, floppies, and so forth. |
52 | ||
e8296acd JR |
53 | %description -l de.UTF-8 |
54 | autofs ist ein Dämon, der Dateisysteme automatisch montiert, wenn sie | |
55 | benutzt werden, und sie später bei Nichtbenutzung wieder demontiert. | |
56 | Dies kann Netz-Dateisysteme, CD-ROMs, Disketten und ähnliches | |
57 | einschließen. | |
b4cd3ee9 | 58 | |
e8296acd JR |
59 | %description -l es.UTF-8 |
60 | Autofs es un servidor que monta automáticamente sistemas de archivos | |
61 | cuando los usa, y los desmonta, más tarde, al terminar de usarlos. | |
0a4dccd8 | 62 | Incluyendo sistemas de archivo en red, CD-ROMS, disquetes, etc. |
63 | ||
e8296acd JR |
64 | %description -l fr.UTF-8 |
65 | autofs est un démon qui monte automatiquement les systèmes de fichiers | |
66 | lorsqu'on les utilise et les démonte lorsqu'on ne les utilise plus. | |
67 | Cela inclus les systèmes de fichiers réseau, les CD-ROMs, les | |
0ef7a180 | 68 | disquettes, etc. |
b4cd3ee9 | 69 | |
e8296acd JR |
70 | %description -l pl.UTF-8 |
71 | Autofs jest demonem, który montuje automatycznie systemy plików jeżeli | |
72 | je używasz i odmontowuje później, jeżeli ich nie używasz. Może | |
73 | montować sieciowy system plików, CD-romy, stacje dyskietek i inne. | |
650117fe | 74 | |
e8296acd JR |
75 | %description -l pt_BR.UTF-8 |
76 | O autofs é um servidor que monta automaticamente sistemas de arquivos | |
77 | quando estes forem usados, desmontando-os mais tarde quando não | |
0a4dccd8 | 78 | estiverem mais em uso. Incluindo sistemas de arquivo em rede, CD-ROMS, |
79 | disquetes, etc. | |
80 | ||
e8296acd JR |
81 | %description -l tr.UTF-8 |
82 | autofs, kullanılan dosya sistemlerini gerek olunca kendiliğinden | |
83 | bağlar ve kullanımları sona erince yine kendiliğinden çözer. Bu işlem, | |
84 | ağ dosya sistemleri, CD-ROM'lar ve disketler üzerinde yapılabilir. | |
b4cd3ee9 | 85 | |
28322e0b | 86 | %package ldap |
87 | Summary: LDAP lookup module for autofs | |
46d8cf7b ER |
88 | Summary(pl.UTF-8): Moduł LDAP dla autofs |
89 | Summary(pt_BR.UTF-8): Suporte a mapas LDAP para o pacote autofs | |
28322e0b | 90 | Group: Daemons |
603eddcc | 91 | Requires: %{name} = %{epoch}:%{version}-%{release} |
28322e0b | 92 | |
93 | %description ldap | |
94 | This package contains the autofs module necessary to use automount | |
95 | maps stored on an LDAP server. | |
96 | ||
e8296acd JR |
97 | %description ldap -l pl.UTF-8 |
98 | Ten pakiet zawiera moduł autofs potrzebny do używania map automounta | |
22d0409c JB |
99 | trzymanych na serwerze LDAP. |
100 | ||
b4cd3ee9 | 101 | %prep |
102 | %setup -q | |
9ab321b6 | 103 | %patch0 -p1 |
184af42e | 104 | |
b4cd3ee9 | 105 | %build |
fdf7acdf PS |
106 | %{__autoconf} |
107 | ||
ec0170d1 PG |
108 | export initdir=/etc/rc.d/init.d |
109 | %configure \ | |
841e1924 | 110 | --with-openldap=%{?with_ldap:yes}%{!?with_ldap:no} \ |
bf9430f2 | 111 | --enable-force-shutdown=yes \ |
fdf7acdf PS |
112 | --with-confdir=%{_sysconfdir} \ |
113 | --with-mapdir=%{_sysconfdir} | |
6194200d | 114 | |
599e931a | 115 | %{__make} -j1 \ |
d225ae79 PG |
116 | initdir=/etc/rc.d/init.d \ |
117 | CC="%{__cc}" \ | |
05c95841 | 118 | DAEMON_CFLAGS="-fPIE %{rpmcflags}" |
b4cd3ee9 | 119 | |
120 | %install | |
121 | rm -rf $RPM_BUILD_ROOT | |
603eddcc | 122 | install -d $RPM_BUILD_ROOT{/misc,/net,%{_sbindir},%{_libdir}/autofs,%{_mandir}/man{5,8}} \ |
d2ed1b07 | 123 | $RPM_BUILD_ROOT/etc/{rc.d/init.d,autofs,sysconfig} |
b4cd3ee9 | 124 | |
0ca9e4df | 125 | %{__make} install \ |
9f76dbd1 | 126 | INSTALLROOT=$RPM_BUILD_ROOT |
b4cd3ee9 | 127 | |
9f76dbd1 | 128 | install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/autofs |
b4cd3ee9 | 129 | |
1704e84b | 130 | install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/auto.master |
d225ae79 PG |
131 | install %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/auto.media |
132 | install %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/auto.net | |
133 | install %{SOURCE5} $RPM_BUILD_ROOT/etc/sysconfig/autofs | |
b4cd3ee9 | 134 | |
d225ae79 PG |
135 | touch $RPM_BUILD_ROOT%{_sysconfdir}/auto.{home,var,tmp} |
136 | ||
fdf7acdf PS |
137 | # replaced in PLD by auto.media |
138 | rm $RPM_BUILD_ROOT%{_sysconfdir}/auto.misc | |
9f76dbd1 | 139 | |
22d0409c JB |
140 | %clean |
141 | rm -rf $RPM_BUILD_ROOT | |
142 | ||
650117fe | 143 | %post |
b80c013d | 144 | /sbin/chkconfig --add autofs |
c8133e76 | 145 | # triggerpostun would get called after %%post |
9a4c6df9 | 146 | if [ -f /var/lock/subsys/automount ]; then |
c8133e76 | 147 | mv /var/lock/subsys/{automount,autofs} |
b80c013d | 148 | fi |
c8133e76 | 149 | %service autofs restart "autofs daemon" |
b80c013d | 150 | |
650117fe | 151 | %preun |
b80c013d | 152 | if [ "$1" = "0" ]; then |
c8133e76 | 153 | %service autofs stop |
b80c013d | 154 | /sbin/chkconfig --del autofs |
b80c013d | 155 | fi |
b4cd3ee9 | 156 | |
157 | %files | |
158 | %defattr(644,root,root,755) | |
d225ae79 | 159 | %doc CHANGELOG CREDITS README* |
650117fe | 160 | %dir %{_sysconfdir} |
3672267d | 161 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/autofs |
fdf7acdf | 162 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/autofs |
3672267d SP |
163 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/auto.home |
164 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/auto.master | |
d225ae79 | 165 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/auto.media |
3672267d | 166 | %attr(750,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/auto.net |
6d1c466b | 167 | %attr(750,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/auto.smb |
3672267d SP |
168 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/auto.tmp |
169 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/auto.var | |
b8f00e5b | 170 | %attr(754,root,root) /etc/rc.d/init.d/autofs |
8596e52e | 171 | %attr(755,root,root) %{_sbindir}/automount |
9f76dbd1 | 172 | %dir /net |
650117fe | 173 | %dir %{_libdir}/autofs |
bf9430f2 PS |
174 | %attr(755,root,root) %{_libdir}/autofs/lookup_file.so |
175 | %attr(755,root,root) %{_libdir}/autofs/lookup_files.so | |
176 | %attr(755,root,root) %{_libdir}/autofs/lookup_hesiod.so | |
177 | %attr(755,root,root) %{_libdir}/autofs/lookup_hosts.so | |
178 | %attr(755,root,root) %{_libdir}/autofs/lookup_multi.so | |
179 | %attr(755,root,root) %{_libdir}/autofs/lookup_nis.so | |
180 | %attr(755,root,root) %{_libdir}/autofs/lookup_nisplus.so | |
181 | %attr(755,root,root) %{_libdir}/autofs/lookup_program.so | |
182 | %attr(755,root,root) %{_libdir}/autofs/lookup_userhome.so | |
183 | %attr(755,root,root) %{_libdir}/autofs/lookup_yp.so | |
184 | %attr(755,root,root) %{_libdir}/autofs/mount_afs.so | |
185 | %attr(755,root,root) %{_libdir}/autofs/mount_autofs.so | |
186 | %attr(755,root,root) %{_libdir}/autofs/mount_bind.so | |
187 | %attr(755,root,root) %{_libdir}/autofs/mount_changer.so | |
188 | %attr(755,root,root) %{_libdir}/autofs/mount_ext2.so | |
189 | %attr(755,root,root) %{_libdir}/autofs/mount_ext3.so | |
190 | %attr(755,root,root) %{_libdir}/autofs/mount_generic.so | |
191 | %attr(755,root,root) %{_libdir}/autofs/mount_nfs.so | |
192 | %attr(755,root,root) %{_libdir}/autofs/mount_nfs4.so | |
193 | %attr(755,root,root) %{_libdir}/autofs/parse_hesiod.so | |
194 | %attr(755,root,root) %{_libdir}/autofs/parse_sun.so | |
1fb67f63 | 195 | %{_mandir}/man[58]/* |
28322e0b | 196 | |
841e1924 | 197 | %if %{with ldap} |
28322e0b | 198 | %files ldap |
199 | %defattr(644,root,root,755) | |
fdf7acdf | 200 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/autofs_ldap_auth.conf |
28322e0b | 201 | %attr(755,root,root) %{_libdir}/autofs/lookup_ldap.so |
ef3507a1 | 202 | %attr(755,root,root) %{_libdir}/autofs/lookup_ldaps.so |
841e1924 | 203 | %endif |