summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormattw <mattw@localhost>2011-11-19 12:41:54 +0000
committermattw <mattw@localhost>2011-11-19 12:41:54 +0000
commitea5983b5f3716d3c34decadbaf307e91e3d6fe9f (patch)
tree35c9294eb5c42ec7fd70cb03e80b44c17e9e1d01 /app-emulation
parentopen-vm-tools: fixed default network script (diff)
downloadvmware-ea5983b5f3716d3c34decadbaf307e91e3d6fe9f.tar.gz
vmware-ea5983b5f3716d3c34decadbaf307e91e3d6fe9f.tar.bz2
vmware-ea5983b5f3716d3c34decadbaf307e91e3d6fe9f.zip
version bump to VMware desktop build 528992
vmware-modules-264.1.ebuild fails to build for me against sys-kernel/gentoo-sources-3.0.6, so I've removed its keywords until a fix can be found. svn path=/trunk/; revision=514
Diffstat (limited to 'app-emulation')
-rw-r--r--app-emulation/vmware-modules/Manifest1
-rw-r--r--app-emulation/vmware-modules/vmware-modules-264.1.ebuild78
-rw-r--r--app-emulation/vmware-player/Manifest3
-rw-r--r--app-emulation/vmware-player/vmware-player-4.0.1.528992.ebuild233
-rw-r--r--app-emulation/vmware-tools/Manifest13
-rw-r--r--app-emulation/vmware-tools/vmware-tools-8.8.1.528992.ebuild55
-rw-r--r--app-emulation/vmware-workstation/Manifest3
-rw-r--r--app-emulation/vmware-workstation/vmware-workstation-8.0.1.528992.ebuild489
8 files changed, 875 insertions, 0 deletions
diff --git a/app-emulation/vmware-modules/Manifest b/app-emulation/vmware-modules/Manifest
index 3d9685f..03dc5b5 100644
--- a/app-emulation/vmware-modules/Manifest
+++ b/app-emulation/vmware-modules/Manifest
@@ -21,4 +21,5 @@ EBUILD vmware-modules-208.2.ebuild 1861 RMD160 6641f57a7906ff1eb243e14561c37475e
EBUILD vmware-modules-238.5.ebuild 1873 RMD160 681c4ccebeb95f2fed04a4c96e61ac2eeb78b7c2 SHA1 cb0182be00360b491b1a786a19e22109433801de SHA256 387ff9118264bb7b4da60676320d1cf464bc45b6c2312ee5b41174ddcf74015a
EBUILD vmware-modules-264.0-r1.ebuild 1783 RMD160 8675556e0a64b43598daa0e5bb3112decdbcfe93 SHA1 a24a74b639692c718d73cbdf4d20b9a74388492b SHA256 52595ee7801735540b5fd7e3bb3b43fbc7bbcb114efbc6ee67b312675e9926d8
EBUILD vmware-modules-264.0.ebuild 1733 RMD160 a841071b9c267c738da4562749e3d7e3bf15a797 SHA1 b8a9ed3951f7477013271bc65ca9ce66c7ece8b6 SHA256 47b7fd8c4c07cc0deba59de425b596ed553666e649bb35a844889e387cebabbf
+EBUILD vmware-modules-264.1.ebuild 1772 RMD160 a4a0ef8c6ad13409780f4c9bb1c75d18dacb3136 SHA1 8a34e91de4f415ea40ff7d899f7301797eb5503a SHA256 dcaa56c300c1e9cb57a60dfe3d76895c5925917eea44a3bccd4794202d54d1dd
MISC metadata.xml 159 RMD160 fc7f68a382390e5916b0fb43f37a893fad4f9798 SHA1 f46b02a39bcd0165558de67ff4256cfc812418a3 SHA256 8581ae1c90a48f50fa0542c7fb28cb8984baaf12f50fa18f33e467081effb215
diff --git a/app-emulation/vmware-modules/vmware-modules-264.1.ebuild b/app-emulation/vmware-modules/vmware-modules-264.1.ebuild
new file mode 100644
index 0000000..d049a7d
--- /dev/null
+++ b/app-emulation/vmware-modules/vmware-modules-264.1.ebuild
@@ -0,0 +1,78 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="2"
+
+inherit eutils flag-o-matic linux-info linux-mod versionator
+
+PV_MAJOR=$(get_major_version)
+PV_MINOR=$(get_version_component_range 2)
+
+DESCRIPTION="VMware kernel modules"
+HOMEPAGE="http://www.vmware.com/"
+
+SRC_URI=""
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS=""
+IUSE=""
+
+RDEPEND=""
+DEPEND="${RDEPEND}
+ || ( =app-emulation/vmware-player-4.0.${PV_MINOR}*
+ =app-emulation/vmware-workstation-8.0.${PV_MINOR}* )"
+
+S=${WORKDIR}
+
+pkg_setup() {
+ CONFIG_CHECK="~HIGH_RES_TIMERS"
+ if kernel_is ge 2 6 37 && kernel_is lt 2 6 39; then
+ CONFIG_CHECK="${CONFIG_CHECK} BKL"
+ fi
+
+ linux-info_pkg_setup
+
+ linux-mod_pkg_setup
+
+ VMWARE_GROUP=${VMWARE_GROUP:-vmware}
+
+ VMWARE_MODULE_LIST="vmblock vmci vmmon vmnet vsock"
+ VMWARE_MOD_DIR="${PN}-${PVR}"
+
+ BUILD_TARGETS="auto-build KERNEL_DIR=${KERNEL_DIR} KBUILD_OUTPUT=${KV_OUT_DIR}"
+
+ enewgroup "${VMWARE_GROUP}"
+ filter-flags -mfpmath=sse
+
+ for mod in ${VMWARE_MODULE_LIST}; do
+ MODULE_NAMES="${MODULE_NAMES} ${mod}(misc:${S}/${mod}-only)"
+ done
+}
+
+src_unpack() {
+ cd "${S}"
+ for mod in ${VMWARE_MODULE_LIST}; do
+ tar -xf /opt/vmware/lib/vmware/modules/source/${mod}.tar
+ done
+}
+
+src_prepare() {
+ epatch "${FILESDIR}/${PV_MAJOR}-makefile-kernel-dir.patch"
+ epatch "${FILESDIR}/${PV_MAJOR}-makefile-include.patch"
+ epatch "${FILESDIR}/${PV_MAJOR}-jobserver.patch"
+ epatch "${FILESDIR}/${PV_MAJOR}-netdevice.patch"
+}
+
+src_install() {
+ linux-mod_src_install
+ local udevrules="${T}/60-vmware.rules"
+ cat > "${udevrules}" <<-EOF
+ KERNEL=="vmci", GROUP="vmware", MODE=660
+ KERNEL=="vmmon", GROUP="vmware", MODE=660
+ KERNEL=="vsock", GROUP="vmware", MODE=660
+ EOF
+ insinto /etc/udev/rules.d/
+ doins "${udevrules}"
+}
diff --git a/app-emulation/vmware-player/Manifest b/app-emulation/vmware-player/Manifest
index ee125e5..2f2cbb6 100644
--- a/app-emulation/vmware-player/Manifest
+++ b/app-emulation/vmware-player/Manifest
@@ -6,6 +6,9 @@ DIST VMware-Player-3.1.5-491717.i386.bundle 107094686 RMD160 293941018c9dec86eee
DIST VMware-Player-3.1.5-491717.x86_64.bundle 103019114 RMD160 b1a2544e5718474a1987389136a42034dfbc2ff2 SHA1 a253a486d6c6848620de200ef1837ced903daa1c SHA256 5aa1f01d09a1c39da06f3a314d3e47e75e80b4a345ef76dabe14e538fe3bc511
DIST VMware-Player-4.0.0-471780.i386.bundle 131366064 RMD160 e4513ea96b557a5067b3a822b399cb5fcb4de426 SHA1 c8cb81e1d35dab000e7dbe3e1aee519fd6aa89fd SHA256 5a88940b92bebc1b5c09caecbfcbe46b05e857b8383e52d392ee62fab822e00b
DIST VMware-Player-4.0.0-471780.x86_64.bundle 129048195 RMD160 0c4a2174212e80dc62781ef5f3b53cee682f1bcf SHA1 e1452a72895c902cc6b4f85be9f4fb79c85ac809 SHA256 5218c6d2c27b7b0d2019aaaa2573a1411bc202ad7bfa06a1a6c3df913d8dd5c4
+DIST VMware-Player-4.0.1-528992.i386.bundle 131763315 RMD160 bd26399b4044079fc95ecba62042b8ddab8709a7 SHA1 1f686ea7a6f3e13a390a5644581b809a27021ed5 SHA256 13eabb650f6746cad64a334abea3446dd8ab66ca386a4e13b7a3e77db8a95d6e
+DIST VMware-Player-4.0.1-528992.x86_64.bundle 129509694 RMD160 c530e38d42222c2eec0f63e24ee24057b8d3dce9 SHA1 7332763867b6ed1978271a3335c7e135a1293210 SHA256 57f5e22c28827e4edf000aa44054cf62d886ed4c174cbb0ebe5e0e0eb6e9995c
EBUILD vmware-player-3.1.5.491717.ebuild 6334 RMD160 ee39299fbfb01c28c1890c862d3f39a4e3d7c163 SHA1 8b90cfe522e17a5c15b742afbc139d60decf9ca6 SHA256 ea378d1d5d1308689bacf2104f618dec655f732eff2c3e52ee11acb26656c57e
EBUILD vmware-player-4.0.0.471780-r1.ebuild 6119 RMD160 95de6fc511bb09642221952dcd3bfc4027c482c1 SHA1 ec7687005ff737ce51da4b5a1cc414d8a47ccb52 SHA256 e07af6b3fbddfb6491fb0e04d9927b03164d5b248f7b0fe4b6b68d5fc10e40a5
+EBUILD vmware-player-4.0.1.528992.ebuild 6119 RMD160 206a23449c90991d12c093ecc4101130d94cbba4 SHA1 bc0a9f86e6f3fff5466eb76ef01cedfdcb11e81c SHA256 6fbd6d11a77f0ebdd1689cda79bb79caf261eaca4a554a1bdfae1357ddc89bb0
MISC metadata.xml 238 RMD160 beef158e0603e5808d104743feba4be3e7a7e8c4 SHA1 276217c6f03ae24c0196519197240031a6961254 SHA256 8374f3a2a8f05bf0690ab35f79a20980026aefa9fabae93fe81442f54291018b
diff --git a/app-emulation/vmware-player/vmware-player-4.0.1.528992.ebuild b/app-emulation/vmware-player/vmware-player-4.0.1.528992.ebuild
new file mode 100644
index 0000000..b580203
--- /dev/null
+++ b/app-emulation/vmware-player/vmware-player-4.0.1.528992.ebuild
@@ -0,0 +1,233 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/vmware-player/vmware-player-3.1.4.385536.ebuild,v 1.1 2011/04/15 12:33:18 vadimk Exp $
+
+EAPI="2"
+
+inherit eutils versionator fdo-mime gnome2-utils vmware-bundle
+
+MY_PN="VMware-Player"
+MY_PV="$(replace_version_separator 3 - $PV)"
+MY_P="${MY_PN}-${MY_PV}"
+
+DESCRIPTION="Emulate a complete PC on your PC without the usual performance overhead of most emulators"
+HOMEPAGE="http://www.vmware.com/products/player/"
+SRC_URI="
+ x86? ( ${MY_P}.i386.bundle )
+ amd64? ( ${MY_P}.x86_64.bundle )
+ "
+
+LICENSE="vmware"
+SLOT="0"
+KEYWORDS="-* ~amd64 ~x86"
+IUSE="doc +vmware-tools"
+RESTRICT="binchecks fetch strip"
+
+# vmware-workstation should not use virtual/libc as this is a
+# precompiled binary package thats linked to glibc.
+RDEPEND="dev-cpp/cairomm
+ dev-cpp/glibmm:2
+ dev-cpp/gtkmm:2.4
+ dev-cpp/libgnomecanvasmm:2.6
+ dev-cpp/libsexymm
+ dev-cpp/pangomm:1.4
+ dev-libs/atk
+ dev-libs/glib:2
+ dev-libs/libaio
+ dev-libs/libsigc++
+ dev-libs/libxml2
+ =dev-libs/openssl-0.9.8*
+ dev-libs/xmlrpc-c
+ gnome-base/libgnomecanvas
+ gnome-base/libgtop:2
+ gnome-base/librsvg:2
+ gnome-base/orbit
+ media-libs/fontconfig
+ media-libs/freetype
+ media-libs/libart_lgpl
+ =media-libs/libpng-1.2*
+ net-misc/curl
+ sys-devel/gcc
+ sys-fs/fuse
+ sys-libs/glibc
+ sys-libs/zlib
+ x11-libs/cairo
+ x11-libs/gtk+:2
+ x11-libs/libgksu
+ x11-libs/libICE
+ x11-libs/libsexy
+ x11-libs/libSM
+ x11-libs/libX11
+ x11-libs/libXau
+ x11-libs/libxcb
+ x11-libs/libXcomposite
+ x11-libs/libXcursor
+ x11-libs/libXdamage
+ x11-libs/libXdmcp
+ x11-libs/libXext
+ x11-libs/libXfixes
+ x11-libs/libXft
+ x11-libs/libXi
+ x11-libs/libXinerama
+ x11-libs/libXrandr
+ x11-libs/libXrender
+ x11-libs/libXtst
+ x11-libs/pango
+ x11-libs/startup-notification
+ !app-emulation/vmware-server
+ !app-emulation/vmware-workstation"
+PDEPEND="~app-emulation/vmware-modules-264.1
+ vmware-tools? ( app-emulation/vmware-tools )"
+
+S=${WORKDIR}
+VM_INSTALL_DIR="/opt/vmware"
+
+pkg_nofetch() {
+ local bundle
+
+ if use x86; then
+ bundle="${MY_P}.i386.bundle"
+ elif use amd64; then
+ bundle="${MY_P}.x86_64.bundle"
+ fi
+
+ einfo "Please download ${bundle}"
+ einfo "from ${HOMEPAGE}"
+ einfo "and place it in ${DISTDIR}"
+}
+
+src_unpack() {
+ local component ; for component in \
+ vmware-player-app \
+ vmware-vmx \
+ vmware-usbarbitrator \
+ vmware-network-editor
+ #vmware-player-setup
+ #vmware-ovftool
+ do
+ vmware-bundle_extract-bundle-component "${DISTDIR}/${A}" "${component}" "${S}"
+ done
+}
+
+src_prepare() {
+ rm -f bin/vmware-modconfig
+ rm -rf lib/modules/binary
+}
+
+clean_bundled_libs() {
+ ebegin 'Removing superfluous libraries'
+ # exclude OpenSSL from unbundling until the AES-NI patch gets into the tree
+ # see http://forums.gentoo.org/viewtopic-t-835867.html
+ # must use shipped libgcr.so.0 or else "undefined symbol: gcr_certificate_widget_new"
+ ldconfig -p | sed 's:^\s\+\([^(]*[^( ]\).*=> \(/.*\)$:\1 \2:g;t;d' | fgrep -v 'libcrypto.so.0.9.8
+libssl.so.0.9.8
+libgcr.so.0' | while read -r libname libpath ; do
+ dosym "${libpath}" "${VM_INSTALL_DIR}/lib/vmware/lib/${libname}/${libname}"
+ done
+ eend
+}
+
+src_install() {
+ local major_minor_revision=$(get_version_component_range 1-3 "${PV}")
+ local build=$(get_version_component_range 4 "${PV}")
+
+ # install the binaries
+ into "${VM_INSTALL_DIR}"
+ dobin bin/* || die "failed to install bin"
+
+ # install the libraries
+ insinto "${VM_INSTALL_DIR}"/lib/vmware
+ doins -r lib/* || die "failed to install lib"
+
+ # install the ancillaries
+ insinto /usr
+ doins -r share || die "failed to install share"
+
+ # install documentation
+ if use doc; then
+ dodoc doc/* || die "failed to install docs"
+ fi
+
+ # create symlinks for the various tools
+ local tool ; for tool in vmplayer{,-daemon} \
+ vmware-{acetool,unity-helper,modconfig{,-console},gksu,fuseUI} ; do
+ dosym appLoader "${VM_INSTALL_DIR}"/lib/vmware/bin/"${tool}" || die
+ done
+ dosym "${VM_INSTALL_DIR}"/lib/vmware/bin/vmplayer "${VM_INSTALL_DIR}"/bin/vmplayer || die
+
+ # fix up permissions
+ chmod 0755 "${D}${VM_INSTALL_DIR}"/lib/vmware/{bin/*,lib/wrapper-gtk24.sh}
+ chmod 04711 "${D}${VM_INSTALL_DIR}"/lib/vmware/bin/vmware-vmx*
+
+ # create the environment
+ local envd="${T}/90vmware"
+ cat > "${envd}" <<-EOF
+ PATH='${VM_INSTALL_DIR}/bin'
+ ROOTPATH='${VM_INSTALL_DIR}/bin'
+ EOF
+ doenvd "${envd}" || die
+
+ # create the configuration
+ dodir /etc/vmware || die
+
+ cat > "${D}"/etc/vmware/bootstrap <<-EOF
+ BINDIR='${VM_INSTALL_DIR}/bin'
+ LIBDIR='${VM_INSTALL_DIR}/lib'
+ EOF
+
+ cat > "${D}"/etc/vmware/config <<-EOF
+ bindir = "${VM_INSTALL_DIR}/bin"
+ libdir = "${VM_INSTALL_DIR}/lib/vmware"
+ initscriptdir = "/etc/init.d"
+ authd.fullpath = "${VM_INSTALL_DIR}/sbin/vmware-authd"
+ gksu.rootMethod = "su"
+ VMCI_CONFED = "yes"
+ VMBLOCK_CONFED = "yes"
+ VSOCK_CONFED = "yes"
+ NETWORKING = "yes"
+ player.product.version = "${major_minor_revision}"
+ product.buildNumber = "${build}"
+ EOF
+
+ # install the init.d script
+ local initscript="${T}/vmware.rc"
+
+ sed -e "s:@@BINDIR@@:${VM_INSTALL_DIR}/bin:g" \
+ "${FILESDIR}/vmware-3.0.rc" > "${initscript}" || die
+ newinitd "${initscript}" vmware || die
+
+ # fill in variable placeholders
+ sed -e "s:@@LIBCONF_DIR@@:${VM_INSTALL_DIR}/lib/vmware/libconf:g" \
+ -i "${D}${VM_INSTALL_DIR}"/lib/vmware/libconf/etc/{gtk-2.0/{gdk-pixbuf.loaders,gtk.immodules},pango/pango{.modules,rc}} || die
+ sed -e "s:@@BINARY@@:${VM_INSTALL_DIR}/bin/vmplayer:g" \
+ -i "${D}/usr/share/applications/${PN}.desktop" || die
+}
+
+pkg_config() {
+ "${VM_INSTALL_DIR}"/bin/vmware-networks --postinstall ${PN},old,new
+}
+
+pkg_preinst() {
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ fdo-mime_desktop_database_update
+ gnome2_icon_cache_update
+
+ ewarn "/etc/env.d was updated. Please run:"
+ ewarn "env-update && source /etc/profile"
+ ewarn ""
+ ewarn "Before you can use vmware-player, you must configure a default network setup."
+ ewarn "You can do this by running 'emerge --config ${PN}'."
+}
+
+pkg_prerm() {
+ einfo "Stopping ${PN} for safe unmerge"
+ /etc/init.d/vmware stop
+}
+
+pkg_postrm() {
+ fdo-mime_desktop_database_update
+ gnome2_icon_cache_update
+}
diff --git a/app-emulation/vmware-tools/Manifest b/app-emulation/vmware-tools/Manifest
index 945fa31..c95e87b 100644
--- a/app-emulation/vmware-tools/Manifest
+++ b/app-emulation/vmware-tools/Manifest
@@ -2,26 +2,39 @@ DIST vmware-tools-freebsd-8.4.8-491717.i386.component.tar 18227200 RMD160 9b5cd2
DIST vmware-tools-freebsd-8.4.8-491717.x86_64.component.tar 18227200 RMD160 4f7c1fa970b94490167cc0aad933154bded40e71 SHA1 207cb57bab3929e4397591edb797157e9e3c4403 SHA256 60974cfdca052f6984ca5c006509a39643bae6f12485aaea98d21086db1580d4
DIST vmware-tools-freebsd-8.8.0-471780.i386.component.tar 15667200 RMD160 8ad2300a171a5671e5a974ce3114b68206eebbd0 SHA1 287a17f68d5c2da485d8276019fb7b7c03ee6d68 SHA256 d92082a69ca0ca11c7b86108b103edbe5f5022e0fac2dc9abdaabd5d20c32796
DIST vmware-tools-freebsd-8.8.0-471780.x86_64.component.tar 15667200 RMD160 793732735861c4fca3a1c2e7c56685d2ae39675f SHA1 6973df8b9c47b4acacce04f8e103b0df4eadd4b5 SHA256 65b1bfcb4f9f0e99a950232e42eb033481edf988e3ea9a2f8c0d6d235afaec6a
+DIST vmware-tools-freebsd-8.8.1-528992.i386.component.tar 15656960 RMD160 742d9e4b1b471e0b4fc2ff4dd6a54faa0f1e8a35 SHA1 6496065adba202dd90dabefa43e78c5c05d1d4da SHA256 0c44cc9a3d9bddc4f11f81827f399103b5b741bfd172cf7ff90f5af0839e88f3
+DIST vmware-tools-freebsd-8.8.1-528992.x86_64.component.tar 15656960 RMD160 247a1cd333da400324317e10d409830e83d16e04 SHA1 19258bfdbc6fbb589bbde5aee66a7ebc051b1cc7 SHA256 daf11bb222ebb5d65fe654e915dac36a76118ec1dd9b04eb3366d08396788847
DIST vmware-tools-linux-8.4.8-491717.i386.component.tar 107601920 RMD160 7d9d53337391bf08e4ae8a32f7dca46f39a608f0 SHA1 870443e43d7105db89d6bd1a329764ab3b07685a SHA256 799da75391d7112ee10df068a4c60519aaedb6989eeb94a5efe296b3423045a3
DIST vmware-tools-linux-8.4.8-491717.x86_64.component.tar 107601920 RMD160 2c355199fa561ad80dfca0ba6f0b477e529ceb44 SHA1 000469569298d3601f7ba961252474f9acbed609 SHA256 924f4c786678dc4405a2bff77f784d020561cd1aa6e59951fc963fb257e84c55
DIST vmware-tools-linux-8.8.0-471780.i386.component.tar 58624000 RMD160 4efa998414461064c2b829c356c59647830f57a6 SHA1 2f77da6a6e2088a7ca5e32e51c34208b9cfa1736 SHA256 a2c4de59d74e302c24d449d5876a6a16f0f58a334a6f7f313b174471174cf0cc
DIST vmware-tools-linux-8.8.0-471780.x86_64.component.tar 58624000 RMD160 550f8c2138b78f8dc422c7a20978947220093595 SHA1 1b2c89db0a094245b5d683536e1a910c2a924bee SHA256 2be3d54bd86e1ba6a31e1c26bddeff32edaafe73927b9569d74b85d93536563c
+DIST vmware-tools-linux-8.8.1-528992.i386.component.tar 59463680 RMD160 9424673e7f4305cba10af67e569b157b466c6049 SHA1 ac969852292ca634893a8c783e9042a17c20a866 SHA256 8b681431e2f38625c8edf41ed8b70c2ab8f9c0d3603bc3c35a0e32d586956a34
+DIST vmware-tools-linux-8.8.1-528992.x86_64.component.tar 59463680 RMD160 3597bec733a2c76de5cda9054153bda321faa187 SHA1 1afdf3f0041ca2fd982924b74e68caab474c8c52 SHA256 68aae4f1d6400cfe19a5ba809ccd5b9a11f1a0bbcceb13806231ea7eded934da
DIST vmware-tools-netware-8.4.8-491717.i386.component.tar 81920 RMD160 16d2a8c376c09af2a867fc659d6d72222186ecc2 SHA1 37cc1d311b9a43ba4fbeb5cf00d996b74db3b4f8 SHA256 c862e2f78a2cdb915defa26a1084513c51ea0729c865f57936361cb29187f09f
DIST vmware-tools-netware-8.4.8-491717.x86_64.component.tar 81920 RMD160 e2f2c6efb63bb55c9e501ed80c692acfc626ac33 SHA1 bace6ea27cd9729dc19ffd5bfbcc83cdba3d4d34 SHA256 dc2f236d3b1dcd56919de26b3437e5073085d4384908b7524df15286edbfa1a0
DIST vmware-tools-netware-8.8.0-471780.i386.component.tar 81920 RMD160 e491a03dc70b4323c949819aed478c872dd4ea40 SHA1 d97bf25fe62719781e7c4fd33ff7d65ce14594ce SHA256 f833eac59622594b1de0cca9a87eb53db9352a9097e245199806e10abd86a451
DIST vmware-tools-netware-8.8.0-471780.x86_64.component.tar 81920 RMD160 954bee1d970cb47b302c41d1027eef6a52a0d51f SHA1 f5102c70a39bd4d00a531a59c7d851374cf85446 SHA256 5284defeef28f3a93845dfefeaa389165107ae067e9bd2e323e787e3349d381c
+DIST vmware-tools-netware-8.8.1-528992.i386.component.tar 81920 RMD160 1b14fd1f9bc3c61ec23832f2ccfecccf32aa92ac SHA1 99018fa0f30a474a0bb0378d1a9b8aa4832723c1 SHA256 0e1093ce47034cdaf73d42c34abf642488d0c7884fff27947b1959c7eb7767ec
+DIST vmware-tools-netware-8.8.1-528992.x86_64.component.tar 81920 RMD160 80b11ed15bf6ecfcafa763e5d5d31f48308c7ce0 SHA1 66d7b012f555bb78fd5f4c6c08ff67cdfc5bb2b0 SHA256 f0b9dc88ac5300dea1f5c5e6c44f19d1af50cd03c9641dfb3e4b3e394b5bf041
DIST vmware-tools-solaris-8.4.8-491717.i386.component.tar 19589120 RMD160 3335405f2ece766d015b088268ccc04e5394e932 SHA1 b94b080633172fdabfe73a218112d4abf9b3855e SHA256 4ba329fce0ad15c666351647e258387afc9ef97dede069e3a969891682e62c92
DIST vmware-tools-solaris-8.4.8-491717.x86_64.component.tar 19589120 RMD160 85e836fe603908213be643f12a938aed9e46d4c3 SHA1 bf99f0f7d1a136cad62501fb8cf811a979f5ecde SHA256 3776cf65c3457f57933ea499f3479cc5fc0b85e6f54d40f0d05e608609261f5c
DIST vmware-tools-solaris-8.8.0-471780.i386.component.tar 12769280 RMD160 7d97ac31db7e6186ceaf787301f893d6cc7342b2 SHA1 d02b1bc86315efb0d4e9a99016e85edf6d63fb28 SHA256 d57080526e604ae5b429e40ee354fed10cdd51cf91cff6fca63a08067ef86012
DIST vmware-tools-solaris-8.8.0-471780.x86_64.component.tar 12769280 RMD160 98ea02780764d302335d656e0523c024e81ced9f SHA1 85e84e2c1b795b6876d176c25b7d3681efcdcc08 SHA256 3d7d6bc2543ea4d53d2505c2adbb15417ee8118692b2175609af6f147c8ba466
+DIST vmware-tools-solaris-8.8.1-528992.i386.component.tar 12769280 RMD160 e2d92a21e96f3ba932f465c268dac95d2ec3970d SHA1 d36c7ca312097c3a00749acd161a9a6bb1ca3f16 SHA256 275589b4b7109246e47b0b136cc9d586806b70c5cb6986b014dfbfb0c8293117
+DIST vmware-tools-solaris-8.8.1-528992.x86_64.component.tar 12769280 RMD160 37f27d29ef08ddb9496ebc0ff848164f0209c84f SHA1 9a2b2506ac379648067ccae1aaec59c6416a1f48 SHA256 f4177d82a0725911cdb77d6b4156ecc90f2b0729e94a7439352242efa4c631e0
DIST vmware-tools-winPre2k-8.4.8-491717.i386.component.tar 11059200 RMD160 0622bb424ccd80a62584a248c2927923f078f519 SHA1 bcf6297b9389b43ed081a071a4b321c8086d67c4 SHA256 2ec0f90287324a37bf66a718f792d466edd8bf0f3e3c5039b782a3db6fd763c5
DIST vmware-tools-winPre2k-8.4.8-491717.x86_64.component.tar 11059200 RMD160 4d12bf4663b154cbd2fee5dbf8570d94823dac0a SHA1 d56d64fb00c764a697609e8c12a4b4e90b192f44 SHA256 34ac2895b39701076034bfd00c9fc8d09994c1d0366abddbac2151d51bde1d15
DIST vmware-tools-winPre2k-8.8.0-471780.i386.component.tar 11253760 RMD160 4a0a8156574e5bceb7c5424ef29436b2be64adfe SHA1 3d009070ac0284ad3ba1ebfb36a20aec3ceebd61 SHA256 53ec58252a50ed2fe3cc520c81c556cc948752ea642578f7a891527162edf2a0
DIST vmware-tools-winPre2k-8.8.0-471780.x86_64.component.tar 11253760 RMD160 9b05806f92a4b7df7f6951c31842c6945c865d72 SHA1 5d40ebeb7273454d6fe7b02f38a785a8e3e6f860 SHA256 ebbe1d1918c86ffce7ff4530f190c41253ee4cfd973cfde4a8165c3475f0527b
+DIST vmware-tools-winPre2k-8.8.1-528992.i386.component.tar 11253760 RMD160 e14465f868728c0038bdc336773800c2757161f6 SHA1 90d37ecd766b0307b44a350886e84c97920f56a1 SHA256 590c38521249be9b74812598e90f1658115b1f54871a0473be46665d2c08aed9
+DIST vmware-tools-winPre2k-8.8.1-528992.x86_64.component.tar 11253760 RMD160 1b0b9a0a139b981c4bd2abf547ae0832739d1204 SHA1 dd2b9df6f37265e50db3ab2b1f5bb1ba12947ea1 SHA256 9bd8606416bdd23e190ae691106e2ab045231be654137725b38698fb33448869
DIST vmware-tools-windows-8.4.8-491717.i386.component.tar 38174720 RMD160 675c1a884d781879fb6c71b007f81b0deee701e8 SHA1 7d728676e20dc863a96eef5d253c2a4c8616d803 SHA256 80d79afcd36a0458fb59e2423af9915b676593b9306c12d22e0f339600768b9a
DIST vmware-tools-windows-8.4.8-491717.x86_64.component.tar 38174720 RMD160 03ce9520fd251b748f8553508bec0d86a783ff61 SHA1 928c8697fa8a14ecf6d2cd43c99c807acdb696d4 SHA256 06ab70677eb1b71f9418f80f956efce877b68d2a7e98814bad6bcc33a468bd0f
DIST vmware-tools-windows-8.8.0-471780.i386.component.tar 50186240 RMD160 dcc72553137810a3775ca3c842f6ec3ab7b7c66c SHA1 c6d32d571670371abe662b8d4152ceef4d730e95 SHA256 99e8da563516033e0d2bcf06b3303c431491b3e1d17bb4b879defbd1f8195c71
DIST vmware-tools-windows-8.8.0-471780.x86_64.component.tar 50186240 RMD160 bd18ecd1e4775709d5aa4bf026979a42f349a2db SHA1 4194e50d53d16625cfaaaae2a965ea16ef6d77a1 SHA256 98b9500b0a368cc07a4ace483bc22010a3322479b3d9281c6eb2952cfd1580c8
+DIST vmware-tools-windows-8.8.1-528992.i386.component.tar 50206720 RMD160 ca99c116abdac554cd281d455e5bf03143b895cf SHA1 2eeae933796572e9d25f7fc1fc099ef1a5fbbef1 SHA256 82d1656ca79154d25537269eea09ac60b716e6b51e68aedd679b75619744936f
+DIST vmware-tools-windows-8.8.1-528992.x86_64.component.tar 50206720 RMD160 ffce99021df5c315a59549970c1448e82b52975e SHA1 05c7b57ee216b50b4bb6f4d93c197c42efbee298 SHA256 9e409330557b836b7512c68fed63bf18864e8fea12564b130948c42a54f66685
EBUILD vmware-tools-8.4.8.491717.ebuild 1480 RMD160 c6074feba3e1b5416b7fe34f1f5fb2d0946e8e6c SHA1 1cde6668a75b8742465b7630e457a9358153c262 SHA256 fe350f6018e5c0c632fc374eb1da9b42b775081cdb80ef829793f879f01400d2
EBUILD vmware-tools-8.8.0.471780.ebuild 1480 RMD160 14c8a3f28227882206eb75a97b524c49a616d6f9 SHA1 4cff22449ad052727edfa7f1d091f63ef05028cb SHA256 cd5807768897dc2c50c3e8764c28537c9f0102b8a4a921371c07e3543bbd7ed1
+EBUILD vmware-tools-8.8.1.528992.ebuild 1537 RMD160 c9a4ffb52d25826c060d84ea95e93b59ec5abe52 SHA1 aa1f3ee1392a6f893b292fd6174079466b99dd3b SHA256 d30446c2653d160bffb07e16ba6e1ea26ee9beadb4b9de38d90ed73f06202cc1
MISC metadata.xml 159 RMD160 fc7f68a382390e5916b0fb43f37a893fad4f9798 SHA1 f46b02a39bcd0165558de67ff4256cfc812418a3 SHA256 8581ae1c90a48f50fa0542c7fb28cb8984baaf12f50fa18f33e467081effb215
diff --git a/app-emulation/vmware-tools/vmware-tools-8.8.1.528992.ebuild b/app-emulation/vmware-tools/vmware-tools-8.8.1.528992.ebuild
new file mode 100644
index 0000000..c8244f7
--- /dev/null
+++ b/app-emulation/vmware-tools/vmware-tools-8.8.1.528992.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit versionator vmware-bundle
+
+MY_PV="$(replace_version_separator 3 - $PV)"
+BASE_URI="http://softwareupdate.vmware.com/cds/vmw-desktop/player/4.0.$(get_version_component_range 3)/$(get_version_component_range 4)/linux/packages/"
+
+DESCRIPTION="VMware Tools for guest operating systems"
+HOMEPAGE="http://www.vmware.com/products/player/"
+
+LICENSE="vmware"
+SLOT="0"
+KEYWORDS="-* ~amd64 ~x86"
+RESTRICT="mirror"
+IUSE=""
+
+DEPEND="!<app-emulation/vmware-workstation-7"
+RDEPEND=""
+
+IUSE_VMWARE_GUEST="freebsd linux netware solaris windows winPre2k"
+
+VM_INSTALL_DIR="/opt/vmware"
+
+for guest in ${IUSE_VMWARE_GUEST} ; do
+ SRC_URI+=" vmware_guest_${guest}? (
+ amd64? ( ${BASE_URI}vmware-tools-${guest}-${MY_PV}.x86_64.component.tar )
+ x86? ( ${BASE_URI}vmware-tools-${guest}-${MY_PV}.i386.component.tar )
+ )"
+ IUSE+=" vmware_guest_${guest}"
+done ; unset guest
+
+src_unpack() {
+ local arch
+ if use x86 ; then arch='i386'
+ elif use amd64 ; then arch='x86_64'
+ fi
+ local guest ; for guest in ${IUSE_VMWARE_GUEST} ; do
+ if use "vmware_guest_${guest}" ; then
+ local component="vmware-tools-${guest}-${MY_PV}.${arch}.component"
+ unpack "${component}.tar"
+ vmware-bundle_extract-component "${component}"
+ fi
+ done
+}
+
+src_install() {
+ insinto "${VM_INSTALL_DIR}"/lib/vmware/isoimages
+ local guest ; for guest in ${IUSE_VMWARE_GUEST} ; do
+ if use "vmware_guest_${guest}" ; then
+ doins "${guest}".iso{,.sig}
+ fi
+ done
+}
diff --git a/app-emulation/vmware-workstation/Manifest b/app-emulation/vmware-workstation/Manifest
index 4ae02aa..7a64e16 100644
--- a/app-emulation/vmware-workstation/Manifest
+++ b/app-emulation/vmware-workstation/Manifest
@@ -7,6 +7,9 @@ DIST VMware-Workstation-7.1.5-491717.i386.bundle 130351656 RMD160 110bc8a4486bdf
DIST VMware-Workstation-7.1.5-491717.x86_64.bundle 137361206 RMD160 b5f302400a0c33b2bc4a2b68ccc070f9329af047 SHA1 0cca1399008630ed76374d794806d60a93dc3e97 SHA256 857a71e4022a357a49aadc0516dae8909b34abf7a3681fbba5e76d92ee3be90b
DIST VMware-Workstation-Full-8.0.0-471780.i386.bundle 337749469 RMD160 6505d7511ce86f55cff392faa220021c0e5b5e7f SHA1 00a7a255e060fb2883b32c4267b16ad7af204e5c SHA256 6fbdd01c7ee378bc3352b8c230bec0deae352e3aa0e3d0101fe2af3aab6fcff7
DIST VMware-Workstation-Full-8.0.0-471780.x86_64.bundle 337435853 RMD160 ed5881078e7eb60699f6d0180c305f6a240e4360 SHA1 1e75bda32c0dd7aa81d1953464d35236335ddf6e SHA256 6a9099659484a1de2bee50c96ddd3dc1b91c6ab02b067288e1c17c2b6d5a9f9a
+DIST VMware-Workstation-Full-8.0.1-528992.i386.bundle 189608656 RMD160 e08827258f7f5fa80118b65397225bb2f66e1b7f SHA1 f3a78e309a74ba6a9a86bd948db78626009dd3fd SHA256 8bc5a97fae34fcd78084d3b6c74c5c1f71da82dae0e1e68e6a17f9c368a25157
+DIST VMware-Workstation-Full-8.0.1-528992.x86_64.bundle 189359415 RMD160 80ad7822a468ccdae07ba3e06f156a345f0e9e5a SHA1 939a5ae7c8fbeb2a01cae02cb4ed8cc3326ea0d9 SHA256 223b6aaba2bcd2c7976fbc6cbcf9a57fa9cb5cd45d3845986e7e19fccca1acb5
EBUILD vmware-workstation-7.1.5.491717.ebuild 8264 RMD160 a90d1e633561f0d47aa252b63812e6c5e331ee94 SHA1 2a73547f67b10dda1d97d8d1c78f0231ebfdfc9f SHA256 b30027da9c1e27f88eb6edf69a53d38cc1f21e8e6d4b92164f5efea8e7111d2f
EBUILD vmware-workstation-8.0.0.471780-r5.ebuild 13391 RMD160 bbd4d982057794d7772cda62c3f3c099f9054d35 SHA1 ed34dce95df0b771f59dd44c40bd9d9e4952b545 SHA256 5c32643dd2feeed6e2c52ce53404b4e6521200ae3638df65c67b4d3ed4e1612d
+EBUILD vmware-workstation-8.0.1.528992.ebuild 13391 RMD160 e9344cc58ed1f3a432582f8c888949ef4a61485f SHA1 7ab88c1fdf5258b568981e097222afaef5eb8d1b SHA256 92061ed54876676a6331a455bb767b395713a5e7c22583c615fbc1a76c511c78
MISC metadata.xml 821 RMD160 3fe06e26c1f6550712d29d27dbbe1bde8eeb3d29 SHA1 4cacecf9b113a8c46e921e1738d5c191bf693872 SHA256 b5634de5978f816c03495e72d4ee1cb72b372209ee7b8a8e88cec8963aa38647
diff --git a/app-emulation/vmware-workstation/vmware-workstation-8.0.1.528992.ebuild b/app-emulation/vmware-workstation/vmware-workstation-8.0.1.528992.ebuild
new file mode 100644
index 0000000..96812b1
--- /dev/null
+++ b/app-emulation/vmware-workstation/vmware-workstation-8.0.1.528992.ebuild
@@ -0,0 +1,489 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: vadimk Exp $
+
+EAPI="4"
+
+inherit eutils versionator fdo-mime gnome2-utils pam vmware-bundle
+
+MY_PN="VMware-Workstation"
+MY_PV="$(replace_version_separator 3 - $PV)"
+MY_P="${MY_PN}-Full-${MY_PV}"
+
+DESCRIPTION="Emulate a complete PC on your PC without the usual performance overhead of most emulators"
+HOMEPAGE="http://www.vmware.com/products/workstation/"
+SRC_URI="
+ x86? ( ${MY_P}.i386.bundle )
+ amd64? ( ${MY_P}.x86_64.bundle )
+ "
+
+LICENSE="vmware"
+SLOT="0"
+KEYWORDS="-* ~amd64 ~x86"
+IUSE="cups doc gnome kde ovftool server vix vmware-tools"
+RESTRICT="binchecks fetch mirror strip"
+
+# vmware-workstation should not use virtual/libc as this is a
+# precompiled binary package thats linked to glibc.
+RDEPEND="dev-cpp/cairomm
+ dev-cpp/glibmm:2
+ dev-cpp/gtkmm:2.4
+ dev-cpp/libgnomecanvasmm
+ dev-cpp/libsexymm
+ dev-cpp/pangomm
+ dev-libs/atk
+ dev-libs/glib:2
+ dev-libs/icu
+ dev-libs/expat
+ dev-libs/libaio
+ dev-libs/libsigc++
+ dev-libs/libxml2
+ =dev-libs/openssl-0.9.8*
+ dev-libs/xmlrpc-c
+ gnome-base/libgnomecanvas
+ gnome-base/libgtop:2
+ gnome-base/librsvg:2
+ gnome-base/orbit
+ media-libs/fontconfig
+ media-libs/freetype
+ media-libs/libart_lgpl
+ =media-libs/libpng-1.2*
+ media-libs/libpng
+ net-misc/curl
+ cups? ( net-print/cups )
+ sys-devel/gcc
+ sys-fs/fuse
+ sys-libs/glibc
+ sys-libs/zlib
+ x11-libs/cairo
+ gnome? ( x11-libs/gksu )
+ kde? ( kde-base/kdesu )
+ x11-libs/gtk+:2
+ x11-libs/libgksu
+ x11-libs/libICE
+ x11-libs/libsexy
+ x11-libs/libSM
+ x11-libs/libX11
+ x11-libs/libXau
+ x11-libs/libxcb
+ x11-libs/libXcomposite
+ x11-libs/libXcursor
+ x11-libs/libXdamage
+ x11-libs/libXdmcp
+ x11-libs/libXext
+ x11-libs/libXfixes
+ x11-libs/libXft
+ x11-libs/libXi
+ x11-libs/libXinerama
+ x11-libs/libXrandr
+ x11-libs/libXrender
+ x11-libs/libXtst
+ x11-libs/pango
+ x11-libs/startup-notification
+ x11-themes/hicolor-icon-theme
+ !app-emulation/vmware-server
+ !app-emulation/vmware-player"
+PDEPEND="~app-emulation/vmware-modules-264.1
+ vmware-tools? ( app-emulation/vmware-tools )"
+
+S=${WORKDIR}
+VM_INSTALL_DIR="/opt/vmware"
+VM_DATA_STORE_DIR="/var/lib/vmware/Shared VMs"
+VM_HOSTD_USER="root"
+
+pkg_nofetch() {
+ local bundle
+
+ if use x86; then
+ bundle="${MY_P}.i386.bundle"
+ elif use amd64; then
+ bundle="${MY_P}.x86_64.bundle"
+ fi
+
+ einfo "Please download ${bundle}"
+ einfo "from ${HOMEPAGE}"
+ einfo "and place it in ${DISTDIR}"
+}
+
+src_unpack() {
+ local component; for component in \
+ vmware-vmx \
+ vmware-player-app \
+ vmware-player-setup \
+ vmware-workstation \
+ vmware-network-editor \
+ vmware-network-editor-ui \
+ vmware-usbarbitrator
+ do
+ vmware-bundle_extract-bundle-component "${DISTDIR}/${A}" "${component}" "${S}"
+ done
+
+ if use server; then
+ vmware-bundle_extract-bundle-component "${DISTDIR}/${A}" vmware-workstation-server #"${S}"
+ fi
+
+ if use vix; then
+ vmware-bundle_extract-bundle-component "${DISTDIR}/${A}" vmware-vix-core vmware-vix
+ vmware-bundle_extract-bundle-component "${DISTDIR}/${A}" vmware-vix-lib-Workstation800andvSphere500 vmware-vix
+ fi
+ if use ovftool; then
+ vmware-bundle_extract-bundle-component "${DISTDIR}/${A}" vmware-ovftool
+ fi
+
+}
+
+src_prepare() {
+ rm -f bin/vmware-modconfig
+ rm -rf lib/modules/binary
+ if use server; then
+ rm -f vmware-workstation-server/bin/{openssl,configure-hostd.sh}
+ fi
+
+ find "${S}" -name '*.a' -delete
+
+# clean_bundled_libs
+}
+
+clean_bundled_libs() {
+ ebegin 'Removing superfluous libraries'
+ cd lib/lib || die
+ ldconfig -p | \
+ sed 's:^\s\+\([^(]*[^( ]\).*=> /.*$:\1:g;t;d' | \
+ fgrep -vx 'libcrypto.so.0.9.8
+libssl.so.0.9.8i
+libgcr.so.0
+libglib-2.0.so.0' |
+ xargs -d'\n' -r rm -rf
+ eend
+}
+
+src_install() {
+ local major_minor=$(get_version_component_range 1-2 "${PV}")
+ local major_minor_revision=$(get_version_component_range 1-3 "${PV}")
+ local build=$(get_version_component_range 4 "${PV}")
+
+ # install the binaries
+ into "${VM_INSTALL_DIR}"
+ dobin bin/*
+
+ # install the libraries
+ insinto "${VM_INSTALL_DIR}"/lib/vmware
+ doins -r lib/*
+
+ # install the ancillaries
+ insinto /usr
+ doins -r share
+
+ if use cups; then
+ exeinto $(cups-config --serverbin)/filter
+ doexe extras/thnucups
+
+ insinto /etc/cups
+ doins -r etc/cups/*
+ fi
+
+ insinto /etc/xdg
+ doins -r etc/xdg/*
+
+ # install documentation
+ doman man/man1/vmware.1.gz
+
+ if use doc; then
+ dodoc doc/*
+ fi
+
+ insinto "${VM_INSTALL_DIR}"/lib/vmware/setup
+ doins vmware-config
+
+ # install vmware workstation server
+ if use server; then
+ dosbin sbin/*
+
+ cd "${S}"/vmware-workstation-server
+
+ # install binaries
+ into "${VM_INSTALL_DIR}"/lib/vmware
+ dobin bin/*
+
+ # install the libraries
+ insinto "${VM_INSTALL_DIR}"/lib/vmware/lib
+ doins -r lib/*
+
+ into "${VM_INSTALL_DIR}"
+ for tool in vmware-{hostd,vim-cmd,adminTool} ; do
+ cat > "${T}/${tool}" <<-EOF
+ #!/usr/bin/env bash
+ set -e
+
+ . /etc/vmware/bootstrap
+
+ exec "${VM_INSTALL_DIR}/lib/vmware/lib/wrapper-gtk24.sh" \\
+ "${VM_INSTALL_DIR}/lib/vmware/lib" \\
+ "${VM_INSTALL_DIR}/lib/vmware/bin/${tool}" \\
+ "${VM_INSTALL_DIR}/lib/vmware/libconf" "\$@"
+ EOF
+ dobin "${T}/${tool}"
+ done
+
+ insinto "${VM_INSTALL_DIR}"/lib/vmware
+ doins -r hostd
+
+ # create the configuration
+ insinto /etc/vmware/hostd
+ doins -r config/etc/vmware/hostd/*
+ doins -r etc/vmware/hostd/*
+
+ insinto /etc/vmware/ssl
+ doins etc/vmware/ssl/*
+
+ # pam
+ pamd_mimic_system vmware-authd auth account
+
+ # create directory for shared virtual machines.
+ keepdir "${VM_DATA_STORE_DIR}"
+ keepdir /var/log/vmware
+ fi
+
+ # install vmware-vix
+ if use vix; then
+ cd "${S}"/vmware-vix
+
+ # install the binary
+ into "${VM_INSTALL_DIR}"
+ dobin bin/*
+
+ # install the libraries
+ insinto "${VM_INSTALL_DIR}"/lib/vmware-vix
+ doins -r lib/*
+
+ dosym vmware-vix/libvixAllProducts.so "${VM_INSTALL_DIR}"/lib/libbvixAllProducts.so
+
+ # install headers
+ insinto /usr/include/vmware-vix
+ doins include/*
+
+ if use doc; then
+ dohtml -r doc/*
+ fi
+ fi
+
+ # install ovftool
+ if use ovftool; then
+ cd "${S}"
+
+ insinto "${VM_INSTALL_DIR}"/lib/vmware-ovftool
+ doins -r vmware-ovftool/*
+
+ chmod 0755 "${D}${VM_INSTALL_DIR}"/lib/vmware-ovftool/{ovftool,ovftool.bin}
+ dosym "${D}${VM_INSTALL_DIR}"/lib/vmware-ovftool/ovftool "${VM_INSTALL_DIR}"/bin/ovftool
+ fi
+
+ # create symlinks for the various tools
+ local tool ; for tool in thnuclnt vmware vmplayer{,-daemon} \
+ vmware-{acetool,enter-serial,gksu,fuseUI,modconfig{,-console},netcfg,tray,unity-helper} ; do
+ dosym appLoader "${VM_INSTALL_DIR}"/lib/vmware/bin/"${tool}"
+ done
+ dosym "${VM_INSTALL_DIR}"/lib/vmware/bin/vmplayer "${VM_INSTALL_DIR}"/bin/vmplayer
+ dosym "${VM_INSTALL_DIR}"/lib/vmware/bin/vmware "${VM_INSTALL_DIR}"/bin/vmware
+ dosym "${VM_INSTALL_DIR}"/lib/vmware/icu /etc/vmware/icu
+
+ # fixing gksu problem
+ if use gnome; then
+ rm "${D}${VM_INSTALL_DIR}"/bin/vmware-gksu
+ dosym /usr/bin/gksu "${VM_INSTALL_DIR}"/bin/vmware-gksu
+ fi
+ if use kde; then
+ rm "${D}${VM_INSTALL_DIR}"/bin/vmware-gksu
+ dosym /usr/bin/kdesu "${VM_INSTALL_DIR}"/bin/vmware-gksu
+ fi
+
+ # fix up permissions
+ chmod 0755 "${D}${VM_INSTALL_DIR}"/lib/vmware/{bin/*,lib/wrapper-gtk24.sh,lib/libgksu2.so.0/gksu-run-helper,setup/*}
+ chmod 04711 "${D}${VM_INSTALL_DIR}"/bin/vmware-mount
+ if use server; then
+ chmod 04711 "${D}${VM_INSTALL_DIR}"/sbin/vmware-authd
+ fi
+ chmod 04711 "${D}${VM_INSTALL_DIR}"/lib/vmware/bin/vmware-vmx*
+
+ if use vix; then
+ chmod 0755 "${D}${VM_INSTALL_DIR}"/lib/vmware-vix/setup/*
+ fi
+
+ # create the environment
+ local envd="${T}/90vmware"
+ cat > "${envd}" <<-EOF
+ PATH='${VM_INSTALL_DIR}/bin'
+ ROOTPATH='${VM_INSTALL_DIR}/bin'
+ EOF
+ doenvd "${envd}"
+
+ # create the configuration
+ dodir /etc/vmware
+
+ cat > "${D}"/etc/vmware/bootstrap <<-EOF
+ BINDIR='${VM_INSTALL_DIR}/bin'
+ LIBDIR='${VM_INSTALL_DIR}/lib'
+ EOF
+
+ cat > "${D}"/etc/vmware/config <<-EOF
+ bindir = "${VM_INSTALL_DIR}/bin"
+ libdir = "${VM_INSTALL_DIR}/lib/vmware"
+ initscriptdir = "/etc/init.d"
+ authd.fullpath = "${VM_INSTALL_DIR}/sbin/vmware-authd"
+ gksu.rootMethod = "su"
+ VMCI_CONFED = "yes"
+ VMBLOCK_CONFED = "yes"
+ VSOCK_CONFED = "yes"
+ NETWORKING = "yes"
+ player.product.version = "${major_minor_revision}"
+ product.version = "${major_minor_revision}"
+ product.buildNumber = "${build}"
+ product.name = "VMware Workstation"
+ workstation.product.version = "${major_minor_revision}"
+ EOF
+
+ if use vix; then
+ cat >> "${D}"/etc/vmware/config <<-EOF
+ vmware.fullpath = "${VM_INSTALL_DIR}/bin/vmware"
+ vix.libdir = "${VM_INSTALL_DIR}/lib/vmware-vix"
+ vix.config.version = "1"
+ EOF
+ fi
+
+ if use server; then
+ cat >> "${D}"/etc/vmware/config <<-EOF
+ authd.client.port = "902"
+ authd.proxy.nfc = "vmware-hostd:ha-nfc"
+ authd.soapserver = "TRUE"
+ EOF
+ fi
+
+ # install the init.d script
+ local initscript="${T}/vmware.rc"
+ sed -e "s:@@BINDIR@@:${VM_INSTALL_DIR}/bin:g" \
+ "${FILESDIR}/vmware-${major_minor}.rc" > ${initscript}
+ newinitd "${initscript}" vmware
+
+ if use server; then
+ # install the init.d script
+ local initscript="${T}/vmware-workstation-server.rc"
+ sed -e "s:@@ETCDIR@@:/etc/vmware:g" \
+ -e "s:@@PREFIX@@:${VM_INSTALL_DIR}:g" \
+ -e "s:@@BINDIR@@:${VM_INSTALL_DIR}/bin:g" \
+ -e "s:@@LIBDIR@@:${VM_INSTALL_DIR}/lib/vmware:g" \
+ "${FILESDIR}/vmware-server-8.0.rc" > ${initscript}
+ newinitd "${initscript}" vmware-workstation-server
+ fi
+
+ # fill in variable placeholders
+ sed -e "s:@@LIBCONF_DIR@@:${VM_INSTALL_DIR}/lib/vmware/libconf:g" \
+ -i "${D}${VM_INSTALL_DIR}"/lib/vmware/libconf/etc/{gtk-2.0/{gdk-pixbuf.loaders,gtk.immodules},pango/pango{.modules,rc}}
+ sed -e "s:@@BINARY@@:${VM_INSTALL_DIR}/bin/vmware:g" \
+ -i "${D}/usr/share/applications/${PN}.desktop"
+ sed -e "s:@@BINARY@@:${VM_INSTALL_DIR}/bin/vmplayer:g" \
+ -i "${D}/usr/share/applications/vmware-player.desktop"
+ sed -e "s:@@BINARY@@:${VM_INSTALL_DIR}/bin/vmware-netcfg:g" \
+ -i "${D}/usr/share/applications/vmware-netcfg.desktop"
+
+ if use server; then
+ # Configuration for vmware-workstation-server
+ local hostdUser="${VM_HOSTD_USER:-root}"
+ sed -e "/ACEDataUser/s:root:${hostdUser}:g" \
+ -i "${D}/etc/vmware/hostd/authorization.xml" || die
+
+ # Shared VMs Path: [standard].
+ sed -e "s:##{DS_NAME}##:standard:g" \
+ -e "s:##{DS_PATH}##:${VM_DATA_STORE_DIR}:g" \
+ -i "${D}/etc/vmware/hostd/datastores.xml" || die
+
+ sed -e "s:##{HTTP_PORT}##:-1:g" \
+ -e "s:##{HTTPS_PORT}##:443:g" \
+ -e "s:##{PIPE_PREFIX}##:/var/run/vmware/:g" \
+ -i "${D}/etc/vmware/hostd/proxy.xml" || die
+
+ # See vmware-workstation-server.py for more details.
+ sed -e "s:##{BUILD_CFGDIR}##:/etc/vmware/hostd/:g" \
+ -e "s:##{CFGALTDIR}##:/etc/vmware/hostd/:g" \
+ -e "s:##{CFGDIR}##:/etc/vmware/:g" \
+ -e "s:##{ENABLE_AUTH}##:true:g" \
+ -e "s:##{HOSTDMODE}##:ws:g" \
+ -e "s:##{HOSTD_CFGDIR}##:/etc/vmware/hostd/:g" \
+ -e "s:##{HOSTD_MOCKUP}##:false:g" \
+ -e "s:##{LIBDIR}##:${VM_INSTALL_DIR}/lib/vmware:g" \
+ -e "s:##{LIBDIR_INSTALLED}##:${VM_INSTALL_DIR}/lib/vmware/:g" \
+ -e "s:##{LOGDIR}##:/var/log/vmware/:g" \
+ -e "s:##{LOGLEVEL}##:verbose:g" \
+ -e "s:##{MOCKUP}##:mockup-host-config.xml:g" \
+ -e "s:##{PLUGINDIR}##:./:g" \
+ -e "s:##{SHLIB_PREFIX}##:lib:g" \
+ -e "s:##{SHLIB_SUFFIX}##:.so:g" \
+ -e "s:##{USE_BLKLISTSVC}##:false:g" \
+ -e "s:##{USE_CBRCSVC}##:false:g" \
+ -e "s:##{USE_CIMSVC}##:false:g" \
+ -e "s:##{USE_DIRECTORYSVC}##:false:g" \
+ -e "s:##{USE_DIRECTORYSVC_MOCKUP}##:false:g" \
+ -e "s:##{USE_DYNAMIC_PLUGIN_LOADING}##:false:g" \
+ -e "s:##{USE_DYNAMO}##:false:g" \
+ -e "s:##{USE_DYNSVC}##:false:g" \
+ -e "s:##{USE_GUESTSVC}##:false:g" \
+ -e "s:##{USE_HBRSVC}##:false:g" \
+ -e "s:##{USE_HBRSVC_MOCKUP}##:false:g" \
+ -e "s:##{USE_HOSTSVC_MOCKUP}##:false:g" \
+ -e "s:##{USE_HTTPNFCSVC}##:false:g" \
+ -e "s:##{USE_HTTPNFCSVC_MOCKUP}##:false:g" \
+ -e "s:##{USE_LICENSESVC_MOCKUP}##:false:g" \
+ -e "s:##{USE_NFCSVC}##:true:g" \
+ -e "s:##{USE_NFCSVC_MOCKUP}##:false:g" \
+ -e "s:##{USE_OVFMGRSVC}##:true:g" \
+ -e "s:##{USE_PARTITIONSVC}##:false:g" \
+ -e "s:##{USE_SECURESOAP}##:false:g" \
+ -e "s:##{USE_SNMPSVC}##:false:g" \
+ -e "s:##{USE_SOLO_MOCKUP}##:false:g" \
+ -e "s:##{USE_STATSSVC_MOCKUP}##:false:g" \
+ -e "s:##{USE_VCSVC_MOCKUP}##:false:g" \
+ -e "s:##{USE_VDISKSVC}##:false:g" \
+ -e "s:##{USE_VDISKSVC_MOCKUP}##:false:g" \
+ -e "s:##{USE_VMSVC_MOCKUP}##:false:g" \
+ -e "s:##{VM_INVENTORY}##:vmInventory.xml:g" \
+ -e "s:##{VM_RESOURCES}##:vmResources.xml:g" \
+ -e "s:##{WEBSERVER_PORT_ENTRY}##::g" \
+ -e "s:##{WORKINGDIR}##:./:g" \
+ -i "${D}/etc/vmware/hostd/config.xml" || die
+
+ sed -e "s:##{ENV_LOCATION}##:/etc/vmware/hostd/env/:g" \
+ -i "${D}/etc/vmware/hostd/environments.xml" || die
+
+ # @@VICLIENT_URL@@=XXX
+ sed -e "s:@@AUTHD_PORT@@:902:g" \
+ -i "${D}${VM_INSTALL_DIR}/lib/vmware/hostd/docroot/client/clients.xml" || die
+ fi
+}
+
+pkg_config() {
+ "${VM_INSTALL_DIR}"/bin/vmware-networks --postinstall ${PN},old,new
+}
+
+pkg_preinst() {
+ gnome2_icon_savelist
+}
+
+pkg_postinst() {
+ fdo-mime_desktop_database_update
+ gnome2_icon_cache_update
+
+ ewarn "/etc/env.d was updated. Please run:"
+ ewarn "env-update && source /etc/profile"
+ ewarn ""
+ ewarn "Before you can use vmware workstation, you must configure a default network setup."
+ ewarn "You can do this by running 'emerge --config ${PN}'."
+}
+
+pkg_prerm() {
+ einfo "Stopping ${PN} for safe unmerge"
+ /etc/init.d/vmware stop
+}
+
+pkg_postrm() {
+ fdo-mime_desktop_database_update
+ gnome2_icon_cache_update
+}