OBS User unknown 2008-04-23 23:47:24 +00:00 committed by Git OBS Bridge
commit afde0a0e1d
13 changed files with 623 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:49d1d1e0d4aa18ae5d8aa90fcd6e936263f5bf0bf99a707df504fdfc13acce37
size 1624379

View File

@ -0,0 +1,75 @@
--- modules/linux/vmblock/Makefile
+++ modules/linux/vmblock/Makefile
@@ -26,10 +26,10 @@
####
SRCROOT = .
-VM_UNAME = $(shell uname -r)
+VM_UNAME = $(shell uname -i)
# Header directory for the running kernel
-HEADER_DIR = /lib/modules/$(VM_UNAME)/build/include
+HEADER_DIR = /usr/src/linux-obj/$(VM_UNAME)/default/include
BUILD_DIR = $(HEADER_DIR)/..
--- modules/linux/vmhgfs/Makefile
+++ modules/linux/vmhgfs/Makefile
@@ -26,10 +26,10 @@
####
SRCROOT = .
-VM_UNAME = $(shell uname -r)
+VM_UNAME = $(shell uname -i)
# Header directory for the running kernel
-HEADER_DIR = /lib/modules/$(VM_UNAME)/build/include
+HEADER_DIR = /usr/src/linux-obj/$(VM_UNAME)/default/include
BUILD_DIR = $(HEADER_DIR)/..
--- modules/linux/vmmemctl/Makefile
+++ modules/linux/vmmemctl/Makefile
@@ -26,10 +26,10 @@
####
SRCROOT = .
-VM_UNAME = $(shell uname -r)
+VM_UNAME = $(shell uname -i)
# Header directory for the running kernel
-HEADER_DIR = /lib/modules/$(VM_UNAME)/build/include
+HEADER_DIR = /usr/src/linux-obj/$(VM_UNAME)/default/include
BUILD_DIR = $(HEADER_DIR)/..
--- modules/linux/vmsync/Makefile
+++ modules/linux/vmsync/Makefile
@@ -26,10 +26,10 @@
####
SRCROOT = .
-VM_UNAME = $(shell uname -r)
+VM_UNAME = $(shell uname -i)
# Header directory for the running kernel
-HEADER_DIR = /lib/modules/$(VM_UNAME)/build/include
+HEADER_DIR = /usr/src/linux-obj/$(VM_UNAME)/default/include
BUILD_DIR = $(HEADER_DIR)/..
--- modules/linux/vmxnet/Makefile
+++ modules/linux/vmxnet/Makefile
@@ -26,10 +26,10 @@
####
SRCROOT = .
-VM_UNAME = $(shell uname -r)
+VM_UNAME = $(shell uname -i)
# Header directory for the running kernel
-HEADER_DIR = /lib/modules/$(VM_UNAME)/build/include
+HEADER_DIR = /usr/src/linux-obj/$(VM_UNAME)/default/include
BUILD_DIR = $(HEADER_DIR)/..

View File

@ -0,0 +1 @@
addFilter(".*shlib-policy-name-error.*libguestlib0.*")

View File

@ -0,0 +1,20 @@
--- configure
+++ configure
@@ -26014,7 +26014,6 @@
### General flags / actions
COMMON_CFLAGS="$COMMON_CFLAGS -Wall"
-COMMON_CFLAGS="$COMMON_CFLAGS -Werror"
# -Wno-unknown-pragmas is due to gcc not understanding '#pragma ident' in Xlib.h on OpenSolaris.
for TEST_CFLAG in -Wno-pointer-sign -Wno-unused-value -fno-strict-aliasing \
--- configure.ac
+++ configure.ac
@@ -426,7 +426,6 @@
### General flags / actions
COMMON_CFLAGS="$COMMON_CFLAGS -Wall"
-COMMON_CFLAGS="$COMMON_CFLAGS -Werror"
# -Wno-unknown-pragmas is due to gcc not understanding '#pragma ident' in Xlib.h on OpenSolaris.
for TEST_CFLAG in -Wno-pointer-sign -Wno-unused-value -fno-strict-aliasing \

