summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Affolter <christian.affolter@stepping-stone.ch>2015-08-03 15:14:01 +0200
committerChristian Affolter <christian.affolter@stepping-stone.ch>2015-08-03 15:14:01 +0200
commit88f83e8ee7273c637bd296c99db3a5fbb5542b0f (patch)
tree8773673315bc5d6af7fbe9189b2c4c439b2cffe6 /app-emulation/vmware-player
parentMerge branch 'master' of git://git.gentoo.org/proj/vmware (diff)
downloadvmware-88f83e8ee7273c637bd296c99db3a5fbb5542b0f.tar.gz
vmware-88f83e8ee7273c637bd296c99db3a5fbb5542b0f.tar.bz2
vmware-88f83e8ee7273c637bd296c99db3a5fbb5542b0f.zip
Added support for the installation of the ovftool.
Most of the code was taken from the app-emulation/vmware-workstation ebuild originating from the same overlay.
Diffstat (limited to 'app-emulation/vmware-player')
-rw-r--r--app-emulation/vmware-player/metadata.xml1
-rw-r--r--app-emulation/vmware-player/vmware-player-7.1.2.2780323.ebuild18
2 files changed, 17 insertions, 2 deletions
diff --git a/app-emulation/vmware-player/metadata.xml b/app-emulation/vmware-player/metadata.xml
index fac5e87..c3509a5 100644
--- a/app-emulation/vmware-player/metadata.xml
+++ b/app-emulation/vmware-player/metadata.xml
@@ -3,6 +3,7 @@
<pkgmetadata>
<herd>vmware</herd>
<use>
+ <flag name='ovftool'>Install OVF tool.</flag>
<flag name="vmware-tools">Install VMware Tools images</flag>
</use>
</pkgmetadata>
diff --git a/app-emulation/vmware-player/vmware-player-7.1.2.2780323.ebuild b/app-emulation/vmware-player/vmware-player-7.1.2.2780323.ebuild
index 0a7ea6a..1d3d36b 100644
--- a/app-emulation/vmware-player/vmware-player-7.1.2.2780323.ebuild
+++ b/app-emulation/vmware-player/vmware-player-7.1.2.2780323.ebuild
@@ -22,7 +22,7 @@ SRC_URI="
LICENSE="vmware GPL-2"
SLOT="0"
KEYWORDS="-* ~amd64"
-IUSE="cups doc +vmware-tools"
+IUSE="cups doc ovftool +vmware-tools"
RESTRICT="strip"
# vmware-workstation should not use virtual/libc as this is a
@@ -93,10 +93,12 @@ src_unpack() {
vmware-usbarbitrator \
vmware-network-editor \
vmware-player-setup
- #vmware-ovftool
do
vmware-bundle_extract-bundle-component "${bundle}" "${component}" "${S}"
done
+
+ use ovftool && \
+ vmware-bundle_extract-bundle-component "${bundle}" vmware-ovftool
}
src_prepare() {
@@ -154,6 +156,18 @@ src_install() {
exeinto "${VM_INSTALL_DIR}"/lib/vmware/setup
doexe vmware-config
+ # install ovftool
+ if use ovftool; then
+ cd "${S}"
+
+ insinto "${VM_INSTALL_DIR}"/lib/vmware-ovftool
+ doins -r vmware-ovftool/*
+
+ chmod 0755 "${D}${VM_INSTALL_DIR}"/lib/vmware-ovftool/{ovftool,ovftool.bin}
+ dosym "${D}${VM_INSTALL_DIR}"/lib/vmware-ovftool/ovftool "${VM_INSTALL_DIR}"/bin/ovftool
+ fi
+
+
# create symlinks for the various tools
local tool ; for tool in thnuclnt vmplayer{,-daemon} \
vmware-{acetool,unity-helper,modconfig{,-console},gksu,fuseUI} ; do