]> git.decadent.org.uk Git - nfs-utils.git/blobdiff - nfs-utils.spec
2001-06-27 H.J. Lu <hjl@lucon.org>
[nfs-utils.git] / nfs-utils.spec
index 57de9a42f3f26781639854cc882c38920093e974..e0bb303e413b8269aba8e11d68e088e8ae876f14 100644 (file)
@@ -1,10 +1,13 @@
+%define rquotad 0
+%{?do_rquotad:%define rquotad 1}
+
 # We don't use libtool. 
 %define __libtoolize :
 
 Summary: NFS utlilities and supporting daemons for the kernel NFS server.
 Name: nfs-utils
 Version: 0.3.2
-Release: 6
+Release: 7
 Source0: ftp://nfs.sourceforge.net/pub/nfs/%{name}-%{version}.tar.gz
 Group: System Environment/Daemons
 Obsoletes: nfs-server
@@ -36,8 +39,13 @@ clients which are mounted on that host.
 
 %build
 CC=%{__cc}; export CC
-BUILD_CC=gcc; export BUILD_CC
-%configure --build=%{_build_alias}
+CC_FOR_BUILD=gcc; export CC_FOR_BUILD
+%configure \
+%if !%{rquotad}
+       --disable-rquotad \
+%endif
+       --build=%{_build_alias}
+
 make all
 
 %install
@@ -90,7 +98,9 @@ fi
 /usr/sbin/nhfsstone
 /usr/sbin/rpc.mountd
 /usr/sbin/rpc.nfsd
+%if %{rquotad}
 /usr/sbin/rpc.rquotad
+%endif
 /usr/sbin/showmount
 %{_mandir}/man?/*
 %config /etc/rc.d/init.d/nfslock