summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Gianelloni <wolf31o2@gentoo.org>2006-08-04 14:46:55 +0000
committerChris Gianelloni <wolf31o2@gentoo.org>2006-08-04 14:46:55 +0000
commit35de39f7bdd0996bd5c70543151210cdc8f3e948 (patch)
treea84f27af3098b50dac658c4ec1332484a5cf8f5e /app-emulation
parentUSE flag split tcltk-> tcl & tk per bug #17808 (diff)
downloadgentoo-2-35de39f7bdd0996bd5c70543151210cdc8f3e948.tar.gz
gentoo-2-35de39f7bdd0996bd5c70543151210cdc8f3e948.tar.bz2
gentoo-2-35de39f7bdd0996bd5c70543151210cdc8f3e948.zip
Moved vmware-workstation ebuilds using the new vmware eclass from the vmware overlay to the tree.
(Portage version: 2.1.1_pre4-r1)
Diffstat (limited to 'app-emulation')
-rw-r--r--app-emulation/vmware-workstation/ChangeLog23
-rw-r--r--app-emulation/vmware-workstation/files/4.5.3.19414/000_all_librarypath.patch28
-rw-r--r--app-emulation/vmware-workstation/files/4.5.3.19414/002_all_pagebreak-detection-fix.patch12
-rw-r--r--app-emulation/vmware-workstation/files/4.5.3.19414/009_all_init.d-modules-warning.patch19
-rw-r--r--app-emulation/vmware-workstation/files/5.5.1.19175/000_all_initd-location.patch31
-rw-r--r--app-emulation/vmware-workstation/files/5.5.1.19175/001_all_fix-permissions.patch15
-rw-r--r--app-emulation/vmware-workstation/files/5.5.1.19175/002_all_pagebreak-detection-fix.patch12
-rw-r--r--app-emulation/vmware-workstation/files/5.5.1.19175/004_all_do-not-build-modules.patch17
-rw-r--r--app-emulation/vmware-workstation/files/5.5.1.19175/007_all_use-modprobe-over-insmod.patch12
-rw-r--r--app-emulation/vmware-workstation/files/5.5.1.19175/009_all_init.d-modules-warning.patch19
-rw-r--r--app-emulation/vmware-workstation/files/digest-vmware-workstation-3.2.1.2242-r119
-rw-r--r--app-emulation/vmware-workstation/files/digest-vmware-workstation-4.5.3.19414-r32
-rw-r--r--app-emulation/vmware-workstation/files/digest-vmware-workstation-4.5.3.19414-r49
-rw-r--r--app-emulation/vmware-workstation/files/digest-vmware-workstation-5.5.1.19175-r46
-rw-r--r--app-emulation/vmware-workstation/files/vmware-workstation.rc74
-rw-r--r--app-emulation/vmware-workstation/files/vmware-workstation.xml48
-rw-r--r--app-emulation/vmware-workstation/vmware-workstation-3.2.1.2242-r11.ebuild87
-rw-r--r--app-emulation/vmware-workstation/vmware-workstation-4.5.3.19414-r4.ebuild64
-rw-r--r--app-emulation/vmware-workstation/vmware-workstation-5.5.1.19175-r4.ebuild49
19 files changed, 535 insertions, 1 deletions
diff --git a/app-emulation/vmware-workstation/ChangeLog b/app-emulation/vmware-workstation/ChangeLog
index 48be5f8ef1bb..5023596b671a 100644
--- a/app-emulation/vmware-workstation/ChangeLog
+++ b/app-emulation/vmware-workstation/ChangeLog
@@ -1,6 +1,27 @@
# ChangeLog for app-emulation/vmware-workstation
# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-emulation/vmware-workstation/ChangeLog,v 1.123 2006/07/27 15:12:11 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/vmware-workstation/ChangeLog,v 1.124 2006/08/04 14:46:55 wolf31o2 Exp $
+
+*vmware-workstation-5.5.1.19175-r4 (04 Aug 2006)
+*vmware-workstation-4.5.3.19414-r4 (04 Aug 2006)
+*vmware-workstation-3.2.1.2242-r11 (04 Aug 2006)
+
+ 04 Aug 2006; Chris Gianelloni <wolf31o2@gentoo.org>
+ +files/4.5.3.19414/000_all_librarypath.patch,
+ +files/5.5.1.19175/000_all_initd-location.patch,
+ +files/4.5.3.19414/002_all_pagebreak-detection-fix.patch,
+ +files/5.5.1.19175/001_all_fix-permissions.patch,
+ +files/4.5.3.19414/009_all_init.d-modules-warning.patch,
+ +files/5.5.1.19175/002_all_pagebreak-detection-fix.patch,
+ +files/5.5.1.19175/004_all_do-not-build-modules.patch,
+ +files/5.5.1.19175/007_all_use-modprobe-over-insmod.patch,
+ +files/5.5.1.19175/009_all_init.d-modules-warning.patch,
+ +files/vmware-workstation.rc, +files/vmware-workstation.xml,
+ +vmware-workstation-3.2.1.2242-r11.ebuild,
+ +vmware-workstation-4.5.3.19414-r4.ebuild,
+ +vmware-workstation-5.5.1.19175-r4.ebuild:
+ Moved vmware-workstation ebuilds using the new vmware eclass from the vmware
+ overlay to the tree.
27 Jul 2006; Chris Gianelloni <wolf31o2@gentoo.org>
vmware-workstation-3.2.1.2242-r10.ebuild,
diff --git a/app-emulation/vmware-workstation/files/4.5.3.19414/000_all_librarypath.patch b/app-emulation/vmware-workstation/files/4.5.3.19414/000_all_librarypath.patch
new file mode 100644
index 000000000000..a1eb4cbb94f7
--- /dev/null
+++ b/app-emulation/vmware-workstation/files/4.5.3.19414/000_all_librarypath.patch
@@ -0,0 +1,28 @@
+--- vmware/bin/vmware 2004-12-02 07:12:26.268618096 +0900
++++ vmware/bin/vmware 2004-12-02 07:34:31.684433747 +0900
+@@ -169,15 +169,23 @@
+ local lib
+ local dummy
+ local status
++ local newpath
+
+ path=''
+ while read -r lib dummy status; do
+ if [ "$status" = 'not found' ]; then
++ newpath="$vm_db_answer_LIBDIR"'/lib/'"$lib"
+ if [ "$path" = '' ]; then
+- path="$vm_db_answer_LIBDIR"'/lib/'"$lib"
++ path="$newpath"
+ else
+- path="$path"':'"$vm_db_answer_LIBDIR"'/lib/'"$lib"
++ path="$path"':'"$newpath"
+ fi
++ for x in "$newpath/"*.so; do
++ if [ -f "$x" ]
++ then
++ path="$path"':'`LD_LIBRARY_PATH="$path" LANGUAGE=C LANG=C ldd "$x" | vm_append_libs`
++ fi
++ done
+ fi
+ done
+
diff --git a/app-emulation/vmware-workstation/files/4.5.3.19414/002_all_pagebreak-detection-fix.patch b/app-emulation/vmware-workstation/files/4.5.3.19414/002_all_pagebreak-detection-fix.patch
new file mode 100644
index 000000000000..f700f5df9d32
--- /dev/null
+++ b/app-emulation/vmware-workstation/files/4.5.3.19414/002_all_pagebreak-detection-fix.patch
@@ -0,0 +1,12 @@
+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
+@@ -1969,7 +1969,7 @@
+ . ' -E - | ' . shell_string($gHelper{'grep'}) . ' '
+ . shell_string($pattern));
+ chomp($header_page_offset);
+- $header_page_offset =~ s/^$pattern \(?0x([0-9a-fA-F]{8,}).*$/$1/;
++ $header_page_offset =~ s/^$pattern \(?(\([^)]*\))?\)?0x([0-9a-fA-F]{8,}).*$/$2/;
+ if ($header_page_offset =~ /[0-9a-fA-F]{8,}/) {
+ # We found a valid page offset
+ if (defined($gSystem{'page_offset'}) and
diff --git a/app-emulation/vmware-workstation/files/4.5.3.19414/009_all_init.d-modules-warning.patch b/app-emulation/vmware-workstation/files/4.5.3.19414/009_all_init.d-modules-warning.patch
new file mode 100644
index 000000000000..4eab043af8dc
--- /dev/null
+++ b/app-emulation/vmware-workstation/files/4.5.3.19414/009_all_init.d-modules-warning.patch
@@ -0,0 +1,19 @@
+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-workstation/files/5.5.1.19175/000_all_initd-location.patch b/app-emulation/vmware-workstation/files/5.5.1.19175/000_all_initd-location.patch
new file mode 100644
index 000000000000..1d864f7e0dd7
--- /dev/null
+++ b/app-emulation/vmware-workstation/files/5.5.1.19175/000_all_initd-location.patch
@@ -0,0 +1,31 @@
+--- 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-workstation/files/5.5.1.19175/001_all_fix-permissions.patch b/app-emulation/vmware-workstation/files/5.5.1.19175/001_all_fix-permissions.patch
new file mode 100644
index 000000000000..e646b7b2da5c
--- /dev/null
+++ b/app-emulation/vmware-workstation/files/5.5.1.19175/001_all_fix-permissions.patch
@@ -0,0 +1,15 @@
+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-workstation/files/5.5.1.19175/002_all_pagebreak-detection-fix.patch b/app-emulation/vmware-workstation/files/5.5.1.19175/002_all_pagebreak-detection-fix.patch
new file mode 100644
index 000000000000..f700f5df9d32
--- /dev/null
+++ b/app-emulation/vmware-workstation/files/5.5.1.19175/002_all_pagebreak-detection-fix.patch
@@ -0,0 +1,12 @@
+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
+@@ -1969,7 +1969,7 @@
+ . ' -E - | ' . shell_string($gHelper{'grep'}) . ' '
+ . shell_string($pattern));
+ chomp($header_page_offset);
+- $header_page_offset =~ s/^$pattern \(?0x([0-9a-fA-F]{8,}).*$/$1/;
++ $header_page_offset =~ s/^$pattern \(?(\([^)]*\))?\)?0x([0-9a-fA-F]{8,}).*$/$2/;
+ if ($header_page_offset =~ /[0-9a-fA-F]{8,}/) {
+ # We found a valid page offset
+ if (defined($gSystem{'page_offset'}) and
diff --git a/app-emulation/vmware-workstation/files/5.5.1.19175/004_all_do-not-build-modules.patch b/app-emulation/vmware-workstation/files/5.5.1.19175/004_all_do-not-build-modules.patch
new file mode 100644
index 000000000000..cec3b3ee4c1d
--- /dev/null
+++ b/app-emulation/vmware-workstation/files/5.5.1.19175/004_all_do-not-build-modules.patch
@@ -0,0 +1,17 @@
+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-workstation/files/5.5.1.19175/007_all_use-modprobe-over-insmod.patch b/app-emulation/vmware-workstation/files/5.5.1.19175/007_all_use-modprobe-over-insmod.patch
new file mode 100644
index 000000000000..c29a87e8f226
--- /dev/null
+++ b/app-emulation/vmware-workstation/files/5.5.1.19175/007_all_use-modprobe-over-insmod.patch
@@ -0,0 +1,12 @@
+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 -f "$1" || exit 1
+ exit 0
+ }
+
diff --git a/app-emulation/vmware-workstation/files/5.5.1.19175/009_all_init.d-modules-warning.patch b/app-emulation/vmware-workstation/files/5.5.1.19175/009_all_init.d-modules-warning.patch
new file mode 100644
index 000000000000..4eab043af8dc
--- /dev/null
+++ b/app-emulation/vmware-workstation/files/5.5.1.19175/009_all_init.d-modules-warning.patch
@@ -0,0 +1,19 @@
+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-workstation/files/digest-vmware-workstation-3.2.1.2242-r11 b/app-emulation/vmware-workstation/files/digest-vmware-workstation-3.2.1.2242-r11
new file mode 100644
index 000000000000..3e939ed48ce9
--- /dev/null
+++ b/app-emulation/vmware-workstation/files/digest-vmware-workstation-3.2.1.2242-r11
@@ -0,0 +1,9 @@
+MD5 56dccf022582a374cf2eac06796115cf VMware-workstation-3.2.1-2242.tar.gz 12577292
+RMD160 f2a6c3cc38f3c3851446e8902237b958367293a1 VMware-workstation-3.2.1-2242.tar.gz 12577292
+SHA256 ec305ca65c2e513b5d809e59849176d15dcf6a8f88e3d9bc9ce8fdca59fc2dfc VMware-workstation-3.2.1-2242.tar.gz 12577292
+MD5 b3ce457f5b9ae8b606fd70f56084877d vmware-any-any-update101.tar.gz 296409
+RMD160 d8994b91492257d8b8e08480ab27fc307fc34095 vmware-any-any-update101.tar.gz 296409
+SHA256 b12e3a70117ef26a85c8e01a23ea7d21b62bbc86998368114f9f7932390d2037 vmware-any-any-update101.tar.gz 296409
+MD5 7ca1ec14670b51d8cf824a58bc8d6621 vmware.png 470
+RMD160 759a5530b3bb605e6bc2c1e203490163d320485d vmware.png 470
+SHA256 9bec91ecc32fa913141ca303abf1abec988ebc7fb4f27389f173bf3493bffb9b vmware.png 470
diff --git a/app-emulation/vmware-workstation/files/digest-vmware-workstation-4.5.3.19414-r3 b/app-emulation/vmware-workstation/files/digest-vmware-workstation-4.5.3.19414-r3
index aa749a53b0ec..3c3b61df79e8 100644
--- a/app-emulation/vmware-workstation/files/digest-vmware-workstation-4.5.3.19414-r3
+++ b/app-emulation/vmware-workstation/files/digest-vmware-workstation-4.5.3.19414-r3
@@ -1,4 +1,6 @@
MD5 6b64bb2ac53c7cb765dfd870fa338d72 VMware-workstation-4.5.3-19414.tar.gz 42444031
+RMD160 0f0b7a2249a12b75c9d81b8906efb2e85e04878b VMware-workstation-4.5.3-19414.tar.gz 42444031
+SHA256 6873ff04a317e6d0cbf31d4dd2ffcacd99cd335fb329e47f2c5f924376ffdcd6 VMware-workstation-4.5.3-19414.tar.gz 42444031
MD5 b3ce457f5b9ae8b606fd70f56084877d vmware-any-any-update101.tar.gz 296409
RMD160 d8994b91492257d8b8e08480ab27fc307fc34095 vmware-any-any-update101.tar.gz 296409
SHA256 b12e3a70117ef26a85c8e01a23ea7d21b62bbc86998368114f9f7932390d2037 vmware-any-any-update101.tar.gz 296409
diff --git a/app-emulation/vmware-workstation/files/digest-vmware-workstation-4.5.3.19414-r4 b/app-emulation/vmware-workstation/files/digest-vmware-workstation-4.5.3.19414-r4
new file mode 100644
index 000000000000..3c3b61df79e8
--- /dev/null
+++ b/app-emulation/vmware-workstation/files/digest-vmware-workstation-4.5.3.19414-r4
@@ -0,0 +1,9 @@
+MD5 6b64bb2ac53c7cb765dfd870fa338d72 VMware-workstation-4.5.3-19414.tar.gz 42444031
+RMD160 0f0b7a2249a12b75c9d81b8906efb2e85e04878b VMware-workstation-4.5.3-19414.tar.gz 42444031
+SHA256 6873ff04a317e6d0cbf31d4dd2ffcacd99cd335fb329e47f2c5f924376ffdcd6 VMware-workstation-4.5.3-19414.tar.gz 42444031
+MD5 b3ce457f5b9ae8b606fd70f56084877d vmware-any-any-update101.tar.gz 296409
+RMD160 d8994b91492257d8b8e08480ab27fc307fc34095 vmware-any-any-update101.tar.gz 296409
+SHA256 b12e3a70117ef26a85c8e01a23ea7d21b62bbc86998368114f9f7932390d2037 vmware-any-any-update101.tar.gz 296409
+MD5 7ca1ec14670b51d8cf824a58bc8d6621 vmware.png 470
+RMD160 759a5530b3bb605e6bc2c1e203490163d320485d vmware.png 470
+SHA256 9bec91ecc32fa913141ca303abf1abec988ebc7fb4f27389f173bf3493bffb9b vmware.png 470
diff --git a/app-emulation/vmware-workstation/files/digest-vmware-workstation-5.5.1.19175-r4 b/app-emulation/vmware-workstation/files/digest-vmware-workstation-5.5.1.19175-r4
new file mode 100644
index 000000000000..f2c972765c5b
--- /dev/null
+++ b/app-emulation/vmware-workstation/files/digest-vmware-workstation-5.5.1.19175-r4
@@ -0,0 +1,6 @@
+MD5 6101deb381beb49f5b99cb1f8a81a532 VMware-workstation-5.5.1-19175.tar.gz 100090786
+RMD160 79735996e1d79e96783db7d2dac67b7b7f605f47 VMware-workstation-5.5.1-19175.tar.gz 100090786
+SHA256 7346676d0ec1c72c3f8d3e4ced37311a63c99d757998b162a08724466504e2c3 VMware-workstation-5.5.1-19175.tar.gz 100090786
+MD5 b3ce457f5b9ae8b606fd70f56084877d vmware-any-any-update101.tar.gz 296409
+RMD160 d8994b91492257d8b8e08480ab27fc307fc34095 vmware-any-any-update101.tar.gz 296409
+SHA256 b12e3a70117ef26a85c8e01a23ea7d21b62bbc86998368114f9f7932390d2037 vmware-any-any-update101.tar.gz 296409
diff --git a/app-emulation/vmware-workstation/files/vmware-workstation.rc b/app-emulation/vmware-workstation/files/vmware-workstation.rc
new file mode 100644
index 000000000000..210db68d9f0e
--- /dev/null
+++ b/app-emulation/vmware-workstation/files/vmware-workstation.rc
@@ -0,0 +1,74 @@
+#!/sbin/runscript
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/vmware-workstation/files/vmware-workstation.rc,v 1.1 2006/08/04 14:46:55 wolf31o2 Exp $
+
+depend() {
+ need localmount
+ use logger net
+ after samba
+}
+
+vmware-prettify() {
+ # Yea, the code is ugly but the output is pretty
+ state=$1
+ waserror=0
+ msgtype=0
+ while read line
+ do
+ [ "$line" == "" ] && continue
+ if [ "$msgtype" -le "0" ]
+ then
+ if [ "$msgtype" == "-1" ]
+ then
+ ewarn $line
+ continue
+ fi
+ if [ "${line/*:*/}" == "" ]
+ then
+ einfon $line
+ echo
+ eend 0
+ msgtype=1
+ else
+ ewarn $line
+ msgtype=-1
+ waserror=1
+ fi
+ continue
+ fi
+
+ # Strip out anything after the <esc> code
+ message=`echo $line | sed -e "s/^\(.*\).*$/\1/"`
+ einfon " $message"
+ echo
+
+ echo $line | grep done > /dev/null
+ status=$?
+ eend $status
+
+ if [ "$status" != "0" ]
+ then
+ logger -p local0.err -t vmware-${state} "$line"
+ waserror=$status
+ fi
+ done
+ if [ "$msgtype" == "-1" ]
+ then
+ eend 1 "VMware is not properly configured! See above."
+ fi
+ return $waserror
+}
+
+start() {
+ test -x /etc/vmware/init.d/vmware || \
+ eend 1 "vmware init script not found. Aborting" || return 1
+
+ /etc/vmware/init.d/vmware start | vmware-prettify start
+ return $?
+}
+
+stop() {
+ /etc/vmware/init.d/vmware stop | vmware-prettify stop
+ return $?
+}
diff --git a/app-emulation/vmware-workstation/files/vmware-workstation.xml b/app-emulation/vmware-workstation/files/vmware-workstation.xml
new file mode 100644
index 000000000000..8d5e2eff56b6
--- /dev/null
+++ b/app-emulation/vmware-workstation/files/vmware-workstation.xml
@@ -0,0 +1,48 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
+ <mime-type type="application/x-vmware-vm">
+ <comment xml:lang="en">VMware virtual machine</comment>
+ <magic priority="50">
+ <match type="string" value='config.version = "' offset="0:4096"/>
+ </magic>
+ <glob pattern="*.vmx"/>
+ </mime-type>
+
+ <mime-type type="application/x-vmware-vmdisk">
+ <comment xml:lang="en">VMware virtual disk</comment>
+ <magic priority="50">
+ <match type="string" value="# Disk DescriptorFile" offset="0"/>
+ <match type="string" value="KDMV" offset="0"/>
+ </magic>
+ <glob pattern="*.vmdk"/>
+ </mime-type>
+
+ <mime-type type="application/x-vmware-team">
+ <comment xml:lang="en">VMware team</comment>
+ <magic priority="50">
+ <match type="string" value='&lt;Foundry version="1"&gt;' offset="0">
+ <match type="string" value="&lt;VMTeam&gt;" offset="23:24"/>
+ </match>
+ </magic>
+ <glob pattern="*.vmtm"/>
+ </mime-type>
+
+ <mime-type type="application/x-vmware-snapshot">
+ <comment xml:lang="en">VMware virtual machine snapshot</comment>
+ <magic priority="50">
+ <match type="string" value="\\0xD0\\0xBE\\0xD0\\0xBE" offset="0"/>
+ </magic>
+ <glob pattern="*.vmsn"/>
+ </mime-type>
+
+ <mime-type type="application/x-vmware-vmfoundry">
+ <comment xml:lang="en">VMware virtual machine foundry</comment>
+ <magic priority="50">
+ <match type="string" value='&lt;Foundry version="1"&gt;' offset="0">
+ <match type="string" value="&lt;VM&gt;" offset="23:24"/>
+ </match>
+ </magic>
+ <glob pattern="*.vmxf"/>
+ </mime-type>
+</mime-info>
diff --git a/app-emulation/vmware-workstation/vmware-workstation-3.2.1.2242-r11.ebuild b/app-emulation/vmware-workstation/vmware-workstation-3.2.1.2242-r11.ebuild
new file mode 100644
index 000000000000..5e9b50a93a26
--- /dev/null
+++ b/app-emulation/vmware-workstation/vmware-workstation-3.2.1.2242-r11.ebuild
@@ -0,0 +1,87 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/vmware-workstation/vmware-workstation-3.2.1.2242-r11.ebuild,v 1.1 2006/08/04 14:46:55 wolf31o2 Exp $
+
+inherit toolchain-funcs eutils vmware
+
+MY_P="VMware-workstation-3.2.1-2242"
+
+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="mirror://vmware/software/${MY_P}.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/obselete/${ANY_ANY}.tar.gz
+ mirror://gentoo/vmware.png"
+
+LICENSE="vmware"
+SLOT="0"
+KEYWORDS="-* ~x86"
+IUSE=""
+RESTRICT="strip"
+
+# vmware-workstation should not use virtual/libc as this is a
+# precompiled binary package thats linked to glibc.
+RDEPEND="sys-libs/glibc
+ || (
+ (
+ x11-libs/libXrandr
+ x11-libs/libXcursor
+ x11-libs/libXinerama
+ x11-libs/libXi )
+ virtual/x11 )
+ virtual/xft
+ !app-emulation/vmware-player
+ !app-emulation/vmware-server
+ ~app-emulation/vmware-modules-1.0.0.8
+ media-libs/gdk-pixbuf
+ >=dev-lang/perl-5
+ sys-apps/pciutils"
+
+S=${WORKDIR}/vmware-distrib
+
+RUN_UPDATE="no"
+
+dir=/opt/vmware/workstation
+Ddir=${D}/${dir}
+
+src_compile() {
+ has_version '<sys-libs/glibc-2.3.2' \
+ && GLIBC_232=0 \
+ || GLIBC_232=1
+
+ if [ ${GLIBC_232} -eq 1 ] ; then
+ $(tc-getCC) -W -Wall -shared -o vmware-glibc-2.3.2-compat.so \
+ ${FILESDIR}/${PV}/vmware-glibc-2.3.2-compat.c \
+ || die "could not make module"
+ else
+ return 0
+ fi
+}
+
+src_install() {
+ vmware_src_install
+ # We also remove libgdk_pixbuf stuff, to resolve bug #81344.
+ rm -rf ${Ddir}/lib/lib/libgdk_pixbuf.so.2
+
+ # A simple icon I made
+ insinto ${dir}/lib/icon
+ doins ${DISTDIR}/vmware.png || die
+ doicon ${DISTDIR}/vmware.png || die
+
+ make_desktop_entry vmware "VMWare Workstation" vmware.png
+
+ if [ ${GLIBC_232} -eq 1 ] ; then
+ dolib.so vmware-glibc-2.3.2-compat.so
+ cd ${Ddir}/lib/bin
+ mv vmware-ui{,.bin}
+ mv vmware-mks{,.bin}
+ echo '#!/bin/sh' > vmware-ui
+ echo 'LD_PRELOAD=vmware-glibc-2.3.2-compat.so exec "$0.bin" "$@"' >> vmware-ui
+ chmod a+x vmware-ui
+ cp vmware-{ui,mks}
+ else
+ return 0
+ fi
+}
diff --git a/app-emulation/vmware-workstation/vmware-workstation-4.5.3.19414-r4.ebuild b/app-emulation/vmware-workstation/vmware-workstation-4.5.3.19414-r4.ebuild
new file mode 100644
index 000000000000..1a2a69985b5e
--- /dev/null
+++ b/app-emulation/vmware-workstation/vmware-workstation-4.5.3.19414-r4.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/vmware-workstation/vmware-workstation-4.5.3.19414-r4.ebuild,v 1.1 2006/08/04 14:46:55 wolf31o2 Exp $
+
+inherit eutils vmware
+
+MY_P="VMware-workstation-4.5.3-19414"
+
+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="mirror://vmware/software/wkst/${MY_P}.tar.gz
+ http://ftp.cvut.cz/vmware/${ANY_ANY}.tar.gz
+ http://ftp.cvut.cz/vmware/obselete/${ANY_ANY}.tar.gz
+ http://knihovny.cvut.cz/ftp/pub/vmware/${ANY_ANY}.tar.gz
+ http://knihovny.cvut.cz/ftp/pub/vmware/obselete/${ANY_ANY}.tar.gz
+ mirror://gentoo/vmware.png"
+
+LICENSE="vmware"
+SLOT="0"
+KEYWORDS="-* ~amd64 ~x86"
+IUSE=""
+RESTRICT="strip"
+
+# vmware-workstation 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 )
+ virtual/x11 )
+ virtual/xft )
+ !app-emulation/vmware-player
+ !app-emulation/vmware-server
+ ~app-emulation/vmware-modules-1.0.0.11
+ >=dev-lang/perl-5
+ sys-apps/pciutils"
+
+S=${WORKDIR}/vmware-distrib
+
+RUN_UPDATE="no"
+
+dir=/opt/vmware/workstation
+Ddir=${D}/${dir}
+
+src_install() {
+ vmware_src_install
+ # We remove the rpath libgdk_pixbuf stuff, to resolve bug #81344.
+ perl -pi -e 's#/tmp/rrdharan/out#/opt/vmware/null/#sg' \
+ ${Ddir}/lib/lib/libgdk_pixbuf.so.2/lib{gdk_pixbuf.so.2,pixbufloader-{xpm,png}.so.1.0.0} \
+ || die "Removing rpath"
+
+ # A simple icon I made
+ insinto ${dir}/lib/icon
+ doins ${DISTDIR}/vmware.png || die
+ doicon ${DISTDIR}/vmware.png || die
+
+ make_desktop_entry vmware "VMWare Workstation" vmware.png
+}
diff --git a/app-emulation/vmware-workstation/vmware-workstation-5.5.1.19175-r4.ebuild b/app-emulation/vmware-workstation/vmware-workstation-5.5.1.19175-r4.ebuild
new file mode 100644
index 000000000000..415436ab8483
--- /dev/null
+++ b/app-emulation/vmware-workstation/vmware-workstation-5.5.1.19175-r4.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/vmware-workstation/vmware-workstation-5.5.1.19175-r4.ebuild,v 1.1 2006/08/04 14:46:55 wolf31o2 Exp $
+
+inherit vmware eutils
+
+MY_P="VMware-workstation-5.5.1-19175"
+
+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="mirror://vmware/software/wkst/${MY_P}.tar.gz
+ http://ftp.cvut.cz/vmware/${ANY_ANY}.tar.gz
+ http://ftp.cvut.cz/vmware/obselete/${ANY_ANY}.tar.gz
+ http://knihovny.cvut.cz/ftp/pub/vmware/${ANY_ANY}.tar.gz
+ http://knihovny.cvut.cz/ftp/pub/vmware/obselete/${ANY_ANY}.tar.gz"
+
+LICENSE="vmware"
+SLOT="0"
+KEYWORDS="-* ~amd64 ~x86"
+IUSE=""
+RESTRICT="strip"
+
+# vmware-workstation 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 )
+ virtual/x11 )
+ virtual/xft )
+ !app-emulation/vmware-player
+ !app-emulation/vmware-server
+ ~app-emulation/vmware-modules-1.0.0.13
+ >=dev-lang/perl-5
+ sys-apps/pciutils"
+
+S=${WORKDIR}/vmware-distrib
+
+RUN_UPDATE="no"
+
+dir=/opt/vmware/workstation
+Ddir=${D}/${dir}
+