This commit is contained in:
Mario Fetka 2011-11-20 10:32:59 +01:00
parent 94beb63256
commit a0618928d9
9 changed files with 163 additions and 134 deletions

View File

@ -1,20 +0,0 @@
# ChangeLog for app-emulation/vmware-dsp
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/app-emulation/vmware-dsp/ChangeLog,v 1.4 2008/10/05 16:45:56 flameeyes Exp $
05 Oct 2008; Diego Pettenò <flameeyes@gentoo.org> vmware-dsp-1.3.ebuild:
Fix build-time dependencies.
12 Jul 2007; Chris Gianelloni <wolf31o2@gentoo.org> vmware-dsp-1.3.ebuild:
Add another mirror.
28 Sep 2006; Chris Gianelloni <wolf31o2@gentoo.org> vmware-dsp-1.3.ebuild:
Already finding my first bug. I guess it helps to test both arts and esd at
the same time.
*vmware-dsp-1.3 (28 Sep 2006)
28 Sep 2006; Chris Gianelloni <wolf31o2@gentoo.org> +metadata.xml,
+vmware-dsp-1.3.ebuild:
Initial import. Ebuild by me. Closing bug #97078.

View File

@ -1,14 +0,0 @@
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
DIST vmwaredsp-1.3.tar.gz 52412 RMD160 cd82c3acca6d6b2970a2693e5e952ab550d3e7cc SHA1 3784826091536228d92a8b281084d553ca2ec9cb SHA256 cd0eebe8a6a8bbfd12828f5bc6f9d48c9cddd6188912c1ea791e36a9f55ad690
EBUILD vmware-dsp-1.3.ebuild 2129 RMD160 344c726bcf2e0983f566fd593e371cc642bf6d42 SHA1 06424dfb49095ca938bcc95b33425a205d502d0d SHA256 68d7637adea76ba120e1fdf00fc73fe997feb202b43f2c27f16332694df1b392
MISC ChangeLog 786 RMD160 1370d39200bb6289e8d6a5ad204b8e534536c5b9 SHA1 d739b81a7bd7d16794bdab1ab6b696d7e0b34f2c SHA256 2c580832706fc14577bb2bbd5db502602c84d0926d5507ac1dad1304ca1c124c
MISC metadata.xml 339 RMD160 9f4931e525280fd376eb7ac3e42c369acd23a33e SHA1 3948dcc9a9b7dc585f1783e0419b313084a231c0 SHA256 bb60a871a58964feaa59ec824a5d511455054461f0394a57a8c9ca019a0f4593
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.9 (GNU/Linux)
iEYEARECAAYFAkjo70kACgkQAiZjviIA2XgqegCg6bWVhG6/Lc2wg1/AdnUYWBJI
on0AoNUfRfRgdXH5Zab8zDFbTe2B5xTN
=QgVx
-----END PGP SIGNATURE-----

View File

@ -1,8 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<herd>vmware</herd>
<longdescription>
VMWare Workstation is a virtual machine which can be used to install other operating systems in a virtual environment to run on top of Gentoo.
</longdescription>
</pkgmetadata>

View File

