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