This commit is contained in:
parent
fe7066c6c8
commit
5ba77d82d9
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:ebcd44fe880dd9912b5745a20cd3edb1ed5337586fc220739002267dd8b78430
|
||||
size 2437981
|
@ -1 +0,0 @@
|
||||
addFilter(".*shlib-policy-name-error.*libguestlib0.*")
|
3
open-vm-tools-2009.05.22-167859.tar.bz2
Normal file
3
open-vm-tools-2009.05.22-167859.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:4c25e5c880a10f751b5d9f8c1c5ad9c5da4cac5db562645cceb35843b4dccd9c
|
||||
size 2335379
|
3
open-vm-tools-2009.05.22-rpmlintrc
Normal file
3
open-vm-tools-2009.05.22-rpmlintrc
Normal file
@ -0,0 +1,3 @@
|
||||
addFilter(".*shlib-policy-name-error.*libguestlib0.*")
|
||||
addFilter(".*permissions-unauthorized-file.*/etc/permissions.d/open-vm-tools.*")
|
||||
addFilter(".*devel-file-in-non-devel-package.*/libguestlib.so.*")
|
28
open-vm-tools-rpath.patch
Normal file
28
open-vm-tools-rpath.patch
Normal file
@ -0,0 +1,28 @@
|
||||
diff -ur open-vm-tools-2009.05.22-167859/services/plugins/hgfsServer/Makefile.am open-vm-tools-2009.05.22-167859.patched//services/plugins/hgfsServer/Makefile.am
|
||||
--- open-vm-tools-2009.05.22-167859/services/plugins/hgfsServer/Makefile.am 2009-05-22 09:00:44.000000000 +0200
|
||||
+++ open-vm-tools-2009.05.22-167859.patched//services/plugins/hgfsServer/Makefile.am 2009-05-23 13:18:18.000000000 +0200
|
||||
@@ -33,8 +33,8 @@
|
||||
libhgfsServer_la_SOURCES += hgfsPlugin.c
|
||||
|
||||
if HAVE_X11
|
||||
-install-exec-local:
|
||||
+install-data-hook:
|
||||
mkdir -p $(DESTDIR)$(VMUSR_PLUGIN_INSTALLDIR)
|
||||
- cp -L $(builddir)/.libs/libhgfsServer.so $(DESTDIR)$(VMUSR_PLUGIN_INSTALLDIR)
|
||||
+ cp $(DESTDIR)$(VMSVC_PLUGIN_INSTALLDIR)/libhgfsServer.so $(DESTDIR)$(VMUSR_PLUGIN_INSTALLDIR)
|
||||
endif
|
||||
|
||||
diff -ur open-vm-tools-2009.05.22-167859/services/plugins/vix/Makefile.am open-vm-tools-2009.05.22-167859.patched//services/plugins/vix/Makefile.am
|
||||
--- open-vm-tools-2009.05.22-167859/services/plugins/vix/Makefile.am 2009-05-22 09:00:44.000000000 +0200
|
||||
+++ open-vm-tools-2009.05.22-167859.patched//services/plugins/vix/Makefile.am 2009-05-23 13:08:29.000000000 +0200
|
||||
@@ -38,8 +38,8 @@
|
||||
libvix_la_SOURCES += $(top_srcdir)/lib/vixTools/vixTools.c
|
||||
|
||||
if HAVE_X11
|
||||
-install-exec-local:
|
||||
+install-data-hook:
|
||||
mkdir -p $(DESTDIR)$(VMUSR_PLUGIN_INSTALLDIR)
|
||||
- cp -L $(builddir)/.libs/libvix.so $(DESTDIR)$(VMUSR_PLUGIN_INSTALLDIR)
|
||||
+ cp $(DESTDIR)$(VMSVC_PLUGIN_INSTALLDIR)/libvix.so $(DESTDIR)$(VMUSR_PLUGIN_INSTALLDIR)
|
||||
endif
|
||||
|
20
open-vm-tools-wiperPosix.patch
Normal file
20
open-vm-tools-wiperPosix.patch
Normal file
@ -0,0 +1,20 @@
|
||||
diff -ur open-vm-tools-2009.05.22-167859/lib/wiper/wiperPosix.c open-vm-tools-2009.05.22-167859.patched//lib/wiper/wiperPosix.c
|
||||
--- open-vm-tools-2009.05.22-167859/lib/wiper/wiperPosix.c 2009-05-22 09:01:33.000000000 +0200
|
||||
+++ open-vm-tools-2009.05.22-167859.patched//lib/wiper/wiperPosix.c 2009-05-23 10:15:47.000000000 +0200
|
||||
@@ -1000,6 +1000,7 @@
|
||||
FILE *fp;
|
||||
int deviceNum;
|
||||
char deviceName[256];
|
||||
+ char *consumer;
|
||||
|
||||
dmNumEntries = 0;
|
||||
fp = Posix_Fopen("/proc/devices", "r");
|
||||
@@ -1013,7 +1014,7 @@
|
||||
}
|
||||
}
|
||||
} else {
|
||||
- fgets(deviceName, sizeof deviceName, fp);
|
||||
+ consumer = fgets(deviceName, sizeof deviceName, fp);
|
||||
}
|
||||
}
|
||||
|
@ -1,3 +1,131 @@
|
||||
-------------------------------------------------------------------
|
||||
Sat May 23 09:38:07 CEST 2009 - dominique-obs@leuenberger.net
|
||||
|
||||
- Updated to 2009.05.22
|
||||
* Mostly a cleanup and bug fix release.
|
||||
* Fix a build issue where a symlink attack could cause the
|
||||
open-vm-tools build to overwrite data (by placing a symlink in
|
||||
/tmp).
|
||||
* Second (and last?) batch of changes to clean up duplicate files
|
||||
in the source tree, including Solaris and FreeBSD kernel
|
||||
modules andother module-specific shared files.
|
||||
* Plugins now are properly built using plugins_LTLIBRARIES so
|
||||
that "-rpath" doesn't need to be used (this would cause an
|
||||
RPATH entry to be added to the final binary, which some tools
|
||||
didn't like).
|
||||
* open-vm-tools now properly detects PAM and enables PAM support
|
||||
in the code.
|
||||
- Removed -rpath.patch. Variation of it integrated upstream
|
||||
- Added patch to consume (-wiperPosix.patch) the result of fgets
|
||||
- BuildRequires pam-devel
|
||||
- The pam miss-naming on x86_64 has been fixed upstream
|
||||
- Add a new -rpath patch. Not everything is solved upstream.
|
||||
- Delete arch dependent files from /usr/share (not yet needed)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Apr 25 23:24:33 CEST 2009 - dominique.leuenberger@tmf-group.com
|
||||
|
||||
- Upgrade to snapshot 2009.04.23
|
||||
* Implemented copy & paste support for RTF data and file contents.
|
||||
* guestd has been removed from open-vm-tools; vmtoolsd is now the only
|
||||
option for the main tools service.
|
||||
* Added vmblock and vmmemctl modules for Solaris (under the CDDL).
|
||||
* vmware-user can now work with both vmblock-fuse and vmblock.
|
||||
* Linux HGFS now has a stream-based (TCP, vsock) transport, still under
|
||||
development.
|
||||
* First batch of changes to cleanup duplicated files in the source tree.
|
||||
Most duplicated files in the Linux kernel modules have been cleaned up.
|
||||
- Extensive rewrite of the spec file:
|
||||
* make use of the now upstream provided make install
|
||||
* configure --no-root-privileges, to not install mount.vmhgfs as suid
|
||||
- Add patch open-vm-tools-2009.04.23-rpath.diff: removes the rpath logic
|
||||
which was introduced for the vmusr and vmsvc plugins. libtools is broken
|
||||
in this respect. (patch submitted upstream for review)
|
||||
- Extend preun section with service rename (vmware-guest -> vmtoolsd)
|
||||
(patch provided by prusnak)
|
||||
- forcibly activate vmtoolsd service also on update.
|
||||
- fix up the KMP rename: for this to work we need to provide / obsolete
|
||||
vmware-kmp and vmware-kmp-<kernelflavor>; otherwise, zypper starts pulling
|
||||
in other kernels.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Mar 21 00:03:12 CET 2009 - dominique@leuenberger.net
|
||||
|
||||
- rename vmware-KMP to vmware-guest-KMP for easier identification
|
||||
of the use and to avoid confusion (users installing the KMP on the
|
||||
vmware hosts) (bnc#481137)
|
||||
- create subpackage libvmtools0
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Mar 19 13:02:15 CET 2009 - dominique@leuenberger.net
|
||||
|
||||
- Upgrade to snapshot 2009.03.18
|
||||
* Mostly a bug fix release.
|
||||
* The new DnD V3 protocol is now available in open-vm-tools.
|
||||
* vmtoolsd is now preferred instead of vmware-guestd
|
||||
- vmware-guestd will most probably be completely removed in the next release.
|
||||
-> vmtoolsd is not yet standard enabled in openSUSE packages.
|
||||
- Obsolete merged patches vmxnet and vmxnet3.patch.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Mar 9 21:38:17 CET 2009 - mmarek@suse.cz
|
||||
|
||||
- renamed modprobe config to /etc/modprobe.d/50-vmnics.conf
|
||||
(required by new module-init-tools).
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Feb 19 09:40:12 CET 2009 - dominique@leuenberger.net
|
||||
|
||||
- Upgrade to snapshot 2009.02.18
|
||||
* open-vm-tools now depend on glib 2.6.0 as a minimum requirement.
|
||||
* Added vmxnet module for Solaris, and reworked the HGFS module so it
|
||||
works without help from vmware-guestd.
|
||||
* Added implementation of new DnD protocol, which adds a dependency on
|
||||
a C++ compiler and the gtkmm library to vmware-user.
|
||||
* The code from the "core services" has been added to open-vm-tools,
|
||||
including a few tests. vmtoolsd + plugins are now capable of replacing
|
||||
vmware-guestd (vmware-user still needs to have some features ported
|
||||
over), but this code is still not to be considered as stable as the
|
||||
legacy services, so vmware-guestd is still included.
|
||||
* A few fixes for compatibility with non-GNU toolchains, newer Linux
|
||||
kernels and old gcc compilers.
|
||||
- Added patch open-vm-tools-2009.02.18-vmxnet.patch
|
||||
Allows to compile kernelmodule vmxnet with kernels 2.6.29
|
||||
And open-vm-tools02009.02.18-vmxnet3.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Feb 16 14:26:13 CET 2009 - dominique@leuenberger.net
|
||||
|
||||
- Remove noDisplay=true from vmware-user.desktop, as KDE4
|
||||
does not autostart the app in this case. Fixes BNC #475627
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Feb 12 10:46:15 CET 2009 - dominique@leuenberger.net
|
||||
|
||||
- Added vmware-user-autostart-wrapper to solve bnc #474076
|
||||
Using simple autostart technique, it can happen that the device
|
||||
at /proc/fs/vmblock/dev is not ready when vmware-user is started
|
||||
the autostart-wrapper takes this into account and tries for
|
||||
several times.
|
||||
- Fix RPMLint warning with regarding wrong encoding of README file
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Feb 11 20:45:00 CET 2009 - dominique@leuenberger.net
|
||||
|
||||
- Revert suid install of vmware-user-suid-wrapper, as rpmlint does
|
||||
not like it
|
||||
Instead we package /etc/permissions.d/open-vm-tools which sets
|
||||
the permission usig SuSEconfig.permissions
|
||||
- Adjust the vmware-user.desktop file to actually launch
|
||||
vmware-user-suid-wrapper. Access to the vmblock requires su right.
|
||||
the suid-wrapper get's the file handle, drops the suid rights
|
||||
and launches vmware-user (with user privileges)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Feb 10 11:07:27 CET 2009 - prusnak@suse.cz
|
||||
|
||||
- install vmware-user-suid-wrapper with suid bit
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jan 26 09:34:36 CET 2009 - prusnak@suse.cz
|
||||
|
||||
|
1
open-vm-tools.permissions
Normal file
1
open-vm-tools.permissions
Normal file
@ -0,0 +1 @@
|
||||
/usr/bin/vmware-user-suid-wrapper root.root 4755
|
@ -1,5 +1,5 @@
|
||||
#
|
||||
# spec file for package open-vm-tools (Version 2009.01.21)
|
||||
# spec file for package open-vm-tools (Version 2009.05.22)
|
||||
#
|
||||
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
#
|
||||
@ -22,37 +22,46 @@
|
||||
Name: open-vm-tools
|
||||
Group: System/Emulators/PC
|
||||
Summary: Open Virtual Machine Tools
|
||||
Version: 2009.01.21
|
||||
Version: 2009.05.22
|
||||
Release: 1
|
||||
%define svn_rev 142982
|
||||
%define svn_rev 167859
|
||||
Url: http://open-vm-tools.sourceforge.net/
|
||||
License: BSD 3-Clause; GPL v2 only; LGPL v2.1 only
|
||||
Source: %{name}-%{version}-%{svn_rev}.tar.bz2
|
||||
Source1: vmware-guest
|
||||
Source2: vmware-user.desktop
|
||||
Source1: vmtoolsd
|
||||
Source2: vmware-user-autostart.desktop
|
||||
Source3: vmware-toolbox.desktop
|
||||
Source4: preamble
|
||||
Source4: open-vm-tools.permissions
|
||||
Source5: vmware-user-autostart-wrapper
|
||||
Source98: preamble
|
||||
Source99: %{name}-%{version}-rpmlintrc
|
||||
Patch0: %{name}-wiperPosix.patch
|
||||
Patch1: %{name}-rpath.patch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: kernel-source kernel-syms module-init-tools
|
||||
BuildRequires: libdnet-devel libicu-devel pcre-devel procps
|
||||
BuildRequires: gtk2-devel update-desktop-files xorg-x11-devel
|
||||
# openSUSE 10.2 seems not to pull libtiff in automatically... weird
|
||||
%if 0%{?suse_version} == 1020
|
||||
BuildRequires: libtiff
|
||||
%endif
|
||||
BuildRequires: kernel-source
|
||||
BuildRequires: kernel-syms
|
||||
BuildRequires: module-init-tools
|
||||
BuildRequires: libdnet-devel
|
||||
BuildRequires: libicu-devel
|
||||
BuildRequires: pcre-devel
|
||||
BuildRequires: procps
|
||||
BuildRequires: gtk2-devel
|
||||
BuildRequires: update-desktop-files
|
||||
BuildRequires: xorg-x11-devel
|
||||
BuildRequires: gtkmm2-devel
|
||||
# liburiparser was not present before 11.0
|
||||
%if 0%{?suse_version} >= 1100
|
||||
BuildRequires: liburiparser-devel
|
||||
%endif
|
||||
BuildRequires: pam-devel
|
||||
PreReq: %insserv_prereq %fillup_prereq
|
||||
PreReq: permissions
|
||||
ExclusiveArch: %ix86 x86_64
|
||||
Requires: vmware-kmp
|
||||
Requires: vmware-guest-kmp
|
||||
Supplements: modalias(pci:v000015ADd*sv*sd*bc*sc*i*)
|
||||
%define vm_modules vmblock vmhgfs vmmemctl vmsync vmxnet vmci vsock vmxnet3 pvscsi
|
||||
%suse_kernel_module_package -n vmware -p %{SOURCE4} xen um
|
||||
%suse_kernel_module_package -n vmware-guest -p %{SOURCE98} xen um
|
||||
|
||||
%description
|
||||
Open Virtual Machine Tools (open-vm-tools) are the open source
|
||||
@ -84,12 +93,12 @@ Authors:
|
||||
--------
|
||||
The VMware Guest Components Team
|
||||
|
||||
%package -n vmware-KMP
|
||||
%package -n vmware-guest-KMP
|
||||
License: BSD 3-Clause; GPL v2 only; LGPL v2.1 only
|
||||
Summary: Open Virtual Machine Tools
|
||||
Group: System/Emulators/PC
|
||||
|
||||
%description -n vmware-KMP
|
||||
%description -n vmware-guest-KMP
|
||||
Open Virtual Machine Tools (open-vm-tools) are the open source
|
||||
implementation of VMware Tools. They are a set of guest operating
|
||||
system virtualization components that enhance performance and user
|
||||
@ -135,36 +144,73 @@ Authors:
|
||||
--------
|
||||
The VMware Guest Components Team
|
||||
|
||||
%debugpackage
|
||||
%package -n libvmtools0
|
||||
License: BSD 3-Clause; GPL v2 only; LGPL v2.1 only
|
||||
Summary: Open Virtual Machine Tools
|
||||
Group: System/Emulators/PC
|
||||
|
||||
%description -n libvmtools0
|
||||
Open Virtual Machine Tools (open-vm-tools) are the open source
|
||||
implementation of VMware Tools. They are a set of guest operating
|
||||
system virtualization components that enhance performance and user
|
||||
experience of virtual machines. As virtualization technology rapidly
|
||||
becomes mainstream, each virtualization solution provider implements
|
||||
their own set of tools and utilities to supplement the guest virtual
|
||||
machine. However, most of the implementations are proprietary and are
|
||||
tied to a specific virtualization platform.
|
||||
|
||||
With the Open Virtual Machine Tools project, we are hoping to solve
|
||||
this and other related problems. The tools are currently composed of
|
||||
kernel modules for Linux and user-space programs for all VMware
|
||||
supported Unix-like guest operating systems. They provide several
|
||||
useful functions like:
|
||||
|
||||
* File transfer between a host and guest
|
||||
|
||||
* Improved memory management and network performance under
|
||||
virtualization
|
||||
|
||||
* General mechanisms and protocols for communication between host and
|
||||
guests and from guest to guest
|
||||
|
||||
|
||||
|
||||
Authors:
|
||||
--------
|
||||
The VMware Guest Components Team
|
||||
|
||||
%prep
|
||||
%setup -q -n %{name}-%{version}-%{svn_rev}
|
||||
%patch0 -p1
|
||||
%patch1 -p1
|
||||
chmod -x AUTHORS COPYING ChangeLog NEWS README
|
||||
# fix for an rpmlint warning regarding wrong line feeds
|
||||
sed -i -e "s/\r//" README
|
||||
|
||||
%build
|
||||
autoreconf
|
||||
# comments in a continued line seem not to work... shame
|
||||
# --disable-unity : liburiparser was not present before 11.0
|
||||
# --without-gtk2 : gtk2 lib seem to be to old for openSUSE<10.3
|
||||
%configure \
|
||||
%if 0%{?suse_version} < 1100
|
||||
--disable-unity \
|
||||
%endif
|
||||
%if 0%{suse_version} < 1020
|
||||
--without-gtk2 \
|
||||
%endif
|
||||
--without-kernel-modules \
|
||||
--without-root-privileges \
|
||||
--without-procps \
|
||||
--disable-dependency-tracking
|
||||
--disable-dependency-tracking \
|
||||
--disable-static
|
||||
make
|
||||
TOPDIR=$PWD
|
||||
cd ..
|
||||
mkdir -p obj
|
||||
for flavor in %{flavors_to_build}; do
|
||||
rm -rf obj/$flavor
|
||||
cp -r %{name}-%{version}-%{svn_rev} obj/$flavor
|
||||
pushd obj/$flavor
|
||||
#make modules
|
||||
for module in %{vm_modules}; do
|
||||
pushd modules/linux/$module
|
||||
make -C /usr/src/linux-obj/%{_target_cpu}/$flavor modules M=$PWD VM_CCVER=$(gcc -dumpversion) HEADER_DIR="/usr/src/linux-obj/$(uname -i)/default/include" SRCROOT=$PWD
|
||||
make -C /usr/src/linux-obj/%{_target_cpu}/$flavor modules M=$PWD VM_CCVER=$(gcc -dumpversion) HEADER_DIR="/usr/src/linux-obj/$(uname -i)/default/include" SRCROOT=$PWD OVT_SOURCE_DIR=$TOPDIR
|
||||
popd
|
||||
done
|
||||
popd
|
||||
@ -185,113 +231,207 @@ done
|
||||
popd
|
||||
# fix some rights on the kernel modules, to have a complete -debuginfo package
|
||||
chmod u+x $RPM_BUILD_ROOT/lib/modules/*/updates/*
|
||||
#installation of libguestlib
|
||||
mkdir -p $RPM_BUILD_ROOT%{_libdir}
|
||||
install -m 0755 libguestlib/.libs/libguestlib.so.0.0.0 $RPM_BUILD_ROOT%{_libdir}/libguestlib.so.0.0.0
|
||||
ln -s %{_libdir}/libguestlib.so.0.0.0 $RPM_BUILD_ROOT%{_libdir}/libguestlib.so.0
|
||||
ln -s %{_libdir}/libguestlib.so.0.0.0 $RPM_BUILD_ROOT%{_libdir}/libguestlib.so
|
||||
# installation of vmware-guestd
|
||||
mkdir -p $RPM_BUILD_ROOT%{_sbindir}
|
||||
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/init.d
|
||||
install -m 0755 guestd/vmware-guestd $RPM_BUILD_ROOT%{_sbindir}/vmware-guestd
|
||||
install -m 0755 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/init.d/vmware-guest
|
||||
# and the corresponding PAM magic for vmware-guestd
|
||||
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/pam.d/
|
||||
cat <<EOF > $RPM_BUILD_ROOT%{_sysconfdir}/pam.d/vmware-guestd
|
||||
#%PAM-1.0
|
||||
auth sufficient /%{_lib}/security/pam_unix2.so shadow nullok
|
||||
auth required /%{_lib}/security/pam_unix_auth.so shadow nullok
|
||||
account sufficient /%{_lib}/security/pam_unix2.so
|
||||
account required /%{_lib}/security/pam_unix_acct.so
|
||||
EOF
|
||||
# create /etc/vmware-tools/tools.conf
|
||||
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/vmware-tools
|
||||
cat <<EOF > $RPM_BUILD_ROOT%{_sysconfdir}/vmware-tools/tools.conf
|
||||
bindir = "%{_bindir}"
|
||||
disable-tools-version = TRUE
|
||||
EOF
|
||||
# and also /etc/xdg/autostart/vmware-user.desktop
|
||||
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/xdg/autostart/
|
||||
install -m 0644 %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/xdg/autostart/vmware-user.desktop
|
||||
# For vmware-guestd to run the default soft power operation scripts,
|
||||
# they must be installed to /etc/vmware-tools with the executable bit activated.
|
||||
install -m 0555 scripts/linux/poweroff-vm-default $RPM_BUILD_ROOT%{_sysconfdir}/vmware-tools/
|
||||
install -m 0555 scripts/linux/poweron-vm-default $RPM_BUILD_ROOT%{_sysconfdir}/vmware-tools/
|
||||
install -m 0555 scripts/linux/resume-vm-default $RPM_BUILD_ROOT%{_sysconfdir}/vmware-tools/
|
||||
install -m 0555 scripts/linux/suspend-vm-default $RPM_BUILD_ROOT%{_sysconfdir}/vmware-tools/
|
||||
# installing vmware-user (is being started by vmware-guestd when a X-session starts and one of
|
||||
# the applications from /etc/vmware-tools/xautostart.conf is detected
|
||||
# it is NOT multi-user able!
|
||||
mkdir -p $RPM_BUILD_ROOT%{_bindir}
|
||||
install -m 0755 vmware-user/vmware-user $RPM_BUILD_ROOT%{_bindir}
|
||||
# the toolbox, to be started by the user
|
||||
install -m 0755 toolbox/vmware-toolbox $RPM_BUILD_ROOT%{_bindir}/vmware-toolbox
|
||||
# checkvm is a simple console application.
|
||||
install -m 0755 checkvm/vmware-checkvm $RPM_BUILD_ROOT%{_bindir}/vmware-checkvm
|
||||
# xferlogs is a simple console application.
|
||||
install -m 0755 xferlogs/vmware-xferlogs $RPM_BUILD_ROOT%{_bindir}/vmware-xferlogs
|
||||
# hgfsclient is a simple console application.
|
||||
install -m 0755 hgfsclient/vmware-hgfsclient $RPM_BUILD_ROOT%{_bindir}/vmware-hgfsclient
|
||||
# install vmware-user-suid-wrapper
|
||||
install -m 0755 vmware-user-suid-wrapper/vmware-user-suid-wrapper $RPM_BUILD_ROOT/%{_bindir}/vmware-user-suid-wrapper
|
||||
# Install hgfsmounter
|
||||
mkdir -p $RPM_BUILD_ROOT/sbin
|
||||
cp hgfsmounter/mount.vmhgfs $RPM_BUILD_ROOT/sbin/mount.vmhgfs
|
||||
# provide a menu entry for the various Desktop Environments
|
||||
mkdir -p $RPM_BUILD_ROOT%{_datadir}/{applications,pixmaps}
|
||||
install -m 0644 %{SOURCE3} $RPM_BUILD_ROOT%{_datadir}/applications/vmware-toolbox.desktop
|
||||
install -m 0644 toolbox/bigIcon.xpm $RPM_BUILD_ROOT%{_datadir}/pixmaps/vmware-toolbox.xpm
|
||||
%suse_update_desktop_file -r vmware-toolbox System Monitor
|
||||
# "morph" the amd32 driver over to the vmnetx driver for better performance
|
||||
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/modprobe.d
|
||||
cat <<EOF > $RPM_BUILD_ROOT%{_sysconfdir}/modprobe.d/vmnics
|
||||
install pcnet32 /sbin/modprobe -q --ignore-install vmxnet; /sbin/modprobe -q --ignore-install pcnet32 $CMDLINE_OPTS; /bin/true;
|
||||
EOF
|
||||
#provide the rcvmware-guest link
|
||||
ln -sf ../../etc/init.d/vmware-guest $RPM_BUILD_ROOT%{_sbindir}/rcvmware-guest
|
||||
%makeinstall
|
||||
# Clean up the *.la files make install put all around
|
||||
find $RPM_BUILD_ROOT -name *.la -exec rm {} \;
|
||||
# install the vmtoolsd init script and also it's rcvmtoolsd softlink
|
||||
install -D -m 0755 %{S:1} $RPM_BUILD_ROOT%{_sysconfdir}/init.d/vmtoolsd
|
||||
ln -sf ../../etc/init.d/vmtoolsd $RPM_BUILD_ROOT%{_sbindir}/rcvmtoolsd
|
||||
# vmware-user is started by vmware-user-suid-wrapper by xdg-autostart
|
||||
# unfortunately, vmware-user-suid-wrapper does not wait for it's block device
|
||||
# to appear. For this reason we have now a vmware-user-autostart-wrapper
|
||||
# which checks for /proc/fs/vmblock/dev to appear and then starts vmware-user-suid-wrapper
|
||||
install -D -m 0755 %{S:5} $RPM_BUILD_ROOT%{_bindir}/vmware-user-autostart-wrapper
|
||||
install -D -m 0644 %{S:2} $RPM_BUILD_ROOT%{_sysconfdir}/xdg/autostart/vmware-user-autostart.desktop
|
||||
# /usr/bin/vmware-user-suid-wrapper requires u+s. This requires a permissions file
|
||||
install -D -m 0644 %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/permissions.d/%{name}
|
||||
# handle the .destop files for translations
|
||||
%suse_update_desktop_file vmware-user
|
||||
%suse_update_desktop_file vmware-user-autostart
|
||||
# fix a link pointing to the buildroot for mount.vmhgfs
|
||||
( cd %{buildroot}/sbin; rm mount.vmhgfs; ln -s ..%{_sbindir}/mount.vmhgfs )
|
||||
# the script installs some binaries into /usr/share/open-vm-tools which are just some tests.
|
||||
# So we drop them for the moment. Upstream has been informed about this.
|
||||
rm -rf %{buildroot}%{_datadir}/%{name}
|
||||
|
||||
%post
|
||||
%run_permissions
|
||||
/sbin/ldconfig
|
||||
%{fillup_and_insserv -y vmware-guest}
|
||||
%{fillup_and_insserv -Y vmtoolsd}
|
||||
%verifyscript
|
||||
%verify_permissions -e /sbin/mount.vmhgfs
|
||||
|
||||
%post gui
|
||||
%run_permissions
|
||||
|
||||
%preun
|
||||
%stop_on_removal vmware-guest
|
||||
# stop service with the old name (if exists) on update (something like %stop_on_update)
|
||||
test -n "$FIRST_ARG" || FIRST_ARG=$1
|
||||
if test "$FIRST_ARG" -ge 1 ; then
|
||||
test -f /etc/sysconfig/services && . /etc/sysconfig/services
|
||||
if test "$YAST_IS_RUNNING" != "instsys" ; then
|
||||
/etc/init.d/vmware-guestd stop > /dev/null || :
|
||||
fi
|
||||
fi
|
||||
%stop_on_removal vmtoolsd
|
||||
|
||||
%postun
|
||||
%restart_on_update vmware-guest
|
||||
%restart_on_update vmtoolsd
|
||||
%insserv_cleanup
|
||||
/sbin/ldconfig
|
||||
|
||||
%post -n libvmtools0 -p /sbin/ldconfig
|
||||
|
||||
%postun -n libvmtools0 -p /sbin/ldconfig
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%files
|
||||
%defattr(-, root, root)
|
||||
%doc AUTHORS COPYING ChangeLog NEWS README
|
||||
%{_bindir}/vmware*
|
||||
%exclude %{_bindir}/vmware-toolbox
|
||||
%exclude %{_bindir}/vmware-user
|
||||
%config %{_sysconfdir}/init.d/vmware*
|
||||
%config %{_sysconfdir}/vmware-tools
|
||||
%config %{_sysconfdir}/modprobe.d/vmnics
|
||||
%config %{_sysconfdir}/pam.d/vmware*
|
||||
%verify(not mode) %attr(0755,root,root) /sbin/mount.vmhgfs
|
||||
%{_sbindir}/vmware*
|
||||
%{_sbindir}/rcvmware-guest
|
||||
%{_libdir}/libguestlib.*
|
||||
%{_bindir}/vmtoolsd
|
||||
%dir %{_libdir}/%{name}
|
||||
%dir %{_libdir}/%{name}/plugins
|
||||
%dir %{_libdir}/%{name}/plugins/vmsvc
|
||||
%dir %{_libdir}/%{name}/plugins/vmusr
|
||||
%{_libdir}/%{name}/plugins/vmsvc/libguestInfo.so
|
||||
%{_libdir}/%{name}/plugins/vmsvc/libhgfsServer.so
|
||||
%{_libdir}/%{name}/plugins/vmsvc/libpowerOps.so
|
||||
%{_libdir}/%{name}/plugins/vmsvc/libtimeSync.so
|
||||
%{_libdir}/%{name}/plugins/vmsvc/libvix.so
|
||||
%{_libdir}/%{name}/plugins/vmsvc/libvmbackup.so
|
||||
%{_libdir}/%{name}/plugins/vmusr/libhgfsServer.so
|
||||
%{_libdir}/%{name}/plugins/vmusr/libvix.so
|
||||
%{_bindir}/vmware-checkvm
|
||||
%{_bindir}/vmware-hgfsclient
|
||||
%{_bindir}/vmware-rpctool
|
||||
%{_bindir}/vmware-toolbox-cmd
|
||||
%{_bindir}/vmware-xferlogs
|
||||
%{_sbindir}/mount.vmhgfs
|
||||
/sbin/mount.vmhgfs
|
||||
%config(noreplace) %{_sysconfdir}/pam.d/vmtoolsd
|
||||
%{_sysconfdir}/vmware-tools
|
||||
%{_sysconfdir}/init.d/vmtoolsd
|
||||
%{_sysconfdir}/permissions.d/%{name}
|
||||
%{_sbindir}/rcvmtoolsd
|
||||
%exclude %{_libdir}/*.so
|
||||
|
||||
%files gui
|
||||
%defattr(-, root, root)
|
||||
%{_datadir}/applications/vmware-user.desktop
|
||||
%{_sysconfdir}/xdg/autostart/vmware-user-autostart.desktop
|
||||
%{_bindir}/vmware-toolbox
|
||||
%{_bindir}/vmware-user
|
||||
%{_datadir}/applications/vmware*
|
||||
%{_datadir}/pixmaps/vmware*
|
||||
%{_sysconfdir}/xdg/autostart/vmware-user.desktop
|
||||
%{_bindir}/vmware-user-suid-wrapper
|
||||
%{_bindir}/vmware-user-autostart-wrapper
|
||||
%{_libdir}/%{name}/plugins/vmusr/libresolutionSet.so
|
||||
%{_libdir}/%{name}/plugins/vmusr/libvixUser.so
|
||||
|
||||
%files -n libvmtools0
|
||||
%defattr(-, root, root)
|
||||
%{_libdir}/libvmtools.so.*
|
||||
%{_libdir}/libguestlib.so.*
|
||||
|
||||
%changelog
|
||||
* Sat May 23 2009 dominique-obs@leuenberger.net
|
||||
- Updated to 2009.05.22
|
||||
* Mostly a cleanup and bug fix release.
|
||||
* Fix a build issue where a symlink attack could cause the
|
||||
open-vm-tools build to overwrite data (by placing a symlink in
|
||||
/tmp).
|
||||
* Second (and last?) batch of changes to clean up duplicate files
|
||||
in the source tree, including Solaris and FreeBSD kernel
|
||||
modules andother module-specific shared files.
|
||||
* Plugins now are properly built using plugins_LTLIBRARIES so
|
||||
that "-rpath" doesn't need to be used (this would cause an
|
||||
RPATH entry to be added to the final binary, which some tools
|
||||
didn't like).
|
||||
* open-vm-tools now properly detects PAM and enables PAM support
|
||||
in the code.
|
||||
- Removed -rpath.patch. Variation of it integrated upstream
|
||||
- Added patch to consume (-wiperPosix.patch) the result of fgets
|
||||
- BuildRequires pam-devel
|
||||
- The pam miss-naming on x86_64 has been fixed upstream
|
||||
- Add a new -rpath patch. Not everything is solved upstream.
|
||||
- Delete arch dependent files from /usr/share (not yet needed)
|
||||
* Sat Apr 25 2009 dominique.leuenberger@tmf-group.com
|
||||
- Upgrade to snapshot 2009.04.23
|
||||
* Implemented copy & paste support for RTF data and file contents.
|
||||
* guestd has been removed from open-vm-tools; vmtoolsd is now the only
|
||||
option for the main tools service.
|
||||
* Added vmblock and vmmemctl modules for Solaris (under the CDDL).
|
||||
* vmware-user can now work with both vmblock-fuse and vmblock.
|
||||
* Linux HGFS now has a stream-based (TCP, vsock) transport, still under
|
||||
development.
|
||||
* First batch of changes to cleanup duplicated files in the source tree.
|
||||
Most duplicated files in the Linux kernel modules have been cleaned up.
|
||||
- Extensive rewrite of the spec file:
|
||||
* make use of the now upstream provided make install
|
||||
* configure --no-root-privileges, to not install mount.vmhgfs as suid
|
||||
- Add patch open-vm-tools-2009.04.23-rpath.diff: removes the rpath logic
|
||||
which was introduced for the vmusr and vmsvc plugins. libtools is broken
|
||||
in this respect. (patch submitted upstream for review)
|
||||
- Extend preun section with service rename (vmware-guest -> vmtoolsd)
|
||||
(patch provided by prusnak)
|
||||
- forcibly activate vmtoolsd service also on update.
|
||||
- fix up the KMP rename: for this to work we need to provide / obsolete
|
||||
vmware-kmp and vmware-kmp-<kernelflavor>; otherwise, zypper starts pulling
|
||||
in other kernels.
|
||||
* Sat Mar 21 2009 dominique@leuenberger.net
|
||||
- rename vmware-KMP to vmware-guest-KMP for easier identification
|
||||
of the use and to avoid confusion (users installing the KMP on the
|
||||
vmware hosts) (bnc#481137)
|
||||
- create subpackage libvmtools0
|
||||
* Thu Mar 19 2009 dominique@leuenberger.net
|
||||
- Upgrade to snapshot 2009.03.18
|
||||
* Mostly a bug fix release.
|
||||
* The new DnD V3 protocol is now available in open-vm-tools.
|
||||
* vmtoolsd is now preferred instead of vmware-guestd
|
||||
- vmware-guestd will most probably be completely removed in the next release.
|
||||
-> vmtoolsd is not yet standard enabled in openSUSE packages.
|
||||
- Obsolete merged patches vmxnet and vmxnet3.patch.
|
||||
* Mon Mar 09 2009 mmarek@suse.cz
|
||||
- renamed modprobe config to /etc/modprobe.d/50-vmnics.conf
|
||||
(required by new module-init-tools).
|
||||
* Thu Feb 19 2009 dominique@leuenberger.net
|
||||
- Upgrade to snapshot 2009.02.18
|
||||
* open-vm-tools now depend on glib 2.6.0 as a minimum requirement.
|
||||
* Added vmxnet module for Solaris, and reworked the HGFS module so it
|
||||
works without help from vmware-guestd.
|
||||
* Added implementation of new DnD protocol, which adds a dependency on
|
||||
a C++ compiler and the gtkmm library to vmware-user.
|
||||
* The code from the "core services" has been added to open-vm-tools,
|
||||
including a few tests. vmtoolsd + plugins are now capable of replacing
|
||||
vmware-guestd (vmware-user still needs to have some features ported
|
||||
over), but this code is still not to be considered as stable as the
|
||||
legacy services, so vmware-guestd is still included.
|
||||
* A few fixes for compatibility with non-GNU toolchains, newer Linux
|
||||
kernels and old gcc compilers.
|
||||
- Added patch open-vm-tools-2009.02.18-vmxnet.patch
|
||||
Allows to compile kernelmodule vmxnet with kernels 2.6.29
|
||||
And open-vm-tools02009.02.18-vmxnet3.patch
|
||||
* Mon Feb 16 2009 dominique@leuenberger.net
|
||||
- Remove noDisplay=true from vmware-user.desktop, as KDE4
|
||||
does not autostart the app in this case. Fixes BNC #475627
|
||||
* Thu Feb 12 2009 dominique@leuenberger.net
|
||||
- Added vmware-user-autostart-wrapper to solve bnc #474076
|
||||
Using simple autostart technique, it can happen that the device
|
||||
at /proc/fs/vmblock/dev is not ready when vmware-user is started
|
||||
the autostart-wrapper takes this into account and tries for
|
||||
several times.
|
||||
- Fix RPMLint warning with regarding wrong encoding of README file
|
||||
* Wed Feb 11 2009 dominique@leuenberger.net
|
||||
- Revert suid install of vmware-user-suid-wrapper, as rpmlint does
|
||||
not like it
|
||||
Instead we package /etc/permissions.d/open-vm-tools which sets
|
||||
the permission usig SuSEconfig.permissions
|
||||
- Adjust the vmware-user.desktop file to actually launch
|
||||
vmware-user-suid-wrapper. Access to the vmblock requires su right.
|
||||
the suid-wrapper get's the file handle, drops the suid rights
|
||||
and launches vmware-user (with user privileges)
|
||||
* Tue Feb 10 2009 prusnak@suse.cz
|
||||
- install vmware-user-suid-wrapper with suid bit
|
||||
* Mon Jan 26 2009 prusnak@suse.cz
|
||||
- reviewed changes by Dominique
|
||||
* Thu Jan 22 2009 dominique@leuenberger.net
|
||||
@ -479,7 +619,7 @@ rm -rf $RPM_BUILD_ROOT
|
||||
- tweak build section long enough to really build modules
|
||||
matching to kernel flavour (and not just build all for -default)
|
||||
(bnc#384192)
|
||||
* Wed Apr 23 2008 ro@suse.de
|
||||
* Thu Apr 24 2008 ro@suse.de
|
||||
- added vmware-KMP package and description tags to specfile
|
||||
- added preable file for kmp packages
|
||||
* Wed Apr 23 2008 prusnak@suse.cz
|
||||
|
5
preamble
5
preamble
@ -1,4 +1,7 @@
|
||||
Enhances: kernel-%1
|
||||
Requires: kernel-%1
|
||||
PreReq: coreutils grep
|
||||
Recommends: open-vm-tools
|
||||
Obsoletes: vmware-kmp <= %(echo %{-v*}-%2 | tr - _)
|
||||
Obsoletes: vmware-kmp-%1 <= %(echo %{-v*}-%2 | tr - _)
|
||||
Provides: vmware-kmp = %(echo %{-v*}-%2 | tr - _)
|
||||
Provides: vmware-kmp-%1 = %(echo %{-v*}-%2 | tr - _)
|
||||
|
@ -18,31 +18,24 @@
|
||||
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307,
|
||||
# USA.
|
||||
#
|
||||
# /etc/init.d/vmware-guest
|
||||
# /etc/init.d/vmtoolsd
|
||||
#
|
||||
### BEGIN INIT INFO
|
||||
# Provides: vmware-guest
|
||||
# Provides: vmtoolsd
|
||||
# Required-Start: $syslog $remote_fs
|
||||
# Should-Start:
|
||||
# Required-Stop: $syslog $remote_fs
|
||||
# Should-Stop:
|
||||
# Default-Start: 3 5
|
||||
# Default-Stop: 0 1 2 6
|
||||
# Short-Description: VMWare Guest Daemon
|
||||
# Description: Starts the Guest Daemon for a VMWare Virtual Machine
|
||||
# vmware-guestd is responsible for automatically starting vmware-user.
|
||||
# It does so by tracking the activity of an X session, discovering the
|
||||
# environment and credentials used in the session, and starting vmware-
|
||||
# user with those credentials and that environment. When the X session
|
||||
# disappears, vmware-guestd will also notice and stop vmware-user.
|
||||
# Note that more than one running X session will confuse vmware-
|
||||
# guestd and autostart will likely fail.
|
||||
# Short-Description: VMWare Tools Daemon
|
||||
# Description: Starts the Tools Daemon for a VMWare Virtual Machine
|
||||
### END INIT INFO
|
||||
|
||||
# Check for missing binaries (stale symlinks should not happen)
|
||||
# Note: Special treatment of stop for LSB conformance
|
||||
VMGUEST_BIN=/usr/sbin/vmware-guestd
|
||||
test -x $VMGUEST_BIN || { echo "$VMGUEST_BIN not installed";
|
||||
VMTOOLSD_BIN=/usr/bin/vmtoolsd
|
||||
test -x $VMTOOLSD_BIN || { echo "$VMTOOLSD_BIN not installed";
|
||||
if [ "$1" = "stop" ]; then exit 0;
|
||||
else exit 5; fi; }
|
||||
|
||||
@ -69,7 +62,7 @@ rc_reset
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
echo -n "Starting vmware-guestd "
|
||||
echo -n "Starting vmtoolsd "
|
||||
if [ ! -d /tmp/VMwareDnD ]; then
|
||||
mkdir -m 1777 /tmp/VMwareDnD
|
||||
fi
|
||||
@ -79,17 +72,17 @@ case "$1" in
|
||||
modprobe vmsync
|
||||
## Start daemon with startproc(8). If this fails
|
||||
## the return value is set appropriately by startproc.
|
||||
/sbin/startproc $VMGUEST_BIN
|
||||
/sbin/startproc $VMTOOLSD_BIN
|
||||
|
||||
# Remember status and be verbose
|
||||
rc_status -v
|
||||
;;
|
||||
stop)
|
||||
echo -n "Shutting down vmware-guest "
|
||||
echo -n "Shutting down vmtoolsd "
|
||||
## Stop daemon with killproc(8) and if this fails
|
||||
## killproc sets the return value according to LSB.
|
||||
|
||||
/sbin/killproc -TERM $VMGUEST_BIN
|
||||
/sbin/killproc -TERM $VMTOOLSD_BIN
|
||||
umount /proc/fs/vmblock/mountPoint
|
||||
modprobe -r vmblock
|
||||
modprobe -r vmsync
|
||||
@ -145,7 +138,7 @@ case "$1" in
|
||||
# 5--199 reserved (5--99 LSB, 100--149 distro, 150--199 appl.)
|
||||
|
||||
# NOTE: checkproc returns LSB compliant status values.
|
||||
/sbin/checkproc $VMGUEST_BIN
|
||||
/sbin/checkproc $VMTOOLSD_BIN
|
||||
# NOTE: rc_status knows that we called this init script with
|
||||
# "status" option and adapts its messages accordingly.
|
||||
rc_status -v
|
@ -1,5 +1,4 @@
|
||||
[Desktop Entry]
|
||||
Encoding=UTF-8
|
||||
Name=VMware Toolbox
|
||||
GenericName=System Monitor
|
||||
Comment=VMware Guest Toolbox
|
||||
@ -7,5 +6,5 @@ Exec=vmware-toolbox
|
||||
Icon=vmware-toolbox
|
||||
Terminal=false
|
||||
Type=Application
|
||||
Categories=System;Monitor
|
||||
Categories=System;Monitor;
|
||||
StartupNotify=false
|
||||
|
18
vmware-user-autostart-wrapper
Normal file
18
vmware-user-autostart-wrapper
Normal file
@ -0,0 +1,18 @@
|
||||
#!/bin/sh
|
||||
MAX_RETRY=8
|
||||
RETRY=0
|
||||
SLEEP=1
|
||||
|
||||
while [ $RETRY -lt $MAX_RETRY ]; do
|
||||
|
||||
if [ -f /proc/fs/vmblock/dev ]; then
|
||||
/usr/bin/vmware-user-suid-wrapper
|
||||
exit 0
|
||||
else
|
||||
logger "Try $RETRY/$MAX_RETRY : /proc/fs/vmblock/dev not available. sleeping for $SLEEP seconds"
|
||||
sleep $SLEEP
|
||||
RETRY=$[ $RETRY + 1 ]
|
||||
SLEEP=$[ $SLEEP * 2 ]
|
||||
fi
|
||||
done
|
||||
|
@ -1,6 +1,5 @@
|
||||
[Desktop Entry]
|
||||
Encoding=UTF-8
|
||||
Exec=vmware-user
|
||||
Exec=vmware-user-autostart-wrapper
|
||||
Name=VMware User Agent
|
||||
Type=Application
|
||||
X-KDE-autostart-phase=1
|
||||
NoDisplay=true
|
Loading…
Reference in New Issue
Block a user