66
open-vm-tools.changes Normal file
View File

@ -0,0 +1,66 @@
-------------------------------------------------------------------
Thu Apr 24 00:59:38 CEST 2008 - ro@suse.de
- added vmware-KMP package and description tags to specfile
- added preable file for kmp packages
-------------------------------------------------------------------
Wed Apr 23 15:38:48 CEST 2008 - prusnak@suse.cz
- fixed %verifyscript
-------------------------------------------------------------------
Tue Apr 22 11:30:37 CEST 2008 - prusnak@suse.cz
- updated to 2008.04.14
* continued Unicode support
* more bug fixes, including a security fix in guestd
- added permissions scripts to %post section
-------------------------------------------------------------------
Tue Mar 25 08:25:00 EET 2008 - dominique-rpm@leuenberger.net
- updated to 2008.03.19
-------------------------------------------------------------------
Thu Mar 20 16:13:09 CET 2008 - prusnak@suse.cz
- add Supplements to automatically install in VMware
-------------------------------------------------------------------
Tue Mar 18 13:36:33 CET 2008 - prusnak@suse.cz
- first autobuild checkin
- turn off -Werror (werror.patch)
- reworked spec file
-------------------------------------------------------------------
Thu Mar 14 09:15:00 EET 2008 - dominique-rpm@leuenberger.net
- updated to 2008.03.11
(developer snapshot to support all modules on 2.6.25 kernels)
-------------------------------------------------------------------
Sun Mar 11 13:44:00 EET 2008 - dominique-rpm@leuenberger.net
- updated to 2008.03.10
(developer snapshot to support kernel version 2.6.25-rc1)
-------------------------------------------------------------------
Sun Mar 9 19:17:00 EET 2008 - dominique-rpm@leuenberger.net
- refactored open-vm-tools-kver.patch to detect the kernel source
correctly
-------------------------------------------------------------------
Sat Mar 8 14:15:26 EET 2008 - dominique-rpm@leuenberger.net
- create link from /sbin/rcvmware to /etc/init.d/vmware-guest
- autostart the service after installation
-------------------------------------------------------------------
Sat Mar 08 03:32:26 EET 2008 - dominique-rpm@leuenberger.net
- initial build of open-vm-tools
- builds kmps and open-vm-tools

268
open-vm-tools.spec Normal file
View File

