Spec file updates:
Both the nfs.lock and nfs.idmap services should always enabled on both installs and upgrades (bz 699040) Fixed the paths to the server scriptlets (bz 733531) Signed-off-by: Steve Dickson <steved@redhat.com>
This commit is contained in:
parent
06d1c93beb
commit
084ea8721e
@ -2,7 +2,7 @@ Summary: NFS utilities and supporting clients and daemons for the kernel NFS ser
|
|||||||
Name: nfs-utils
|
Name: nfs-utils
|
||||||
URL: http://sourceforge.net/projects/nfs
|
URL: http://sourceforge.net/projects/nfs
|
||||||
Version: 1.2.4
|
Version: 1.2.4
|
||||||
Release: 8%{?dist}
|
Release: 9%{?dist}
|
||||||
Epoch: 1
|
Epoch: 1
|
||||||
|
|
||||||
# group all 32bit related archs
|
# group all 32bit related archs
|
||||||
@ -16,9 +16,11 @@ Source12: nfs-secure.service
|
|||||||
Source13: nfs-secure-server.service
|
Source13: nfs-secure-server.service
|
||||||
Source14: nfs-server.service
|
Source14: nfs-server.service
|
||||||
Source15: nfs-idmap.service
|
Source15: nfs-idmap.service
|
||||||
Source16: var-lib-nfs-rpc_pipefs.mount
|
%define nfs_services %{SOURCE11} %{SOURCE12} %{SOURCE13} %{SOURCE14} %{SOURCE15}
|
||||||
Source17: proc-fs-nfsd.mount
|
|
||||||
%define nfs_services %{SOURCE11} %{SOURCE12} %{SOURCE13} %{SOURCE14} %{SOURCE15} %{SOURCE16} %{SOURCE17}
|
Source20: var-lib-nfs-rpc_pipefs.mount
|
||||||
|
Source21: proc-fs-nfsd.mount
|
||||||
|
%define nfs_automounts %{SOURCE20} %{SOURCE21}
|
||||||
|
|
||||||
Source50: nfs-lock.preconfig
|
Source50: nfs-lock.preconfig
|
||||||
Source51: nfs-server.preconfig
|
Source51: nfs-server.preconfig
|
||||||
@ -134,6 +136,9 @@ install -m 644 %{SOURCE10} $RPM_BUILD_ROOT/etc/sysconfig/nfs
|
|||||||
for service in %{nfs_services} ; do
|
for service in %{nfs_services} ; do
|
||||||
install -m 644 $service $RPM_BUILD_ROOT/lib/systemd/system
|
install -m 644 $service $RPM_BUILD_ROOT/lib/systemd/system
|
||||||
done
|
done
|
||||||
|
for service in %{nfs_automounts} ; do
|
||||||
|
install -m 644 $service $RPM_BUILD_ROOT/lib/systemd/system
|
||||||
|
done
|
||||||
for config in %{nfs_configs} ; do
|
for config in %{nfs_configs} ; do
|
||||||
install -m 755 $config $RPM_BUILD_ROOT/usr/lib/%{name}/scripts
|
install -m 755 $config $RPM_BUILD_ROOT/usr/lib/%{name}/scripts
|
||||||
done
|
done
|
||||||
@ -185,18 +190,15 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
%post
|
%post
|
||||||
if [ $1 -eq 1 ]; then
|
/bin/systemctl enable nfs-idmap.service >/dev/null 2>&1 || :
|
||||||
# Package install, not upgrade
|
/bin/systemctl enable nfs-lock.service >/dev/null 2>&1 || :
|
||||||
/bin/systemctl enable nfs-idmap.service >/dev/null 2>&1 || :
|
|
||||||
/bin/systemctl enable nfs-lock.service >/dev/null 2>&1 || :
|
|
||||||
fi
|
|
||||||
# Make sure statd used the correct uid/gid.
|
# Make sure statd used the correct uid/gid.
|
||||||
chown -R rpcuser:rpcuser /var/lib/nfs/statd
|
chown -R rpcuser:rpcuser /var/lib/nfs/statd
|
||||||
|
|
||||||
%preun
|
%preun
|
||||||
if [ $1 -eq 0 ]; then
|
if [ $1 -eq 0 ]; then
|
||||||
# Package removal, not upgrade
|
# Package removal, not upgrade
|
||||||
for service in %{nfs_services} ; do
|
for service in %(sed 's!\S*/!!g' <<< '%{nfs_services}') ; do
|
||||||
/bin/systemctl disable $service >/dev/null 2>&1 || :
|
/bin/systemctl disable $service >/dev/null 2>&1 || :
|
||||||
/bin/systemctl stop $service >/dev/null 2>&1 || :
|
/bin/systemctl stop $service >/dev/null 2>&1 || :
|
||||||
done
|
done
|
||||||
@ -211,8 +213,7 @@ fi
|
|||||||
%postun
|
%postun
|
||||||
if [ $1 -ge 1 ]; then
|
if [ $1 -ge 1 ]; then
|
||||||
# Package upgrade, not uninstall
|
# Package upgrade, not uninstall
|
||||||
for service in %{nfs_services} ; do
|
for service in %(sed 's!\S*/!!g' <<< '%{nfs_services}') ; do
|
||||||
echo "try-restart $service service"
|
|
||||||
/bin/systemctl try-restart $service >/dev/null 2>&1 || :
|
/bin/systemctl try-restart $service >/dev/null 2>&1 || :
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
@ -274,6 +275,11 @@ fi
|
|||||||
%attr(4755,root,root) /sbin/umount.nfs4
|
%attr(4755,root,root) /sbin/umount.nfs4
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Aug 30 2011 Steve Dickson <steved@redhat.com> 1.2.4-9
|
||||||
|
- Both the nfs.lock and nfs.idmap services should always
|
||||||
|
enabled on both installs and upgrades (bz 699040)
|
||||||
|
- Fixed the paths to the server scriptlets (bz 733531)
|
||||||
|
|
||||||
* Mon Aug 29 2011 Steve Dickson <steved@redhat.com> 1.2.4-8
|
* Mon Aug 29 2011 Steve Dickson <steved@redhat.com> 1.2.4-8
|
||||||
- Update to upstream RC release: nfs-utils-1.2.5-rc2
|
- Update to upstream RC release: nfs-utils-1.2.5-rc2
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user