]>
Commit | Line | Data |
---|---|---|
4af864e6 | 1 | # TODO |
6a066142 JR |
2 | # - should unmount /proc/fs/nfsd and /var/lib/nfs/rpc_pipefs at package |
3 | # uninstall (or in service nfs stop) | |
5b70fba4 JB |
4 | # |
5 | # Conditional build: | |
6 | %bcond_without nfs4 # without NFSv4 support | |
0048f570 | 7 | %bcond_without mount # don't build mount.nfs program |
5b70fba4 | 8 | # |
cb62e4f3 | 9 | Summary: Kernel NFS server |
ada059e5 ER |
10 | Summary(pl.UTF-8): Działający na poziomie jądra serwer NFS |
11 | Summary(pt_BR.UTF-8): Os utilitários para o cliente e servidor NFS do Linux | |
12 | Summary(ru.UTF-8): Утилиты для NFS и демоны поддержки для NFS-сервера ядра | |
13 | Summary(uk.UTF-8): Утиліти для NFS та демони підтримки для NFS-сервера ядра | |
cb62e4f3 | 14 | Name: nfs-utils |
16f3f572 JB |
15 | Version: 1.1.1 |
16 | Release: 1 | |
0011b22d | 17 | License: GPL |
cb62e4f3 | 18 | Group: Networking/Daemons |
d01055c8 | 19 | Source0: ftp://ftp.kernel.org/pub/linux/utils/nfs/%{name}-%{version}.tar.gz |
16f3f572 | 20 | # Source0-md5: 407785488241f9db67b1874e3f36370e |
b8d3abb0 JR |
21 | #Source1: ftp://ftp.linuxnfs.sourceforge.org/pub/nfs/nfs.doc.tar.gz |
22 | Source1: nfs.doc.tar.gz | |
9a665736 | 23 | # Source1-md5: ae7db9c61c5ad04f83bb99e5caed73da |
1bc6345f JR |
24 | Source2: nfs.init |
25 | Source3: nfslock.init | |
75e03a22 JR |
26 | Source4: nfsfs.init |
27 | Source5: rpcidmapd.init | |
28 | Source6: rpcgssd.init | |
29 | Source7: rpcsvcgssd.init | |
30 | Source8: nfs.sysconfig | |
31 | Source9: nfslock.sysconfig | |
32 | Source10: nfsfs.sysconfig | |
42ec9fb3 JB |
33 | Patch0: %{name}-eepro-support.patch |
34 | Patch1: %{name}-install.patch | |
16f3f572 | 35 | # http://www.citi.umich.edu/projects/nfsv4/linux/nfs-utils-patches/1.1.1-1/nfs-utils-1.1.1-CITI_NFS4_ALL-1.dif |
b54d7789 | 36 | Patch2: %{name}-CITI_NFS4.patch |
100fd575 | 37 | Patch3: %{name}-statdpath.patch |
16f3f572 JB |
38 | Patch4: %{name}-mountd.patch |
39 | Patch5: %{name}-idmapd.conf.patch | |
40 | Patch6: %{name}-keytab-path.patch | |
41 | Patch7: %{name}-subsys.patch | |
e406194a | 42 | URL: http://nfs.sourceforge.net/ |
385bb326 | 43 | BuildRequires: autoconf >= 2.59 |
4f5693d9 | 44 | BuildRequires: automake |
6b12a6b6 | 45 | BuildRequires: cpp |
910b2b3f | 46 | BuildRequires: e2fsprogs-devel >= 1.39-5 |
ea4a6f67 | 47 | %if %{with nfs4} |
b54d7789 | 48 | BuildRequires: krb5-devel >= 1.6 |
51dfb953 | 49 | BuildRequires: libevent-devel >= 1.2 |
3a90112a | 50 | BuildRequires: libgssglue-devel >= 0.1 |
2485b7d8 | 51 | BuildRequires: libnfsidmap-devel |
e8e7d0e7 | 52 | BuildRequires: librpcsecgss-devel >= 0.16 |
ea4a6f67 | 53 | %endif |
f45e2dff | 54 | BuildRequires: libtool |
4ae359cd | 55 | BuildRequires: libwrap-devel |
385bb326 | 56 | BuildRequires: pkgconfig |
4f5693d9 | 57 | BuildRequires: sed >= 4.0 |
8a834723 | 58 | Requires(post): fileutils |
c5c607cb ER |
59 | Requires(post): sed >= 4.0 |
60 | Requires(post,preun): /sbin/chkconfig | |
61 | Requires: %{name}-common = %{version}-%{release} | |
1bc6345f | 62 | Requires: portmap >= 4.0 |
4ec71bdf | 63 | Requires: rc-scripts >= 0.4.1.5 |
c5c607cb | 64 | Requires: setup >= 2.4.6-7 |
1bc6345f | 65 | Provides: nfsdaemon |
8a834723 JB |
66 | Obsoletes: knfsd |
67 | Obsoletes: nfs-server | |
c5c607cb | 68 | Obsoletes: nfsdaemon |
8a834723 | 69 | Conflicts: kernel < 2.2.5 |
1bc6345f | 70 | ExcludeArch: armv4l |
d48d450b | 71 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
1bc6345f JR |
72 | |
73 | %description | |
0011b22d | 74 | This is the *new* kernel NFS server and related tools. It provides a |
75 | much higher level of performance than the traditional Linux user-land | |
76 | NFS server. | |
1bc6345f | 77 | |
d44bd88d JR |
78 | %description -l pl.UTF-8 |
79 | To jest *nowy* działający na poziomie jądra serwer NFS oraz związane z | |
80 | nim narzędzia. Serwer ten dostarcza znacznie większą wydajność niż | |
81 | tradycyjny, działający na poziomie użytkownika serwer NFS. | |
1bc6345f | 82 | |
d44bd88d JR |
83 | %description -l pt_BR.UTF-8 |
84 | O pacote nfs-utils provê os utilitários para o cliente e servidor NFS | |
f8d9e6d5 | 85 | do Linux. |
d48d450b | 86 | |
d44bd88d JR |
87 | %description -l ru.UTF-8 |
88 | Пакет nfs-utils предоставляет демона для NFS-сервера, включенного в | |
89 | ядро, и сопутствующие утилиты, которые обеспечивают намного большую | |
90 | производительность, чем традиционные Linux NFS-сервера, используемые | |
91 | большинством пользователей. | |
011b72fa | 92 | |
d44bd88d JR |
93 | %description -l uk.UTF-8 |
94 | Пакет nfs-utils надає демона для NFS-сервера, вбудованого в ядро, та | |
95 | супутні утиліти, які забезпечують набагато більшу продуктивність, ніж | |
96 | традиційні Linux NFS-сервери, які використовує більшість користувачів. | |
011b72fa | 97 | |
1bc6345f | 98 | %package clients |
a4d8ac59 | 99 | Summary: Clients for connecting to a remote NFS server |
ada059e5 | 100 | Summary(pl.UTF-8): Klienci do łączenia się ze zdalnym serwerem NFS |
1bc6345f | 101 | Group: Networking |
8a834723 | 102 | Requires(post,preun): /sbin/chkconfig |
365015e3 | 103 | Requires: %{name}-common = %{version}-%{release} |
c5c607cb ER |
104 | Requires: psmisc |
105 | Requires: rc-scripts | |
a4d8ac59 | 106 | Provides: nfs-server-clients |
c5c607cb | 107 | Provides: nfsclient |
523e5742 | 108 | Obsoletes: knfsd-clients |
c5c607cb ER |
109 | Obsoletes: nfs-server-clients |
110 | Obsoletes: nfsclient | |
1bc6345f JR |
111 | |
112 | %description clients | |
113 | The nfs-server-clients package contains the showmount program. | |
114 | Showmount queries the mount daemon on a remote host for information | |
0011b22d | 115 | about the NFS (Network File System) server on the remote host. For |
1bc6345f | 116 | example, showmount can display the clients which are mounted on that |
0011b22d | 117 | host. This package is not needed to mount NFS volumes. |
1bc6345f | 118 | |
d44bd88d JR |
119 | %description clients -l pl.UTF-8 |
120 | Pakiet zawiera program showmount służący do odpytywania serwera NFS. | |
0fb1eec5 | 121 | Showmount pyta demona na zdalnej maszynie o informacje NFS na zdalnym |
d44bd88d | 122 | hoście. Na przykład, showmount potrafi pokazać klientów, którzy są |
26aacf7e | 123 | zamountowani na tym serwerze. Ten pakiet nie jest konieczny do |
d44bd88d | 124 | zamountowania zasobów NFS. |
1bc6345f JR |
125 | |
126 | %package lock | |
a4d8ac59 | 127 | Summary: Programs for NFS file locking |
ada059e5 | 128 | Summary(pl.UTF-8): Programy do obsługi blokowania plików poprzez NFS (lock) |
d8de81c5 | 129 | Group: Networking |
8a834723 | 130 | Requires(post,preun): /sbin/chkconfig |
1bc6345f | 131 | Requires: portmap >= 4.0 |
c5c607cb | 132 | Requires: rc-scripts |
0048f570 JR |
133 | Provides: group(rpcstatd) |
134 | Provides: user(rpcstatd) | |
1bc6345f | 135 | Provides: nfslockd |
8a834723 | 136 | Obsoletes: knfsd-lock |
c5c607cb | 137 | Obsoletes: nfslockd |
1bc6345f JR |
138 | |
139 | %description lock | |
140 | The nfs-lock pacage contains programs which support the NFS file lock. | |
141 | Install nfs-lock if you want to use file lock over NFS. | |
142 | ||
d44bd88d JR |
143 | %description lock -l pl.UTF-8 |
144 | Ten pakiet zawiera programy umożliwiające wykonywanie blokowania | |
145 | plików (file locking) poprzez NFS. | |
1bc6345f | 146 | |
365015e3 AM |
147 | %package common |
148 | Summary: Common programs for NFS | |
ada059e5 | 149 | Summary(pl.UTF-8): Wspólne programy do obsługi NFS |
365015e3 AM |
150 | Group: Networking |
151 | ||
152 | %description common | |
153 | Common programs for NFS. | |
154 | ||
d44bd88d JR |
155 | %description common -l pl.UTF-8 |
156 | Wspólne programy do obsługi NFS. | |
365015e3 | 157 | |
1bc6345f | 158 | %prep |
d01055c8 | 159 | %setup -q -a1 |
1bc6345f | 160 | %patch0 -p1 |
f4ada66b | 161 | %patch1 -p1 |
7a3f1242 | 162 | %patch2 -p1 |
b54d7789 | 163 | %patch3 -p1 |
6a066142 | 164 | %patch4 -p1 |
910b2b3f | 165 | %patch5 -p1 |
0048f570 JR |
166 | %patch6 -p1 |
167 | %patch7 -p1 | |
538d5113 | 168 | |
1bc6345f | 169 | %build |
e8e7d0e7 | 170 | %{__autoconf} |
1bc6345f | 171 | %configure \ |
ea4a6f67 | 172 | %if %{with nfs4} |
ea4a6f67 AM |
173 | --enable-gss \ |
174 | --with-krb5=%{_prefix} \ | |
4f5693d9 | 175 | --enable-nfsv4 \ |
ea4a6f67 | 176 | %else |
5b70fba4 JB |
177 | --disable-gss \ |
178 | --disable-nfsv4 \ | |
179 | %endif | |
0048f570 | 180 | %{?with_mount:--enable-mount} \ |
1bc6345f | 181 | --enable-nfsv3 \ |
538d5113 | 182 | --enable-secure-statd \ |
f45e2dff | 183 | --with-statedir=/var/lib/nfs \ |
184 | --with-tcp-wrappers | |
4f5693d9 | 185 | |
cee80e09 | 186 | %{__make} all |
1bc6345f JR |
187 | |
188 | %install | |
189 | rm -rf $RPM_BUILD_ROOT | |
4f596608 | 190 | install -d $RPM_BUILD_ROOT{/sbin,%{_sbindir},%{_mandir}/man{5,8}} \ |
4f5693d9 | 191 | $RPM_BUILD_ROOT%{_sysconfdir}/{rc.d/init.d,sysconfig} \ |
0048f570 | 192 | $RPM_BUILD_ROOT%{_var}/lib/nfs/{rpc_pipefs,v4recovery,statd} |
1bc6345f | 193 | |
e4300aca | 194 | %{__make} install \ |
4f5693d9 | 195 | DESTDIR=$RPM_BUILD_ROOT |
1bc6345f | 196 | |
6a066142 JR |
197 | cat >$RPM_BUILD_ROOT%{_sbindir}/start-statd <<EOF |
198 | #!/bin/sh | |
199 | # mount.nfs calls this script when mounting a filesystem with locking | |
200 | # enabled, but when statd does not seem to be running (based on | |
201 | # /var/run/rpc.statd.pid). | |
202 | exec /sbin/service nfslock start | |
203 | EOF | |
204 | ||
205 | sed -e "s|#!/bin/bash|#!/bin/sh|" utils/gssd/gss_destroy_creds > $RPM_BUILD_ROOT%{_sbindir}/gss_destroy_creds | |
206 | ||
0048f570 | 207 | mv $RPM_BUILD_ROOT%{_sbindir}/rpcdebug $RPM_BUILD_ROOT/sbin |
4f5693d9 JR |
208 | install utils/idmapd/idmapd.conf $RPM_BUILD_ROOT%{_sysconfdir}/ |
209 | ||
1bc6345f JR |
210 | install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/nfs |
211 | install %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/nfslock | |
75e03a22 JR |
212 | install %{SOURCE4} $RPM_BUILD_ROOT/etc/rc.d/init.d/nfsfs |
213 | install %{SOURCE5} $RPM_BUILD_ROOT/etc/rc.d/init.d/idmapd | |
214 | install %{SOURCE6} $RPM_BUILD_ROOT/etc/rc.d/init.d/gssd | |
215 | install %{SOURCE7} $RPM_BUILD_ROOT/etc/rc.d/init.d/svcgssd | |
216 | install %{SOURCE8} $RPM_BUILD_ROOT/etc/sysconfig/nfsd | |
217 | install %{SOURCE9} $RPM_BUILD_ROOT/etc/sysconfig/nfslock | |
218 | install %{SOURCE10} $RPM_BUILD_ROOT/etc/sysconfig/nfsfs | |
1bc6345f | 219 | |
d48d450b | 220 | > $RPM_BUILD_ROOT%{_var}/lib/nfs/rmtab |
221 | > $RPM_BUILD_ROOT%{_sysconfdir}/exports | |
1bc6345f | 222 | |
727dd6c6 | 223 | rm $RPM_BUILD_ROOT%{_mandir}/man8/rpc.{mountd,nfsd,statd,sm-notify}.8 |
1bc6345f JR |
224 | echo ".so mountd.8" > $RPM_BUILD_ROOT%{_mandir}/man8/rpc.mountd.8 |
225 | echo ".so nfsd.8" > $RPM_BUILD_ROOT%{_mandir}/man8/rpc.nfsd.8 | |
1bc6345f | 226 | echo ".so statd.8" > $RPM_BUILD_ROOT%{_mandir}/man8/rpc.statd.8 |
6a066142 | 227 | echo ".so sm-notify.8" > $RPM_BUILD_ROOT%{_mandir}/man8/rpc.sm-notify.8 |
6986d116 | 228 | %if %{with nfs4} |
a9df4f39 | 229 | rm $RPM_BUILD_ROOT%{_mandir}/man8/rpc.{svcgssd,gssd,idmapd}.8 |
4f5693d9 JR |
230 | echo ".so gssd.8" > $RPM_BUILD_ROOT%{_mandir}/man8/rpc.gssd.8 |
231 | echo ".so idmapd.8" > $RPM_BUILD_ROOT%{_mandir}/man8/rpc.idmapd.8 | |
232 | echo ".so svcgssd.8" > $RPM_BUILD_ROOT%{_mandir}/man8/rpc.svcgssd.8 | |
6986d116 | 233 | %endif |
1bc6345f | 234 | |
9df625b5 | 235 | touch $RPM_BUILD_ROOT/var/lib/nfs/xtab |
1bc6345f | 236 | |
959e2a35 AM |
237 | ln -sf /bin/true $RPM_BUILD_ROOT/sbin/fsck.nfs |
238 | ||
11fad0cc | 239 | cp -a nfs html |
1bc6345f JR |
240 | |
241 | %clean | |
242 | rm -rf $RPM_BUILD_ROOT | |
243 | ||
244 | %post | |
f511a355 | 245 | /sbin/chkconfig --add nfs |
c5c607cb | 246 | %service nfs restart "NFS daemon" |
809898a3 JR |
247 | %if %{with nfs4} |
248 | /sbin/chkconfig --add svcgssd | |
6a066142 | 249 | %service svcgssd restart "RPC svcgssd" |
809898a3 | 250 | %endif |
1bc6345f JR |
251 | |
252 | %preun | |
f511a355 | 253 | if [ "$1" = "0" ]; then |
c5c607cb | 254 | %service nfs stop |
f511a355 | 255 | /sbin/chkconfig --del nfs |
809898a3 JR |
256 | %if %{with nfs4} |
257 | %service svcgssd stop | |
258 | /sbin/chkconfig --del svcgssd | |
259 | %endif | |
f511a355 | 260 | fi |
1bc6345f | 261 | |
e661c6c4 | 262 | %post clients |
f511a355 | 263 | /sbin/chkconfig --add nfsfs |
c5c607cb | 264 | %service nfsfs restart |
809898a3 JR |
265 | %if %{with nfs4} |
266 | /sbin/chkconfig --add gssd | |
6a066142 | 267 | %service gssd restart "RPC gssd" |
809898a3 | 268 | %endif |
e661c6c4 JR |
269 | |
270 | %preun clients | |
f511a355 | 271 | if [ "$1" = "0" ]; then |
c5c607cb | 272 | %service nfsfs stop |
f511a355 | 273 | /sbin/chkconfig --del nfsfs |
809898a3 JR |
274 | %if %{with nfs4} |
275 | %service gssd stop | |
276 | /sbin/chkconfig --del gssd | |
277 | %endif | |
f511a355 | 278 | fi |
e661c6c4 | 279 | |
0048f570 JR |
280 | %pre lock |
281 | %groupadd -g 191 rpcstatd | |
282 | %useradd -u 191 -d /var/lib/nfs/statd -s /bin/false -c "RPC statd user" -g rpcstatd rpcstatd | |
283 | ||
1bc6345f | 284 | %post lock |
f511a355 | 285 | /sbin/chkconfig --add nfslock |
b474bf5e | 286 | %service nfslock restart "RPC statd" |
1bc6345f JR |
287 | |
288 | %preun lock | |
f511a355 | 289 | if [ "$1" = "0" ]; then |
c5c607cb | 290 | %service nfslock stop |
f511a355 | 291 | /sbin/chkconfig --del nfslock |
292 | fi | |
1bc6345f | 293 | |
0048f570 JR |
294 | %postun lock |
295 | if [ "$1" = "0" ]; then | |
296 | %userremove rpcstatd | |
297 | %groupremove rpcstatd | |
298 | fi | |
299 | ||
809898a3 JR |
300 | %if %{with nfs4} |
301 | %post common | |
302 | /sbin/chkconfig --add idmapd | |
6a066142 | 303 | %service idmapd restart "RPC idmapd" |
809898a3 JR |
304 | |
305 | %preun common | |
306 | if [ "$1" = "0" ]; then | |
307 | %service idmapd stop | |
308 | /sbin/chkconfig --del idmapd | |
309 | fi | |
310 | %endif | |
311 | ||
6a066142 | 312 | %triggerpostun -- %{name} <= 1.1.0-0.rc1.1 |
0048f570 | 313 | /sbin/chkconfig nfs reset |
6a066142 JR |
314 | %if %{with nfs4} |
315 | /sbin/chkconfig svcgssd reset | |
316 | %endif | |
0048f570 | 317 | |
6a066142 | 318 | %triggerpostun lock -- %{name}-lock <= 1.1.0-0.rc1.1 |
0048f570 JR |
319 | /sbin/chkconfig nfslock reset |
320 | ||
6a066142 | 321 | %triggerpostun clients -- %{name}-clients < 1.1.0-0.rc1.1 |
11fad0cc ER |
322 | if [ -f /etc/sysconfig/nfsclient.rpmsave ]; then |
323 | mv -f /etc/sysconfig/nfsfs{,.rpmnew} | |
324 | mv -f /etc/sysconfig/nfsclient.rpmsave /etc/sysconfig/nfsfs | |
325 | fi | |
0048f570 | 326 | /sbin/chkconfig nfsfs reset |
6a066142 JR |
327 | %if %{with nfs4} |
328 | /sbin/chkconfig gssd reset | |
329 | %endif | |
330 | ||
331 | %if %{with nfs4} | |
332 | %triggerpostun common -- %{name}-common <= 1.1.0-0.rc1.1 | |
333 | /sbin/chkconfig idmapd reset | |
334 | %endif | |
11fad0cc | 335 | |
1bc6345f JR |
336 | %files |
337 | %defattr(644,root,root,755) | |
4f5693d9 | 338 | %doc ChangeLog README html |
1bc6345f | 339 | %attr(755,root,root) /sbin/rpcdebug |
959e2a35 | 340 | %attr(755,root,root) /sbin/fsck.nfs |
1bc6345f JR |
341 | %attr(755,root,root) %{_sbindir}/exportfs |
342 | %attr(755,root,root) %{_sbindir}/rpc.mountd | |
343 | %attr(755,root,root) %{_sbindir}/rpc.nfsd | |
344 | %attr(755,root,root) %{_sbindir}/nfsstat | |
1bc6345f JR |
345 | |
346 | %attr(754,root,root) /etc/rc.d/init.d/nfs | |
347 | ||
5b70fba4 JB |
348 | %attr(664,root,fileshare) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/exports |
349 | %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/nfsd | |
350 | %config(noreplace) %verify(not md5 mtime size) %{_var}/lib/nfs/xtab | |
351 | %config(noreplace) %verify(not md5 mtime size) %{_var}/lib/nfs/etab | |
352 | %config(noreplace) %verify(not md5 mtime size) %{_var}/lib/nfs/rmtab | |
1bc6345f | 353 | |
8b926d92 AG |
354 | %{_mandir}/man5/exports.5* |
355 | %{_mandir}/man7/nfsd.7* | |
1bc6345f JR |
356 | %{_mandir}/man8/exportfs.8* |
357 | %{_mandir}/man8/mountd.8* | |
358 | %{_mandir}/man8/nfsd.8* | |
359 | %{_mandir}/man8/nfsstat.8* | |
360 | %{_mandir}/man8/rpc.mountd.8* | |
361 | %{_mandir}/man8/rpc.nfsd.8* | |
0048f570 | 362 | %{_mandir}/man8/rpcdebug.8* |
ea4a6f67 | 363 | %if %{with nfs4} |
0048f570 | 364 | %attr(754,root,root) /etc/rc.d/init.d/svcgssd |
ea4a6f67 AM |
365 | %attr(755,root,root) %{_sbindir}/rpc.svcgssd |
366 | %{_mandir}/man8/*svcgss* | |
367 | %endif | |
368 | ||
1bc6345f JR |
369 | %files lock |
370 | %defattr(644,root,root,755) | |
0048f570 | 371 | %attr(700,rpcstatd,rpcstatd) %dir %{_var}/lib/nfs/statd |
1bc6345f | 372 | %attr(755,root,root) %{_sbindir}/rpc.statd |
100fd575 JR |
373 | %attr(755,root,root) %{_sbindir}/sm-notify |
374 | %attr(755,root,root) %{_sbindir}/start-statd | |
1bc6345f | 375 | %attr(754,root,root) /etc/rc.d/init.d/nfslock |
5b70fba4 | 376 | %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/nfslock |
100fd575 | 377 | %{_mandir}/man8/*statd.8* |
6a066142 | 378 | %{_mandir}/man8/*sm-notify.8* |
5b70fba4 | 379 | %config(noreplace) %verify(not md5 mtime size) %{_var}/lib/nfs/state |
1bc6345f JR |
380 | |
381 | %files clients | |
382 | %defattr(644,root,root,755) | |
e661c6c4 | 383 | %attr(754,root,root) /etc/rc.d/init.d/nfsfs |
11fad0cc | 384 | %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/nfsfs |
1bc6345f JR |
385 | %attr(755,root,root) %{_sbindir}/showmount |
386 | %{_mandir}/man8/showmount.8* | |
0048f570 JR |
387 | %if %{with mount} |
388 | %attr(4755,root,root) /sbin/mount.nfs | |
389 | %attr(4755,root,root) /sbin/mount.nfs4 | |
390 | %attr(4755,root,root) /sbin/umount.nfs | |
391 | %attr(4755,root,root) /sbin/umount.nfs4 | |
392 | %{_mandir}/man8/*mount.nfs.8* | |
393 | %endif | |
ea4a6f67 | 394 | %if %{with nfs4} |
0048f570 | 395 | %attr(754,root,root) /etc/rc.d/init.d/gssd |
27439ad6 | 396 | %attr(755,root,root) %{_sbindir}/rpc.gssd |
ea4a6f67 AM |
397 | %{_mandir}/man8/rpc.gssd* |
398 | %{_mandir}/man8/gssd* | |
399 | %endif | |
400 | ||
365015e3 AM |
401 | %files common |
402 | %defattr(644,root,root,755) | |
8d72ec18 AM |
403 | %attr(755,root,root) %dir %{_var}/lib/nfs |
404 | %attr(755,root,root) %dir %{_var}/lib/nfs/rpc_pipefs | |
37308b8e | 405 | %attr(755,root,root) %dir %{_var}/lib/nfs/v4recovery |
0048f570 | 406 | %{_mandir}/man5/nfs* |
8d72ec18 | 407 | %if %{with nfs4} |
0048f570 | 408 | %attr(754,root,root) /etc/rc.d/init.d/idmapd |
27439ad6 JR |
409 | %attr(755,root,root) %{_sbindir}/gss_* |
410 | %attr(755,root,root) %{_sbindir}/rpc.idmapd | |
365015e3 AM |
411 | %attr(660,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/idmapd.conf |
412 | %{_mandir}/man[58]/*idmap* | |
413 | %endif |