1 # We don't use libtool.
4 Summary: NFS utlilities and supporting daemons for the kernel NFS server.
8 Source0: ftp://nfs.sourceforge.net/pub/nfs/%{name}-%{version}.tar.gz
9 Group: System Environment/Daemons
12 Obsoletes: knfsd-clients
13 Obsoletes: nfs-server-clients
16 Provides: nfs-server-clients
18 Provides: knfsd-clients
21 Buildroot: /var/tmp/%{name}-root
22 Requires: kernel >= 2.2.7, portmap >= 4.0
25 The nfs-utils package provides a daemon for the kernel NFS server and
26 related tools, which provides a much higher level of performance than the
27 traditional Linux NFS server used by most users.
29 This package also contains the showmount program. Showmount queries the
30 mount daemon on a remote host for information about the NFS (Network File
31 System) server on the remote host. For example, showmount can display the
32 clients which are mounted on that host.
38 %if %{_target_cpu} != %{_build_cpu}
40 BUILD_CC=gcc; export BUILD_CC
41 %configure --build=%{__build_alias}
48 rm -rf $RPM_BUILD_ROOT
49 mkdir -p $RPM_BUILD_ROOT/{/sbin,/usr/sbin}
50 mkdir -p $RPM_BUILD_ROOT%{_mandir}/{man5,man8}
51 mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d
52 mkdir -p $RPM_BUILD_ROOT/var/lib/nfs
53 make install_prefix=$RPM_BUILD_ROOT MANDIR=$RPM_BUILD_ROOT%{_mandir} SBINDIR=$RPM_BUILD_ROOT%{_prefix}/sbin install
54 install -s -m 755 tools/rpcdebug/rpcdebug $RPM_BUILD_ROOT/sbin
55 install -m 755 etc/redhat/nfs.init $RPM_BUILD_ROOT/etc/rc.d/init.d/nfs
56 install -m 755 etc/redhat/nfslock.init $RPM_BUILD_ROOT/etc/rc.d/init.d/nfslock
57 touch $RPM_BUILD_ROOT/var/lib/nfs/rmtab
58 mv $RPM_BUILD_ROOT/usr/sbin/{rpc.lockd,rpc.statd} $RPM_BUILD_ROOT/sbin
61 rm -rf $RPM_BUILD_ROOT
64 /sbin/chkconfig --add nfs
65 /sbin/chkconfig --add nfslock
68 if [ "$1" = "0" ]; then
69 /sbin/chkconfig --del nfs
70 /sbin/chkconfig --del nfslock
73 %triggerpostun -- nfs-server
74 /sbin/chkconfig --add nfs
76 %triggerpostun -- knfsd
77 /sbin/chkconfig --add nfs
79 %triggerpostun -- knfsd-clients
80 /sbin/chkconfig --add nfslock
84 %config /etc/rc.d/init.d/nfs
86 %config(noreplace) /var/lib/nfs/xtab
87 %config(noreplace) /var/lib/nfs/etab
88 %config(noreplace) /var/lib/nfs/rmtab
100 %config /etc/rc.d/init.d/nfslock
101 %doc README ChangeLog COPYING