diff options
author | Mike Auty <ikelos@gentoo.org> | 2007-11-25 12:50:32 +0000 |
---|---|---|
committer | Mike Auty <ikelos@gentoo.org> | 2007-11-25 12:50:32 +0000 |
commit | 8e715eeeb32b3370e6f38418f89dffcf191626c9 (patch) | |
tree | d9711534dde43d8afa948eff0d5e20a91ed5f93e /app-emulation/vmware-workstation | |
parent | Bump to vmware-any-any-update114. Also update 1.0.0.17 to use the latest vmw... (diff) | |
download | gentoo-2-8e715eeeb32b3370e6f38418f89dffcf191626c9.tar.gz gentoo-2-8e715eeeb32b3370e6f38418f89dffcf191626c9.tar.bz2 gentoo-2-8e715eeeb32b3370e6f38418f89dffcf191626c9.zip |
Version bump to 6.0.2, and update to vmware-any-any-update114.
(Portage version: 2.1.3.19)
Diffstat (limited to 'app-emulation/vmware-workstation')
14 files changed, 325 insertions, 29 deletions
diff --git a/app-emulation/vmware-workstation/ChangeLog b/app-emulation/vmware-workstation/ChangeLog index d3a63040435b..02615bb0959e 100644 --- a/app-emulation/vmware-workstation/ChangeLog +++ b/app-emulation/vmware-workstation/ChangeLog @@ -1,6 +1,19 @@ # ChangeLog for app-emulation/vmware-workstation # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-emulation/vmware-workstation/ChangeLog,v 1.169 2007/11/07 01:12:21 wolf31o2 Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-emulation/vmware-workstation/ChangeLog,v 1.170 2007/11/25 12:50:31 ikelos Exp $ + +*vmware-workstation-6.0.2.59824 (25 Nov 2007) + + 25 Nov 2007; Mike Auty <ikelos@gentoo.org> + +files/6.0.2.59824/000_all_initd-location.patch, + +files/6.0.2.59824/001_all_fix-permissions.patch, + +files/6.0.2.59824/002_all_pagebreak-detection-fix.patch, + +files/6.0.2.59824/004_all_do-not-build-modules.patch, + +files/6.0.2.59824/007_all_use-modprobe-over-insmod.patch, + +files/6.0.2.59824/009_all_init.d-modules-warning.patch, + +files/6.0.2.59824/011_all_legit-modules-only.patch, + files/vmware-workstation.rc, +vmware-workstation-6.0.2.59824.ebuild: + Version bump to 6.0.2. 07 Nov 2007; Chris Gianelloni <wolf31o2@gentoo.org> -files/5.5.4.44386/000_all_initd-location.patch, diff --git a/app-emulation/vmware-workstation/files/6.0.2.59824/000_all_initd-location.patch b/app-emulation/vmware-workstation/files/6.0.2.59824/000_all_initd-location.patch new file mode 100644 index 000000000000..6eb6619d2b8e --- /dev/null +++ b/app-emulation/vmware-workstation/files/6.0.2.59824/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{'skip-stop-start'}) { +- 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/6.0.2.59824/001_all_fix-permissions.patch b/app-emulation/vmware-workstation/files/6.0.2.59824/001_all_fix-permissions.patch new file mode 100644 index 000000000000..e646b7b2da5c --- /dev/null +++ b/app-emulation/vmware-workstation/files/6.0.2.59824/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/6.0.2.59824/002_all_pagebreak-detection-fix.patch b/app-emulation/vmware-workstation/files/6.0.2.59824/002_all_pagebreak-detection-fix.patch new file mode 100644 index 000000000000..fd3fc76ca679 --- /dev/null +++ b/app-emulation/vmware-workstation/files/6.0.2.59824/002_all_pagebreak-detection-fix.patch @@ -0,0 +1,15 @@ +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-workstation/files/6.0.2.59824/004_all_do-not-build-modules.patch b/app-emulation/vmware-workstation/files/6.0.2.59824/004_all_do-not-build-modules.patch new file mode 100644 index 000000000000..e2649c0af27b --- /dev/null +++ b/app-emulation/vmware-workstation/files/6.0.2.59824/004_all_do-not-build-modules.patch @@ -0,0 +1,21 @@ +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 +@@ -10158,13 +10158,13 @@ + configure_gtk2(); + # createMimePackageFile(); + # configureDesktopFiles(); +- configure_mon(); ++# configure_mon(); + if (isDesktopProduct()) { +- build_vmblock(); ++# build_vmblock(); + } +- configure_pp(); ++# configure_pp(); + configure_net(); +- build_vmnet(); ++# build_vmnet(); + } + + configure_eclipse_plugin(); diff --git a/app-emulation/vmware-workstation/files/6.0.2.59824/007_all_use-modprobe-over-insmod.patch b/app-emulation/vmware-workstation/files/6.0.2.59824/007_all_use-modprobe-over-insmod.patch new file mode 100644 index 000000000000..c29a87e8f226 --- /dev/null +++ b/app-emulation/vmware-workstation/files/6.0.2.59824/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/6.0.2.59824/009_all_init.d-modules-warning.patch b/app-emulation/vmware-workstation/files/6.0.2.59824/009_all_init.d-modules-warning.patch new file mode 100644 index 000000000000..4eab043af8dc --- /dev/null +++ b/app-emulation/vmware-workstation/files/6.0.2.59824/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/6.0.2.59824/011_all_legit-modules-only.patch b/app-emulation/vmware-workstation/files/6.0.2.59824/011_all_legit-modules-only.patch new file mode 100644 index 000000000000..9e453ed1e2ee --- /dev/null +++ b/app-emulation/vmware-workstation/files/6.0.2.59824/011_all_legit-modules-only.patch @@ -0,0 +1,12 @@ +diff -uNr vmware-distrib.orig/bin/vmware-config.pl vmware-distrib/bin/vmware-config.pl +--- vmware-distrib.orig/bin/vmware-config.pl 2007-08-22 02:58:41.000000000 +0100 ++++ vmware-distrib/bin/vmware-config.pl 2007-09-19 20:04:57.000000000 +0100 +@@ -10127,7 +10127,7 @@ + } + + my @modules = non_vmware_modules_installed(); +- if (scalar(@modules) > 0) { ++ if (scalar(@modules) < 0) { + error("The following VMware kernel modules have been found on your system that " . + "were not installed by the VMware Installer. Please remove them then run " . + "this installer again.\n\n" . join("\n", @modules) . "\n\n"); diff --git a/app-emulation/vmware-workstation/files/digest-vmware-workstation-4.5.3.19414-r7 b/app-emulation/vmware-workstation/files/digest-vmware-workstation-4.5.3.19414-r7 index 4edea611a773..61b5471cec8f 100644 --- a/app-emulation/vmware-workstation/files/digest-vmware-workstation-4.5.3.19414-r7 +++ b/app-emulation/vmware-workstation/files/digest-vmware-workstation-4.5.3.19414-r7 @@ -1,9 +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 cb3f91f2196778e6d76d5a6697286d04 vmware-any-any-update113.tar.gz 469321 -RMD160 a4de5c17489dffade015f5bc3036f6ab882f749c vmware-any-any-update113.tar.gz 469321 -SHA256 ed15e61811f188e3c009d9fd8878cc74fd45e2b5644e21e4fe3010731841c99d vmware-any-any-update113.tar.gz 469321 +MD5 34377ba9387804329c4a94619cc7efac vmware-any-any-update114.tar.gz 470728 +RMD160 06beab6c71a73a94da7e95cfd846117e299a22c1 vmware-any-any-update114.tar.gz 470728 +SHA256 eff8a5240a2928ef14e5ec81494ea1f531c4b7ea6f9b869659e8f7ea3272fdd5 vmware-any-any-update114.tar.gz 470728 MD5 062f83a22822b6e4d4a176e3648c38d8 vmware-libcrypto.so.0.9.7l.tar.bz2 412159 RMD160 89282ae9fc6e8921a47704bc9cd23cf70a6870e8 vmware-libcrypto.so.0.9.7l.tar.bz2 412159 SHA256 fae52acf61415959cca763a715a2b61ec49f161a416d418d6a1faffce531db12 vmware-libcrypto.so.0.9.7l.tar.bz2 412159 diff --git a/app-emulation/vmware-workstation/files/digest-vmware-workstation-5.5.5.56455 b/app-emulation/vmware-workstation/files/digest-vmware-workstation-5.5.5.56455 index 11c5d88852e4..99a0f864aa05 100644 --- a/app-emulation/vmware-workstation/files/digest-vmware-workstation-5.5.5.56455 +++ b/app-emulation/vmware-workstation/files/digest-vmware-workstation-5.5.5.56455 @@ -1,6 +1,6 @@ MD5 c81b191738f76b7c085ca6577948349c VMware-workstation-5.5.5-56455.tar.gz 111516196 RMD160 a239464792fec9f7d420ad7e7854b3c23aa88692 VMware-workstation-5.5.5-56455.tar.gz 111516196 SHA256 e7d906008160ec89f4a07f15b065f2ede6a31038a666f8e0bd30919bfe5f3c23 VMware-workstation-5.5.5-56455.tar.gz 111516196 -MD5 cb3f91f2196778e6d76d5a6697286d04 vmware-any-any-update113.tar.gz 469321 -RMD160 a4de5c17489dffade015f5bc3036f6ab882f749c vmware-any-any-update113.tar.gz 469321 -SHA256 ed15e61811f188e3c009d9fd8878cc74fd45e2b5644e21e4fe3010731841c99d vmware-any-any-update113.tar.gz 469321 +MD5 34377ba9387804329c4a94619cc7efac vmware-any-any-update114.tar.gz 470728 +RMD160 06beab6c71a73a94da7e95cfd846117e299a22c1 vmware-any-any-update114.tar.gz 470728 +SHA256 eff8a5240a2928ef14e5ec81494ea1f531c4b7ea6f9b869659e8f7ea3272fdd5 vmware-any-any-update114.tar.gz 470728 diff --git a/app-emulation/vmware-workstation/files/digest-vmware-workstation-6.0.1.55017 b/app-emulation/vmware-workstation/files/digest-vmware-workstation-6.0.1.55017 index 7175e2787e26..e52ddf7a0a8f 100644 --- a/app-emulation/vmware-workstation/files/digest-vmware-workstation-6.0.1.55017 +++ b/app-emulation/vmware-workstation/files/digest-vmware-workstation-6.0.1.55017 @@ -4,6 +4,6 @@ SHA256 7fd0279754075c09699abeb780fda8d5420490d43eca0fb33107e9987a1e838a VMware-w MD5 7a3eb60a4143c37d4a56dc0f957320ff VMware-workstation-6.0.1-55017.x86_64.tar.gz 196577425 RMD160 6ae105b93e2434a3909adcc1a93545c51b2a855e VMware-workstation-6.0.1-55017.x86_64.tar.gz 196577425 SHA256 3e2c102eaedb652291c44fafd3e022c90cc8eca9f591d06e625f20f04f7015ff VMware-workstation-6.0.1-55017.x86_64.tar.gz 196577425 -MD5 cb3f91f2196778e6d76d5a6697286d04 vmware-any-any-update113.tar.gz 469321 -RMD160 a4de5c17489dffade015f5bc3036f6ab882f749c vmware-any-any-update113.tar.gz 469321 -SHA256 ed15e61811f188e3c009d9fd8878cc74fd45e2b5644e21e4fe3010731841c99d vmware-any-any-update113.tar.gz 469321 +MD5 34377ba9387804329c4a94619cc7efac vmware-any-any-update114.tar.gz 470728 +RMD160 06beab6c71a73a94da7e95cfd846117e299a22c1 vmware-any-any-update114.tar.gz 470728 +SHA256 eff8a5240a2928ef14e5ec81494ea1f531c4b7ea6f9b869659e8f7ea3272fdd5 vmware-any-any-update114.tar.gz 470728 diff --git a/app-emulation/vmware-workstation/files/digest-vmware-workstation-6.0.2.59824 b/app-emulation/vmware-workstation/files/digest-vmware-workstation-6.0.2.59824 new file mode 100644 index 000000000000..d1b9a6cfe8fc --- /dev/null +++ b/app-emulation/vmware-workstation/files/digest-vmware-workstation-6.0.2.59824 @@ -0,0 +1,9 @@ +MD5 500eea17078fab7bd7f3159748e5f624 VMware-workstation-6.0.2-59824.i386.tar.gz 219077421 +RMD160 4e0f9aff3507cb3a9695172c9875d374c0dbab1d VMware-workstation-6.0.2-59824.i386.tar.gz 219077421 +SHA256 506fc1c8215b6a606a2d47231c1eed830acf98b2f79240c6ec7cb4e13370880f VMware-workstation-6.0.2-59824.i386.tar.gz 219077421 +MD5 82fe78b951421f10a34418ad0ac7ed3f VMware-workstation-6.0.2-59824.x86_64.tar.gz 196567485 +RMD160 a7625f679b36d22f88f0b3d9d8c9e9f064015dc5 VMware-workstation-6.0.2-59824.x86_64.tar.gz 196567485 +SHA256 d656421e596f79fc872771ac63bd19c834c8ae98cb95a948bdf2090597393a95 VMware-workstation-6.0.2-59824.x86_64.tar.gz 196567485 +MD5 34377ba9387804329c4a94619cc7efac vmware-any-any-update114.tar.gz 470728 +RMD160 06beab6c71a73a94da7e95cfd846117e299a22c1 vmware-any-any-update114.tar.gz 470728 +SHA256 eff8a5240a2928ef14e5ec81494ea1f531c4b7ea6f9b869659e8f7ea3272fdd5 vmware-any-any-update114.tar.gz 470728 diff --git a/app-emulation/vmware-workstation/files/vmware-workstation.rc b/app-emulation/vmware-workstation/files/vmware-workstation.rc index f201729fe833..a4bd89a3c5bb 100644 --- a/app-emulation/vmware-workstation/files/vmware-workstation.rc +++ b/app-emulation/vmware-workstation/files/vmware-workstation.rc @@ -1,7 +1,7 @@ #!/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.5 2007/09/16 15:30:58 ikelos Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-emulation/vmware-workstation/files/vmware-workstation.rc,v 1.6 2007/11/25 12:50:32 ikelos Exp $ depend() { need localmount @@ -16,59 +16,71 @@ vmware_prettify() { msgtype=0 while read line do - [ "$line" = "" ] && continue + [ "${line}" = "" ] && continue if [ ${msgtype} -le 0 ] then if [ ${msgtype} -eq -1 ] then - ewarn $line + ewarn ${line} continue fi - if echo ${line} | fgrep -q : - then - einfon $line + case ${line} in + *:*) + einfon ${line} echo eend 0 - msgtype=1 - else - ewarn $line + msgtype=1;; + *) + ewarn ${line} msgtype=-1 - waserror=1 - fi + waserror=1;; + esac continue fi # Strip out anything after the <esc> code - message=`echo $line | sed -e "s/^\(.*\).*$/\1/"` - einfon " $message" + message=`echo ${line} | sed -e "s/^\(.*\).*$/\1/"` + einfon " ${message}" echo echo ${line} | grep -q done status=$? - eend $status + eend ${status} - if [ $status -eq 0 ] + if [ ${status} -eq 0 ] then - logger -p local0.err -t vmware-${state} "$line" - waserror=$status + logger -p local0.err -t vmware-${state} "${line}" + waserror=${status} fi done - if [ "$msgtype" = "-1" ] + if [ "${msgtype}" = "-1" ] then eend 1 "VMware is not properly configured! See above." fi - return $waserror + return ${waserror} } start() { test -x /etc/vmware/init.d/vmware || \ eend 1 "vmware init script not found. Aborting" || return 1 + if modinfo vmblock > /dev/null 2>&1; + then + ebegin "Loading vmblock for drag and drop support" + local result + modprobe vmblock || eend 1 "Failed to load vmblock driver" + test ! -e /tmp/VMwareDnD && mkdir /tmp/VMwareDnD + chmod 1777 /tmp/VMwareDnD + mount -t vmblock none /proc/fs/vmblock/mountPoint || eend 1 "Failed to mount the vmblock filesystem" + eend 0 + fi + /etc/vmware/init.d/vmware start | vmware_prettify start return $? } stop() { + umount /proc/fs/vmblock/mountPoint > /dev/null 2>&1 /etc/vmware/init.d/vmware stop | vmware_prettify stop return $? } diff --git a/app-emulation/vmware-workstation/vmware-workstation-6.0.2.59824.ebuild b/app-emulation/vmware-workstation/vmware-workstation-6.0.2.59824.ebuild new file mode 100644 index 000000000000..1b8fd90d9a45 --- /dev/null +++ b/app-emulation/vmware-workstation/vmware-workstation-6.0.2.59824.ebuild @@ -0,0 +1,137 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-emulation/vmware-workstation/vmware-workstation-6.0.2.59824.ebuild,v 1.1 2007/11/25 12:50:31 ikelos Exp $ + +inherit vmware eutils versionator + +MY_PN="VMware-workstation-$(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/wkst/${MY_PN}.i386.tar.gz + http://download.softpedia.ro/linux/${MY_PN}.i386.tar.gz ) + amd64? ( + mirror://vmware/software/wkst/${MY_PN}.x86_64.tar.gz + http://download.softpedia.ro/linux/${MY_PN}.x86_64.tar.gz ) + mirror://gentoo/${ANY_ANY}.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" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" +RESTRICT="strip fetch" + +# vmware-workstation should not use virtual/libc as this is a +# precompiled binary package thats linked to glibc. +RDEPEND="sys-libs/glibc + amd64? ( + x11-libs/libXrandr + x11-libs/libXcursor + x11-libs/libXinerama + x11-libs/libXi + x11-libs/libview + dev-cpp/libsexymm + dev-cpp/cairomm + dev-cpp/libgnomecanvasmm + virtual/xft ) + x86? ( + x11-libs/libXrandr + x11-libs/libXcursor + x11-libs/libXinerama + x11-libs/libXi + x11-libs/libview + dev-cpp/libsexymm + virtual/xft ) + !app-emulation/vmware-player + !app-emulation/vmware-server + ~app-emulation/vmware-modules-1.0.0.17 + !<app-emulation/vmware-modules-1.0.0.17 + !>=app-emulation/vmware-modules-1.0.0.18 + >=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" + +pkg_setup() { + if use x86; then + MY_P="${MY_PN}.i386" + elif use amd64; then + MY_P="${MY_PN}.x86_64" + fi + + if ! built_with_use ">=dev-cpp/gtkmm-2.4" accessibility ; then + eerror "Rebuild dev-cpp/gtkmm with USE=\"accessibility\"" + die "VMware workstation only works with gtkmm built with USE=\"accessibility\"." + fi + + vmware_pkg_setup +} + +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}.tar.gz at ${HOMEPAGE}" + einfo "${ANY_ANY}.tar.gz is also necessary for compilation" + einfo "but should already have been fetched." +} + +src_install() { + vmware_src_install + + ICONDIR=/opt/vmware/workstation/lib/share/icons/hicolor/scalable/apps/ + make_desktop_entry vmware "VMWare Workstation" ${ICONDIR}/${PN}.svg System + make_desktop_entry vmplayer "VMWare Player" ${ICONDIR}/vmware-player.svg System + + # Nasty hack to ensure the EULA is included + insinto /opt/vmware/workstation/lib/share + newins doc/EULA EULA.txt +} |