]>
Commit | Line | Data |
---|---|---|
1 | # TODO: | |
2 | # - change /net to something FHS-compliant ? | |
3 | # - upgrade to autofs5 - maybe separate package? | |
4 | # - build of ldap-related things has some errors | |
5 | Summary: autofs daemon | |
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 | |
12 | Name: autofs | |
13 | Version: 4.1.4 | |
14 | Release: 4 | |
15 | Epoch: 1 | |
16 | License: GPL v2+ | |
17 | Group: Daemons | |
18 | Source0: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v4/%{name}-%{version}.tar.bz2 | |
19 | # Source0-md5: 7e3949114c00665b4636f0c318179657 | |
20 | Source1: %{name}.init | |
21 | Source2: %{name}-auto.master | |
22 | Source3: %{name}-auto.media | |
23 | Source4: %{name}-auto.net | |
24 | Source5: %{name}.sysconfig | |
25 | Patch0: %{name}-open_max.patch | |
26 | Patch1: %{name}-hesiod-includes.patch | |
27 | Patch2: http://www.kernel.org/pub/linux/daemons/autofs/v4/%{name}-4.1.4-misc-fixes.patch | |
28 | Patch3: http://www.kernel.org/pub/linux/daemons/autofs/v4/%{name}-4.1.4-multi-parse-fix.patch | |
29 | Patch4: http://www.kernel.org/pub/linux/daemons/autofs/v4/%{name}-4.1.4-no-unlink-upstream.patch | |
30 | Patch5: http://www.kernel.org/pub/linux/daemons/autofs/v4/%{name}-4.1.4-non-replicated-ping.patch | |
31 | Patch6: http://www.kernel.org/pub/linux/daemons/autofs/v4/%{name}-4.1.4-auto.smb-cifs.patch | |
32 | BuildRequires: autoconf | |
33 | BuildRequires: automake | |
34 | BuildRequires: bind-devel | |
35 | BuildRequires: openldap-devel >= 2.4.6 | |
36 | BuildRequires: rpmbuild(macros) >= 1.268 | |
37 | Requires(post,preun): /sbin/chkconfig | |
38 | Requires: mktemp | |
39 | Requires: rc-scripts | |
40 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
41 | ||
42 | %define _sysconfdir /etc/autofs | |
43 | ||
44 | %description | |
45 | autofs is a daemon which automatically mounts filesystems when you use | |
46 | them, and unmounts them later when you are not using them. This can | |
47 | include network filesystems, CD-ROMs, floppies, and so forth. | |
48 | ||
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. | |
54 | ||
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. | |
58 | Incluyendo sistemas de archivo en red, CD-ROMS, disquetes, etc. | |
59 | ||
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 | |
64 | disquettes, etc. | |
65 | ||
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. | |
70 | ||
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 | |
74 | estiverem mais em uso. Incluindo sistemas de arquivo em rede, CD-ROMS, | |
75 | disquetes, etc. | |
76 | ||
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. | |
81 | ||
82 | %package ldap | |
83 | Summary: LDAP lookup module for autofs | |
84 | Summary(pl.UTF-8): Moduł LDAP dla autofs | |
85 | Summary(pt_BR.UTF-8): Suporte a mapas LDAP para o pacote autofs | |
86 | Group: Daemons | |
87 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
88 | ||
89 | %description ldap | |
90 | This package contains the autofs module necessary to use automount | |
91 | maps stored on an LDAP server. | |
92 | ||
93 | %description ldap -l pl.UTF-8 | |
94 | Ten pakiet zawiera moduł autofs potrzebny do używania map automounta | |
95 | trzymanych na serwerze LDAP. | |
96 | ||
97 | %prep | |
98 | %setup -q | |
99 | %patch0 -p1 | |
100 | %patch1 -p1 | |
101 | %patch2 -p1 | |
102 | %patch3 -p1 | |
103 | %patch4 -p1 | |
104 | %patch5 -p1 | |
105 | %patch6 -p1 | |
106 | ||
107 | %build | |
108 | chmod a+w configure | |
109 | %{__aclocal} | |
110 | %{__autoconf} | |
111 | %configure | |
112 | ||
113 | %{__make} \ | |
114 | initdir=/etc/rc.d/init.d \ | |
115 | CC="%{__cc}" \ | |
116 | DAEMON_CFLAGS="%{rpmcflags}" | |
117 | ||
118 | %install | |
119 | rm -rf $RPM_BUILD_ROOT | |
120 | install -d $RPM_BUILD_ROOT{/misc,/net,%{_sbindir},%{_libdir}/autofs,%{_mandir}/man{5,8}} \ | |
121 | $RPM_BUILD_ROOT/etc/{rc.d/init.d,autofs,sysconfig} | |
122 | ||
123 | %{__make} install \ | |
124 | INSTALLROOT=$RPM_BUILD_ROOT | |
125 | ||
126 | install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/autofs | |
127 | ||
128 | install %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/auto.master | |
129 | install %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/auto.media | |
130 | install %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/auto.net | |
131 | install %{SOURCE5} $RPM_BUILD_ROOT/etc/sysconfig/autofs | |
132 | mv $RPM_BUILD_ROOT/etc/auto.smb $RPM_BUILD_ROOT%{_sysconfdir} | |
133 | ||
134 | touch $RPM_BUILD_ROOT%{_sysconfdir}/auto.{home,var,tmp} | |
135 | ||
136 | # Do some cleanups: | |
137 | rm -f $RPM_BUILD_ROOT/etc/auto.{master,misc,net} | |
138 | ||
139 | %clean | |
140 | rm -rf $RPM_BUILD_ROOT | |
141 | ||
142 | %post | |
143 | /sbin/chkconfig --add autofs | |
144 | # triggerpostun would get called after %%post | |
145 | if [ -f /var/lock/subsys/automount ]; then | |
146 | mv /var/lock/subsys/{automount,autofs} | |
147 | fi | |
148 | %service autofs restart "autofs daemon" | |
149 | ||
150 | %preun | |
151 | if [ "$1" = "0" ]; then | |
152 | %service autofs stop | |
153 | /sbin/chkconfig --del autofs | |
154 | fi | |
155 | ||
156 | %files | |
157 | %defattr(644,root,root,755) | |
158 | %doc CHANGELOG CREDITS README* | |
159 | %dir %{_sysconfdir} | |
160 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/autofs | |
161 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/auto.home | |
162 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/auto.master | |
163 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/auto.media | |
164 | %attr(750,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/auto.net | |
165 | %attr(750,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/auto.smb | |
166 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/auto.tmp | |
167 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/auto.var | |
168 | %attr(754,root,root) %config /etc/rc.d/init.d/autofs | |
169 | %attr(755,root,root) %{_sbindir}/automount | |
170 | %dir /net | |
171 | %dir %{_libdir}/autofs | |
172 | %attr(755,root,root) %{_libdir}/autofs/mount_* | |
173 | %attr(755,root,root) %{_libdir}/autofs/parse_* | |
174 | %attr(755,root,root) %{_libdir}/autofs/lookup_[!l]* | |
175 | %{_mandir}/man[58]/* | |
176 | ||
177 | %files ldap | |
178 | %defattr(644,root,root,755) | |
179 | %attr(755,root,root) %{_libdir}/autofs/lookup_ldap.so |