summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-emulation/vmware-player')
-rw-r--r--app-emulation/vmware-player/ChangeLog11
-rw-r--r--app-emulation/vmware-player/Manifest22
-rw-r--r--app-emulation/vmware-player/files/1.0.9.126128/000_all_initd-location.patch31
-rw-r--r--app-emulation/vmware-player/files/1.0.9.126128/001_all_fix-permissions.patch15
-rw-r--r--app-emulation/vmware-player/files/1.0.9.126128/002_all_pagebreak-detection-fix.patch15
-rw-r--r--app-emulation/vmware-player/files/1.0.9.126128/004_all_do-not-build-modules.patch17
-rw-r--r--app-emulation/vmware-player/files/1.0.9.126128/007_all_use-modprobe-over-insmod.patch12
-rw-r--r--app-emulation/vmware-player/files/1.0.9.126128/009_all_init.d-modules-warning.patch19
-rw-r--r--app-emulation/vmware-player/files/config-3.010
-rw-r--r--app-emulation/vmware-player/files/list-bundle-components.xsl17
-rw-r--r--app-emulation/vmware-player/files/list-component-files.xsl19
-rw-r--r--app-emulation/vmware-player/files/vmware-3.0.rc23
-rw-r--r--app-emulation/vmware-player/vmware-player-1.0.9.126128.ebuild81
-rw-r--r--app-emulation/vmware-player/vmware-player-3.0.1.227600.ebuild180
14 files changed, 266 insertions, 206 deletions
diff --git a/app-emulation/vmware-player/ChangeLog b/app-emulation/vmware-player/ChangeLog
index b85b15f..05fb5fb 100644
--- a/app-emulation/vmware-player/ChangeLog
+++ b/app-emulation/vmware-player/ChangeLog
@@ -1,7 +1,16 @@
# ChangeLog for app-emulation/vmware-player
-# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
+*vmware-player-3.0.1.227600 (01 Mar 2010)
+
+ 01 Mar 2010; Vadim Kuznetsov <vadimk@gentoo.org>
+ -vmware-player-1.0.9.126128.ebuild, +files/config-3.0,
+ +vmware-player-3.0.1.227600.ebuild, +files/vmware-3.0.rc,
+ -files/1.0.9.126128, +files/list-bundle-components.xsl,
+ +files/list-component-files.xsl:
+ VMware Player 3.0.1.227600 ebuild submitted by Matt Whitlock . Bug 290831.
+
25 Mar 2009; Mike Auty <ikelos@gentoo.org>
vmware-player-2.5.1.126130.ebuild:
gtkmm's accessibility is now always enabled (see bug #247249)
diff --git a/app-emulation/vmware-player/Manifest b/app-emulation/vmware-player/Manifest
index 55fd7fa..f7186f1 100644
--- a/app-emulation/vmware-player/Manifest
+++ b/app-emulation/vmware-player/Manifest
@@ -1,24 +1,16 @@
-AUX 1.0.9.126128/000_all_initd-location.patch 1131 RMD160 3ab69d825994cc3bb177143d27091fc292cec46a SHA1 14264460c8500f1ead267059e2b9b9a5dc8c057f SHA256 b4055370b0092e71a2b2b0f27edeb7bc063ad265f95ab4530e52c3ab3167ad62
-AUX 1.0.9.126128/001_all_fix-permissions.patch 647 RMD160 0f25f7dd60dfcb5a72b1f7b9cf344d6f431143a9 SHA1 cabd3dd071ef62d4c70f52d1a3e02334ec7f3a73 SHA256 41492cde60da6d449c0f427ac7bd65598838ec17ac0e3a5f545feeb1d29ea391
-AUX 1.0.9.126128/002_all_pagebreak-detection-fix.patch 800 RMD160 f21a51e552d025a5120519d6dcd41efc3835a432 SHA1 06133c332b6b1f57476b1154de108a9dfc35435d SHA256 d327d7cb2166b9ef4c8c286568c3a7eb64542212164d58b8a7a3c5e51e19ed6d
-AUX 1.0.9.126128/004_all_do-not-build-modules.patch 589 RMD160 b2153579c65a232de9c2e6dbd9bbe108d85f95e5 SHA1 394a67a30f1f29084836183303641915ce982bfd SHA256 916754b0616ea330490b9572be1a9216bb7dd441ba328b1e01e777b29fac4e1e
-AUX 1.0.9.126128/007_all_use-modprobe-over-insmod.patch 445 RMD160 186ab443a733276a702dea16a23c04f7deed9d13 SHA1 c7113cd3f7f91527397f6fb07797d4e9c5c6f011 SHA256 bcf4930fae4812c8fbb2eb58b200f1da9441d97cd0c74b8ee6250cf097a28630
-AUX 1.0.9.126128/009_all_init.d-modules-warning.patch 991 RMD160 6205e976db47cd3361b5eca8593414d411a2ab8d SHA1 3742749baa606a57d447931f0af791696a49e660 SHA256 5fbc9f101abb3816a732f64a75e90ce7fcb6783c3cd7bae521d8785e88634498
-AUX 2.5.2.156735/vmware-player-extras.py.patch 426 RMD160 458d95094d2e47726221ab427486b263b87e4297 SHA1 e41c36cfe150380aceafd1768e9e159fb4e1813f SHA256 1047cdc79d4bc138deaf809f191bdde69c4a5a8ed6ab5b595457a341ecb68abb
-AUX 2.5.2.156735/vmware-player.py.patch 2936 RMD160 6b9957799b3571f5382975c4d78bc3db7d16e666 SHA1 b32f9e4c2d2213872a7d8f88754a8552b113567f SHA256 fa711634a038d313769cf5d5180ca96bfb3ba18f392f6c0dd0672a4b4f7d6c9c
AUX 90vmware-player 91 RMD160 025ff93348f5a838183e4f6108d7030168ca5ed5 SHA1 54c316adaafce41771eb26513c960dabbed61ce9 SHA256 9aee16313163bd9e161e81ef2876d086fb8972489100c4f8f0a4695ff16578f9
+AUX config-3.0 308 RMD160 4773cf7aba9b54c37f24dddeaef24a3899d2efed SHA1 574e77f24b11d169c535ed0f7f4cdd1a5c472425 SHA256 f00e4bb7e23d1d9dffdb5043705f512dba34c641121401851ab77c648fe64a70
AUX helpers/module_patcher.sh 174 RMD160 0b2d1ee14443ec188546b090ae2c5e6efd132026 SHA1 f00ea5d03430be4969834bda822ed2865ef6e079 SHA256 1e63240f7e21e119c8e0b083f540fdde83fc22d781f3abe43927713a464898ea
AUX helpers/unbundler.sh 1828 RMD160 d5bb43628d105c4372fa1fe7e7ebac29300fa91f SHA1 ed4b2645369b63e1cb6e322d412eb2ede1cbbdcd SHA256 4e71dd96f5136c1eb98be5e1184b9ec48ed9ac7935fa1defd94d501cef05eb78
AUX helpers/vmware-config.sh 497 RMD160 04addab6d99bf2c984f855a97b935ca8e0e584d8 SHA1 935eb3f565cebdca806d20e852a4bc75c7bc420b SHA256 72712959b26b22bfe8118561cd7b0751973d2a9dd8c2b15379cd42dc8a4ac246
-AUX vmware-player-2.5.2.156735-installer.patch 2919 RMD160 7921285177ee1238501a95bbab78d100a307674d SHA1 df430803a06ef073a9725b2c86e210c3cc62ceed SHA256 ef63e8d642ae77bf10f22a586c4c37e5c387f76084d71350a9af418d1c5a2858
+AUX list-bundle-components.xsl 470 RMD160 c45fe9d1690eac831c79bc63ef68de45d1265891 SHA1 d35982cfe4f3052fff013059d1df495c672ddd0e SHA256 4fe6b25ecbb99b3a4f15cbb8de41be466ff545f8e9fa1110d62ca0cf24e72395
+AUX list-component-files.xsl 545 RMD160 46747c300daf5c6b2c143f02840a94a409f381c4 SHA1 40b6e4cd0bb189ec9997e8b6009c9508082ed51a SHA256 6682c07630ef4586016776e065018f8695a790c5297408597b1ae24692fab629
+AUX vmware-3.0.rc 468 RMD160 2d1ff2a6df0c75bd9e36cb3d9f996268183a59e4 SHA1 cf0ae5ee4f242a152192d87dcc837577da2771fc SHA256 ead7a37727e14e2009d472fd2a6b62627646f8a9701d80f96e732a6660c5563d
AUX vmware-player-2.5.rc 1430 RMD160 18efb4b59e9ad462ae4264e72d2521bae1df380d SHA1 6a041de2d526790e9db7a4e16656a7166110f4b1 SHA256 6667dd63aaa86a7f05c0f6fc116ffa9414e9fa81fb9e8facea38b7a1497bee33
AUX vmware-player.rc 1852 RMD160 e3cc563af38ef690b16bfbdcc0080156af2eab37 SHA1 5436cfd0e75ab842b86826b0abc298a2b9433963 SHA256 ef77428df2608613860cd79683648a45d99657150e7c901d7f449b8df4528fee
AUX vmware-player.xml 1592 RMD160 0d7e9ed13ebb3c73dd847e95fa95499296609e8c SHA1 02db2ee7ca0abb8b8793c9f56d858bb08c1c715f SHA256 56aafee80ad705e8d832f8853c36d763d37b87d1cb132a41c50eb63085ae854d
-DIST VMware-Player-2.5.2-156735.i386.bundle 53427592 RMD160 db0741167c6e667b31ad9156f6488d9022cb7af9 SHA1 4935fb30ef9e7529df40c4f999c1fb8261befb23 SHA256 fbe16fa85bd92d44b066b003cee157e0082d4a6d7c2cfa5b315bc00c5c76f5a0
-DIST VMware-Player-2.5.2-156735.x86_64.bundle 54309797 RMD160 f68bd8cf278faafebc070f996fbec27ef8cf1d1d SHA1 17833e169045b4843a955b08c46e70e73cca0349 SHA256 5f35beb41a58bf2dedc75cf1588e5b8ad9b721c5fa9aa5e42e673a86afc43c5e
-DIST VMware-player-1.0.9-126128.tar.gz 38963760 RMD160 ed54df1e097894f11b7bbce8215d1f314df03217 SHA1 701ca338ec52dcb60db26908de8e0b5bfd981fb7 SHA256 3fae981892437ec1804a2171b701ca33000405fbd799fb06112fd70c939d8d75
-DIST vmware-any-any-update115.tar.gz 493641 RMD160 56cabe56f70c01a22a7671e861cc5a2df19855c7 SHA1 ff9b6fdf6ca74495eb5f4822a1854fc91185377c SHA256 b1c14fa9514663b85c2efe8331407e71cce96e5a21a8b941fa570c960bbdcaa1
-EBUILD vmware-player-1.0.9.126128.ebuild 2653 RMD160 b2eff82c96222a686dbe54e414ab05a6aa8304ee SHA1 bcce712b6f0a1b489afc401d04b5e8d44955f57d SHA256 1c3c66fc4bd0d14ac3b561c6ab85a75f1af44d9d7a06e0b79372ad2af72172d2
-EBUILD vmware-player-2.5.2.156735.ebuild 5274 RMD160 d511a3ace94e29260d991b43b0f67cb31e71c5e9 SHA1 9454bf174a8a1afdb80f37f9886dc91f13c0b1b4 SHA256 f94c2592e56aae8a7d258defee85c3a805017b9546a802f89937439c843ebbf7
+DIST VMware-Player-3.0.1-227600.i386.bundle 84974107 RMD160 4337339976d25d8dbd1f4904ba2ed2b53d1e9c49 SHA1 cff76010f0429576288ea1e5a594cd47a2c64f4a SHA256 9314e49ebb252fd937032481b13d0bea4a3af6409485e79576f797834b978285
+DIST VMware-Player-3.0.1-227600.x86_64.bundle 79959324 RMD160 c6652acadc760bab8ecfed2682706e31f51423ef SHA1 84f25370d24c03a18968a4f4c8e06cef3d21c2df SHA256 8347b3fa0c1cd1c88c3c8049462f3d0d752d6f7daa747a7d2a67667a3f55f190
+EBUILD vmware-player-3.0.1.227600.ebuild 5846 RMD160 f5957719b1762c92b5e1ae4fa233884673241056 SHA1 8a0f25a6caa77014584af3bdfd2d1f881e505e92 SHA256 4c97dc686fa0dcda008eb795424a4ec5266bd152b750f918d7d014c589ea9b77
MISC ChangeLog 443 RMD160 68e1f856e59c62947845a2f5ad96177794b6719c SHA1 e6a534a63f812a316dceeefc4ce0763198a74213 SHA256 53b958f9622ce49656b1ff17f0994ae8444237e50b812b4be74212e5dd119702
MISC metadata.xml 159 RMD160 fc7f68a382390e5916b0fb43f37a893fad4f9798 SHA1 f46b02a39bcd0165558de67ff4256cfc812418a3 SHA256 8581ae1c90a48f50fa0542c7fb28cb8984baaf12f50fa18f33e467081effb215
diff --git a/app-emulation/vmware-player/files/1.0.9.126128/000_all_initd-location.patch b/app-emulation/vmware-player/files/1.0.9.126128/000_all_initd-location.patch
deleted file mode 100644
index 1d864f7..0000000
--- a/app-emulation/vmware-player/files/1.0.9.126128/000_all_initd-location.patch
+++ /dev/null
@@ -1,31 +0,0 @@
---- vmware-distrib/bin/vmware-config.pl.ori 2005-11-09 01:45:08.000000000 +0000
-+++ vmware-distrib/bin/vmware-config.pl 2005-11-09 01:48:21.000000000 +0000
-@@ -8433,7 +8433,7 @@
- error('Please shut down any running VMs and run this script again.' .
- "\n\n");
- } else {
-- if (system(shell_string(db_get_answer('INITSCRIPTSDIR') . '/vmware')
-+ if (system(shell_string('/etc/init.d' . '/vmware')
- . ' stop')) {
- error('Unable to stop services for ' . vmware_product_name() .
- "\n\n");
-@@ -8463,8 +8463,8 @@
- }
- if (vmware_product() ne 'server') {
- configure_gtk2();
-- createMimePackageFile();
-- configureDesktopFiles();
-+# createMimePackageFile();
-+# configureDesktopFiles();
- configure_mon();
- configure_pp();
- configure_net();
-@@ -8532,7 +8532,7 @@
- db_save();
- # Then start VMware's services
- if (!$gOption{'skipstopstart'}) {
-- system(shell_string(db_get_answer('INITSCRIPTSDIR') . '/vmware') . ' start');
-+ system(shell_string('/etc/init.d' . '/vmware') . ' start');
- print "\n";
- }
-
diff --git a/app-emulation/vmware-player/files/1.0.9.126128/001_all_fix-permissions.patch b/app-emulation/vmware-player/files/1.0.9.126128/001_all_fix-permissions.patch
deleted file mode 100644
index e646b7b..0000000
--- a/app-emulation/vmware-player/files/1.0.9.126128/001_all_fix-permissions.patch
+++ /dev/null
@@ -1,15 +0,0 @@
-diff -urN vmware-distrib.orig/bin/vmware-config.pl vmware-distrib/bin/vmware-config.pl
---- vmware-distrib.orig/bin/vmware-config.pl 2005-12-16 00:51:03.000000000 -0500
-+++ vmware-distrib/bin/vmware-config.pl 2005-12-21 14:34:03.000000000 -0500
-@@ -7327,7 +7327,10 @@
- error('Unable to write configuration file "' . $name . '".' . "\n\n");
- }
- db_add_file($name, 0x1);
-- safe_chmod(0644, $name);
-+ safe_chmod(0664, $name);
-+ my $gid = (getgrnam('vmware'))[2];
-+ my $uid = (stat($name))[4];
-+ safe_chown($uid,$gid,$name);
-
- # Append the promotional configuration if it exists
- $promoconfig = $libdir . '/configurator/PROMOCONFIG';
diff --git a/app-emulation/vmware-player/files/1.0.9.126128/002_all_pagebreak-detection-fix.patch b/app-emulation/vmware-player/files/1.0.9.126128/002_all_pagebreak-detection-fix.patch
deleted file mode 100644
index fd3fc76..0000000
--- a/app-emulation/vmware-player/files/1.0.9.126128/002_all_pagebreak-detection-fix.patch
+++ /dev/null
@@ -1,15 +0,0 @@
-diff -ur vmware-distrib.orig/bin/vmware-config.pl vmware-distrib/bin/vmware-config.pl
---- vmware-distrib.orig/bin/vmware-config.pl 2006-03-24 23:13:05.000000000 +0100
-+++ vmware-distrib/bin/vmware-config.pl 2006-03-24 23:26:40.000000000 +0100
-@@ -2015,9 +2015,9 @@
- . shell_string($pattern));
- chomp($header_page_offset);
- # Ignore PAGE_OFFSET if we cannot parse it.
-- if ($header_page_offset =~ /^$pattern \(?0x([0-9a-fA-F]{8,})/) {
-+ if ($header_page_offset =~ /^$pattern \(?(\([^)]*\))?\)?0x([0-9a-fA-F]{8,}).*$/) {
- # We found a valid page offset
-- $header_page_offset = $1;
-+ $header_page_offset = $2;
- if (defined($gSystem{'page_offset'}) and
- not (lc($header_page_offset) eq lc($gSystem{'page_offset'}))) {
- if ($source eq 'user') {
diff --git a/app-emulation/vmware-player/files/1.0.9.126128/004_all_do-not-build-modules.patch b/app-emulation/vmware-player/files/1.0.9.126128/004_all_do-not-build-modules.patch
deleted file mode 100644
index cec3b3e..0000000
--- a/app-emulation/vmware-player/files/1.0.9.126128/004_all_do-not-build-modules.patch
+++ /dev/null
@@ -1,17 +0,0 @@
-diff -uNr vmware-server-distrib.orig/bin/vmware-config.pl vmware-server-distrib/bin/vmware-config.pl
---- vmware-server-distrib.orig/bin/vmware-config.pl 2006-02-18 18:12:26.000000000 +0000
-+++ vmware-server-distrib/bin/vmware-config.pl 2006-02-18 18:14:17.000000000 +0000
-@@ -8571,10 +8571,10 @@
- configure_gtk2();
- # createMimePackageFile();
- # configureDesktopFiles();
-- configure_mon();
-- configure_pp();
-+# configure_mon();
-+# configure_pp();
- configure_net();
-- build_vmnet();
-+# build_vmnet();
- }
-
- # Create the directory for the UNIX domain sockets
diff --git a/app-emulation/vmware-player/files/1.0.9.126128/007_all_use-modprobe-over-insmod.patch b/app-emulation/vmware-player/files/1.0.9.126128/007_all_use-modprobe-over-insmod.patch
deleted file mode 100644
index 5509d24..0000000
--- a/app-emulation/vmware-player/files/1.0.9.126128/007_all_use-modprobe-over-insmod.patch
+++ /dev/null
@@ -1,12 +0,0 @@
-diff -uNr vmware-server-distrib/installer/services.sh vmware-server-distrib.new/installer/services.sh
---- vmware-server-distrib/installer/services.sh 2006-02-05 00:21:25.000000000 +0000
-+++ vmware-server-distrib.new/installer/services.sh 2006-02-20 23:48:07.000000000 +0000
-@@ -538,7 +538,7 @@
- }
-
- vmware_load_module() {
-- /sbin/insmod -s -f "/lib/modules/`uname -r`/misc/$1.o" || exit 1
-+ /sbin/modprobe -s "$1" || exit 1
- exit 0
- }
-
diff --git a/app-emulation/vmware-player/files/1.0.9.126128/009_all_init.d-modules-warning.patch b/app-emulation/vmware-player/files/1.0.9.126128/009_all_init.d-modules-warning.patch
deleted file mode 100644
index 4eab043..0000000
--- a/app-emulation/vmware-player/files/1.0.9.126128/009_all_init.d-modules-warning.patch
+++ /dev/null
@@ -1,19 +0,0 @@
-diff -uNr vmware-server-distrib.orig/installer/services.sh vmware-server-distrib/installer/services.sh
---- vmware-server-distrib.orig/installer/services.sh 2006-07-01 03:14:16.000000000 +0000
-+++ vmware-server-distrib/installer/services.sh 2006-07-14 11:59:28.000000000 +0000
-@@ -606,8 +606,13 @@
- start)
- if [ -e "$vmware_etc_dir"/not_configured ]; then
- echo "`vmware_product_name`"' is installed, but it has not been (correctly) configured'
-- echo 'for the running kernel. To (re-)configure it, invoke the'
-- echo 'following command: '"$vmdb_answer_BINDIR"'/vmware-config.pl.'
-+ echo 'for the running kernel.'
-+ echo
-+ echo 'Please ensure that the modules have been compiled for this kernel:'
-+ echo ' emerge --oneshot vmware-modules'
-+ echo
-+ echo 'Also ensure '"`vmware_product_name`"' has been configured:'
-+ echo ' '"$vmdb_answer_BINDIR"'/vmware-config.pl'
- echo
-
- exit 1
diff --git a/app-emulation/vmware-player/files/config-3.0 b/app-emulation/vmware-player/files/config-3.0
new file mode 100644
index 0000000..cc83931
--- /dev/null
+++ b/app-emulation/vmware-player/files/config-3.0
@@ -0,0 +1,10 @@
+VMCI_CONFED = "yes"
+NETWORKING = "yes"
+initscriptdir = "/etc/init.d"
+VMBLOCK_CONFED = "yes"
+authd.fullpath = "@@VM_INSTALL_DIR@@/sbin/vmware-authd"
+gksu.rootMethod = "su"
+VSOCK_CONFED = "yes"
+libdir = "@@VM_INSTALL_DIR@@/lib/vmware"
+bindir = "@@VM_INSTALL_DIR@@/bin"
+product.buildNumber = "@@BUILD_NUMBER@@"
diff --git a/app-emulation/vmware-player/files/list-bundle-components.xsl b/app-emulation/vmware-player/files/list-bundle-components.xsl
new file mode 100644
index 0000000..db1a4e4
--- /dev/null
+++ b/app-emulation/vmware-player/files/list-bundle-components.xsl
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+
+ <xsl:output omit-xml-declaration="yes"/>
+
+ <xsl:template match="text()"/>
+
+ <xsl:template match="/bundle/components/component">
+ <xsl:value-of select="@offset"/>
+ <xsl:text> </xsl:text>
+ <xsl:value-of select="@size"/>
+ <xsl:text> </xsl:text>
+ <xsl:value-of select="@name"/>
+ <xsl:text>&#10;</xsl:text>
+ </xsl:template>
+
+</xsl:stylesheet>
diff --git a/app-emulation/vmware-player/files/list-component-files.xsl b/app-emulation/vmware-player/files/list-component-files.xsl
new file mode 100644
index 0000000..91c6152
--- /dev/null
+++ b/app-emulation/vmware-player/files/list-component-files.xsl
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+
+ <xsl:output omit-xml-declaration="yes"/>
+
+ <xsl:template match="text()"/>
+
+ <xsl:template match="/component/fileset/file">
+ <xsl:value-of select="@offset"/>
+ <xsl:text> </xsl:text>
+ <xsl:value-of select="@compressedSize"/>
+ <xsl:text> </xsl:text>
+ <xsl:value-of select="@uncompressedSize"/>
+ <xsl:text> </xsl:text>
+ <xsl:value-of select="@path"/>
+ <xsl:text>&#10;</xsl:text>
+ </xsl:template>
+
+</xsl:stylesheet>
diff --git a/app-emulation/vmware-player/files/vmware-3.0.rc b/app-emulation/vmware-player/files/vmware-3.0.rc
new file mode 100644
index 0000000..2360be8
--- /dev/null
+++ b/app-emulation/vmware-player/files/vmware-3.0.rc
@@ -0,0 +1,23 @@
+#!/sbin/runscript
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header$
+
+depend() {
+ need localmount
+ use net
+}
+
+start() {
+ ebegin Starting VMware services
+ modprobe -a vmblock vmmon vmnet || eend $?
+ /opt/vmware/player/bin/vmware-networks --start
+ eend $?
+}
+
+stop() {
+ ebegin Stopping VMware services
+ /opt/vmware/player/bin/vmware-networks --stop || eend $?
+ modprobe -r vmblock vmmon vmnet
+ eend $?
+}
diff --git a/app-emulation/vmware-player/vmware-player-1.0.9.126128.ebuild b/app-emulation/vmware-player/vmware-player-1.0.9.126128.ebuild
deleted file mode 100644
index 6be1fb1..0000000
--- a/app-emulation/vmware-player/vmware-player-1.0.9.126128.ebuild
+++ /dev/null
@@ -1,81 +0,0 @@
-# Copyright 1999-2009 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-emulation/vmware-player/vmware-player-1.0.6.80404.ebuild,v 1.1 2008/03/22 10:45:35 ikelos Exp $
-
-inherit eutils vmware versionator
-
-S=${WORKDIR}/vmware-player-distrib
-MY_P="VMware-player-$(get_version_component_range 1-3)-$(get_version_component_range 4)"
-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="mirror://vmware/software/vmplayer/${MY_P}.tar.gz
- http://platan.vc.cvut.cz/ftp/pub/vmware/${ANY_ANY}.tar.gz
- http://platan.vc.cvut.cz/ftp/pub/vmware/obsolete/${ANY_ANY}.tar.gz
- http://ftp.cvut.cz/vmware/${ANY_ANY}.tar.gz
- http://ftp.cvut.cz/vmware/obsolete/${ANY_ANY}.tar.gz
- http://knihovny.cvut.cz/ftp/pub/vmware/${ANY_ANY}.tar.gz
- http://knihovny.cvut.cz/ftp/pub/vmware/obsolete/${ANY_ANY}.tar.gz"
-
-LICENSE="vmware"
-IUSE=""
-SLOT="0"
-KEYWORDS="-* amd64 x86"
-RESTRICT="strip"
-
-DEPEND="${RDEPEND} virtual/os-headers
- !app-emulation/vmware-workstation"
-# vmware-player should not use virtual/libc as this is a
-# precompiled binary package thats linked to glibc.
-RDEPEND="sys-libs/glibc
- amd64? (
- app-emulation/emul-linux-x86-gtklibs )
- x86? (
- x11-libs/libXrandr
- x11-libs/libXcursor
- x11-libs/libXinerama
- x11-libs/libXi
- x11-libs/libXft )
- >=dev-lang/perl-5
- !app-emulation/vmware-workstation
- !app-emulation/vmware-server
- ~app-emulation/vmware-modules-1.0.0.15
- !<app-emulation/vmware-modules-1.0.0.15
- !>=app-emulation/vmware-modules-1.0.0.16
- sys-apps/pciutils"
-
-RUN_UPDATE="no"
-
-dir=/opt/vmware/player
-Ddir=${D}/${dir}
-
-QA_TEXTRELS_x86="${dir:1}/lib/lib/libgdk-x11-2.0.so.0/libgdk-x11-2.0.so.0"
-QA_EXECSTACK_x86="${dir:1}/bin/vmnet-bridge
- ${dir:1}/bin/vmnet-dhcpd
- ${dir:1}/bin/vmnet-natd
- ${dir:1}/bin/vmnet-netifup
- ${dir:1}/bin/vmnet-sniffer
- ${dir:1}/bin/vmware-ping
- ${dir:1}/lib/bin/vmware-vmx
- ${dir:1}/lib/bin/vmrun
- ${dir:1}/lib/bin/vmplayer
- ${dir:1}/lib/bin-debug/vmware-vmx
- ${dir:1}/lib/lib/libpixops.so.2.0.1/libpixops.so.2.0.1"
-
-QA_TEXTRELS_amd64="${dir:1}/lib/lib/libgdk-x11-2.0.so.0/libgdk-x11-2.0.so.0"
-QA_EXECSTACK_amd64="${dir:1}/bin/vmnet-bridge
- ${dir:1}/bin/vmnet-dhcpd
- ${dir:1}/bin/vmnet-natd
- ${dir:1}/bin/vmnet-netifup
- ${dir:1}/bin/vmnet-sniffer
- ${dir:1}/bin/vmware-ping
- ${dir:1}/lib/bin/vmware-vmx
- ${dir:1}/lib/bin/vmrun
- ${dir:1}/lib/bin/vmplayer
- ${dir:1}/lib/bin-debug/vmware-vmx
- ${dir:1}/lib/lib/libpixops.so.2.0.1/libpixops.so.2.0.1"
-
-src_install() {
- vmware_src_install
-
- make_desktop_entry vmplayer "VMware Player" ${PN}.png System
-}
diff --git a/app-emulation/vmware-player/vmware-player-3.0.1.227600.ebuild b/app-emulation/vmware-player/vmware-player-3.0.1.227600.ebuild
new file mode 100644
index 0000000..b640af2
--- /dev/null
+++ b/app-emulation/vmware-player/vmware-player-3.0.1.227600.ebuild
@@ -0,0 +1,180 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/vmware-player/vmware-player-2.5.3.185404.ebuild,v 1.4 2009/09/25 10:37:05 maekke Exp $
+
+EAPI="2"
+
+inherit eutils versionator fdo-mime gnome2-utils
+
+MY_PN="VMware-Player-$(replace_version_separator 3 - $PV)"
+
+DESCRIPTION="Emulate a complete PC on your PC without the usual performance overhead of most emulators"
+HOMEPAGE="http://www.vmware.com/products/desktop/ws_features.html"
+SRC_URI="
+ x86? ( mirror://vmware/software/vmplayer/${MY_PN}.i386.bundle )
+ amd64? ( mirror://vmware/software/vmplayer/${MY_PN}.x86_64.bundle )
+ "
+
+LICENSE="vmware"
+SLOT="0"
+KEYWORDS="-* ~amd64 ~x86"
+IUSE=""
+RESTRICT="strip binchecks"
+
+# vmware-workstation should not use virtual/libc as this is a
+# precompiled binary package thats linked to glibc.
+DEPEND="dev-libs/libxslt"
+RDEPEND="
+ ~app-emulation/vmware-modules-1.0.0.26
+ dev-cpp/cairomm
+ dev-cpp/libgnomecanvasmm
+ dev-cpp/libsexymm
+ sys-libs/glibc
+ sys-apps/pciutils
+ >=x11-libs/libview-0.6.2
+ x11-libs/libXcursor
+ x11-libs/libXft
+ x11-libs/libXi
+ x11-libs/libXinerama
+ x11-libs/libXrandr
+ !app-emulation/vmware-server
+ !app-emulation/vmware-workstation
+ "
+
+S=${WORKDIR}
+VM_INSTALL_DIR="/opt/vmware/player"
+
+pkg_nofetch() {
+ if use x86; then
+ MY_P="${MY_PN}.i386"
+ elif use amd64; then
+ MY_P="${MY_PN}.x86_64"
+ fi
+
+ einfo "Please download the ${MY_P}.bundle from ${HOMEPAGE}"
+}
+
+src_unpack() {
+ bundle_extract_component "${DISTDIR}/${A}" vmware-player-app
+}
+
+src_prepare() {
+ rm -rf "${S}"/vmware-player-app/lib/modules/binary
+}
+
+src_install() {
+ local major_minor=$(get_version_component_range 1-2 "${PV}")
+ local build=$(get_version_component_range 4 "${PV}")
+
+ cd "${S}"/vmware-player-app
+
+ # install the binaries
+ into "${VM_INSTALL_DIR}"
+ dobin bin/*
+ dosbin sbin/*
+
+ # install the libraries
+ insinto "${VM_INSTALL_DIR}"/lib/vmware
+ doins -r lib/*
+
+ # install the ancillaries
+ insinto /usr
+ doins -r share
+
+ # 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}"
+ done
+ dosym ../lib/vmware/bin/vmplayer "${VM_INSTALL_DIR}"/bin/vmplayer
+
+ # fix up permissions
+ chmod 0755 "${D}${VM_INSTALL_DIR}"/lib/vmware/{bin/*,lib/{libgksu2.so.0/gksu-run-helper,wrapper-gtk24.sh}}
+ chmod 04711 "${D}${VM_INSTALL_DIR}"/sbin/vmware-authd
+ chmod 04711 "${D}${VM_INSTALL_DIR}"/lib/vmware/bin/vmware-vmx*
+
+ # create the environment
+ dodir /etc/env.d
+ { echo "PATH='${VM_INSTALL_DIR}/bin'"
+ echo "ROOTPATH='${VM_INSTALL_DIR}/bin'"
+ } > "${D}"/etc/env.d/90"${PN}"
+
+ # create the configuration
+ insinto /etc/vmware
+ { echo "BINDIR='${VM_INSTALL_DIR}/bin'"
+ echo "LIBDIR='${VM_INSTALL_DIR}/lib'"
+ } > "${D}"/etc/vmware/bootstrap
+ newins "${FILESDIR}/config-${major_minor}" config
+
+ # install the init.d script
+ newinitd "${FILESDIR}/vmware-${major_minor}.rc" vmware
+
+ # 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/vmplayer:g" \
+ -i "${D}/usr/share/applications/${PN}.desktop"
+ sed -e "s:@@BUILD_NUMBER@@:${build}:g" \
+ -e "s:@@VM_INSTALL_DIR@@:${VM_INSTALL_DIR}:g" \
+ -i "${D}/etc/vmware/config"
+
+ # install documentation
+ dodoc doc/*
+}
+
+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 "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
+}
+
+bundle_extract_component() {
+ local -i bundle_size=$(stat -L -c'%s' "${1}")
+ local -i bundle_manifestOffset=$(od -An -j$((bundle_size-36)) -N4 -tu4 "${1}")
+ local -i bundle_manifestSize=$(od -An -j$((bundle_size-40)) -N4 -tu4 "${1}")
+ local -i bundle_dataOffset=$(od -An -j$((bundle_size-44)) -N4 -tu4 "${1}")
+ local -i bundle_dataSize=$(od -An -j$((bundle_size-52)) -N8 -tu8 "${1}")
+ tail -c+$((bundle_manifestOffset+1)) "${1}" 2> /dev/null | head -c$((bundle_manifestSize)) |
+ xsltproc "${FILESDIR}"/list-bundle-components.xsl - |
+ while read -r component_offset component_size component_name ; do
+ if [[ ${component_name} == ${2} ]] ; then
+ ebegin "Extracting '${component_name}' component from '$(basename "${1}")'"
+ declare -i component_manifestOffset=$(od -An -j$((bundle_dataOffset+component_offset+9)) -N4 -tu4 "${1}")
+ declare -i component_manifestSize=$(od -An -j$((bundle_dataOffset+component_offset+13)) -N4 -tu4 "${1}")
+ declare -i component_dataOffset=$(od -An -j$((bundle_dataOffset+component_offset+17)) -N4 -tu4 "${1}")
+ declare -i component_dataSize=$(od -An -j$((bundle_dataOffset+component_offset+21)) -N8 -tu8 "${1}")
+ tail -c+$((bundle_dataOffset+component_offset+component_manifestOffset+1)) "${1}" 2> /dev/null |
+ head -c$((component_manifestSize)) | xsltproc "${FILESDIR}"/list-component-files.xsl - |
+ while read -r file_offset file_compressedSize file_uncompressedSize file_path ; do
+ if [[ ${file_path} ]] ; then
+ echo -n '.'
+ file_path="${component_name}/${file_path}"
+ mkdir -p "$(dirname "${file_path}")"
+ tail -c+$((bundle_dataOffset+component_offset+component_dataOffset+file_offset+1)) "${1}" 2> /dev/null |
+ head -c$((file_compressedSize)) | gzip -cd > "${file_path}"
+ fi
+ done
+ echo ; eend
+ fi
+ done
+}