From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- app-emulation/vmware-vix/Manifest | 6 + app-emulation/vmware-vix/metadata.xml | 17 +++ .../vmware-vix/vmware-vix-1.11.4.744019.ebuild | 123 +++++++++++++++++++++ 3 files changed, 146 insertions(+) create mode 100644 app-emulation/vmware-vix/Manifest create mode 100644 app-emulation/vmware-vix/metadata.xml create mode 100644 app-emulation/vmware-vix/vmware-vix-1.11.4.744019.ebuild (limited to 'app-emulation/vmware-vix') diff --git a/app-emulation/vmware-vix/Manifest b/app-emulation/vmware-vix/Manifest new file mode 100644 index 000000000000..b3bf3caa3aec --- /dev/null +++ b/app-emulation/vmware-vix/Manifest @@ -0,0 +1,6 @@ +DIST VMware-VIX-1.11.4-744019.i386.bundle 76259648 SHA256 0e866bbdcc7f9ed7511af012a8645092a29d7d7b6cedd9d82d08560a9e3bde03 SHA512 2a7dca59e03abb3ed2a64b75bec51fd67e42350a26b106bc855fe99f7c842737d4ae89f7aa3c2f76e131451be4a9977054335527098672dc80eae34b13d70e80 WHIRLPOOL 5120209529429bbbb8ca1006bd9796881e9fbd5f5597a19076d527fec99cb5d2a55d10e14e9b6c96b8ad9daddd6250e5d7eb386d439acbca40f3d41d95f5b192 +DIST VMware-VIX-1.11.4-744019.x86_64.bundle 79518116 SHA256 0a77d6254963d15f9238c3054d98aa3597bdca7e7df69a55a6a74debdb2784be SHA512 318622143b3686802c86f649eeb60d33ecf0d5974c701c52d3081c6ab7074977c9cb3cfe5399b081a7313282215888c6d3fb64c016e5d31cc30e60239c4cc761 WHIRLPOOL c8af9f68b9828c71a363a09ce9384f6ba6bc874b4dd911ceac7991881e22e4f46c2656f58c4f561000f6e31142a3d525c5a6c6091f689554de16d309f17eb913 +EBUILD vmware-vix-1.11.4.744019.ebuild 2642 SHA256 dbb4c4748891bb820e75df6b98cac5420cd2f36969176548cd4d882c770dc7d0 SHA512 464bbd9d9b2c50a4968b25cebc61723e6f99d31fa636c367992963052b209f783e5f252ff1c12def3bd78e320d9255dfe3eb64c975a1d80b2138ab3d05bcab45 WHIRLPOOL 189e126e330ea0c7c4502b1502326a0ac08aed8c1a51e0ae194dda662a2034a1208252cfbd1b3b22e26ba37120d4fb4536275599e1b717f6fddd9f99bb037cdd +MISC ChangeLog 2457 SHA256 03a54f824da34795deb85579572cb195ba76a21ae299ddd28731d33c500dccf6 SHA512 94f1db8d9e099b050f5a7567f2ba78d91c9e90b268e92bc49ef2374bfd49941de64d240a93e6d42c5bd739176365151708fa11e0234ce5b0d69b2629665591ad WHIRLPOOL bd6633aeada403421f0d38da493b1f1b377e201fec49e0bf54c55b0e42a7db6060beef0924f807f20ecac47ebf8f3e627bcdcd49e5a2e8507ba356398bf643a4 +MISC ChangeLog-2015 1615 SHA256 4bbfa57a7e0af5e31642c9931f91dc7195d9607311f0b9acfa1a57375e54ddce SHA512 e0e21bd162d5bcc2960b11d9fdaddd51a58f8550fa64a54264fb81eaf3686454a65b9d4b9b437efdac903fe10c55fc0001f578b72e500a305f02e657b9b668e3 WHIRLPOOL b7180b1cffe495f75361cd40148757f35f2dfe2b7eb420ed088ec84ddc3315d1763bf857dce70611c8fb7a7fee58aa7a4083dd8310c804ba771f721abb21843c +MISC metadata.xml 767 SHA256 a036e46945db0883bc1f9ceee24003ccc3c9bffc929050c949d2abab8a3184b9 SHA512 a79c5f1e53922bf221dc6748b7f4c562900562473c4b498fc14c6d5375f3ba550a679c610ac7352264ac4078f2c73c68f3b25ecd71cd87627cbb41b54c41f518 WHIRLPOOL 32df2c8011f542d3fed968083cc40f37fbeafdad94f6c713ebd0866602e039e465a18a5e3d593d7bb6ec50b34e30050a38e024e6fd38babacefa5da0b6d1abb2 diff --git a/app-emulation/vmware-vix/metadata.xml b/app-emulation/vmware-vix/metadata.xml new file mode 100644 index 000000000000..aa65fcbf155c --- /dev/null +++ b/app-emulation/vmware-vix/metadata.xml @@ -0,0 +1,17 @@ + + + + + vmware@gentoo.org + Gentoo VMware Project + + + The VIX API allows you to write programs and scripts that automate + virtual machine operations, as well as the guests within virtual + machines. This API is high-level, easy to use, and practical for both + script writers and application programmers. It runs on both Windows and + Linux and supports management of VMware Server, Workstation, and Virtual + Infrastructure (both ESX and vCenter). Bindings are provided for C, + Perl, and COM (Visual Basic, VBscript, C#). + + diff --git a/app-emulation/vmware-vix/vmware-vix-1.11.4.744019.ebuild b/app-emulation/vmware-vix/vmware-vix-1.11.4.744019.ebuild new file mode 100644 index 000000000000..b6b82945092d --- /dev/null +++ b/app-emulation/vmware-vix/vmware-vix-1.11.4.744019.ebuild @@ -0,0 +1,123 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="4" + +inherit eutils versionator vmware-bundle + +MY_PN="VMware-VIX" +MY_PV="$(replace_version_separator 3 - $PV)" +MY_P="${MY_PN}-${MY_PV}" + +DESCRIPTION="VMware VIX API for Linux" +HOMEPAGE="http://www.vmware.com/support/developer/vix-api/" +SRC_URI=" + x86? ( ${MY_P}.i386.bundle ) + amd64? ( ${MY_P}.x86_64.bundle ) + " + +LICENSE="vmware" +SLOT="0" +KEYWORDS="-* ~amd64 ~x86" +IUSE="doc" +RESTRICT="fetch mirror strip" + +# vmware-workstation should not use virtual/libc as this is a +# precompiled binary package thats linked to glibc. +RDEPEND=" + dev-libs/glib:2 + dev-libs/libxml2 + =dev-libs/openssl-0.9.8* + net-misc/curl + sys-libs/glibc + sys-libs/zlib + !app-emulation/vmware-workstation" + +S=${WORKDIR} +VM_INSTALL_DIR="/opt/vmware" + +pkg_nofetch() { + local bundle + + if use x86; then + bundle="${MY_P}.i386.bundle" + elif use amd64; then + bundle="${MY_P}.x86_64.bundle" + fi + + einfo "Please download ${bundle}" + einfo "from ${HOMEPAGE}" + einfo "and place it in ${DISTDIR}" +} + +src_unpack() { + local component; for component in \ + vmware-vix \ + vmware-vix-core \ + vmware-vix-lib-Workstation800andvSphere500 + #vmware-vix-legacy \ + do + vmware-bundle_extract-bundle-component "${DISTDIR}/${A}" "${component}" "${S}" + done +} + +src_install() { + # install the binary + into "${VM_INSTALL_DIR}" + dobin bin/* + + # install the libraries + insinto "${VM_INSTALL_DIR}"/lib/vmware-vix + doins -r lib/* + + dosym vmware-vix/libvixAllProducts.so "${VM_INSTALL_DIR}"/lib/libbvixAllProducts.so + + # install headers + insinto /usr/include/vmware-vix + doins include/* + + if use doc; then + dohtml -r doc/* + fi + + # fix permissions + fperms 0755 "${VM_INSTALL_DIR}"/lib/vmware-vix/setup/vmware-config + + # create the environment + local envd="${T}/90${PN}" + cat > "${envd}" <<-EOF + PATH='${VM_INSTALL_DIR}/bin' + ROOTPATH='${VM_INSTALL_DIR}/bin' + EOF + doenvd "${envd}" + + # create the configuration + dodir /etc/vmware + + local vmconfig="${T}/config" + if [[ -e ${ROOT}/etc/vmware/config ]] + then + cp -a "${ROOT}"/etc/vmware/config "${vmconfig}" + sed -i -e "/vmware.fullpath/d" "${vmconfig}" + sed -i -e "/vix.libdir/d" "${vmconfig}" + sed -i -e "/vix.config.version/d" "${vmconfig}" + fi + + cat >> "${vmconfig}" <<-EOF + vmware.fullpath = "${VM_INSTALL_DIR}/bin/vmware" + vix.libdir = "${VM_INSTALL_DIR}/lib/vmware-vix" + vix.config.version = "1" + EOF + + insinto /etc/vmware/ + doins "${vmconfig}" +} + +pkg_postinst() { + ewarn "/etc/env.d was updated. Please run:" + ewarn "env-update && source /etc/profile" +} + +pkg_prerm() { + sed -i -e "/vix.libdir/d" "${ROOT}"/etc/vmware/config +} -- cgit v1.2.3