summaryrefslogtreecommitdiff
blob: e8fe0c4127b250e7e0ea4fd7645f59bbd416fa57 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-emulation/vmware-esx-console/vmware-esx-console-2.5.3.24171.ebuild,v 1.1 2006/06/23 14:21:52 mattm Exp $

MY_PN="VMware-console-2.5.3-24171.tar.gz"
S="${WORKDIR}/vmware-console-distrib"

DESCRIPTION="VMware ESX Remote Console for Linux"
HOMEPAGE="http://www.vmware.com/"
SRC_URI="${MY_PN}"

LICENSE="vmware-console"
SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE=""
RESTRICT="fetch nostrip"

DEPEND="virtual/libc"

RDEPEND="|| ( ( x11-libs/gtk+
		 	    x11-libs/libICE
		 	    x11-libs/libSM
		 	    x11-libs/libXext
		 		x11-libs/libXi
		 		x11-libs/libXpm
		 		x11-libs/libXtst
		 		x11-libs/libX11 )
			  virtual/x11 )
		 sys-libs/zlib"

pkg_nofetch() {
	einfo "Please place ${FN} in ${DISTDIR}"
}

src_install() {
	dodir /opt/vmware-console-distrib
	cp -pPR ${S}/* ${D}/opt/vmware-console-distrib
	dodir /usr/bin
	dosym /opt/vmware-console-distrib/bin/vmware-console /usr/bin/vmware-console
	dosym /opt/vmware-console-distrib/bin/vmware-config-console.pl /usr/bin/vmware-config-console.pl
	dosym /opt/vmware-console-distrib/lib /usr/lib/vmware-console
	dosym /opt/vmware-console-distrib/doc /usr/share/doc/vmware-console
}

pkg_postinst() {

	einfo "Before running VMware Remote Console for the first time, you need
		to configure it by invoking the following command:
		/usr/bin/vmware-config-console.pl "
}