2 # - should unmount /proc/fs/nfsd at package uninstall (or in service nfs stop)
5 %bcond_without nfs4 # without NFSv4 support
7 Summary: Kernel NFS server
8 Summary(pl): Dzia³aj±cy na poziomie j±dra serwer NFS
9 Summary(pt_BR): Os utilitários para o cliente e servidor NFS do Linux
10 Summary(ru): õÔÉÌÉÔÙ ÄÌÑ NFS É ÄÅÍÏÎÙ ÐÏÄÄÅÒÖËÉ ÄÌÑ NFS-ÓÅÒ×ÅÒÁ ÑÄÒÁ
11 Summary(uk): õÔÉ̦ÔÉ ÄÌÑ NFS ÔÁ ÄÅÍÏÎÉ Ð¦ÄÔÒÉÍËÉ ÄÌÑ NFS-ÓÅÒ×ÅÒÁ ÑÄÒÁ
16 Group: Networking/Daemons
17 Source0: http://dl.sourceforge.net/nfs/%{name}-%{version}.tar.gz
18 # Source0-md5: 74fc2dd04b40c9d619ca41d3787ef8db
19 Source1: ftp://ftp.linuxnfs.sourceforge.org/pub/nfs/nfs.doc.tar.gz
20 # Source1-md5: ae7db9c61c5ad04f83bb99e5caed73da
24 Source5: nfs.sysconfig
25 Source6: nfslock.sysconfig
26 Source7: rquotad.sysconfig
28 Source9: nfsfs.sysconfig
29 Patch0: %{name}-eepro-support.patch
30 Patch1: %{name}-install.patch
31 Patch2: %{name}-nolibs.patch
32 Patch3: %{name}-heimdal.patch
33 Patch4: %{name}-heimdal-internals.patch
34 Patch5: http://www.citi.umich.edu/projects/nfsv4/linux/nfs-utils-patches/1.0.8-1/%{name}-1.0.8-CITI_NFS4_ALL-1.dif
35 URL: http://nfs.sourceforge.net/
36 BuildRequires: autoconf
37 BuildRequires: automake
39 BuildRequires: heimdal-devel >= 0.7
40 BuildRequires: libevent-devel >= 1.1a
41 BuildRequires: libnfsidmap-devel
42 BuildRequires: librpcsecgss-devel >= 0.11-3
44 BuildRequires: libwrap-devel
45 BuildRequires: sed >= 4.0
46 Requires(post): fileutils
47 Requires(post): sed >= 4.0
48 Requires(post,preun): /sbin/chkconfig
49 Requires: %{name}-common = %{version}-%{release}
50 Requires: portmap >= 4.0
51 Requires: rc-scripts >= 0.4.0
52 Requires: setup >= 2.4.6-7
57 Conflicts: kernel < 2.2.5
59 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
62 This is the *new* kernel NFS server and related tools. It provides a
63 much higher level of performance than the traditional Linux user-land
67 To jest *nowy* dzia³aj±cy na poziomie j±dra serwer NFS oraz zwi±zane z
68 nim narzêdzia. Serwer ten dostarcza znacznie wiêksz± wydajno¶æ ni¿
69 tradycyjny, dzia³aj±cy na poziomie u¿ytkownika serwer NFS.
72 O pacote nfs-utils provê os utilitários para o cliente e servidor NFS
76 ðÁËÅÔ nfs-utils ÐÒÅÄÏÓÔÁ×ÌÑÅÔ ÄÅÍÏÎÁ ÄÌÑ NFS-ÓÅÒ×ÅÒÁ, ×ËÌÀÞÅÎÎÏÇÏ ×
77 ÑÄÒÏ, É ÓÏÐÕÔÓÔ×ÕÀÝÉÅ ÕÔÉÌÉÔÙ, ËÏÔÏÒÙÅ ÏÂÅÓÐÅÞÉ×ÁÀÔ ÎÁÍÎÏÇÏ ÂÏÌØÛÕÀ
78 ÐÒÏÉÚ×ÏÄÉÔÅÌØÎÏÓÔØ, ÞÅÍ ÔÒÁÄÉÃÉÏÎÎÙÅ Linux NFS-ÓÅÒ×ÅÒÁ, ÉÓÐÏÌØÚÕÅÍÙÅ
79 ÂÏÌØÛÉÎÓÔ×ÏÍ ÐÏÌØÚÏ×ÁÔÅÌÅÊ.
82 ðÁËÅÔ nfs-utils ÎÁÄÁ¤ ÄÅÍÏÎÁ ÄÌÑ NFS-ÓÅÒ×ÅÒÁ, ×ÂÕÄÏ×ÁÎÏÇÏ × ÑÄÒÏ, ÔÁ
83 ÓÕÐÕÔΦ ÕÔÉ̦ÔÉ, Ñ˦ ÚÁÂÅÚÐÅÞÕÀÔØ ÎÁÂÁÇÁÔÏ Â¦ÌØÛÕ ÐÒÏÄÕËÔÉ×ΦÓÔØ, ΦÖ
84 ÔÒÁÄÉæÊΦ Linux NFS-ÓÅÒ×ÅÒÉ, Ñ˦ ×ÉËÏÒÉÓÔÏ×Õ¤ ¦ÌØÛ¦ÓÔØ ËÏÒÉÓÔÕ×ÁÞ¦×.
87 Summary: Clients for connecting to a remote NFS server
88 Summary(pl): Klienci do ³±czenia siê ze zdalnym serwerem NFS
90 Requires(post,preun): /sbin/chkconfig
91 Requires: %{name}-common = %{version}-%{release}
94 Provides: nfs-server-clients
96 Obsoletes: knfsd-clients
97 Obsoletes: nfs-server-clients
101 The nfs-server-clients package contains the showmount program.
102 Showmount queries the mount daemon on a remote host for information
103 about the NFS (Network File System) server on the remote host. For
104 example, showmount can display the clients which are mounted on that
105 host. This package is not needed to mount NFS volumes.
107 %description clients -l pl
108 Pakiet zawiera program showmount s³u¿±cy do odpytywania serwera NFS.
109 Showmount pyta demona na zdalnej maszynie o informacje NFS na zdalnym
110 ho¶cie. Na przyk³ad, showmount potrafi pokazaæ klientów, którzy s±
111 zamountowani na tym serwerze. Ten pakiet nie jest konieczny do
112 zamountowania zasobów NFS.
115 Summary: Programs for NFS file locking
116 Summary(pl): Programy do obs³ugi blokowania plików poprzez NFS (lock)
118 Requires(post,preun): /sbin/chkconfig
119 #Requires: kernel >= 2.2.5
120 Requires: portmap >= 4.0
123 Obsoletes: knfsd-lock
127 The nfs-lock pacage contains programs which support the NFS file lock.
128 Install nfs-lock if you want to use file lock over NFS.
130 %description lock -l pl
131 Ten pakiet zawiera programy umo¿liwiaj±ce wykonywanie blokowania
132 plików (file locking) poprzez NFS.
135 Summary: Remote quota server
136 Summary(pl): Zdalny serwer quota
137 Group: Networking/Daemons
138 Requires(post,preun): /sbin/chkconfig
140 Obsoletes: quota-rquotad
143 rquotad is an rpc(3N) server which returns quotas for a user of a
144 local file system which is mounted by a remote machine over the NFS.
145 The results are used by quota(1) to display user quotas for remote
148 %description rquotad -l pl
149 rquotad jest serverem rpc(3N), który zwraca quoty u¿ytkownika
150 lokalnego systemu plików, który jest zamountowany przez zdaln± maszynê
151 poprzez NFS. Rezultaty s± u¿ywane przez quota(1), aby wy¶wietliæ quotê
152 dla zdalnego systemu plików.
155 Summary: Common programs for NFS
156 Summary(pl): Wspólne programy do obs³ugi NFS
160 Common programs for NFS.
162 %description common -l pl
163 Wspólne programy do obs³ugi NFS.
175 %if "%{_lib}" == "lib64"
176 sed -i -e 's#/lib/#/%{_lib}/#g' aclocal/kerberos5.m4
178 sed -i -e 's#libroken.a#libroken.so#g' aclocal/kerberos5.m4
179 %{__aclocal} -I aclocal
185 --with-krb5=%{_prefix} \
192 --enable-secure-statd \
193 --with-statedir=/var/lib/nfs
198 rm -rf $RPM_BUILD_ROOT
199 install -d $RPM_BUILD_ROOT{/sbin,%{_sbindir},%{_mandir}/man{5,8}} \
200 $RPM_BUILD_ROOT%{_sysconfdir}/{rc.d/init.d,sysconfig} \
201 $RPM_BUILD_ROOT%{_var}/lib/nfs/{rpc_pipefs,v4recovery}
204 DESTDIR=$RPM_BUILD_ROOT
206 install tools/rpcdebug/rpcdebug $RPM_BUILD_ROOT/sbin
207 install utils/idmapd/idmapd.conf $RPM_BUILD_ROOT%{_sysconfdir}/
209 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/nfs
210 install %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/nfslock
211 install %{SOURCE4} $RPM_BUILD_ROOT/etc/rc.d/init.d/rquotad
212 install %{SOURCE8} $RPM_BUILD_ROOT/etc/rc.d/init.d/nfsfs
213 install %{SOURCE5} $RPM_BUILD_ROOT/etc/sysconfig/nfsd
214 install %{SOURCE6} $RPM_BUILD_ROOT/etc/sysconfig/nfslock
215 install %{SOURCE7} $RPM_BUILD_ROOT/etc/sysconfig/rquotad
216 install %{SOURCE9} $RPM_BUILD_ROOT/etc/sysconfig/nfsclient
218 > $RPM_BUILD_ROOT%{_var}/lib/nfs/rmtab
219 > $RPM_BUILD_ROOT%{_sysconfdir}/exports
221 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/rpc.{mountd,nfsd,rquotad,statd,lockd,svcgssd,gssd,idmapd}.8
222 rm -f $RPM_BUILD_ROOT%{_mandir}/man5/rpc.idmapd.conf.5
223 echo ".so lockd.8" > $RPM_BUILD_ROOT%{_mandir}/man8/rpc.lockd.8
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
226 echo ".so rquotad.8" > $RPM_BUILD_ROOT%{_mandir}/man8/rpc.rquotad.8
227 echo ".so statd.8" > $RPM_BUILD_ROOT%{_mandir}/man8/rpc.statd.8
229 echo ".so gssd.8" > $RPM_BUILD_ROOT%{_mandir}/man8/rpc.gssd.8
230 echo ".so idmapd.8" > $RPM_BUILD_ROOT%{_mandir}/man8/rpc.idmapd.8
231 echo ".so svcgssd.8" > $RPM_BUILD_ROOT%{_mandir}/man8/rpc.svcgssd.8
232 echo ".so idmapd.conf.5" > $RPM_BUILD_ROOT%{_mandir}/man5/rpc.idmapd.conf.5
235 touch $RPM_BUILD_ROOT/var/lib/nfs/xtab
237 ln -sf /bin/true $RPM_BUILD_ROOT/sbin/fsck.nfs
242 rm -rf $RPM_BUILD_ROOT
245 /sbin/chkconfig --add nfs
246 %service nfs restart "NFS daemon"
249 if [ "$1" = "0" ]; then
251 /sbin/chkconfig --del nfs
255 /sbin/chkconfig --add nfsfs
256 %service nfsfs restart
259 if [ "$1" = "0" ]; then
261 /sbin/chkconfig --del nfsfs
265 /sbin/chkconfig --add nfslock
266 %service nfslock restart "nfslock daemon"
269 if [ "$1" = "0" ]; then
270 %service nfslock stop
271 /sbin/chkconfig --del nfslock
275 /sbin/chkconfig --add rquotad
276 %service rquotad restart "NFS quota daemon"
279 if [ "$1" = "0" ]; then
280 %service rquotad stop
281 /sbin/chkconfig --del rquotad
285 %defattr(644,root,root,755)
286 %doc ChangeLog README html
287 %attr(755,root,root) /sbin/rpcdebug
288 %attr(755,root,root) /sbin/fsck.nfs
289 %attr(755,root,root) %{_sbindir}/exportfs
290 %attr(755,root,root) %{_sbindir}/rpc.mountd
291 %attr(755,root,root) %{_sbindir}/rpc.nfsd
292 %attr(755,root,root) %{_sbindir}/nfsstat
293 %attr(755,root,root) %{_sbindir}/nhfsgraph
294 %attr(755,root,root) %{_sbindir}/nhfsnums
295 %attr(755,root,root) %{_sbindir}/nhfsrun
296 %attr(755,root,root) %{_sbindir}/nhfsstone
298 %attr(754,root,root) /etc/rc.d/init.d/nfs
300 %attr(664,root,fileshare) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/exports
301 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/nfsd
302 %config(noreplace) %verify(not md5 mtime size) %{_var}/lib/nfs/xtab
303 %config(noreplace) %verify(not md5 mtime size) %{_var}/lib/nfs/etab
304 %config(noreplace) %verify(not md5 mtime size) %{_var}/lib/nfs/rmtab
306 %{_mandir}/man5/exports.5*
307 %{_mandir}/man7/nfsd.7*
308 %{_mandir}/man8/exportfs.8*
309 %{_mandir}/man8/mountd.8*
310 %{_mandir}/man8/nhfsgraph.8*
311 %{_mandir}/man8/nhfsnums.8*
312 %{_mandir}/man8/nhfsrun.8*
313 %{_mandir}/man8/nhfsstone.8*
314 %{_mandir}/man8/nfsd.8*
315 %{_mandir}/man8/nfsstat.8*
316 %{_mandir}/man8/rpc.mountd.8*
317 %{_mandir}/man8/rpc.nfsd.8*
319 %attr(755,root,root) %{_sbindir}/rpc.svcgssd
320 %{_mandir}/man8/*svcgss*
324 %defattr(644,root,root,755)
325 %attr(755,root,root) %{_sbindir}/rpc.lockd
326 %attr(755,root,root) %{_sbindir}/rpc.statd
327 %attr(754,root,root) /etc/rc.d/init.d/nfslock
328 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/nfslock
329 %{_mandir}/man8/rpc.lockd.8*
330 %{_mandir}/man8/lockd.8*
331 %{_mandir}/man8/rpc.statd.8*
332 %{_mandir}/man8/statd.8*
333 %config(noreplace) %verify(not md5 mtime size) %{_var}/lib/nfs/state
336 %defattr(644,root,root,755)
337 %attr(754,root,root) /etc/rc.d/init.d/nfsfs
338 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/nfsclient
339 %attr(755,root,root) %{_sbindir}/showmount
340 %{_mandir}/man8/showmount.8*
343 %attr(755,root,root) %{_sbindir}/rpc.gssd
344 %{_mandir}/man8/rpc.gssd*
345 %{_mandir}/man8/gssd*
349 #%defattr(644,root,root,755)
350 #%attr(755,root,root) %{_sbindir}/rpc.rquotad
351 #%attr(754,root,root) /etc/rc.d/init.d/rquotad
352 #%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rquotad
353 #%%{_mandir}/man8/rpc.rquotad.8*
356 %defattr(644,root,root,755)
357 %attr(755,root,root) %dir %{_var}/lib/nfs
358 %attr(755,root,root) %dir %{_var}/lib/nfs/rpc_pipefs
359 %attr(755,root,root) %dir %{_var}/lib/nfs/v4recovery
361 %attr(755,root,root) %{_sbindir}/gss_*
362 %attr(755,root,root) %{_sbindir}/rpc.idmapd
363 %attr(660,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/idmapd.conf
364 %{_mandir}/man[58]/*idmap*