app-emulation/vmware-player: initial checkin based on new eclass
git-svn-id: https://svn.disconnected-by-peer.at/svn/linamh/trunk/linamh@1276 6952d904-891a-0410-993b-d76249ca496b
This commit is contained in:
parent
c2329f5941
commit
f25353d20f
19
app-emulation/vmware-player/ChangeLog
Normal file
19
app-emulation/vmware-player/ChangeLog
Normal file
@ -0,0 +1,19 @@
|
||||
# ChangeLog for app-emulation/vmware-player
|
||||
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
|
||||
# $Header: $
|
||||
|
||||
*vmware-player-1.0.9_p126128 (30 May 2009)
|
||||
|
||||
30 May 2009; Mario Fetka <mario.fetka@gmail.com> +files/90vmware-player,
|
||||
+vmware-player-1.0.9_p126128.ebuild, +files/vmware-player.rc,
|
||||
+files/vmware-player.xml, +metadata.xml:
|
||||
initial checkin based on new eclass
|
||||
|
||||
25 Mar 2009; Mike Auty <ikelos@gentoo.org>
|
||||
vmware-player-2.5.1.126130.ebuild:
|
||||
gtkmm's accessibility is now always enabled (see bug #247249)
|
||||
|
||||
16 Jan 2009; Mike Auty <ikelos@gentoo.org>
|
||||
vmware-player-1.0.9.126128.ebuild, vmware-player-2.5.1.126130.ebuild:
|
||||
Stabilize vmware-player to match the main tree.
|
||||
|
8
app-emulation/vmware-player/Manifest
Normal file
8
app-emulation/vmware-player/Manifest
Normal file
@ -0,0 +1,8 @@
|
||||
AUX 90vmware-player 91 RMD160 025ff93348f5a838183e4f6108d7030168ca5ed5 SHA1 54c316adaafce41771eb26513c960dabbed61ce9 SHA256 9aee16313163bd9e161e81ef2876d086fb8972489100c4f8f0a4695ff16578f9
|
||||
AUX vmware-player.rc 1852 RMD160 e3cc563af38ef690b16bfbdcc0080156af2eab37 SHA1 5436cfd0e75ab842b86826b0abc298a2b9433963 SHA256 ef77428df2608613860cd79683648a45d99657150e7c901d7f449b8df4528fee
|
||||
AUX vmware-player.xml 1592 RMD160 0d7e9ed13ebb3c73dd847e95fa95499296609e8c SHA1 02db2ee7ca0abb8b8793c9f56d858bb08c1c715f SHA256 56aafee80ad705e8d832f8853c36d763d37b87d1cb132a41c50eb63085ae854d
|
||||
DIST VMware-player-1.0.9-126128.tar.gz 38963760 RMD160 ed54df1e097894f11b7bbce8215d1f314df03217 SHA1 701ca338ec52dcb60db26908de8e0b5bfd981fb7 SHA256 3fae981892437ec1804a2171b701ca33000405fbd799fb06112fd70c939d8d75
|
||||
DIST vmware-player-1.0.9-126128-genpatches-1.tar.bz2 2014 RMD160 d61dad8ac174a31f96734e93cfa875111d1c6a91 SHA1 9c89ea50f037546d3998d2a4824403e5b7a9b7db SHA256 c4b47ffddcfcee654d10fe7dcd9d8be8dcc4e794df862c571fceb05612d99c38
|
||||
EBUILD vmware-player-1.0.9_p126128.ebuild 1883 RMD160 20dc8de24dc22e47a607b71c4047a490b8d9a75a SHA1 d5e6c228932f20b4aa4e452866b72bf90eae150b SHA256 0423058a5ecf881d5b965ebc28c2f8746fe834010f82310f1b3463a3c574d8ff
|
||||
MISC ChangeLog 708 RMD160 e3581771a75f31d9784d78e374e6f6b2960ab859 SHA1 cd98c9c8e6c232dd8a4732415739f77cc2d6dfd6 SHA256 5b71b8ec0f8a603d2979dbbbea83f6d17c18335ba7894705a2d594d2467daec2
|
||||
MISC metadata.xml 159 RMD160 fc7f68a382390e5916b0fb43f37a893fad4f9798 SHA1 f46b02a39bcd0165558de67ff4256cfc812418a3 SHA256 8581ae1c90a48f50fa0542c7fb28cb8984baaf12f50fa18f33e467081effb215
|
3
app-emulation/vmware-player/files/90vmware-player
Normal file
3
app-emulation/vmware-player/files/90vmware-player
Normal file
@ -0,0 +1,3 @@
|
||||
PATH=/opt/vmware/player/bin
|
||||
ROOTPATH=/opt/vmware/player/bin
|
||||
MANPATH=/opt/vmware/player/man
|
86
app-emulation/vmware-player/files/vmware-player.rc
Normal file
86
app-emulation/vmware-player/files/vmware-player.rc
Normal file
@ -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-player/files/vmware-player.rc,v 1.5 2008/04/26 17:36:10 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 <esc> 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 $?
|
||||
}
|
48
app-emulation/vmware-player/files/vmware-player.xml
Normal file
48
app-emulation/vmware-player/files/vmware-player.xml
Normal file
@ -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>
|
5
app-emulation/vmware-player/metadata.xml
Normal file
5
app-emulation/vmware-player/metadata.xml
Normal file
@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<herd>vmware</herd>
|
||||
</pkgmetadata>
|
@ -0,0 +1,71 @@
|
||||
# Copyright 1999-2009 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: $
|
||||
|
||||
EAPI="2"
|
||||
|
||||
VM_SRC="VMware-player-${PV/_p/-}.tar.gz"
|
||||
VM_SRC_EXTRA="genpatches-1"
|
||||
|
||||
inherit eutils vmware-1
|
||||
|
||||
SLOT="0"
|
||||
KEYWORDS="-* ~amd64 ~x86"
|
||||
|
||||
DEPEND="${RDEPEND} virtual/os-headers
|
||||
!app-emulation/vmware-workstation"
|
||||
# vmware-player 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 )
|
||||
>=dev-lang/perl-5
|
||||
!app-emulation/vmware-workstation
|
||||
!app-emulation/vmware-server
|
||||
~app-emulation/vmware-modules-138.9
|
||||
!<app-emulation/vmware-modules-138.9
|
||||
!>app-emulation/vmware-modules-138.9
|
||||
sys-apps/pciutils"
|
||||
|
||||
S=${WORKDIR}/vmware-player-distrib
|
||||
|
||||
dir=/opt/vmware/player
|
||||
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-ping
|
||||
${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-ping
|
||||
${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
|
||||
|
||||
make_desktop_entry vmplayer "VMware Player" ${PN}.png System
|
||||
}
|
Loading…
Reference in New Issue
Block a user