]>
Commit | Line | Data |
---|---|---|
1 | # TODO: | |
2 | # - change /net to something FHS-compliant ? | |
3 | # | |
4 | Summary: autofs daemon | |
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 | |
11 | Name: autofs | |
12 | Version: 5.0.4 | |
13 | Release: 0.1 | |
14 | Epoch: 1 | |
15 | License: GPL v2+ | |
16 | Group: Daemons | |
17 | Source0: ftp://ftp.kernel.org/pub/linux/daemons/autofs/v5/%{name}-%{version}.tar.bz2 | |
18 | # Source0-md5: 2646dde61edd08dd952255558c733c08 | |
19 | Source1: %{name}.init | |
20 | Source2: %{name}-auto.master | |
21 | Source3: %{name}-auto.media | |
22 | Source4: %{name}-auto.net | |
23 | Source5: %{name}.sysconfig | |
24 | Patch0: %{name}-open_max.patch | |
25 | Patch1: %{name}-hesiod-includes.patch | |
26 | BuildRequires: autoconf | |
27 | BuildRequires: automake | |
28 | BuildRequires: bind-devel | |
29 | BuildRequires: bison | |
30 | BuildRequires: e2fsprogs | |
31 | BuildRequires: flex | |
32 | BuildRequires: hesiod-devel | |
33 | BuildRequires: krb5-devel | |
34 | BuildRequires: libxml2-devel | |
35 | BuildRequires: mount | |
36 | BuildRequires: openldap-devel >= 2.4.6 | |
37 | BuildRequires: rpmbuild(macros) >= 1.268 | |
38 | Requires(post,preun): /sbin/chkconfig | |
39 | Requires: mktemp | |
40 | Requires: rc-scripts | |
41 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
42 | ||
43 | %define _sysconfdir /etc/autofs | |
44 | %define filterout_ld -Wl,--as-needed | |
45 | ||
46 | %description | |
47 | autofs is a daemon which automatically mounts filesystems when you use | |
48 | them, and unmounts them later when you are not using them. This can | |
49 | include network filesystems, CD-ROMs, floppies, and so forth. | |
50 | ||
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. | |
56 | ||
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. | |
60 | Incluyendo sistemas de archivo en red, CD-ROMS, disquetes, etc. | |
61 | ||
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 | |
66 | disquettes, etc. | |
67 | ||
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. | |
72 | ||
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 | |
76 | estiverem mais em uso. Incluindo sistemas de arquivo em rede, CD-ROMS, | |
77 | disquetes, etc. | |
78 | ||
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. | |
83 | ||
84 | %package ldap | |
85 | Summary: LDAP lookup module for autofs | |
86 | Summary(pl.UTF-8): Moduł LDAP dla autofs | |
87 | Summary(pt_BR.UTF-8): Suporte a mapas LDAP para o pacote autofs | |
88 | Group: Daemons | |
89 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
90 | ||
91 | %description ldap | |
92 | This package contains the autofs module necessary to use automount | |
93 | maps stored on an LDAP server. | |
94 | ||
95 | %description ldap -l pl.UTF-8 | |
96 | Ten pakiet zawiera moduł autofs potrzebny do używania map automounta | |
97 | trzymanych na serwerze LDAP. | |
98 | ||
99 | %prep | |
100 | %setup -q | |
101 | %patch0 -p1 | |
102 | %patch1 -p1 | |
103 | ||
104 | %build | |
105 | %{__autoconf} | |
106 | ||
107 | export initdir=/etc/rc.d/init.d | |
108 | %configure \ | |
109 | --enable-force-shutdown=yes \ | |
110 | --with-confdir=%{_sysconfdir} \ | |
111 | --with-mapdir=%{_sysconfdir} | |
112 | ||
113 | %{__make} \ | |
114 | initdir=/etc/rc.d/init.d \ | |
115 | CC="%{__cc}" \ | |
116 | DAEMON_CFLAGS="-fPIE %{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 | ||
133 | touch $RPM_BUILD_ROOT%{_sysconfdir}/auto.{home,var,tmp} | |
134 | ||
135 | # replaced in PLD by auto.media | |
136 | rm $RPM_BUILD_ROOT%{_sysconfdir}/auto.misc | |
137 | ||
138 | %clean | |
139 | rm -rf $RPM_BUILD_ROOT | |
140 | ||
141 | %post | |
142 | /sbin/chkconfig --add autofs | |
143 | # triggerpostun would get called after %%post | |
144 | if [ -f /var/lock/subsys/automount ]; then | |
145 | mv /var/lock/subsys/{automount,autofs} | |
146 | fi | |
147 | %service autofs restart "autofs daemon" | |
148 | ||
149 | %preun | |
150 | if [ "$1" = "0" ]; then | |
151 | %service autofs stop | |
152 | /sbin/chkconfig --del autofs | |
153 | fi | |
154 | ||
155 | %files | |
156 | %defattr(644,root,root,755) | |
157 | %doc CHANGELOG CREDITS README* | |
158 | %dir %{_sysconfdir} | |
159 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/autofs | |
160 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/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/lookup_file.so | |
173 | %attr(755,root,root) %{_libdir}/autofs/lookup_files.so | |
174 | %attr(755,root,root) %{_libdir}/autofs/lookup_hesiod.so | |
175 | %attr(755,root,root) %{_libdir}/autofs/lookup_hosts.so | |
176 | %attr(755,root,root) %{_libdir}/autofs/lookup_multi.so | |
177 | %attr(755,root,root) %{_libdir}/autofs/lookup_nis.so | |
178 | %attr(755,root,root) %{_libdir}/autofs/lookup_nisplus.so | |
179 | %attr(755,root,root) %{_libdir}/autofs/lookup_program.so | |
180 | %attr(755,root,root) %{_libdir}/autofs/lookup_userhome.so | |
181 | %attr(755,root,root) %{_libdir}/autofs/lookup_yp.so | |
182 | %attr(755,root,root) %{_libdir}/autofs/mount_afs.so | |
183 | %attr(755,root,root) %{_libdir}/autofs/mount_autofs.so | |
184 | %attr(755,root,root) %{_libdir}/autofs/mount_bind.so | |
185 | %attr(755,root,root) %{_libdir}/autofs/mount_changer.so | |
186 | %attr(755,root,root) %{_libdir}/autofs/mount_ext2.so | |
187 | %attr(755,root,root) %{_libdir}/autofs/mount_ext3.so | |
188 | %attr(755,root,root) %{_libdir}/autofs/mount_generic.so | |
189 | %attr(755,root,root) %{_libdir}/autofs/mount_nfs.so | |
190 | %attr(755,root,root) %{_libdir}/autofs/mount_nfs4.so | |
191 | %attr(755,root,root) %{_libdir}/autofs/parse_hesiod.so | |
192 | %attr(755,root,root) %{_libdir}/autofs/parse_sun.so | |
193 | %{_mandir}/man[58]/* | |
194 | ||
195 | %files ldap | |
196 | %defattr(644,root,root,755) | |
197 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/autofs_ldap_auth.conf | |
198 | %attr(755,root,root) %{_libdir}/autofs/lookup_ldap.so | |
199 | %attr(755,root,root) %{_libdir}/autofs/lookup_ldaps.so |