2010-08-19 10:50:33 +02:00
|
|
|
# Copyright 1999-2010 Gentoo Foundation
|
2009-07-08 07:56:58 +02:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
2010-08-19 10:50:33 +02:00
|
|
|
# $Header: /var/cvsroot/gentoo-x86/app-emulation/vmware-server-console/vmware-server-console-1.0.9.156507.ebuild,v 1.2 2010/03/09 12:04:48 abcd Exp $
|
2009-07-08 07:56:58 +02:00
|
|
|
|
|
|
|
# Unlike many other binary packages the user doesn't need to agree to a licence
|
|
|
|
# to download VMWare. The agreeing to a licence is part of the configure step
|
|
|
|
# which the user must run manually.
|
|
|
|
|
2009-12-25 20:39:22 +01:00
|
|
|
inherit eutils versionator vmware
|
|
|
|
|
|
|
|
MY_PN=${PN/vm/VM}
|
|
|
|
MY_PV=$(replace_version_separator 3 '-')
|
|
|
|
MY_P="${MY_PN}-${MY_PV}"
|
|
|
|
FN="VMware-server-linux-client-${MY_PV}"
|
|
|
|
S="${WORKDIR}/${PN}-distrib"
|
2009-07-08 07:56:58 +02:00
|
|
|
|
2009-12-25 20:39:22 +01:00
|
|
|
DESCRIPTION="VMware Remote Console for Linux"
|
|
|
|
HOMEPAGE="http://www.vmware.com/"
|
|
|
|
SRC_URI="mirror://vmware/software/vmserver/${FN}.zip"
|
2009-07-08 07:56:58 +02:00
|
|
|
|
2009-12-25 20:39:22 +01:00
|
|
|
LICENSE="vmware"
|
|
|
|
IUSE=""
|
2009-07-08 07:56:58 +02:00
|
|
|
SLOT="0"
|
|
|
|
KEYWORDS="-* ~amd64 ~x86"
|
2009-12-25 20:39:22 +01:00
|
|
|
RESTRICT="strip"
|
2009-07-08 07:56:58 +02:00
|
|
|
|
|
|
|
DEPEND=">=sys-libs/glibc-2.3.5
|
|
|
|
virtual/os-headers
|
|
|
|
>=dev-lang/perl-5
|
|
|
|
>=sys-apps/portage-2.0.54
|
|
|
|
app-arch/unzip"
|
|
|
|
|
|
|
|
# vmware-server-console should not use virtual/libc as this is a
|
|
|
|
# precompiled binary package thats linked to glibc.
|
|
|
|
RDEPEND=">=sys-libs/glibc-2.3.5
|
|
|
|
amd64? ( app-emulation/emul-linux-x86-gtklibs )
|
2009-12-25 20:39:22 +01:00
|
|
|
!amd64? ( x11-libs/libSM
|
2009-07-08 07:56:58 +02:00
|
|
|
x11-libs/libICE
|
|
|
|
x11-libs/libX11
|
|
|
|
x11-libs/libXau
|
|
|
|
x11-libs/libXcursor
|
|
|
|
x11-libs/libXdmcp
|
|
|
|
x11-libs/libXext
|
|
|
|
x11-libs/libXfixes
|
|
|
|
x11-libs/libXft
|
|
|
|
x11-libs/libXi
|
|
|
|
x11-libs/libXrandr
|
|
|
|
x11-libs/libXrender
|
|
|
|
x11-libs/libXt
|
|
|
|
x11-libs/libXtst )
|
|
|
|
>=dev-lang/perl-5
|
|
|
|
!<sys-apps/dbus-0.62"
|
|
|
|
|
|
|
|
etcdir="/etc/${PN}"
|
2009-12-25 20:39:22 +01:00
|
|
|
ANY_ANY=""
|
2009-07-08 07:56:58 +02:00
|
|
|
|
|
|
|
pkg_setup() {
|
2009-12-25 20:39:22 +01:00
|
|
|
vmware_pkg_setup
|
2009-07-08 07:56:58 +02:00
|
|
|
enewgroup "${VMWARE_GROUP}"
|
|
|
|
}
|
|
|
|
|
|
|
|
src_unpack() {
|
2009-12-25 20:39:22 +01:00
|
|
|
cd "${WORKDIR}"
|
|
|
|
unpack ${A}
|
|
|
|
unpack ./${MY_P}.tar.gz
|
2009-07-08 07:56:58 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
echo 'libdir = "'${VMWARE_INSTALL_DIR}'/lib"' > etc/config
|
2009-12-25 20:39:22 +01:00
|
|
|
vmware_src_install
|
2009-07-08 07:56:58 +02:00
|
|
|
|
|
|
|
# Fix an ugly GCC error on start
|
|
|
|
rm -f "${D}${VMWARE_INSTALL_DIR}/lib/lib/libgcc_s.so.1/libgcc_s.so.1"
|
2010-08-19 10:50:33 +02:00
|
|
|
make_desktop_entry ${PN} "VMWare Remote Console" ${PN} System
|
2009-07-08 07:56:58 +02:00
|
|
|
|
|
|
|
dodir /usr/bin
|
|
|
|
dosym ${VMWARE_INSTALL_DIR}/bin/${PN} /usr/bin/${PN}
|
|
|
|
}
|
|
|
|
|
|
|
|
pkg_config() {
|
|
|
|
einfo "Running ${ROOT}${dir}/bin/vmware-config-server-console.pl"
|
|
|
|
"${ROOT}${dir}/bin/vmware-config-server-console.pl"
|
|
|
|
}
|