Accepting request 1045819 from Virtualization:VMware
OBS-URL: https://build.opensuse.org/request/show/1045819 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/open-vm-tools?expand=0&rev=108
This commit is contained in:
commit
a83a5c0f7f
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Dec 28 08:18:43 UTC 2022 - Stefan Schubert <schubi@suse.com>
|
||||||
|
|
||||||
|
- Migration of PAM settings to /usr/lib/pam.d.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Dec 14 21:24:00 UTC 2022 - Kirk Allan <kallan@suse.com>
|
Wed Dec 14 21:24:00 UTC 2022 - Kirk Allan <kallan@suse.com>
|
||||||
|
|
||||||
|
@ -311,6 +311,10 @@ mkdir -p %{buildroot}%{_sbindir}
|
|||||||
|
|
||||||
# Remove exec bit from config files
|
# Remove exec bit from config files
|
||||||
chmod a-x %{buildroot}%{_sysconfdir}/pam.d/*
|
chmod a-x %{buildroot}%{_sysconfdir}/pam.d/*
|
||||||
|
%if 0%{?suse_version} > 1500
|
||||||
|
install -d %{buildroot}%{_pam_vendordir}
|
||||||
|
mv %{buildroot}%{_sysconfdir}/pam.d/vmtoolsd %{buildroot}%{_pam_vendordir}
|
||||||
|
%endif
|
||||||
|
|
||||||
# Remove unnecessary files from packaging
|
# Remove unnecessary files from packaging
|
||||||
find %{buildroot}%{_libdir} -name '*.la' -delete
|
find %{buildroot}%{_libdir} -name '*.la' -delete
|
||||||
@ -364,6 +368,18 @@ install -D -m 0644 %{SOURCE6} %{buildroot}%{_sysconfdir}/modprobe.d/50-vmnics.co
|
|||||||
%service_add_pre vmtoolsd.service
|
%service_add_pre vmtoolsd.service
|
||||||
%service_add_pre vgauthd.service
|
%service_add_pre vgauthd.service
|
||||||
%service_add_pre vmblock-fuse.service
|
%service_add_pre vmblock-fuse.service
|
||||||
|
%if 0%{?suse_version} > 1500
|
||||||
|
# Prepare for migration to /usr/etc; save any old .rpmsave
|
||||||
|
for i in pam.d/vmtoolsd ; do
|
||||||
|
test -f %{_sysconfdir}/${i}.rpmsave && mv -v %{_sysconfdir}/${i}.rpmsave %{_sysconfdir}/${i}.rpmsave.old ||:
|
||||||
|
done
|
||||||
|
|
||||||
|
%posttrans
|
||||||
|
# Migration to /usr/etc, restore just created .rpmsave
|
||||||
|
for i in pam.d/vmtoolsd ; do
|
||||||
|
test -f %{_sysconfdir}/${i}.rpmsave && mv -v %{_sysconfdir}/${i}.rpmsave %{_sysconfdir}/${i} ||:
|
||||||
|
done
|
||||||
|
%endif
|
||||||
|
|
||||||
%post
|
%post
|
||||||
/sbin/ldconfig
|
/sbin/ldconfig
|
||||||
@ -475,7 +491,11 @@ systemctl try-restart vmtoolsd.service || :
|
|||||||
%{_bindir}/vmware-xferlogs
|
%{_bindir}/vmware-xferlogs
|
||||||
%{_bindir}/vm-support
|
%{_bindir}/vm-support
|
||||||
%{_bindir}/vmware-alias-import
|
%{_bindir}/vmware-alias-import
|
||||||
|
%if 0%{?suse_version} > 1500
|
||||||
|
%{_pam_vendordir}/vmtoolsd
|
||||||
|
%else
|
||||||
%config(noreplace) %{_sysconfdir}/pam.d/vmtoolsd
|
%config(noreplace) %{_sysconfdir}/pam.d/vmtoolsd
|
||||||
|
%endif
|
||||||
%dir %{_sysconfdir}/vmware-tools
|
%dir %{_sysconfdir}/vmware-tools
|
||||||
%dir %{_sysconfdir}/vmware-tools/scripts
|
%dir %{_sysconfdir}/vmware-tools/scripts
|
||||||
%dir %{_sysconfdir}/vmware-tools/scripts/vmware
|
%dir %{_sysconfdir}/vmware-tools/scripts/vmware
|
||||||
|
Loading…
Reference in New Issue
Block a user