- use set_permissions instead of run_permissions on 11.4+

OBS-URL: https://build.opensuse.org/package/show/Virtualization:VMware/open-vm-tools?expand=0&rev=209
This commit is contained in:
Pavol Rusnak 2011-09-22 09:33:11 +00:00 committed by Git OBS Bridge
parent 7c4ea11bc0
commit c9cd31b094
2 changed files with 13 additions and 2 deletions

View File

@ -8,6 +8,7 @@ Wed Sep 21 20:34:59 UTC 2011 - dimstar@opensuse.org
(VMware's) Unity, HGFS and drag & drop support.
- Add open-vm-tools-vmxnet+kernel-3.0.patch: HAVE_NETDEV_PRIV is
gone in kernel 3.0 and netdev_priv is in kernel since 2.6.6.
- use set_permissions instead of run_permissions on 11.4+
-------------------------------------------------------------------
Thu Jul 21 00:36:27 UTC 2011 - dimstar@opensuse.org

View File

@ -2,7 +2,7 @@
# spec file for package open-vm-tools
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (C) 2010 Dominique Leuenberger, Amsterdam, Netherlands.
# Copyright (c) 2010 Dominique Leuenberger, Amsterdam, Netherlands.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -255,16 +255,26 @@ install -D -m 0644 %{SOURCE6} %{buildroot}%{_sysconfdir}/modprobe.d/50-vmnics.co
rm -r %{buildroot}%{_datadir}/%{name}
%post
%if 0%{?suse_version} <= 1130
%run_permissions
%else
%set_permissions /usr/bin/vmware-user-suid-wrapper
%endif
/sbin/ldconfig
%{fillup_and_insserv -Y vmtoolsd}
%if %{with_X}
%verifyscript gui
%verify_permissions
%verify_permissions -e /usr/bin/vmware-user-suid-wrapper
%post gui
%if 0%{?suse_version} <= 1130
%run_permissions
%else
%set_permissions /usr/bin/vmware-user-suid-wrapper
%endif
%endif
%preun