diff options
author | Chris Gianelloni <wolf31o2@gentoo.org> | 2006-05-10 15:57:21 +0000 |
---|---|---|
committer | Chris Gianelloni <wolf31o2@gentoo.org> | 2006-05-10 15:57:21 +0000 |
commit | 239431a0e568548cb5c4b23e6689b351380ebcf5 (patch) | |
tree | e7c06f7c73c8b648dc098e464a404882813d7e6c /app-emulation/vmware-player/files | |
parent | Ask if the user wants to overwite authd, rather than flat out denying it. (diff) | |
download | vmware-239431a0e568548cb5c4b23e6689b351380ebcf5.tar.gz vmware-239431a0e568548cb5c4b23e6689b351380ebcf5.tar.bz2 vmware-239431a0e568548cb5c4b23e6689b351380ebcf5.zip |
Added vmware-workstation, vmware-workstation-tools, vmware-player, and the initial vmware.eclass
svn path=/trunk/; revision=38
Diffstat (limited to 'app-emulation/vmware-player/files')
7 files changed, 191 insertions, 0 deletions
diff --git a/app-emulation/vmware-player/files/90vmware-player b/app-emulation/vmware-player/files/90vmware-player new file mode 100644 index 0000000..3ff865b --- /dev/null +++ b/app-emulation/vmware-player/files/90vmware-player @@ -0,0 +1,3 @@ +PATH=/opt/vmware/player/bin +ROOTPATH=/opt/vmware/player/bin +MANPATH=/opt/vmware/player/man diff --git a/app-emulation/vmware-player/files/digest-vmware-player-1.0.1.19317-r3 b/app-emulation/vmware-player/files/digest-vmware-player-1.0.1.19317-r3 new file mode 100644 index 0000000..f531e1f --- /dev/null +++ b/app-emulation/vmware-player/files/digest-vmware-player-1.0.1.19317-r3 @@ -0,0 +1,9 @@ +MD5 58d0aab1f3303dfb5354a929bcf1b0e9 VMware-player-1.0.1-19317.tar.gz 35786922 +RMD160 7ba3c6cefaf6fb98cc932d0974206b6b0f408a29 VMware-player-1.0.1-19317.tar.gz 35786922 +SHA256 c4b0e43ef7e56803e8bc822f2ab240bd2911019dca2d6a615e76dc41642cb4bf VMware-player-1.0.1-19317.tar.gz 35786922 +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-player/files/vmware-player-1.0.1.19317-config.patch b/app-emulation/vmware-player/files/vmware-player-1.0.1.19317-config.patch new file mode 100644 index 0000000..1d864f7 --- /dev/null +++ b/app-emulation/vmware-player/files/vmware-player-1.0.1.19317-config.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-player/files/vmware-player-1.0.1.19317-config2.patch b/app-emulation/vmware-player/files/vmware-player-1.0.1.19317-config2.patch new file mode 100644 index 0000000..e646b7b --- /dev/null +++ b/app-emulation/vmware-player/files/vmware-player-1.0.1.19317-config2.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-player/files/vmware-player-1.0.1.19317-config3.patch b/app-emulation/vmware-player/files/vmware-player-1.0.1.19317-config3.patch new file mode 100644 index 0000000..f700f5d --- /dev/null +++ b/app-emulation/vmware-player/files/vmware-player-1.0.1.19317-config3.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-player/files/vmware.rc b/app-emulation/vmware-player/files/vmware.rc new file mode 100644 index 0000000..20c1b95 --- /dev/null +++ b/app-emulation/vmware-player/files/vmware.rc @@ -0,0 +1,73 @@ +#!/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-player/files/vmware.rc,v 1.1 2005/11/29 15:17:26 wolf31o2 Exp $ + +depend() { + need localmount + use logger net 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-player/files/vmware.xml b/app-emulation/vmware-player/files/vmware.xml new file mode 100644 index 0000000..8d5e2ef --- /dev/null +++ b/app-emulation/vmware-player/files/vmware.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='<Foundry version="1">' offset="0"> + <match type="string" value="<VMTeam>" 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='<Foundry version="1">' offset="0"> + <match type="string" value="<VM>" offset="23:24"/> + </match> + </magic> + <glob pattern="*.vmxf"/> + </mime-type> +</mime-info> |