# 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.146 2006/11/16 14:15:58 wolf31o2 Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/vmware-workstation/ChangeLog,v 1.147 2006/11/20 21:38:55 wolf31o2 Exp $
+
+*vmware-workstation-5.5.3.34685 (20 Nov 2006)
+
+ 20 Nov 2006; Chris Gianelloni <wolf31o2@gentoo.org>
+ +files/5.5.3.34685/000_all_initd-location.patch,
+ +files/5.5.3.34685/001_all_fix-permissions.patch,
+ +files/5.5.3.34685/002_all_pagebreak-detection-fix.patch,
+ +files/5.5.3.34685/004_all_do-not-build-modules.patch,
+ +files/5.5.3.34685/007_all_use-modprobe-over-insmod.patch,
+ +files/5.5.3.34685/009_all_init.d-modules-warning.patch,
+ +vmware-workstation-5.5.3.34685.ebuild:
+ Added 5.5.3 version and closing bug #155593. Remember, kids, every time you
+ file a 0-day bump request, God kills a kitten. Please think of the kittens.
16 Nov 2006; Chris Gianelloni <wolf31o2@gentoo.org>
vmware-workstation-5.5.2.29772.ebuild:
--- /dev/null
+--- 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";
+ }
+
--- /dev/null
+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';
--- /dev/null
+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') {
--- /dev/null
+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
--- /dev/null
+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
+ }
+
--- /dev/null
+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
--- /dev/null
+MD5 08a7732afddeb9db41a25a9557fd0397 VMware-workstation-5.5.3-34685.tar.gz 111527809
+RMD160 ad664c254b8d4cf010fdccf833f75e7112b50696 VMware-workstation-5.5.3-34685.tar.gz 111527809
+SHA256 a46f7199957c96d25f25c401e10da3c81728409b1bbd62db1bebb3b8a568c595 VMware-workstation-5.5.3-34685.tar.gz 111527809
+MD5 8cba16d3f6b3723b43d555a5f7cbf850 vmware-any-any-update104.tar.gz 297243
+RMD160 426616f026de409ca057ec1a0913dc9b3d43ef03 vmware-any-any-update104.tar.gz 297243
+SHA256 c0a9efad2677e93ed914e296131916f8b316377644c5d8c716e6575cd58b3c69 vmware-any-any-update104.tar.gz 297243
--- /dev/null
+# 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.3.34685.ebuild,v 1.1 2006/11/20 21:38:55 wolf31o2 Exp $
+
+inherit vmware eutils
+
+MY_P="VMware-workstation-5.5.3-34685"
+
+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://download.softpedia.ro/linux/${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=""
+# Even with all of the QA_* variables below, we still need this because there is
+# no QA variable for setXid lazy bindings. Sorry, guys.
+RESTRICT="stricter 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/xft )
+ !app-emulation/vmware-player
+ !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
+ >=dev-lang/perl-5
+ sys-apps/pciutils"
+
+S=${WORKDIR}/vmware-distrib
+
+RUN_UPDATE="no"
+
+dir=/opt/vmware/workstation
+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-loop
+ ${dir:1}/bin/vmware-ping
+ ${dir:1}/bin/vmware-vdiskmanager
+ ${dir:1}/lib/bin/vmware
+ ${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-loop
+ ${dir:1}/bin/vmware-ping
+ ${dir:1}/bin/vmware-vdiskmanager
+ ${dir:1}/lib/bin/vmware
+ ${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
+
+ doicon lib/share/pixmaps/vmware-player.png
+ make_desktop_entry vmware "VMWare Workstation" ${PN}.png System
+ make_desktop_entry vmplayer "VMWare Player" vmware-player.png System
+}