]> git.decadent.org.uk Git - nfs-utils.git/blob - nfs-utils.spec.in
2000-05-18 H.J. Lu <hjl@lucon.org>
[nfs-utils.git] / nfs-utils.spec.in
1 Summary: NFS utlilities and supporting daemons for the kernel NFS server.
2 Name: nfs-utils
3 Version: @VERSION@
4 Release: 1
5 Source0: ftp://nfs.sourceforge.net/pub/nfs/%{name}-%{version}.tar.gz
6 Group: System Environment/Daemons
7 Obsoletes: nfs-server
8 Obsoletes: knfsd
9 Obsoletes: knfsd-clients
10 Obsoletes: nfs-server-clients 
11 Obsoletes: knfsd-lock
12 Provides: nfs-server 
13 Provides: nfs-server-clients 
14 Provides: knfsd-lock 
15 Provides: knfsd-clients 
16 Provides: knfsd
17 Copyright: GPL
18 Buildroot: /var/tmp/%{name}-root
19 Requires: kernel >= 2.2.7, portmap >= 4.0
20
21 %description
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.
25
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.
30
31 %prep
32 %setup -q
33
34 %build
35 CFLAGS="$RPM_OPT_FLAGS" ./configure
36 make all
37
38 %install
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
48
49 %clean
50 rm -rf $RPM_BUILD_ROOT
51
52 %post
53 /sbin/chkconfig --add nfs
54 /sbin/chkconfig --add nfslock
55
56 %preun
57 if [ "$1" = "0" ]; then
58     /sbin/chkconfig --del nfs
59     /sbin/chkconfig --del nfslock
60 fi
61
62 %triggerpostun -- nfs-server
63 /sbin/chkconfig --add nfs
64
65 %triggerpostun -- knfsd
66 /sbin/chkconfig --add nfs
67
68 %triggerpostun -- knfsd-clients
69 /sbin/chkconfig --add nfslock
70
71 %files
72 %defattr(-,root,root)
73 %config /etc/rc.d/init.d/nfs
74 %dir /var/lib/nfs
75 %config(noreplace) /var/lib/nfs/xtab
76 %config(noreplace) /var/lib/nfs/etab
77 %config(noreplace) /var/lib/nfs/rmtab
78 /sbin/rpcdebug
79 /sbin/rpc.lockd
80 /sbin/rpc.statd
81 /usr/sbin/exportfs
82 /usr/sbin/nfsstat
83 /usr/sbin/nhfsstone
84 /usr/sbin/rpc.mountd
85 /usr/sbin/rpc.nfsd
86 /usr/sbin/rpc.rquotad
87 /usr/sbin/showmount
88 /usr/man/man?/*
89 %config /etc/rc.d/init.d/nfslock
90 %doc README