@ -0,0 +1,268 @@
#
# spec file for package open-vm-tools (Version 2008.04.14)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: open-vm-tools
Group: System/Emulators/PC
Summary: Open Virtual Machine Tools
Version: 2008.04.14
Release: 3
%define svn_rev 87182
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: xautostart.conf
Source3: vmware-toolbox.desktop
Source4: %{name}-%{version}-rpmlintrc
Source5: preamble
Patch0: %{name}-%{version}-kver.patch
Patch1: %{name}-%{version}-werror.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: kernel-source kernel-syms
BuildRequires: procps
BuildRequires: gtk2-devel xorg-x11-devel
BuildRequires: update-desktop-files
BuildRequires: module-init-tools
PreReq: coreutils sed grep diffutils fillup
PreReq: permissions
ExclusiveArch: %ix86 x86_64
Supplements: modalias(pci:v000015add*sv*sd*bc*sc*i*)
%define vm_modules vmblock vmhgfs vmmemctl vmsync vmxnet
%suse_kernel_module_package -n vmware -p %_sourcedir/preamble
%description
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
%package -n vmware-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
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
%patch1
chmod -x AUTHORS COPYING ChangeLog NEWS README
%build
%configure --without-dnet --without-procps --disable-dependency-tracking
make
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
popd
done
%install
# make install does almost nothing (only installs one library)
%makeinstall
# let's use the kernel's own modules_install routine
export INSTALL_MOD_PATH=$RPM_BUILD_ROOT
export INSTALL_MOD_DIR=updates
pushd ..
for flavor in %{flavors_to_build}; do
pushd obj/$flavor
for module in %{vm_modules}; do
make -C /usr/src/linux-obj/%_target_cpu/$flavor modules_install M=$PWD/modules/linux/$module
done
popd
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 vmware-guestd
mkdir -p $RPM_BUILD_ROOT%{_sbindir}
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/init.d
install -m 0755 guestd/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}"
EOF
# and also /etc/vmware-tools/xautostart.conf
install -m 0644 %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/vmware-tools/xautostart.conf
# 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 wmware-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/toolbox $RPM_BUILD_ROOT%{_bindir}/vmware-toolbox
# checkvm is a simple console application.
install -m 0755 checkvm/checkvm $RPM_BUILD_ROOT%{_bindir}/vmware-checkvm
# xferlogs is a simple console application.
install -m 0755 xferlogs/xferlogs $RPM_BUILD_ROOT%{_bindir}/vmware-xferlogs
# hgfsclient is a simple console application.
install -m 0755 hgfsclient/hgfsclient $RPM_BUILD_ROOT%{_bindir}/vmware-hgfsclient
# Install hgfsmounter
mkdir -p $RPM_BUILD_ROOT/sbin
cp hgfsmounter/hgfsmounter $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 link
ln -sf ../../etc/init.d/vmware-guest $RPM_BUILD_ROOT%{_sbindir}/rcvmware-guest
# get rid of the *.la files
find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
%post
%run_permissions
/sbin/ldconfig
%{fillup_and_insserv vmware-guest}
%verifyscript
%verify_permissions -e /sbin/mount.vmhgfs
%preun
%stop_on_removal vmware-guest
%postun
%restart_on_update vmware-guest
%insserv_cleanup
/sbin/ldconfig
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-, root, root)
%doc AUTHORS COPYING ChangeLog NEWS README
%{_bindir}/vmware*
%config %{_sysconfdir}/init.d/vmware*
%{_sysconfdir}/vmware-tools
%{_sysconfdir}/modprobe.d/vmnics
%{_sysconfdir}/pam.d/vmware*
%verify(not mode) %attr(0755,root,root) /sbin/mount.vmhgfs
%{_sbindir}/vmware*
%{_sbindir}/rcvmware-guest
%{_libdir}/libguestlib.*
%{_datadir}/applications/vmware*
%{_datadir}/pixmaps/vmware*
%changelog
* 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
- fixed %%verifyscript
* Tue Apr 22 2008 prusnak@suse.cz
- updated to 2008.04.14
* continued Unicode support
* more bug fixes, including a security fix in guestd
- added permissions scripts to %%post section
* Tue Mar 25 2008 dominique-rpm@leuenberger.net
- updated to 2008.03.19
* Thu Mar 20 2008 prusnak@suse.cz
- add Supplements to automatically install in VMware
* Tue Mar 18 2008 prusnak@suse.cz
- first autobuild checkin
- turn off -Werror (werror.patch)
- reworked spec file
* Fri Mar 14 2008 dominique-rpm@leuenberger.net
- updated to 2008.03.11
(developer snapshot to support all modules on 2.6.25 kernels)
* Tue Mar 11 2008 dominique-rpm@leuenberger.net
- updated to 2008.03.10
(developer snapshot to support kernel version 2.6.25-rc1)
* Sun Mar 09 2008 dominique-rpm@leuenberger.net
- refactored open-vm-tools-kver.patch to detect the kernel source
correctly
* Sat Mar 08 2008 dominique-rpm@leuenberger.net
- create link from /sbin/rcvmware to /etc/init.d/vmware-guest
- autostart the service after installation
* Sat Mar 08 2008 dominique-rpm@leuenberger.net
- initial build of open-vm-tools
- builds kmps and open-vm-tools

2
preamble Normal file
View File

