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.UTF-8): Działający na poziomie jądra serwer NFS
9 Summary(pt_BR.UTF-8): Os utilitários para o cliente e servidor NFS do Linux
10 Summary(ru.UTF-8): Утилиты для NFS и демоны поддержки для NFS-сервера ядра
11 Summary(uk.UTF-8): Утиліти для NFS та демони підтримки для NFS-сервера ядра
16 Group: Networking/Daemons
17 Source0: http://dl.sourceforge.net/nfs/%{name}-%{version}.tar.gz
18 # Source0-md5: acf3656cec3872deb597aa7ac13f3c3a
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}-heimdal.patch
32 Patch3: %{name}-heimdal-internals.patch
33 # http://www.citi.umich.edu/projects/nfsv4/linux/nfs-utils-patches/
34 #Patch4: %{name}-1.0.11-CITI_NFS4_ALL-1.dif
35 Patch4: %{name}-CITI_NFS4.patch
36 Patch5: %{name}-mountd-leak.patch
37 URL: http://nfs.sourceforge.net/
38 BuildRequires: autoconf >= 2.59
39 BuildRequires: automake
41 BuildRequires: e2fsprogs-devel >= 1.39-5
43 BuildRequires: heimdal-devel >= 0.7
44 BuildRequires: libevent-devel >= 1.2
45 BuildRequires: libnfsidmap-devel
46 BuildRequires: librpcsecgss-devel >= 0.11-3
48 BuildRequires: libtool
49 BuildRequires: libwrap-devel
50 BuildRequires: pkgconfig
51 BuildRequires: sed >= 4.0
52 Requires(post): fileutils
53 Requires(post): sed >= 4.0
54 Requires(post,preun): /sbin/chkconfig
55 Requires: %{name}-common = %{version}-%{release}
56 Requires: portmap >= 4.0
57 Requires: rc-scripts >= 0.4.0
58 Requires: setup >= 2.4.6-7
63 Conflicts: kernel < 2.2.5
65 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
68 This is the *new* kernel NFS server and related tools. It provides a
69 much higher level of performance than the traditional Linux user-land
72 %description -l pl.UTF-8
73 To jest *nowy* działający na poziomie jądra serwer NFS oraz związane z
74 nim narzędzia. Serwer ten dostarcza znacznie większą wydajność niż
75 tradycyjny, działający na poziomie użytkownika serwer NFS.
77 %description -l pt_BR.UTF-8
78 O pacote nfs-utils provê os utilitários para o cliente e servidor NFS
81 %description -l ru.UTF-8
82 Пакет nfs-utils предоставляет демона для NFS-сервера, включенного в
83 ядро, и сопутствующие утилиты, которые обеспечивают намного большую
84 производительность, чем традиционные Linux NFS-сервера, используемые
85 большинством пользователей.
87 %description -l uk.UTF-8
88 Пакет nfs-utils надає демона для NFS-сервера, вбудованого в ядро, та
89 супутні утиліти, які забезпечують набагато більшу продуктивність, ніж
90 традиційні Linux NFS-сервери, які використовує більшість користувачів.
93 Summary: Clients for connecting to a remote NFS server
94 Summary(pl.UTF-8): Klienci do łączenia się ze zdalnym serwerem NFS
96 Requires(post,preun): /sbin/chkconfig
97 Requires: %{name}-common = %{version}-%{release}
100 Provides: nfs-server-clients
102 Obsoletes: knfsd-clients
103 Obsoletes: nfs-server-clients
107 The nfs-server-clients package contains the showmount program.
108 Showmount queries the mount daemon on a remote host for information
109 about the NFS (Network File System) server on the remote host. For
110 example, showmount can display the clients which are mounted on that
111 host. This package is not needed to mount NFS volumes.
113 %description clients -l pl.UTF-8
114 Pakiet zawiera program showmount służący do odpytywania serwera NFS.
115 Showmount pyta demona na zdalnej maszynie o informacje NFS na zdalnym
116 hoście. Na przykład, showmount potrafi pokazać klientów, którzy są
117 zamountowani na tym serwerze. Ten pakiet nie jest konieczny do
118 zamountowania zasobów NFS.
121 Summary: Programs for NFS file locking
122 Summary(pl.UTF-8): Programy do obsługi blokowania plików poprzez NFS (lock)
124 Requires(post,preun): /sbin/chkconfig
125 #Requires: kernel >= 2.2.5
126 Requires: portmap >= 4.0
129 Obsoletes: knfsd-lock
133 The nfs-lock pacage contains programs which support the NFS file lock.
134 Install nfs-lock if you want to use file lock over NFS.
136 %description lock -l pl.UTF-8
137 Ten pakiet zawiera programy umożliwiające wykonywanie blokowania
138 plików (file locking) poprzez NFS.
141 Summary: Remote quota server
142 Summary(pl.UTF-8): Zdalny serwer quota
143 Group: Networking/Daemons
144 Requires(post,preun): /sbin/chkconfig
146 Obsoletes: quota-rquotad
149 rquotad is an rpc(3N) server which returns quotas for a user of a
150 local file system which is mounted by a remote machine over the NFS.
151 The results are used by quota(1) to display user quotas for remote
154 %description rquotad -l pl.UTF-8
155 rquotad jest serverem rpc(3N), który zwraca quoty użytkownika
156 lokalnego systemu plików, który jest zamountowany przez zdalną maszynę
157 poprzez NFS. Rezultaty są używane przez quota(1), aby wyświetlić quotę
158 dla zdalnego systemu plików.
161 Summary: Common programs for NFS
162 Summary(pl.UTF-8): Wspólne programy do obsługi NFS
166 Common programs for NFS.
168 %description common -l pl.UTF-8
169 Wspólne programy do obsługi NFS.
178 rm -f utils/mountd/fsloc.[ch]
183 %if "%{_lib}" == "lib64"
184 sed -i -e 's#/lib/#/%{_lib}/#g' aclocal/kerberos5.m4
186 sed -i -e 's#libroken.a#libroken.so#g' aclocal/kerberos5.m4
187 %{__aclocal} -I aclocal
193 --with-krb5=%{_prefix} \
200 --enable-secure-statd \
201 --with-statedir=/var/lib/nfs \
207 rm -rf $RPM_BUILD_ROOT
208 install -d $RPM_BUILD_ROOT{/sbin,%{_sbindir},%{_mandir}/man{5,8}} \
209 $RPM_BUILD_ROOT%{_sysconfdir}/{rc.d/init.d,sysconfig} \
210 $RPM_BUILD_ROOT%{_var}/lib/nfs/{rpc_pipefs,v4recovery}
213 DESTDIR=$RPM_BUILD_ROOT
215 install tools/rpcdebug/rpcdebug $RPM_BUILD_ROOT/sbin
216 install utils/idmapd/idmapd.conf $RPM_BUILD_ROOT%{_sysconfdir}/
218 install %{SOURCE2} $RPM_BUILD_ROOT/etc/rc.d/init.d/nfs
219 install %{SOURCE3} $RPM_BUILD_ROOT/etc/rc.d/init.d/nfslock
220 install %{SOURCE4} $RPM_BUILD_ROOT/etc/rc.d/init.d/rquotad
221 install %{SOURCE8} $RPM_BUILD_ROOT/etc/rc.d/init.d/nfsfs
222 install %{SOURCE5} $RPM_BUILD_ROOT/etc/sysconfig/nfsd
223 install %{SOURCE6} $RPM_BUILD_ROOT/etc/sysconfig/nfslock
224 install %{SOURCE7} $RPM_BUILD_ROOT/etc/sysconfig/rquotad
225 install %{SOURCE9} $RPM_BUILD_ROOT/etc/sysconfig/nfsfs
227 > $RPM_BUILD_ROOT%{_var}/lib/nfs/rmtab
228 > $RPM_BUILD_ROOT%{_sysconfdir}/exports
230 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/rpc.{mountd,nfsd,rquotad,statd,lockd,svcgssd,gssd,idmapd}.8
231 rm -f $RPM_BUILD_ROOT%{_mandir}/man5/rpc.idmapd.conf.5
232 echo ".so lockd.8" > $RPM_BUILD_ROOT%{_mandir}/man8/rpc.lockd.8
233 echo ".so mountd.8" > $RPM_BUILD_ROOT%{_mandir}/man8/rpc.mountd.8
234 echo ".so nfsd.8" > $RPM_BUILD_ROOT%{_mandir}/man8/rpc.nfsd.8
235 echo ".so rquotad.8" > $RPM_BUILD_ROOT%{_mandir}/man8/rpc.rquotad.8
236 echo ".so statd.8" > $RPM_BUILD_ROOT%{_mandir}/man8/rpc.statd.8
238 echo ".so gssd.8" > $RPM_BUILD_ROOT%{_mandir}/man8/rpc.gssd.8
239 echo ".so idmapd.8" > $RPM_BUILD_ROOT%{_mandir}/man8/rpc.idmapd.8
240 echo ".so svcgssd.8" > $RPM_BUILD_ROOT%{_mandir}/man8/rpc.svcgssd.8
241 echo ".so idmapd.conf.5" > $RPM_BUILD_ROOT%{_mandir}/man5/rpc.idmapd.conf.5
244 touch $RPM_BUILD_ROOT/var/lib/nfs/xtab
246 ln -sf /bin/true $RPM_BUILD_ROOT/sbin/fsck.nfs
252 rm -rf $RPM_BUILD_ROOT
255 /sbin/chkconfig --add nfs
256 %service nfs restart "NFS daemon"
259 if [ "$1" = "0" ]; then
261 /sbin/chkconfig --del nfs
265 /sbin/chkconfig --add nfsfs
266 %service nfsfs restart
269 if [ "$1" = "0" ]; then
271 /sbin/chkconfig --del nfsfs
275 /sbin/chkconfig --add nfslock
276 %service nfslock restart "nfslock daemon"
279 if [ "$1" = "0" ]; then
280 %service nfslock stop
281 /sbin/chkconfig --del nfslock
285 /sbin/chkconfig --add rquotad
286 %service rquotad restart "NFS quota daemon"
289 if [ "$1" = "0" ]; then
290 %service rquotad stop
291 /sbin/chkconfig --del rquotad
294 %triggerpostun clients -- %{name}-clients < 1.0.10-1.2
295 if [ -f /etc/sysconfig/nfsclient.rpmsave ]; then
296 mv -f /etc/sysconfig/nfsfs{,.rpmnew}
297 mv -f /etc/sysconfig/nfsclient.rpmsave /etc/sysconfig/nfsfs
301 %defattr(644,root,root,755)
302 %doc ChangeLog README html
303 %attr(755,root,root) /sbin/rpcdebug
304 %attr(755,root,root) /sbin/fsck.nfs
305 %attr(755,root,root) %{_sbindir}/exportfs
306 %attr(755,root,root) %{_sbindir}/rpc.mountd
307 %attr(755,root,root) %{_sbindir}/rpc.nfsd
308 %attr(755,root,root) %{_sbindir}/nfsstat
310 %attr(754,root,root) /etc/rc.d/init.d/nfs
312 %attr(664,root,fileshare) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/exports
313 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/nfsd
314 %config(noreplace) %verify(not md5 mtime size) %{_var}/lib/nfs/xtab
315 %config(noreplace) %verify(not md5 mtime size) %{_var}/lib/nfs/etab
316 %config(noreplace) %verify(not md5 mtime size) %{_var}/lib/nfs/rmtab
318 %{_mandir}/man5/exports.5*
319 %{_mandir}/man7/nfsd.7*
320 %{_mandir}/man8/exportfs.8*
321 %{_mandir}/man8/mountd.8*
322 %{_mandir}/man8/nfsd.8*
323 %{_mandir}/man8/nfsstat.8*
324 %{_mandir}/man8/rpc.mountd.8*
325 %{_mandir}/man8/rpc.nfsd.8*
327 %attr(755,root,root) %{_sbindir}/rpc.svcgssd
328 %{_mandir}/man8/*svcgss*
332 %defattr(644,root,root,755)
333 %attr(755,root,root) %{_sbindir}/rpc.lockd
334 %attr(755,root,root) %{_sbindir}/rpc.statd
335 %attr(754,root,root) /etc/rc.d/init.d/nfslock
336 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/nfslock
337 %{_mandir}/man8/rpc.lockd.8*
338 %{_mandir}/man8/lockd.8*
339 %{_mandir}/man8/rpc.statd.8*
340 %{_mandir}/man8/statd.8*
341 %config(noreplace) %verify(not md5 mtime size) %{_var}/lib/nfs/state
344 %defattr(644,root,root,755)
345 %attr(754,root,root) /etc/rc.d/init.d/nfsfs
346 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/nfsfs
347 %attr(755,root,root) %{_sbindir}/showmount
348 %{_mandir}/man8/showmount.8*
351 %attr(755,root,root) %{_sbindir}/rpc.gssd
352 %{_mandir}/man8/rpc.gssd*
353 %{_mandir}/man8/gssd*
357 #%defattr(644,root,root,755)
358 #%attr(755,root,root) %{_sbindir}/rpc.rquotad
359 #%attr(754,root,root) /etc/rc.d/init.d/rquotad
360 #%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/rquotad
361 #%%{_mandir}/man8/rpc.rquotad.8*
364 %defattr(644,root,root,755)
365 %attr(755,root,root) %dir %{_var}/lib/nfs
366 %attr(755,root,root) %dir %{_var}/lib/nfs/rpc_pipefs
367 %attr(755,root,root) %dir %{_var}/lib/nfs/v4recovery
369 %attr(755,root,root) %{_sbindir}/gss_*
370 %attr(755,root,root) %{_sbindir}/rpc.idmapd
371 %attr(660,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/idmapd.conf
372 %{_mandir}/man[58]/*idmap*