forked from rpms/rpcbind
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@redhat.com>
This commit is contained in:
parent
784f00ed44
commit
ab9778ed33
14
rpcbind.spec
14
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@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@redhat.com> - 0.2.2-2.1
|
||||
- Added xlogging debugging to rpcbind
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user