blob: a2966f3dbebf84845053f00321d774a98d63cf14 (
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
|
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
# 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.
inherit vmware eutils
MY_P="VMware-workstation-5.5.1-19175"
DESCRIPTION="Emulate a complete PC on your PC without the usual performance overhead of most emulators"
HOMEPAGE="http://www.vmware.com/products/desktop/ws_features.html"
SRC_URI="http://vmware-svca.www.conxion.com/software/wkst/${MY_P}.tar.gz
http://download3.vmware.com/software/wkst/${MY_P}.tar.gz
http://download.vmware.com/htdocs/software/wkst/${MY_P}.tar.gz
http://www.vmware.com/download1/software/wkst/${MY_P}.tar.gz
ftp://download1.vmware.com/pub/software/wkst/${MY_P}.tar.gz
http://vmware-chil.www.conxion.com/software/wkst/${MY_P}.tar.gz
http://vmware-heva.www.conxion.com/software/wkst/${MY_P}.tar.gz
http://vmware.wespe.de/software/wkst/${MY_P}.tar.gz
ftp://vmware.wespe.de/pub/software/wkst/${MY_P}.tar.gz"
LICENSE="vmware"
IUSE=""
SLOT="0"
KEYWORDS="-*"
RESTRICT="strip"
VMWARE_VME="VME_V55"
DEPEND="virtual/os-headers"
# vmware-workstation should not use virtual/libc as this is a
# precompiled binary package thats linked to glibc.
RDEPEND="sys-libs/glibc
amd64? (
app-emulation/emul-linux-x86-gtklibs )
x86? (
|| (
(
x11-libs/libXrandr
x11-libs/libXcursor
x11-libs/libXinerama
x11-libs/libXi )
virtual/x11 )
virtual/xft )
>=dev-lang/perl-5
!app-emulation/vmware-player
!app-emulation/vmware-server
sys-apps/pciutils"
PDEPEND="app-emulation/vmware-modules"
S=${WORKDIR}/vmware-distrib
RUN_UPDATE="no"
dir=/opt/vmware/workstation
pkg_setup() {
vmware_test_module_build
vmware_pkg_setup
}
src_install() {
not-vmware_src_install
# We set vmware-vmx and vmware-ping suid
chmod u+s ${Ddir}/bin/vmware-ping
chmod u+s ${Ddir}/lib/bin/vmware-vmx
dosed 's/mknod -m 600/mknod -m 660/' /etc/vmware/init.d/vmware || die
dosed '/c 119 "$vHubNr"/ a\
chown root:vmware /dev/vmnet*\
' /etc/vmware/init.d/vmware || die
make_desktop_entry vmware "VMWare Workstation" ${PN}.png
dodir /usr/bin
dosym ${dir}/bin/vmware /usr/bin/vmware
# this removes the user/group warnings
chown -R root:0 ${D} || die
dodir /etc/vmware
# this makes the vmware-vmx executable only executable by vmware group
fowners root:vmware ${dir}/lib/bin{,-debug}/vmware-vmx /etc/vmware \
|| die "Changing permissions"
fperms 4750 ${dir}/lib/bin{,-debug}/vmware-vmx || die
fperms 770 /etc/vmware || die
}
pkg_postinst() {
vmware_pkg_postinst
einfo
einfo "You need to run ${dir}/bin/vmware-config.pl to complete the install."
einfo
einfo "For VMware Add-Ons just visit"
einfo "http://www.vmware.com/download/downloadaddons.html"
einfo
einfo "After configuring, type 'vmware' to launch"
einfo
einfo "Also note that when you reboot you should run:"
einfo "/etc/init.d/vmware start"
einfo "before trying to run vmware. Or you could just add"
einfo "it to the default run level:"
einfo "rc-update add vmware default"
echo
ewarn "Remember, in order to run vmware, you have to"
ewarn "be in the '${VMWARE_GROUP}' group."
echo
ewarn "VMWare allows for the potential of overwriting files as root. Only"
ewarn "give VMWare access to trusted individuals."
}
pkg_postrm() {
einfo
einfo "To remove all traces of vmware you will need to remove the files"
einfo "in /etc/vmware/, /etc/init.d/vmware, /lib/modules/*/misc/vm*.o,"
einfo "and .vmware/ in each users home directory. Don't forget to rmmod the"
einfo "vm* modules, either."
einfo
}
|