[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] r16311: Added open-vm-tools for a better VMWare experience. (in incognito/trunk: . arch/x86 portage.config portage.overlay portage.overlay/app-emulation portage.overlay/app-emulation/open-vm-tools portage.overlay/app-emulation/open-vm-tools/files root_overlay/var/patches)



Author: anonym
Date: 2008-07-31 15:46:30 -0400 (Thu, 31 Jul 2008)
New Revision: 16311

Added:
   incognito/trunk/portage.overlay/app-emulation/
   incognito/trunk/portage.overlay/app-emulation/open-vm-tools/
   incognito/trunk/portage.overlay/app-emulation/open-vm-tools/Manifest
   incognito/trunk/portage.overlay/app-emulation/open-vm-tools/files/
   incognito/trunk/portage.overlay/app-emulation/open-vm-tools/files/default-scripts.patch
   incognito/trunk/portage.overlay/app-emulation/open-vm-tools/files/makefile-destdir.patch
   incognito/trunk/portage.overlay/app-emulation/open-vm-tools/files/open-vm.confd
   incognito/trunk/portage.overlay/app-emulation/open-vm-tools/files/open-vm.initd
   incognito/trunk/portage.overlay/app-emulation/open-vm-tools/open-vm-tools-0.0.20080701.102166.ebuild
   incognito/trunk/root_overlay/var/patches/vmware-tools-init.patch
Modified:
   incognito/trunk/arch/x86/livecd-stage1.spec
   incognito/trunk/arch/x86/livecd-stage2.spec
   incognito/trunk/fsscript.sh
   incognito/trunk/portage.config/package.keywords
Log:
Added open-vm-tools for a better VMWare experience.


Modified: incognito/trunk/arch/x86/livecd-stage1.spec
===================================================================
--- incognito/trunk/arch/x86/livecd-stage1.spec	2008-07-31 19:34:28 UTC (rev 16310)
+++ incognito/trunk/arch/x86/livecd-stage1.spec	2008-07-31 19:46:30 UTC (rev 16311)
@@ -267,6 +267,9 @@
 	dev-libs/glib
 	sys-apps/dbus
 	x11-libs/libnotify
+	# Deps for open-vm-tools so they aren't pulled in stage2
+	dev-libs/icu
+	dev-libs/libdnet
 	# The following are rebuilds for USE flags
 	app-editors/nano
 	app-shells/bash

Modified: incognito/trunk/arch/x86/livecd-stage2.spec
===================================================================
--- incognito/trunk/arch/x86/livecd-stage2.spec	2008-07-31 19:34:28 UTC (rev 16310)
+++ incognito/trunk/arch/x86/livecd-stage2.spec	2008-07-31 19:46:30 UTC (rev 16311)
@@ -40,6 +40,7 @@
 	pdnsd|default
 	polipo|default
 	tor|default
+	vmware-tools|default
 	xdm|default
 
 # unionfs (genkernel 2.4.7) causes problems such as:
@@ -57,6 +58,7 @@
 
 boot/kernel/gentoo/packages:
 	app-crypt/truecrypt
+	app-emulation/open-vm-tools
 	app-laptop/laptop-mode-tools
 	kde-base/kdebase-kioslaves # Rebuild with hal
 	kde-base/kppp

Modified: incognito/trunk/fsscript.sh
===================================================================
--- incognito/trunk/fsscript.sh	2008-07-31 19:34:28 UTC (rev 16310)
+++ incognito/trunk/fsscript.sh	2008-07-31 19:46:30 UTC (rev 16311)
@@ -81,7 +81,7 @@
 
 	# Group membership
 	echo "Setting group membership"
-	for GRP in uucp dialout tor ${USERNAME} ipw3945d cdrw floppy plugdev; do
+	for GRP in uucp dialout tor ${USERNAME} ipw3945d cdrw floppy plugdev vmware; do
 		gpasswd -a ${USERNAME} ${GRP} 2>/dev/null || sed -i "s/^${GRP}:.*:\$/\0${USERNAME}/" /etc/group
 	done
 