@ -0,0 +1,2 @@
Enhances: kernel-%1
PreReq: coreutils grep

0
ready Normal file
View File

147
vmware-guest Normal file
View File

@ -0,0 +1,147 @@
#!/bin/sh
#
# Template SUSE system startup script for vmware-guest service/daemon
# Copyright (C) 2008 Dominique Leuenberger for openSUSE
#
# This library is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2.1 of the License, or (at
# your option) any later version.
#
# This library is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307,
# USA.
#
# /etc/init.d/vmware-guest
#
### BEGIN INIT INFO
# Provides: vmware-guest
# 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.
### 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";
if [ "$1" = "stop" ]; then exit 0;
else exit 5; fi; }
. /etc/rc.status
# Reset status of this service
rc_reset
# Return values acc. to LSB for all commands but status:
# 0 - success
# 1 - generic or unspecified error
# 2 - invalid or excess argument(s)
# 3 - unimplemented feature (e.g. "reload")
# 4 - user had insufficient privileges
# 5 - program is not installed
# 6 - program is not configured
# 7 - program is not running
# 8--199 - reserved (8--99 LSB, 100--149 distrib, 150--199 appl)
#
# Note that starting an already running service, stopping
# or restarting a not-running service as well as the restart
# with force-reload (in case signaling is not supported) are
# considered a success.
case "$1" in
start)
echo -n "Starting vmware-guestd "
## Start daemon with startproc(8). If this fails
## the return value is set appropriately by startproc.
/sbin/startproc $VMGUEST_BIN
# Remember status and be verbose
rc_status -v
;;
stop)
echo -n "Shutting down vmware-guest "
## Stop daemon with killproc(8) and if this fails
## killproc sets the return value according to LSB.
/sbin/killproc -TERM $VMGUEST_BIN
# Remember status and be verbose
rc_status -v
;;
try-restart|condrestart)
## Do a restart only if the service was active before.
## Note: try-restart is now part of LSB (as of 1.9).
## RH has a similar command named condrestart.
if test "$1" = "condrestart"; then
echo "${attn} Use try-restart ${done}(LSB)${attn} rather than condrestart ${warn}(RH)${norm}"
fi
$0 status
if test $? = 0; then
$0 restart
else
rc_reset # Not running is not a failure.
fi
# Remember status and be quiet
rc_status
;;
restart)
## Stop the service and regardless of whether it was
## running or not, start it again.
$0 stop
$0 start
# Remember status and be quiet
rc_status
;;
force-reload)
$0 try-restart
rc_status
;;
reload)
rc_failed 3
rc_status -v
;;
status)
echo -n "Checking for service vmware-guestd "
## Check status with checkproc(8), if process is running
## checkproc will return with exit status 0.
# Return value is slightly different for the status command:
# 0 - service up and running
# 1 - service dead, but /var/run/ pid file exists
# 2 - service dead, but /var/lock/ lock file exists
# 3 - service not running (unused)
# 4 - service status unknown :-(
# 5--199 reserved (5--99 LSB, 100--149 distro, 150--199 appl.)
# NOTE: checkproc returns LSB compliant status values.
/sbin/checkproc $VMGUEST_BIN
# NOTE: rc_status knows that we called this init script with
# "status" option and adapts its messages accordingly.
rc_status -v
;;
*)
echo "Usage: $0 {start|stop|status|try-restart|restart}"
exit 1
;;
esac
rc_exit

11
vmware-toolbox.desktop Normal file
View File

@ -0,0 +1,11 @@
[Desktop Entry]
Encoding=UTF-8
Name=VMware Toolbox
GenericName=System Monitor
Comment=VMware Guest Toolbox
Exec=vmware-toolbox
Icon=vmware-toolbox
Terminal=false
Type=Application
Categories=System;Monitor
StartupNotify=false

6
xautostart.conf Normal file
View File

@ -0,0 +1,6 @@
gnome-panel
ksmserver
startkde
kwrapper
panel
xfce4-panel