1 Summary: NFS utlilities and supporting daemons for the kernel NFS server.
5 Source0: ftp://nfs.sourceforge.net/pub/nfs/%{name}-%{version}.tar.gz
6 Group: System Environment/Daemons
9 Obsoletes: knfsd-clients
10 Obsoletes: nfs-server-clients
13 Provides: nfs-server-clients
15 Provides: knfsd-clients
18 Buildroot: /var/tmp/%{name}-root
19 Requires: kernel >= 2.2.7, portmap >= 4.0
22 The nfs-utils package provides a daemon for the kernel NFS server and
23 related tools, which provides a much higher level of performance than the
24 traditional Linux NFS server used by most users.
26 This package also contains the showmount program. Showmount queries the
27 mount daemon on a remote host for information about the NFS (Network File
28 System) server on the remote host. For example, showmount can display the
29 clients which are mounted on that host.
35 CFLAGS="$RPM_OPT_FLAGS" ./configure
39 rm -rf $RPM_BUILD_ROOT
40 mkdir -p $RPM_BUILD_ROOT{/sbin,/usr/{sbin,man/man5,man/man8}}
41 mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d
42 make install install_prefix=$RPM_BUILD_ROOT
43 install -s -m 755 tools/rpcdebug/rpcdebug $RPM_BUILD_ROOT/sbin
44 install -m 755 etc/redhat/nfs.init $RPM_BUILD_ROOT/etc/rc.d/init.d/nfs
45 install -m 755 etc/redhat/nfslock.init $RPM_BUILD_ROOT/etc/rc.d/init.d/nfslock
46 touch $RPM_BUILD_ROOT/var/lib/nfs/rmtab
47 mv $RPM_BUILD_ROOT/usr/sbin/{rpc.lockd,rpc.statd} $RPM_BUILD_ROOT/sbin
50 rm -rf $RPM_BUILD_ROOT
53 /sbin/chkconfig --add nfs
54 /sbin/chkconfig --add nfslock
57 if [ "$1" = "0" ]; then
58 /sbin/chkconfig --del nfs
59 /sbin/chkconfig --del nfslock
62 %triggerpostun -- nfs-server
63 /sbin/chkconfig --add nfs
65 %triggerpostun -- knfsd
66 /sbin/chkconfig --add nfs
68 %triggerpostun -- knfsd-clients
69 /sbin/chkconfig --add nfslock
73 %config /etc/rc.d/init.d/nfs
75 %config(noreplace) /var/lib/nfs/xtab
76 %config(noreplace) /var/lib/nfs/etab
77 %config(noreplace) /var/lib/nfs/rmtab
89 %config /etc/rc.d/init.d/nfslock