Modified: incognito/trunk/portage.config/package.keywords
===================================================================
--- incognito/trunk/portage.config/package.keywords	2008-07-31 19:34:28 UTC (rev 16310)
+++ incognito/trunk/portage.config/package.keywords	2008-07-31 19:46:30 UTC (rev 16311)
@@ -33,6 +33,7 @@
 =app-misc/hal-info-20071011 ~*
 
 # Hardware
+=app-emulation/open-vm-tools-0.0.20080701.102166 ~*
 net-dialup/isdn-firmware ~*
 net-dialup/globespan-adsl ~*
 net-wireless/at76c503a ~*

Added: incognito/trunk/portage.overlay/app-emulation/open-vm-tools/Manifest
===================================================================
--- incognito/trunk/portage.overlay/app-emulation/open-vm-tools/Manifest	                        (rev 0)
+++ incognito/trunk/portage.overlay/app-emulation/open-vm-tools/Manifest	2008-07-31 19:46:30 UTC (rev 16311)
@@ -0,0 +1,6 @@
+AUX default-scripts.patch 3525 RMD160 7c3dfd342be245531493a9cf7a8be2be4c67dc4b SHA1 56ba6ca91262f73732a7d806a9c812aea683c2d2 SHA256 99ad1a202335736c50bbb92432371e522934d1a3347e992158b881cf9f810da6
+AUX makefile-destdir.patch 3108 RMD160 e2acae9a7a1eee8b900dea64ffe32da84bfb9cdc SHA1 77663372717e06c0e9e4bd47e02401d76298a298 SHA256 0be2f3ac56c6abee208c771a29f97c6cbc78e8cef128f2ac3a60cf471a6efff2
+AUX open-vm.confd 88 RMD160 5e398024e72a871f258d73e09f02e37a815443b0 SHA1 56133c21c6d29243ac81a9c1ada61616778f3ce2 SHA256 180a2b6d9d18af319b79b2ca6ebf1020b63e5ebf2f601a63c1a9f9f7d2e0b95c
+AUX open-vm.initd 1875 RMD160 9d2cc36fd93e70ae20eecd49b10c4da0e09aad69 SHA1 1702f267d32ca138e0e99d9ed86b4abc32cc3997 SHA256 1799b78836441b389de0b3d92aad80fcf020fe8b57da4f6d6999f86ee87f51bf
+DIST open-vm-tools-2008.07.01-102166.tar.gz 2558112 RMD160 7324a0f7f4f99ee23547bf51aaba316c79ceee55 SHA1 311de7dcc6bf50f017a399180b884150c21a6f32 SHA256 51293ff716bff35ecd03e8747280280be0a748e9fc5ec7c2d02d936b0c86d1c5
+EBUILD open-vm-tools-0.0.20080701.102166.ebuild 2701 RMD160 5bc76a6525535758de70ec1fbb57add017e7b1fa SHA1 6bb9d0bc96ed8b1fb9fafe3f8bca9b6cf736617a SHA256 e6dee5b5e4c2cf9aa8f0968b44e5f49acf96c813c65ed7e4bd7706e4f93dc1d8

