[rpcbind] Use /var/run instead of /var/lib

Steve Dickson steved at fedoraproject.org
Thu Mar 19 17:49:41 UTC 2015


commit ab9778ed33c182534f81a28ebdc7cea866ac794d
Author: Steve Dickson <steved at redhat.com>
Date:   Thu Mar 19 13:48:19 2015 -0400

    Use /var/run instead of /var/lib
    
    Changed RPCBDIR to be /var/run so bindings are perserved
    during upgrades but not reboots.
    
    Signed-off-by: Steve Dickson <steved at redhat.com>

 rpcbind.spec | 14 +++++++++-----
 1 file changed, 9 insertions(+), 5 deletions(-)
---
diff --git a/rpcbind.spec b/rpcbind.spec
index 3eea686..e0051c4 100644
--- a/rpcbind.spec
+++ b/rpcbind.spec
@@ -1,6 +1,6 @@
 Name:           rpcbind
 Version:        0.2.2
-Release:        2.1%{?dist}
+Release:        2.2%{?dist}
 Summary:        Universal Addresses to RPC Program Number Mapper
 Group:          System Environment/Daemons
 License:        BSD
@@ -47,7 +47,7 @@ PIE="-fpie"
 export PIE
 
 RPCBUSR=rpc
-RPCBDIR=/var/lib/rpcbind
+RPCBDIR=/var/run/rpcbind
 CFLAGS="`echo $RPM_OPT_FLAGS $ARCH_OPT_FLAGS $PIE`"
 
 autoreconf -fisv
@@ -65,7 +65,7 @@ rm -rf %{buildroot}
 mkdir -p %{buildroot}{/sbin,/usr/sbin,/etc/sysconfig}
 mkdir -p %{buildroot}%{_unitdir}
 mkdir -p %{buildroot}%{_mandir}/man8
-mkdir -p %{buildroot}/var/lib/rpcbind
+mkdir -p %{buildroot}/var/run/rpcbind
 make DESTDIR=$RPM_BUILD_ROOT install
 
 mv -f ${RPM_BUILD_ROOT}%{_bindir}/rpcbind ${RPM_BUILD_ROOT}/sbin
@@ -103,7 +103,7 @@ fi
 if [ $1 -eq 0 ]; then
 	/usr/sbin/userdel  rpc 2>/dev/null || :
 	/usr/sbin/groupdel rpc 2>/dev/null || :
-	/usr/bin/rm -f /var/lib/rpcbind/*
+	/usr/bin/rm -f /var/run/rpcbind/*
 fi
 
 %postun
@@ -125,9 +125,13 @@ fi
 %{_unitdir}/rpcbind.service
 %{_unitdir}/rpcbind.socket
 
-%dir %attr(700,rpc,rpc) /var/lib/rpcbind
+%dir %attr(700,rpc,rpc) /var/run/rpcbind
 
 %changelog
+* Thu Mar 19 2015 Steve Dickson <steved at redhat.com> - 0.2.2-2.2
+- Changed RPCBDIR to be /var/run so bindings are perserved
+  during upgrades but not reboots.
+
 * Thu Feb  5 2015 Steve Dickson <steved at redhat.com> - 0.2.2-2.1
 - Added xlogging debugging to rpcbind
 


More information about the scm-commits mailing list