From 47df4fb05b8abb810124a9b93ba8a639eadd67b5 Mon Sep 17 00:00:00 2001 From: geos_one Date: Sat, 30 May 2009 15:40:13 +0000 Subject: [PATCH] app-emulation/vmware-workstation: initial checkin based on new eclass git-svn-id: https://svn.disconnected-by-peer.at/svn/linamh/trunk/linamh@1270 6952d904-891a-0410-993b-d76249ca496b --- app-emulation/vmware-workstation/ChangeLog | 22 +++++ app-emulation/vmware-workstation/Manifest | 10 +++ .../files/90vmware-workstation | 3 + .../files/vmware-player.desktop | 10 +++ .../files/vmware-workstation.desktop | 10 +++ .../files/vmware-workstation.rc | 86 +++++++++++++++++++ .../files/vmware-workstation.xml | 48 +++++++++++ app-emulation/vmware-workstation/metadata.xml | 5 ++ .../vmware-workstation-5.5.9_p126128.ebuild | 86 +++++++++++++++++++ 9 files changed, 280 insertions(+) create mode 100644 app-emulation/vmware-workstation/ChangeLog create mode 100644 app-emulation/vmware-workstation/Manifest create mode 100644 app-emulation/vmware-workstation/files/90vmware-workstation create mode 100644 app-emulation/vmware-workstation/files/vmware-player.desktop create mode 100644 app-emulation/vmware-workstation/files/vmware-workstation.desktop create mode 100644 app-emulation/vmware-workstation/files/vmware-workstation.rc create mode 100644 app-emulation/vmware-workstation/files/vmware-workstation.xml create mode 100644 app-emulation/vmware-workstation/metadata.xml create mode 100644 app-emulation/vmware-workstation/vmware-workstation-5.5.9_p126128.ebuild diff --git a/app-emulation/vmware-workstation/ChangeLog b/app-emulation/vmware-workstation/ChangeLog new file mode 100644 index 00000000..cef12c66 --- /dev/null +++ b/app-emulation/vmware-workstation/ChangeLog @@ -0,0 +1,22 @@ +# ChangeLog for app-emulation/vmware-workstation +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + +*vmware-workstation-5.5.9_p126128 (30 May 2009) + + 30 May 2009; Mario Fetka + +files/90vmware-workstation, +vmware-workstation-5.5.9_p126128.ebuild, + +files/vmware-player.desktop, +files/vmware-workstation.desktop, + +files/vmware-workstation.rc, +files/vmware-workstation.xml, + +metadata.xml: + initial checkin based on new eclass + + 25 Mar 2009; Mike Auty + vmware-workstation-6.5.1.126130.ebuild: + gtkmm's accessibility is now always enabled (see bug #247249) + + 15 Jan 2009; Mike Auty + vmware-workstation-5.5.9.126128.ebuild, + vmware-workstation-6.5.1.126130.ebuild: + Stabilize vmware-workstation to match the main tree. + diff --git a/app-emulation/vmware-workstation/Manifest b/app-emulation/vmware-workstation/Manifest new file mode 100644 index 00000000..c9a5ea80 --- /dev/null +++ b/app-emulation/vmware-workstation/Manifest @@ -0,0 +1,10 @@ +AUX 90vmware-workstation 106 RMD160 471fb03d54bb48c651d4543f1c8ece1bb9b40c0a SHA1 3db7ec2a3b37a84328bf3d481a58b42499ef520b SHA256 c8f7143551f516b901143e60fc74e822ca3d235477d1c2a135bb36cbc639cf1e +AUX vmware-player.desktop 599 RMD160 a5a9897671da69c4706ba412d9a041edfd13a9b7 SHA1 12af70f7039b19838e298d1949df28b1b8d407a6 SHA256 b967f2e6dba531613498a2dea130f557fc366e869876aa63ba3ae97f5ff59c54 +AUX vmware-workstation.desktop 605 RMD160 256b59a1e52b65279ef38b3dcf52c43a34090807 SHA1 8f8c1fded85070be0532e33f1bdc05425e33bfb1 SHA256 ae2f572200a16a1e1222e282268ae138588c0e7576045a584c1d17f54f379f3e +AUX vmware-workstation.rc 1862 RMD160 000c71ee5c62edc27d3df3f23286e1fe8490516e SHA1 cf1db60598d0d2fe44260f7387537ec1babf3a52 SHA256 76e6ea8c199a4dced79a75a0346360714941ef192b61e4610c6229e071d64782 +AUX vmware-workstation.xml 1592 RMD160 0d7e9ed13ebb3c73dd847e95fa95499296609e8c SHA1 02db2ee7ca0abb8b8793c9f56d858bb08c1c715f SHA256 56aafee80ad705e8d832f8853c36d763d37b87d1cb132a41c50eb63085ae854d +DIST VMware-workstation-5.5.9-126128.tar.gz 111649803 RMD160 a5a867761d36c9a02821f8dd639a95b8c9ab38bc SHA1 eb8786111a74213ea4ec24636a4ba70b7f5dc741 SHA256 71a062e29480a48647c7323883e4e4b43a9365c1bb70000a23b768647db46444 +DIST vmware-workstation-5.5.9-126128-genpatches-1.tar.bz2 2019 RMD160 0b94bb68ced0d50a8aff99031e76c018f6aac3c1 SHA1 1c8a32379ece35823e83d30fa358fb302ad8fcb7 SHA256 020d0e348c40ef5975ffad4e924d11a6c972070bf1490b6537040a2e61565e41 +EBUILD vmware-workstation-5.5.9_p126128.ebuild 2408 RMD160 b6c093e4357d0f4e10c65940828b0cfac6aadb08 SHA1 cfd2c7f6361fbae578edcb798904deb61e1bac1f SHA256 53790a4c3de3239a6552fcc216d4d2a3f791c2a88a9f0acae20f98ca9489bb45 +MISC ChangeLog 829 RMD160 5833dc9b067d53ceb2fd05ffbea25acda0606b1d SHA1 becc6712e156657b0c19b2c4f7162ee44060a735 SHA256 e3b1556f906d41533588b4a1b873fc8a4dab6263f956262ac8ddae56d061765f +MISC metadata.xml 159 RMD160 fc7f68a382390e5916b0fb43f37a893fad4f9798 SHA1 f46b02a39bcd0165558de67ff4256cfc812418a3 SHA256 8581ae1c90a48f50fa0542c7fb28cb8984baaf12f50fa18f33e467081effb215 diff --git a/app-emulation/vmware-workstation/files/90vmware-workstation b/app-emulation/vmware-workstation/files/90vmware-workstation new file mode 100644 index 00000000..0352870f --- /dev/null +++ b/app-emulation/vmware-workstation/files/90vmware-workstation @@ -0,0 +1,3 @@ +PATH=/opt/vmware/workstation/bin +ROOTPATH=/opt/vmware/workstation/bin +MANPATH=/opt/vmware/workstation/man diff --git a/app-emulation/vmware-workstation/files/vmware-player.desktop b/app-emulation/vmware-workstation/files/vmware-player.desktop new file mode 100644 index 00000000..755ac187 --- /dev/null +++ b/app-emulation/vmware-workstation/files/vmware-player.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Version=1.0 +Name=VMWare Player +Type=Application +Comment=Emulate a complete PC on your PC without the usual performance overhead of most emulators +MimeType=application/x-vmware-vm-legacy;application/x-vmware-team;application/x-vmware-vm-clone;application/x-vmware-vm;application/x-vmware-vm-clone;application/x-vmware-vm;application/x-vmware-vm-clone;application/x-vmware-vm;application/x-vmware-vmdisk;application/x-vmware-team;application/x-vmware-vmfoundry;application/x-vmware-vm;application/x-vmware-snapshot; +Exec=vmplayer +TryExec=vmplayer +Icon=vmware-player +Categories=System; diff --git a/app-emulation/vmware-workstation/files/vmware-workstation.desktop b/app-emulation/vmware-workstation/files/vmware-workstation.desktop new file mode 100644 index 00000000..dc6d1164 --- /dev/null +++ b/app-emulation/vmware-workstation/files/vmware-workstation.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Version=1.0 +Name=VMWare Workstation +Type=Application +Comment=Emulate a complete PC on your PC without the usual performance overhead of most emulators +MimeType=application/x-vmware-vm-legacy;application/x-vmware-team;application/x-vmware-vm-clone;application/x-vmware-vm;application/x-vmware-vm-clone;application/x-vmware-vm;application/x-vmware-vm-clone;application/x-vmware-vm;application/x-vmware-vmdisk;application/x-vmware-team;application/x-vmware-vmfoundry;application/x-vmware-vm;application/x-vmware-snapshot; +Exec=vmware +TryExec=vmware +Icon=vmware-workstation +Categories=System; 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 00000000..a4bd89a3 --- /dev/null +++ b/app-emulation/vmware-workstation/files/vmware-workstation.rc @@ -0,0 +1,86 @@ +#!/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.6 2007/11/25 12:50:32 ikelos Exp $ + +depend() { + need localmount + use logger net hald + 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} -eq -1 ] + then + ewarn ${line} + continue + fi + case ${line} in + *:*) + einfon ${line} + echo + eend 0 + msgtype=1;; + *) + ewarn ${line} + msgtype=-1 + waserror=1;; + esac + continue + fi + + # Strip out anything after the code + message=`echo ${line} | sed -e "s/^\(.*\).*$/\1/"` + einfon " ${message}" + echo + + echo ${line} | grep -q done + status=$? + eend ${status} + + if [ ${status} -eq 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 + + 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/files/vmware-workstation.xml b/app-emulation/vmware-workstation/files/vmware-workstation.xml new file mode 100644 index 00000000..8d5e2eff --- /dev/null +++ b/app-emulation/vmware-workstation/files/vmware-workstation.xml @@ -0,0 +1,48 @@ + + + + + VMware virtual machine + + + + + + + + VMware virtual disk + + + + + + + + + VMware team + + + + + + + + + + VMware virtual machine snapshot + + + + + + + + VMware virtual machine foundry + + + + + + + + diff --git a/app-emulation/vmware-workstation/metadata.xml b/app-emulation/vmware-workstation/metadata.xml new file mode 100644 index 00000000..3260ec55 --- /dev/null +++ b/app-emulation/vmware-workstation/metadata.xml @@ -0,0 +1,5 @@ + + + +vmware + diff --git a/app-emulation/vmware-workstation/vmware-workstation-5.5.9_p126128.ebuild b/app-emulation/vmware-workstation/vmware-workstation-5.5.9_p126128.ebuild new file mode 100644 index 00000000..53481bdc --- /dev/null +++ b/app-emulation/vmware-workstation/vmware-workstation-5.5.9_p126128.ebuild @@ -0,0 +1,86 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI="2" + +VM_SRC="VMware-workstation-${PV/_p/-}.tar.gz" +VM_SRC_EXTRA="genpatches-1" + +inherit vmware-1 eutils + +SLOT="0" +KEYWORDS="-* ~amd64 ~x86" + +# 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 + x11-libs/libXft ) + !app-emulation/vmware-player + !app-emulation/vmware-server + ~app-emulation/vmware-modules-138.9 + !app-emulation/vmware-modules-138.9 + >=dev-lang/perl-5 + sys-apps/pciutils" + +S=${WORKDIR}/vmware-distrib + +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-1_src_install + + doicon lib/share/pixmaps/vmware-player.png + # Fix an ugly GCC error on start + rm -f "${Ddir}lib/lib/libgcc_s.so.1/libgcc_s.so.1" + make_desktop_entry vmware "VMWare Workstation" ${PN}.png System + make_desktop_entry vmplayer "VMWare Player" vmware-player.png System +} + +pkg_postinst() { + vmware-1_pkg_postinst + ewarn "Vmware Workstation has issues on systems with hal installed but" + ewarn "not running. If you experience trouble with VMware loading, try" + ewarn "starting the hal daemon." +}