Added: incognito/trunk/portage.overlay/app-emulation/open-vm-tools/files/default-scripts.patch
===================================================================
--- incognito/trunk/portage.overlay/app-emulation/open-vm-tools/files/default-scripts.patch	                        (rev 0)
+++ incognito/trunk/portage.overlay/app-emulation/open-vm-tools/files/default-scripts.patch	2008-07-31 19:46:30 UTC (rev 16311)
@@ -0,0 +1,139 @@
+diff --git a/scripts/linux/resume-vm-default b/scripts/linux/resume-vm-default
+index cebbba0..dbd38a6 100644
+--- a/scripts/linux/resume-vm-default
++++ b/scripts/linux/resume-vm-default
+@@ -25,41 +25,10 @@
+ echo `date` ": Executing '$0'"
+ echo
+ 
+-find_networking_script() {
+-    local script="error"
+-    for dir in "/etc/init.d" "/sbin/init.d" "/etc" "/etc/rc.d" ; do
+-        if [ -d "$dir/rc0.d" ] &&
+-	    [ -d "$dir/rc1.d" ] &&
+-	    [ -d "$dir/rc2.d" ] &&
+-	    [ -d "$dir/rc3.d" ] &&
+-	    [ -d "$dir/rc4.d" ] &&
+-	    [ -d "$dir/rc5.d" ] &&
+-	    [ -d "$dir/rc6.d" ]; then
+-
+-	    # Now find the appropriate networking script.
+-	    if [ -d "$dir/init.d" ]; then
+-		if [ -x "$dir/init.d/network" ]; then
+-		    script="$dir/init.d/network"
+-		elif [ -x "$dir/init.d/networking" ]; then
+-		    script="$dir/init.d/networking"
+-		fi
+-	    else
+-		if [ -x "$dir/network" ]; then
+-		    script="$dir/network"
+-		elif [ -x "$dir/networking" ]; then
+-		    script="$dir/networking"
+-		fi
+-	    fi
+-        fi
+-    done
+-
+-    echo "$script"
+-}
+-
+ rescue_NIC() {
+    niclist="/var/run/vmware-active-nics"
+ 
+-   ifup_path=`which ifup 2>/dev/null`;
++   ifup_path="/etc/init.d/net.";
+    if [ $? -ne 0 ]; then
+       return 1;
+    fi
+@@ -76,7 +45,7 @@ rescue_NIC() {
+          else
+             echo `date` "[rescue_nic] activating $nic ..."
+ 
+-            $ifup_path $nic
++            $ifup_path$nic restart
+          fi
+       done < $niclist
+ 
+@@ -95,15 +64,8 @@ if [ -d "$scriptsdir" ]; then
+     done
+ fi
+ 
+-network=`find_networking_script`
+-if [ "$network" != "error" ]; then
+-   "$network" restart
+-   # Continue even if the networking init script wasn't successful.
+-   status=0
+-else
+-   echo "networking script not found"
+-   status=1
+-fi
++# Continue even if the networking init script wasn't successful.
++status=0
+ 
+ if [ $status -eq 0 ]; then
+     rescue_NIC
+diff --git a/scripts/linux/suspend-vm-default b/scripts/linux/suspend-vm-default
+index 80bf5b9..f590194 100644
+--- a/scripts/linux/suspend-vm-default
++++ b/scripts/linux/suspend-vm-default
+@@ -25,37 +25,6 @@
+ echo `date` ": Executing '$0'"
+ echo
+ 
+-find_networking_script() {
+-    local script="error"
+-    for dir in "/etc/init.d" "/sbin/init.d" "/etc" "/etc/rc.d" ; do
+-        if [ -d "$dir/rc0.d" ] &&
+-	    [ -d "$dir/rc1.d" ] &&
+-	    [ -d "$dir/rc2.d" ] &&
+-	    [ -d "$dir/rc3.d" ] &&
+-	    [ -d "$dir/rc4.d" ] &&
+-	    [ -d "$dir/rc5.d" ] &&
+-	    [ -d "$dir/rc6.d" ]; then
+-
+-	    # Now find the appropriate networking script.
+-	    if [ -d "$dir/init.d" ]; then
+-		if [ -x "$dir/init.d/network" ]; then
+-		    script="$dir/init.d/network"
+-		elif [ -x "$dir/init.d/networking" ]; then
+-		    script="$dir/init.d/networking"
+-		fi
+-	    else
+-		if [ -x "$dir/network" ]; then
+-		    script="$dir/network"
+-		elif [ -x "$dir/networking" ]; then
+-		    script="$dir/networking"
+-		fi
+-	    fi
+-        fi
+-    done
+-
+-    echo "$script"
+-}
+-
+ save_active_NIC_list() {
+     ifconfig_path=`which ifconfig 2>/dev/null`
+     if [ $? ]; then
+@@ -76,15 +45,12 @@ fi
+ 
+ save_active_NIC_list
+ 
+-network=`find_networking_script`
+-if [ "$network" != "error" ]; then
+-   "$network" stop
+-   # If the network is down, this may fail but that's not a good reason
+-   # to prevent the suspend.
+-   status=0
+-else
+-   echo "networking script not found"
+-   status=1
+-fi
++for network in `ls /etc/init.d/net.*`; 
++do
++  "$network" stop
++done
++# If the network is down, this may fail but that's not a good reason
++# to prevent the suspend.
++status=0
+ 
+ exit "$status"

Added: incognito/trunk/portage.overlay/app-emulation/open-vm-tools/files/makefile-destdir.patch
===================================================================
--- incognito/trunk/portage.overlay/app-emulation/open-vm-tools/files/makefile-destdir.patch	                        (rev 0)
+++ incognito/trunk/portage.overlay/app-emulation/open-vm-tools/files/makefile-destdir.patch	2008-07-31 19:46:30 UTC (rev 16311)
@@ -0,0 +1,82 @@
+diff --git a/guestd/Makefile.am b/guestd/Makefile.am
+index 68e55bb..c027edb 100644
+--- a/guestd/Makefile.am
++++ b/guestd/Makefile.am
+@@ -96,8 +96,8 @@ endif PAMD
+ endif LINUX
+ 
+ install-exec-hook:
+-	$(INSTALL) -d /etc/vmware-tools
+-	echo 'disable-tools-version = "true"' > /etc/vmware-tools/tools.conf
++	$(INSTALL) -d $(DESTDIR)/etc/vmware-tools
++	echo 'disable-tools-version = "true"' > $(DESTDIR)/etc/vmware-tools/tools.conf
+ 
+ uninstall-hook:
+-	$(RM) -rf /etc/vmware-tools
++	$(RM) -rf $(DESTDIR)/etc/vmware-tools
+diff --git a/hgfsmounter/Makefile.am b/hgfsmounter/Makefile.am
+index 83dc90a..0202d5d 100644
+--- a/hgfsmounter/Makefile.am
++++ b/hgfsmounter/Makefile.am
+@@ -30,13 +30,13 @@ mount_vmhgfs_SOURCES += stub-user-util.c
+ 
+ if FREEBSD
+ install-exec-hook:
+-	$(MV) $(sbindir)/mount.vmhgfs $(sbindir)/mount_vmhgfs
+-	chown root $(sbindir)/mount_vmhgfs
+-	chmod u+s $(sbindir)/mount_vmhgfs
++	$(MV) $(DESTDIR)$(sbindir)/mount.vmhgfs $(DESTDIR)$(sbindir)/mount_vmhgfs
++	chown root $(DESTDIR)$(sbindir)/mount_vmhgfs
++	chmod u+s $(DESTDIR)$(sbindir)/mount_vmhgfs
+ uninstall-hook:
+-	$(RM) -f $(sbindir)/mount_vmhgfs
++	$(RM) -f $(DESTDIR)$(sbindir)/mount_vmhgfs
+ else
+ install-exec-hook:
+-	chown root $(sbindir)/mount.vmhgfs
+-	chmod u+s $(sbindir)/mount.vmhgfs
++	chown root $(DESTDIR)$(sbindir)/mount.vmhgfs
++	chmod u+s $(DESTDIR)$(sbindir)/mount.vmhgfs
+ endif !FREEBSD
+diff --git a/toolbox/Makefile.am b/toolbox/Makefile.am
+index 18508ec..544e9c7 100644
+--- a/toolbox/Makefile.am
++++ b/toolbox/Makefile.am
+@@ -62,14 +62,14 @@ vmware_toolbox_SOURCES += toolboxScripts.c
+ vmware_toolbox_SOURCES += toolboxShrink.c
+ 
+ install-exec-hook:
+-	$(INSTALL) -d $(datadir)/applications/
++	$(INSTALL) -d $(DESTDIR)$(datadir)/applications/
+ 	$(INSTALL) -m 644 ../scripts/common/vmware-toolbox.desktop \
+-		$(datadir)/applications/
++		$(DESTDIR)$(datadir)/applications/
+ 	$(SED) -i s/Exec=.*/Exec=vmware-toolbox/ \
+-		$(datadir)/applications/vmware-toolbox.desktop
+-	$(INSTALL) -d /usr/share/pixmaps/vmware
++		$(DESTDIR)$(datadir)/applications/vmware-toolbox.desktop
++	$(INSTALL) -d $(DESTDIR)/usr/share/pixmaps/vmware
+ 	$(INSTALL) -m 644 bigIcon.xpm \
+-		/usr/share/pixmaps/vmware/vmware-toolbox.xpm
++		$(DESTDIR)/usr/share/pixmaps/vmware/vmware-toolbox.xpm
+ uninstall-hook:
+-	-$(RM) -f $(datadir)/share/applications/vmware-toolbox.desktop
+-	-$(RM) -rf /usr/share/pixmaps/vmware
++	-$(RM) -f $(DESTDIR)$(datadir)/share/applications/vmware-toolbox.desktop
++	-$(RM) -rf $(DESTDIR)/usr/share/pixmaps/vmware
+diff --git a/vmware-user/Makefile.am b/vmware-user/Makefile.am
+index 0f64cc9..4a7133e 100644
+--- a/vmware-user/Makefile.am
++++ b/vmware-user/Makefile.am
+@@ -89,8 +89,8 @@ vmware_user_SOURCES += pointer.c
+ vmware_user_SOURCES += vmware-user.c
+ 
+ install-exec-hook:
+-	$(INSTALL) -d $(datadir)/applications/
++	$(INSTALL) -d $(DESTDIR)$(datadir)/applications/
+ 	$(INSTALL) -m 644 ../scripts/common/vmware-user.desktop \
+-		$(datadir)/applications/
++		$(DESTDIR)$(datadir)/applications/
+ uninstall-hook:
+-	-$(RM) -f $(datadir)/applications/vmware-user.desktop
++	-$(RM) -f $(DESTDIR)$(datadir)/applications/vmware-user.desktop

Added: incognito/trunk/portage.overlay/app-emulation/open-vm-tools/files/open-vm.confd
===================================================================
--- incognito/trunk/portage.overlay/app-emulation/open-vm-tools/files/open-vm.confd	                        (rev 0)
+++ incognito/trunk/portage.overlay/app-emulation/open-vm-tools/files/open-vm.confd	2008-07-31 19:46:30 UTC (rev 16311)
@@ -0,0 +1,2 @@
+# Set this to no to disable drag and drop (and vmblock) loading.
+VM_DRAG_AND_DROP="yes"

Added: incognito/trunk/portage.overlay/app-emulation/open-vm-tools/files/open-vm.initd
===================================================================
--- incognito/trunk/portage.overlay/app-emulation/open-vm-tools/files/open-vm.initd	                        (rev 0)
+++ incognito/trunk/portage.overlay/app-emulation/open-vm-tools/files/open-vm.initd	2008-07-31 19:46:30 UTC (rev 16311)
@@ -0,0 +1,76 @@
+#!/sbin/runscript
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/open-vm-tools/files/open-vm.initd,v 1.2 2008/02/01 12:33:36 flameeyes Exp $
+
+DND_TMPDIR="/tmp/VMwareDnD"
+USER_GROUP="root:vmware"
+DND_TMPDIR_PERMS="1777"
+GUESTD_BIN="/usr/sbin/vmware-guestd"
+PIDFILE="/var/run/vmware-guestd.pid"
+MOUNTPOINT="/proc/fs/vmblock/mountPoint"
+
+depend() {
+	before checkfs fsck net X
+}
+
+start() {
+	if [ "${VM_DRAG_AND_DROP}" == "yes" ];
+	then
+
+		if ! grep -q -w vmblock /proc/modules;
+		then
+			ebegin "Loading vmblock module"
+			modprobe vmblock
+			eend $?
+			sleep 0.25
+		fi
+
+		if [[ ! -d "${DND_TMPDIR}" ]];
+		then
+			# einfo "Creating the VM drag and drop directory"
+			mkdir "${DND_TMPDIR}"
+			chown "${USER_GROUP}" "${DND_TMPDIR}"
+			chmod "${DND_TMPDIR_PERMS}" "${DND_TMPDIR}"
+		fi
+
+		# DnD_TMPDIR must exist before vmblock can be mounted
+		ebegin "Mounting vmblock device"
+		mount -t vmblock none ${MOUNTPOINT}
+		eend $?
+	fi
+	
+	ebegin "Starting vmware-guestd"
+	start-stop-daemon --chuid "${USER_GROUP}" --start --quiet --exec ${GUESTD_BIN} -- --background "${PIDFILE}"
+	eend $?
+}
+
+stop() {
+	local ret
+	
+	if [ "${VM_DRAG_AND_DROP}" == "yes" ];
+	then
+		ebegin "Cleaning the contents of ${DND_TMPDIR}"
+		# First check, whether ${DND_TMPDIR} isn valid... we shouldn't risk deleting the content of ""/*
+		if [[ ! -z "${DND_TMPDIR}" ]] && [[ "${DND_TMPDIR}" != "/" ]];
+		then
+			rm -rf ${DND_TMPDIR}/*
+			ret=0
+		else
+			eerror "Not cleaning up ${DND_TMPDIR}, please check definition of variable"
+			ret=1
+		fi
+		eend $ret
+
+		ebegin "Unmounting vmblock device"
+		if grep -q -w "${MOUNTPOINT}" /proc/mounts;
+		then
+			umount ${MOUNTPOINT} 1>&2 > /dev/null
+		fi
+		eend 0
+	fi
+
+	ebegin "Stopping vmware-guestd"
+	start-stop-daemon --stop --quiet --pidfile "${PIDFILE}"
+	eend $?
+}

Added: incognito/trunk/portage.overlay/app-emulation/open-vm-tools/open-vm-tools-0.0.20080701.102166.ebuild
===================================================================
--- incognito/trunk/portage.overlay/app-emulation/open-vm-tools/open-vm-tools-0.0.20080701.102166.ebuild	                        (rev 0)
+++ incognito/trunk/portage.overlay/app-emulation/open-vm-tools/open-vm-tools-0.0.20080701.102166.ebuild	2008-07-31 19:46:30 UTC (rev 16311)
@@ -0,0 +1,117 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/open-vm-tools/open-vm-tools-0.0.20071121.64693.ebuild,v 1.2 2007/12/22 23:05:54 mr_bones_ Exp $
+
+inherit pam eutils linux-mod autotools versionator
+
+MY_DATE="$(get_version_component_range 3)"
+MY_BUILD="$(get_version_component_range 4)"
+MY_PV="${MY_DATE:0:4}.${MY_DATE:4:2}.${MY_DATE:6:2}-${MY_BUILD}"
+MY_P="${PN}-${MY_PV}"
+
+S="${WORKDIR}/${MY_P}"
+
+DESCRIPTION="Opensourced tools for VMware guests"
+HOMEPAGE="http://open-vm-tools.sourceforge.net/";
+SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
+
+LICENSE="LGPL-2"
+SLOT="0"
+KEYWORDS="~x86 ~amd64"
+IUSE="X xinerama icu"
+DEPEND="
+		virtual/linux-sources
+		sys-apps/ethtool
+		X? (
+			x11-libs/libX11
+			x11-libs/gtk+
+			)
+		xinerama? (
+			x11-libs/libXinerama
+			)
+		!app-emulation/vmware-workstation-tools
+		!app-emulation/vmware-server-tools
+		!app-emulation/vmware-esx-tools
+		sys-process/procps
+		dev-libs/libdnet
+		icu? ( dev-libs/icu )
+		"
+
+RDEPEND="${DEPEND/virtual\/linux\-sources/}
+		 virtual/pam
+		 X? (
+			x11-base/xorg-server
+			x11-drivers/xf86-video-vmware
+			x11-drivers/xf86-input-vmmouse
+		 )
+"
+
+VMWARE_MOD_DIR="modules/linux"
+VMWARE_MODULE_LIST="vmblock vmhgfs vmsync vmmemctl vmxnet"
+
+pkg_setup() {
+
+	linux-mod_pkg_setup
+	MODULE_NAMES=""
+	BUILD_TARGETS="auto-build HEADER_DIR=${KERNEL_DIR}/include BUILD_DIR=${KV_OUT_DIR}"
+
+	for mod in ${VMWARE_MODULE_LIST};
+	do
+		if [[ "${mod}" == "vmxnet" ]];
+		then
+			MODTARGET="net"
+		else
+			MODTARGET="openvmtools"
+		fi
+		MODULE_NAMES="${MODULE_NAMES} ${mod}(${MODTARGET}:${S}/${VMWARE_MOD_DIR}/${mod})"
+	done
+
+	ewarn "If you're compiling for a hardened target, please use the hardened"
+	ewarn "toolchain (see bug #200376, comment 18)."
+
+	enewgroup vmware
+
+}
+
+src_unpack() {
+	unpack ${A}
+	cd "${S}"
+	epatch "${FILESDIR}/default-scripts.patch"
+	epatch "${FILESDIR}/makefile-destdir.patch"
+
+	eautoreconf
+}
+
+src_compile() {
+	econf \
+	--without-kernel-modules \
+	$(use_with icu) \
+	$(use_with X x) \
+	$(use_enable xinerama multimon) \
+	|| die "Error: econf failed!"
+
+	linux-mod_src_compile
+
+	emake || die
+}
+
+src_install() {
+
+	linux-mod_src_install
+
+	pamd_mimic_system vmware-guestd auth account
+
+	emake install DESTDIR=${D} || die "Failed to install"
+
+	newinitd "${FILESDIR}/open-vm.initd" vmware-tools
+	newconfd "${FILESDIR}/open-vm.confd" vmware-tools
+
+	if use X;
+	then
+		elog "To be able to use the drag'n'drop feature of VMware for file"
+		elog "exchange, you need to do this:"
+		elog "	Add 'vmware-tools' to your default runlevel"
+		elog "	Add the users which should have access to this function"
+		elog "	to the group 'vmware'"
+	fi
+}

Added: incognito/trunk/root_overlay/var/patches/vmware-tools-init.patch
===================================================================
--- incognito/trunk/root_overlay/var/patches/vmware-tools-init.patch	                        (rev 0)
+++ incognito/trunk/root_overlay/var/patches/vmware-tools-init.patch	2008-07-31 19:46:30 UTC (rev 16311)
@@ -0,0 +1,15 @@
+--- etc/init.d/vmware-tools.orig	2008-07-31 19:18:21.516752857 +0000
++++ etc/init.d/vmware-tools	2008-07-31 21:29:52.783973120 +0000
+@@ -15,6 +15,12 @@
+ }
+ 
+ start() {
++	vmware-checkvm &> /dev/null
++	if [ $? -ne 0 ]; then
++		eend 1 "Not running inside VMWare, aborting vmware-tools init script"
++		return 1
++	fi
++
+ 	if [ "${VM_DRAG_AND_DROP}" == "yes" ];
+ 	then
+ 


Property changes on: incognito/trunk/root_overlay/var/patches/vmware-tools-init.patch
___________________________________________________________________
Name: svn:executable
   + *