1
0
forked from rpms/rpcbind

Change RPCBDIR to be /tmp since that will exist after a

reboot and bindings wil be perserved during upgrades
but not reboots.

Signed-off-by: Steve Dickson <steved@redhat.com>
This commit is contained in:
Steve Dickson 2015-04-28 13:28:35 -04:00
parent da84a3ccd7
commit ce0dd7efdf

View File

@ -41,7 +41,7 @@ PIE="-fpie"
export PIE
RPCBUSR=rpc
RPCBDIR=/var/run/rpcbind
RPCBDIR=/tmp
CFLAGS="`echo $RPM_OPT_FLAGS $ARCH_OPT_FLAGS $PIE`"
autoreconf -fisv
@ -59,7 +59,6 @@ rm -rf %{buildroot}
mkdir -p %{buildroot}{/sbin,/usr/sbin,/etc/sysconfig}
mkdir -p %{buildroot}%{_unitdir}
mkdir -p %{buildroot}%{_mandir}/man8
mkdir -p %{buildroot}/var/run/rpcbind
make DESTDIR=$RPM_BUILD_ROOT install
mv -f ${RPM_BUILD_ROOT}%{_bindir}/rpcbind ${RPM_BUILD_ROOT}/sbin
@ -101,7 +100,6 @@ 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/run/rpcbind/*
fi
%postun
@ -126,11 +124,12 @@ fi
%{_unitdir}/rpcbind.service
%{_unitdir}/rpcbind.socket
%dir %attr(700,rpc,rpc) /var/run/rpcbind
%changelog
* Tue Apr 28 2015 Steve Dickson <steved@redhat.com> - 0.2.3-0.0
- Updated to latest upstream release: 0.2.3
- Change RPCBDIR to be /tmp since that will exist after a
reboot and bindings wil be perserved during upgrades
but not reboots.
* Thu Mar 19 2015 Steve Dickson <steved@redhat.com> - 0.2.2-2.2
- Changed RPCBDIR to be /var/run so bindings are perserved