2 %{?do_rquotad:%define rquotad 1}
4 # We don't use libtool.
7 Summary: NFS utlilities and supporting daemons for the kernel NFS server.
11 Source0: ftp://nfs.sourceforge.net/pub/nfs/%{name}-%{version}.tar.gz
12 Group: System Environment/Daemons
15 Obsoletes: knfsd-clients
16 Obsoletes: nfs-server-clients
19 Provides: nfs-server-clients
21 Provides: knfsd-clients
24 Buildroot: /var/tmp/%{name}-root
25 Requires: kernel >= 2.2.7, portmap >= 4.0
28 The nfs-utils package provides a daemon for the kernel NFS server and
29 related tools, which provides a much higher level of performance than the
30 traditional Linux NFS server used by most users.
32 This package also contains the showmount program. Showmount queries the
33 mount daemon on a remote host for information about the NFS (Network File
34 System) server on the remote host. For example, showmount can display the
35 clients which are mounted on that host.
42 CC_FOR_BUILD=gcc; export CC_FOR_BUILD
47 --build=%{_build_alias}
52 rm -rf $RPM_BUILD_ROOT
53 mkdir -p $RPM_BUILD_ROOT/{/sbin,/usr/sbin}
54 mkdir -p $RPM_BUILD_ROOT%{_mandir}/{man5,man8}
55 mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d
56 mkdir -p $RPM_BUILD_ROOT/var/lib/nfs
57 make install_prefix=$RPM_BUILD_ROOT MANDIR=$RPM_BUILD_ROOT%{_mandir} SBINDIR=$RPM_BUILD_ROOT%{_prefix}/sbin install
58 install -s -m 755 tools/rpcdebug/rpcdebug $RPM_BUILD_ROOT/sbin
59 install -m 755 etc/redhat/nfs.init $RPM_BUILD_ROOT/etc/rc.d/init.d/nfs
60 install -m 755 etc/redhat/nfslock.init $RPM_BUILD_ROOT/etc/rc.d/init.d/nfslock
61 touch $RPM_BUILD_ROOT/var/lib/nfs/rmtab
62 mv $RPM_BUILD_ROOT/usr/sbin/{rpc.lockd,rpc.statd} $RPM_BUILD_ROOT/sbin
65 rm -rf $RPM_BUILD_ROOT
68 /sbin/chkconfig --add nfs
69 /sbin/chkconfig --add nfslock
72 if [ "$1" = "0" ]; then
73 /sbin/chkconfig --del nfs
74 /sbin/chkconfig --del nfslock
77 %triggerpostun -- nfs-server
78 /sbin/chkconfig --add nfs
80 %triggerpostun -- knfsd
81 /sbin/chkconfig --add nfs
83 %triggerpostun -- knfsd-clients
84 /sbin/chkconfig --add nfslock
88 %config /etc/rc.d/init.d/nfs
90 %config(noreplace) /var/lib/nfs/xtab
91 %config(noreplace) /var/lib/nfs/etab
92 %config(noreplace) /var/lib/nfs/rmtab
102 /usr/sbin/rpc.rquotad
106 %config /etc/rc.d/init.d/nfslock
107 %doc README ChangeLog COPYING