@ -1,90 +0,0 @@
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-emulation/vmware-dsp/vmware-dsp-1.3.ebuild,v 1.5 2008/10/05 16:45:56 flameeyes Exp $
inherit eutils multilib
MY_PN=${PN/-/}
MY_P=${MY_PN}-${PV}
DESCRIPTION="Allows you to use VMware Workstation with ESD and ARTS."
HOMEPAGE="http://ftp.cvut.cz/vmware/"
SRC_URI="http://www.sokrates.homelinux.net/~thomas/Private/Soft/vmwaredsp/${MY_P}.tar.bz2"
LICENSE="LGPL-2"
SLOT="0"
KEYWORDS="-* ~amd64 ~x86"
IUSE="arts esd alsa"
RESTRICT=""
RDEPEND="sys-libs/glibc
amd64? (
app-emulation/emul-linux-x86-soundlibs
esd? ( media-sound/esound )
arts? ( kde-base/arts ) )
alsa? ( media-sound/alsa-utils ) )
x86? (
esd? ( media-sound/esound )
arts? ( kde-base/arts )
alsa? ( media-sound/alsa-utils ) )"
DEPEND="${RDEPEND}"
S=${WORKDIR}/${MY_P}
dir=/opt/vmware/dsp
Ddir=${D}/${dir}
src_compile() {
cd "${S}"/src
if use arts && use esd
then
einfo "Building both aRts and ESD support."
elif use arts
then
einfo "Building aRts support only."
sed -i '/PLUGINS :=/ s/ libvmdsp_esd.so//' 32/Makefile 64/Makefile \
|| die "sed failed"
else
einfo "Building ESD support only."
sed -i '/PLUGINS :=/ s/ libvmdsp_arts.so//' 32/Makefile 64/Makefile \
|| die "sed failed"
fi
if use x86
then
cd 32
emake -j1 || die
elif has_multilib_profile
then
emake -j1 || die
else
cd 64
emake -j1 || die
fi
}
src_install() {
cd "${S}"
if use x86
then
dolib src/32/libvmdsp*.so || die "Copying libraries"
elif has_multilib_profile
then
exeinto /usr/lib32
doexe src/32/libvmdsp*.so || die
dolib src/64/libvmdsp*.so || die
else
src/64/libvmdsp*.so || die
fi
if use arts
then
dobin vmwarearts || die
make_desktop_entry vmwarearts "VMware Workstation (aRts)" \
vmware-workstation.png System
fi
if use esd
then
dobin vmwareesd || die
make_desktop_entry vmwareesd "VMware Workstation (ESD)" \
vmware-workstation.png System
fi
}

View File

@ -26,6 +26,6 @@ DIST VMware-server-2.0.2-203138.i386.tar.gz 506047036 RMD160 3119bf56e1ef9c63dfc
DIST VMware-server-2.0.2-203138.x86_64.tar.gz 474415801 RMD160 0778f78122ee6b701543df5885ad1e8d3325fb82 SHA1 b65d3d46dc947fc7995bda354c4947afabd23474 SHA256 a1230f43f6b668a751e9ce2c9d2f6a2c75e4d4cea88f583901f67dbd67412e25
DIST vmware-server-perl-fixed-rpath-libs.tar.bz2 73834 RMD160 7f64627b5b945e8d7dabe39c165a4b66b71fb4d3 SHA1 9d696750ca3ec92b31ca8112fd80dcd832494044 SHA256 c42299dd033187c67b45b739da66583fbd94cdcba745200b89a25ac96cd9364b
EBUILD vmware-server-1.0.10.203137-r1.ebuild 2894 RMD160 c0dd0133c2b2c296b40299092fca94282e4a5d32 SHA1 47abd4891c48e49824526ac2ee167be4a7ba84af SHA256 c38b3680f4d8fe32dba60cda40ae736db9c56988a927066d673c0f3e11fae1d9
EBUILD vmware-server-2.0.2.203138-r4.ebuild 8745 RMD160 7745e567492aacf4df59b2881f15230dff83ad37 SHA1 686bb31bd9ef5d00dcb6840b8e079eab0f76061f SHA256 db1449936f09d08582e84c8fcebec8793e7fbfdf58ffe3c1950fedda944a26f6
EBUILD vmware-server-2.0.2.203138-r4.ebuild 8800 RMD160 454c493252d9bf21f3294e9aba868a592ed3c0a8 SHA1 583b46069d84459485dbac2d350309f55efa801a SHA256 96a7eab21911df738d5bcadbbb6f69a22b6634f2f217630b9c5c4072d1654ec6
MISC ChangeLog 815 RMD160 393225a479c0ea208c3d6f63c28a68a670ed0432 SHA1 ef761a5935dc9bae2a656f4818bd849e2be131de SHA256 c7199722e7b68996b8dd0376e7e0bf70b1bdb5e85aa8bb4e6f048156e9c37221
MISC metadata.xml 159 RMD160 fc7f68a382390e5916b0fb43f37a893fad4f9798 SHA1 f46b02a39bcd0165558de67ff4256cfc812418a3 SHA256 8581ae1c90a48f50fa0542c7fb28cb8984baaf12f50fa18f33e467081effb215

