From ef7bedc026e0d1ab333cf26c450dc0138f55e9d4 Mon Sep 17 00:00:00 2001 From: Steve Dickson Date: Sun, 27 Jul 2014 16:25:23 -0400 Subject: [PATCH] Use _statdpath to define where statd's state lives Signed-off-by: Steve Dickson --- nfs-utils.spec | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/nfs-utils.spec b/nfs-utils.spec index a7dfb0a..596549e 100644 --- a/nfs-utils.spec +++ b/nfs-utils.spec @@ -95,13 +95,15 @@ export PIE sh -x autogen.sh CFLAGS="`echo $RPM_OPT_FLAGS $ARCH_OPT_FLAGS $PIE -D_FILE_OFFSET_BITS=64`" + +%define _statdpath /var/lib/nfs/statd %configure \ CFLAGS="$CFLAGS" \ CPPFLAGS="$DEFINES" \ LDFLAGS="-pie" \ --enable-mountconfig \ --enable-ipv6 \ - --with-statdpath=/var/lib/nfs/statd \ + --with-statdpath=%{_statdpath} \ --enable-libmount-mount make %{?_smp_mflags} all @@ -242,7 +244,7 @@ fi %dir %attr(700,rpcuser,rpcuser) %{_sharedstatedir}/nfs/statd %dir %attr(700,rpcuser,rpcuser) %{_sharedstatedir}/nfs/statd/sm %dir %attr(700,rpcuser,rpcuser) %{_sharedstatedir}/nfs/statd/sm.bak -%config(noreplace) %attr(644,rpcuser,rpcuser) %{_sharedstatedir}/nfs/state +%config(noreplace) %attr(644,rpcuser,rpcuser) %{_statdpath}/state %config(noreplace) %{_sharedstatedir}/nfs/xtab %config(noreplace) %{_sharedstatedir}/nfs/etab %config(noreplace) %{_sharedstatedir}/nfs/rmtab @@ -278,8 +280,9 @@ fi /sbin/umount.nfs4 %changelog -* Fri Jul 25 2014 Steve Dickson 1.3.0-5.0 +* Sun Jul 27 2014 Steve Dickson 1.3.0-5.0 - Updated to latest upstream RC release: nfs-utils-1-3-1-rc2 +- Use _statdpath to define where statd's state lives * Tue Jul 01 2014 Jeff Layton - 1:1.3.0-4.0 - clean up lockd configuration