View File

@ -12,6 +12,7 @@ inherit eutils pam pax-utils versionator
MY_PV=$(replace_version_separator 3 '-' )
MY_PN="VMware-server-${MY_PV}"
MY_SV=$(get_version_component_range 3 "${PV}")
DESCRIPTION="VMware Server for Linux"
HOMEPAGE="http://www.vmware.com/"
@ -58,7 +59,7 @@ RDEPEND="${CDEPEND}
!app-emulation/vmware-workstation
"
PDEPEND="~app-emulation/vmware-modules-208.2
PDEPEND="=app-emulation/vmware-modules-208.${MY_SV}*
app-emulation/vmware-vix"
S=${WORKDIR}/vmware-server-distrib

View File

@ -0,0 +1,4 @@
DIST VMware-VIX-1.10.3-368992.i386.bundle 70734590 RMD160 c33febe1d82e098d1e12023007036dc10328d828 SHA1 8ede0fcd05456d8f75a7ee48e760758e8e43b883 SHA256 89e600b3ac66fdd57e5b9deb1392e8b2574e7b86eb4ab85fb59aa5a67928d785
DIST VMware-VIX-1.10.3-368992.x86_64.bundle 76023776 RMD160 841b097b6ab606841548c7c02021e8a97f4d34db SHA1 9ec26efd9733a66e23f2e0a47f01027714fb55a4 SHA256 f4805521799f4b7a5a64de896c3f96319245f90063f6c83b0e7d6ba024330bfb
EBUILD vmware-vix-1.10.3.368992.ebuild 3303 RMD160 5715a42e9accb1724bcf9cb0b59ba8b6b6e90ce0 SHA1 e797098cd810e261375c3786f40a279b56abf8a8 SHA256 e545f41c28d1ed504d81f7c198453aa036139bdf8c37d084fb6a1258d4410efe
MISC metadata.xml 736 RMD160 9e0b6138a82c1ca34b847bc71bc072e44c60d95a SHA1 4365d9dc523f50c84cb02caf44fadf05ee996b3c SHA256 3882e8981caee5b279a4a1990df6b404e920ab088d6a4cd1d789cbb29e301f74

View File

@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<herd>vmware</herd>
<maintainer>
<email>vadimk@gentoo.org</email>
</maintainer>
<longdescription>
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#).
</longdescription>
</pkgmetadata>

View File

@ -0,0 +1,139 @@
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="2"
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="binchecks 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() {
vmware-bundle_extract-bundle-component "${DISTDIR}/${A}" vmware-vix
}
src_prepare() {
# remove superfluous libraries
ebegin 'Removing superfluous libraries'
#cd vmware-player-app/lib/lib || die
# exclude OpenSSL from unbundling until the AES-NI patch gets into the tree
# see http://forums.gentoo.org/viewtopic-t-835867.html
#ldconfig -p | sed 's:^\s\+\([^(]*[^( ]\).*=> /.*$:\1:g;t;d' | fgrep -vx 'libcrypto.so.0.9.8 libssl.so.0.9.8' | xargs -d'\n' -r rm -rf
#cd ../../../vmware-workstation/lib/lib || die
#ldconfig -p | sed 's:^\s\+\([^(]*[^( ]\).*=> /.*$:\1:g;t;d' | fgrep -vx 'libcrypto.so.0.9.8 libssl.so.0.9.8' | xargs -d'\n' -r rm -rf
eend
}
src_install() {
# install vmware-vix
cd "${S}"/vmware-vix
# 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 up permissions
chmod 0755 "${D}${VM_INSTALL_DIR}"/lib/vmware-vix/setup/*
# 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_config() {
:;
}
pkg_postinst() {
ewarn "/etc/env.d was updated. Please run:"
ewarn "env-update && source /etc/profile"
ewarn ""
ewarn "Before you can use ${PN}, you must configure a default network setup."
ewarn "You can do this by running 'emerge --config ${PN}'."
}
pkg_prerm() {
sed -i -e "/vix.libdir/d" "${ROOT}"/etc/vmware/config
}