1 |
vadimk 11/12/03 20:14:02 |
2 |
|
3 |
Modified: vmware-workstation-6.5.5.328052.ebuild ChangeLog |
4 |
vmware-workstation-7.1.5.491717.ebuild metadata.xml |
5 |
Added: vmware-workstation-8.0.1.528992.ebuild |
6 |
Log: |
7 |
vmware desktop version bump |
8 |
|
9 |
(Portage version: 2.1.10.39/cvs/Linux x86_64) |
10 |
|
11 |
Revision Changes Path |
12 |
1.5 app-emulation/vmware-workstation/vmware-workstation-6.5.5.328052.ebuild |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/vmware-workstation/vmware-workstation-6.5.5.328052.ebuild?rev=1.5&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/vmware-workstation/vmware-workstation-6.5.5.328052.ebuild?rev=1.5&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/vmware-workstation/vmware-workstation-6.5.5.328052.ebuild?r1=1.4&r2=1.5 |
17 |
|
18 |
Index: vmware-workstation-6.5.5.328052.ebuild |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/app-emulation/vmware-workstation/vmware-workstation-6.5.5.328052.ebuild,v |
21 |
retrieving revision 1.4 |
22 |
retrieving revision 1.5 |
23 |
diff -u -r1.4 -r1.5 |
24 |
--- vmware-workstation-6.5.5.328052.ebuild 17 Feb 2011 21:04:19 -0000 1.4 |
25 |
+++ vmware-workstation-6.5.5.328052.ebuild 3 Dec 2011 20:14:02 -0000 1.5 |
26 |
@@ -1,6 +1,6 @@ |
27 |
# Copyright 1999-2011 Gentoo Foundation |
28 |
# Distributed under the terms of the GNU General Public License v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/app-emulation/vmware-workstation/vmware-workstation-6.5.5.328052.ebuild,v 1.4 2011/02/17 21:04:19 tomka Exp $ |
30 |
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/vmware-workstation/vmware-workstation-6.5.5.328052.ebuild,v 1.5 2011/12/03 20:14:02 vadimk Exp $ |
31 |
|
32 |
EAPI="2" |
33 |
|
34 |
@@ -44,7 +44,6 @@ |
35 |
x11-libs/libXrandr |
36 |
x11-libs/libXtst |
37 |
!!app-emulation/vmware-player |
38 |
- !!app-emulation/vmware-server |
39 |
" |
40 |
|
41 |
S=${WORKDIR}/vmware-distrib |
42 |
|
43 |
|
44 |
|
45 |
1.228 app-emulation/vmware-workstation/ChangeLog |
46 |
|
47 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/vmware-workstation/ChangeLog?rev=1.228&view=markup |
48 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/vmware-workstation/ChangeLog?rev=1.228&content-type=text/plain |
49 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/vmware-workstation/ChangeLog?r1=1.227&r2=1.228 |
50 |
|
51 |
Index: ChangeLog |
52 |
=================================================================== |
53 |
RCS file: /var/cvsroot/gentoo-x86/app-emulation/vmware-workstation/ChangeLog,v |
54 |
retrieving revision 1.227 |
55 |
retrieving revision 1.228 |
56 |
diff -u -r1.227 -r1.228 |
57 |
--- ChangeLog 17 Oct 2011 19:16:59 -0000 1.227 |
58 |
+++ ChangeLog 3 Dec 2011 20:14:02 -0000 1.228 |
59 |
@@ -1,6 +1,15 @@ |
60 |
# ChangeLog for app-emulation/vmware-workstation |
61 |
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
62 |
-# $Header: /var/cvsroot/gentoo-x86/app-emulation/vmware-workstation/ChangeLog,v 1.227 2011/10/17 19:16:59 vadimk Exp $ |
63 |
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/vmware-workstation/ChangeLog,v 1.228 2011/12/03 20:14:02 vadimk Exp $ |
64 |
+ |
65 |
+*vmware-workstation-8.0.1.528992 (03 Dec 2011) |
66 |
+ |
67 |
+ 03 Dec 2011; Vadim Kuznetsov <vadimk@g.o> |
68 |
+ vmware-workstation-6.5.5.328052.ebuild, |
69 |
+ vmware-workstation-7.1.5.491717.ebuild, |
70 |
+ +vmware-workstation-8.0.1.528992.ebuild, +files/vmware-8.0.rc, |
71 |
+ +files/vmware-server-8.0.rc, metadata.xml: |
72 |
+ vmware desktop version bump |
73 |
|
74 |
17 Oct 2011; Vadim Kuznetsov <vadimk@g.o> |
75 |
-vmware-workstation-7.1.4.385536.ebuild: |
76 |
|
77 |
|
78 |
|
79 |
1.2 app-emulation/vmware-workstation/vmware-workstation-7.1.5.491717.ebuild |
80 |
|
81 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/vmware-workstation/vmware-workstation-7.1.5.491717.ebuild?rev=1.2&view=markup |
82 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/vmware-workstation/vmware-workstation-7.1.5.491717.ebuild?rev=1.2&content-type=text/plain |
83 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/vmware-workstation/vmware-workstation-7.1.5.491717.ebuild?r1=1.1&r2=1.2 |
84 |
|
85 |
Index: vmware-workstation-7.1.5.491717.ebuild |
86 |
=================================================================== |
87 |
RCS file: /var/cvsroot/gentoo-x86/app-emulation/vmware-workstation/vmware-workstation-7.1.5.491717.ebuild,v |
88 |
retrieving revision 1.1 |
89 |
retrieving revision 1.2 |
90 |
diff -u -r1.1 -r1.2 |
91 |
--- vmware-workstation-7.1.5.491717.ebuild 8 Oct 2011 18:03:32 -0000 1.1 |
92 |
+++ vmware-workstation-7.1.5.491717.ebuild 3 Dec 2011 20:14:02 -0000 1.2 |
93 |
@@ -1,6 +1,6 @@ |
94 |
# Copyright 1999-2011 Gentoo Foundation |
95 |
# Distributed under the terms of the GNU General Public License v2 |
96 |
-# $Header: /var/cvsroot/gentoo-x86/app-emulation/vmware-workstation/vmware-workstation-7.1.5.491717.ebuild,v 1.1 2011/10/08 18:03:32 vadimk Exp $ |
97 |
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/vmware-workstation/vmware-workstation-7.1.5.491717.ebuild,v 1.2 2011/12/03 20:14:02 vadimk Exp $ |
98 |
|
99 |
EAPI="2" |
100 |
|
101 |
@@ -75,7 +75,6 @@ |
102 |
x11-libs/libXtst |
103 |
x11-libs/pango |
104 |
x11-libs/startup-notification |
105 |
- !app-emulation/vmware-server |
106 |
!app-emulation/vmware-player" |
107 |
PDEPEND="~app-emulation/vmware-modules-238.5 |
108 |
vmware-tools? ( app-emulation/vmware-tools )" |
109 |
|
110 |
|
111 |
|
112 |
1.9 app-emulation/vmware-workstation/metadata.xml |
113 |
|
114 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/vmware-workstation/metadata.xml?rev=1.9&view=markup |
115 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/vmware-workstation/metadata.xml?rev=1.9&content-type=text/plain |
116 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/vmware-workstation/metadata.xml?r1=1.8&r2=1.9 |
117 |
|
118 |
Index: metadata.xml |
119 |
=================================================================== |
120 |
RCS file: /var/cvsroot/gentoo-x86/app-emulation/vmware-workstation/metadata.xml,v |
121 |
retrieving revision 1.8 |
122 |
retrieving revision 1.9 |
123 |
diff -u -r1.8 -r1.9 |
124 |
--- metadata.xml 27 Mar 2011 15:25:47 -0000 1.8 |
125 |
+++ metadata.xml 3 Dec 2011 20:14:02 -0000 1.9 |
126 |
@@ -10,6 +10,8 @@ |
127 |
other operating systems in a virtual environment to run on top of Gentoo. |
128 |
</longdescription> |
129 |
<use> |
130 |
+ <flag name='ovftool'>Install OVF tool.</flag> |
131 |
+ <flag name='server'>Install VMware Workstation Server component.</flag> |
132 |
<flag name='vix'>Install VIX. The VIX API allows you to write programs and scripts |
133 |
that automate virtual machine operations, and run programs or manipulate |
134 |
files within guest operating systems. |
135 |
|
136 |
|
137 |
|
138 |
1.1 app-emulation/vmware-workstation/vmware-workstation-8.0.1.528992.ebuild |
139 |
|
140 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/vmware-workstation/vmware-workstation-8.0.1.528992.ebuild?rev=1.1&view=markup |
141 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/vmware-workstation/vmware-workstation-8.0.1.528992.ebuild?rev=1.1&content-type=text/plain |
142 |
|
143 |
Index: vmware-workstation-8.0.1.528992.ebuild |
144 |
=================================================================== |
145 |
# Copyright 1999-2011 Gentoo Foundation |
146 |
# Distributed under the terms of the GNU General Public License v2 |
147 |
# $Header: /var/cvsroot/gentoo-x86/app-emulation/vmware-workstation/vmware-workstation-8.0.1.528992.ebuild,v 1.1 2011/12/03 20:14:02 vadimk Exp $ |
148 |
|
149 |
EAPI="4" |
150 |
|
151 |
inherit eutils versionator fdo-mime gnome2-utils pam vmware-bundle |
152 |
|
153 |
MY_PN="VMware-Workstation" |
154 |
MY_PV="$(replace_version_separator 3 - $PV)" |
155 |
MY_P="${MY_PN}-Full-${MY_PV}" |
156 |
|
157 |
DESCRIPTION="Emulate a complete PC on your PC without the usual performance overhead of most emulators" |
158 |
HOMEPAGE="http://www.vmware.com/products/workstation/" |
159 |
SRC_URI=" |
160 |
x86? ( ${MY_P}.i386.bundle ) |
161 |
amd64? ( ${MY_P}.x86_64.bundle ) |
162 |
" |
163 |
|
164 |
LICENSE="vmware" |
165 |
SLOT="0" |
166 |
KEYWORDS="-* ~amd64 ~x86" |
167 |
IUSE="cups doc gnome kde ovftool server vix vmware-tools" |
168 |
RESTRICT="binchecks fetch mirror strip" |
169 |
|
170 |
# vmware-workstation should not use virtual/libc as this is a |
171 |
# precompiled binary package thats linked to glibc. |
172 |
RDEPEND="dev-cpp/cairomm |
173 |
dev-cpp/glibmm:2 |
174 |
dev-cpp/gtkmm:2.4 |
175 |
dev-cpp/libgnomecanvasmm |
176 |
dev-cpp/libsexymm |
177 |
dev-cpp/pangomm |
178 |
dev-libs/atk |
179 |
dev-libs/glib:2 |
180 |
dev-libs/icu |
181 |
dev-libs/expat |
182 |
dev-libs/libaio |
183 |
dev-libs/libsigc++ |
184 |
dev-libs/libxml2 |
185 |
=dev-libs/openssl-0.9.8* |
186 |
dev-libs/xmlrpc-c |
187 |
gnome-base/libgnomecanvas |
188 |
gnome-base/libgtop:2 |
189 |
gnome-base/librsvg:2 |
190 |
gnome-base/orbit |
191 |
media-libs/fontconfig |
192 |
media-libs/freetype |
193 |
media-libs/libart_lgpl |
194 |
=media-libs/libpng-1.2* |
195 |
media-libs/libpng |
196 |
net-misc/curl |
197 |
cups? ( net-print/cups ) |
198 |
sys-devel/gcc |
199 |
sys-fs/fuse |
200 |
sys-libs/glibc |
201 |
sys-libs/zlib |
202 |
x11-libs/cairo |
203 |
gnome? ( x11-libs/gksu ) |
204 |
kde? ( kde-base/kdesu ) |
205 |
x11-libs/gtk+:2 |
206 |
x11-libs/libgksu |
207 |
x11-libs/libICE |
208 |
x11-libs/libsexy |
209 |
x11-libs/libSM |
210 |
x11-libs/libX11 |
211 |
x11-libs/libXau |
212 |
x11-libs/libxcb |
213 |
x11-libs/libXcomposite |
214 |
x11-libs/libXcursor |
215 |
x11-libs/libXdamage |
216 |
x11-libs/libXdmcp |
217 |
x11-libs/libXext |
218 |
x11-libs/libXfixes |
219 |
x11-libs/libXft |
220 |
x11-libs/libXi |
221 |
x11-libs/libXinerama |
222 |
x11-libs/libXrandr |
223 |
x11-libs/libXrender |
224 |
x11-libs/libXtst |
225 |
x11-libs/pango |
226 |
x11-libs/startup-notification |
227 |
x11-themes/hicolor-icon-theme |
228 |
!app-emulation/vmware-player" |
229 |
PDEPEND="~app-emulation/vmware-modules-264.1 |
230 |
vmware-tools? ( app-emulation/vmware-tools )" |
231 |
|
232 |
S=${WORKDIR} |
233 |
VM_INSTALL_DIR="/opt/vmware" |
234 |
VM_DATA_STORE_DIR="/var/lib/vmware/Shared VMs" |
235 |
VM_HOSTD_USER="root" |
236 |
|
237 |
pkg_nofetch() { |
238 |
local bundle |
239 |
|
240 |
if use x86; then |
241 |
bundle="${MY_P}.i386.bundle" |
242 |
elif use amd64; then |
243 |
bundle="${MY_P}.x86_64.bundle" |
244 |
fi |
245 |
|
246 |
einfo "Please download ${bundle}" |
247 |
einfo "from ${HOMEPAGE}" |
248 |
einfo "and place it in ${DISTDIR}" |
249 |
} |
250 |
|
251 |
src_unpack() { |
252 |
local component; for component in \ |
253 |
vmware-vmx \ |
254 |
vmware-player-app \ |
255 |
vmware-player-setup \ |
256 |
vmware-workstation \ |
257 |
vmware-network-editor \ |
258 |
vmware-network-editor-ui \ |
259 |
vmware-usbarbitrator |
260 |
do |
261 |
vmware-bundle_extract-bundle-component "${DISTDIR}/${A}" "${component}" "${S}" |
262 |
done |
263 |
|
264 |
if use server; then |
265 |
vmware-bundle_extract-bundle-component "${DISTDIR}/${A}" vmware-workstation-server #"${S}" |
266 |
fi |
267 |
|
268 |
if use vix; then |
269 |
vmware-bundle_extract-bundle-component "${DISTDIR}/${A}" vmware-vix-core vmware-vix |
270 |
vmware-bundle_extract-bundle-component "${DISTDIR}/${A}" vmware-vix-lib-Workstation800andvSphere500 vmware-vix |
271 |
fi |
272 |
if use ovftool; then |
273 |
vmware-bundle_extract-bundle-component "${DISTDIR}/${A}" vmware-ovftool |
274 |
fi |
275 |
|
276 |
} |
277 |
|
278 |
src_prepare() { |
279 |
rm -f bin/vmware-modconfig |
280 |
rm -rf lib/modules/binary |
281 |
if use server; then |
282 |
rm -f vmware-workstation-server/bin/{openssl,configure-hostd.sh} |
283 |
fi |
284 |
|
285 |
find "${S}" -name '*.a' -delete |
286 |
|
287 |
# clean_bundled_libs |
288 |
} |
289 |
|
290 |
clean_bundled_libs() { |
291 |
ebegin 'Removing superfluous libraries' |
292 |
cd lib/lib || die |
293 |
ldconfig -p | \ |
294 |
sed 's:^\s\+\([^(]*[^( ]\).*=> /.*$:\1:g;t;d' | \ |
295 |
fgrep -vx 'libcrypto.so.0.9.8 |
296 |
libssl.so.0.9.8i |
297 |
libgcr.so.0 |
298 |
libglib-2.0.so.0' | |
299 |
xargs -d'\n' -r rm -rf |
300 |
eend |
301 |
} |
302 |
|
303 |
src_install() { |
304 |
local major_minor=$(get_version_component_range 1-2 "${PV}") |
305 |
local major_minor_revision=$(get_version_component_range 1-3 "${PV}") |
306 |
local build=$(get_version_component_range 4 "${PV}") |
307 |
|
308 |
# install the binaries |
309 |
into "${VM_INSTALL_DIR}" |
310 |
dobin bin/* |
311 |
|
312 |
# install the libraries |
313 |
insinto "${VM_INSTALL_DIR}"/lib/vmware |
314 |
doins -r lib/* |
315 |
|
316 |
# install the ancillaries |
317 |
insinto /usr |
318 |
doins -r share |
319 |
|
320 |
if use cups; then |
321 |
exeinto $(cups-config --serverbin)/filter |
322 |
doexe extras/thnucups |
323 |
|
324 |
insinto /etc/cups |
325 |
doins -r etc/cups/* |
326 |
fi |
327 |
|
328 |
insinto /etc/xdg |
329 |
doins -r etc/xdg/* |
330 |
|
331 |
# install documentation |
332 |
doman man/man1/vmware.1.gz |
333 |
|
334 |
if use doc; then |
335 |
dodoc doc/* |
336 |
fi |
337 |
|
338 |
insinto "${VM_INSTALL_DIR}"/lib/vmware/setup |
339 |
doins vmware-config |
340 |
|
341 |
# install vmware workstation server |
342 |
if use server; then |
343 |
dosbin sbin/* |
344 |
|
345 |
cd "${S}"/vmware-workstation-server |
346 |
|
347 |
# install binaries |
348 |
into "${VM_INSTALL_DIR}"/lib/vmware |
349 |
dobin bin/* |
350 |
|
351 |
# install the libraries |
352 |
insinto "${VM_INSTALL_DIR}"/lib/vmware/lib |
353 |
doins -r lib/* |
354 |
|
355 |
into "${VM_INSTALL_DIR}" |
356 |
for tool in vmware-{hostd,vim-cmd,adminTool} ; do |
357 |
cat > "${T}/${tool}" <<-EOF |
358 |
#!/usr/bin/env bash |
359 |
set -e |
360 |
|
361 |
. /etc/vmware/bootstrap |
362 |
|
363 |
exec "${VM_INSTALL_DIR}/lib/vmware/lib/wrapper-gtk24.sh" \\ |
364 |
"${VM_INSTALL_DIR}/lib/vmware/lib" \\ |
365 |
"${VM_INSTALL_DIR}/lib/vmware/bin/${tool}" \\ |
366 |
"${VM_INSTALL_DIR}/lib/vmware/libconf" "\$@" |
367 |
EOF |
368 |
dobin "${T}/${tool}" |
369 |
done |
370 |
|
371 |
insinto "${VM_INSTALL_DIR}"/lib/vmware |
372 |
doins -r hostd |
373 |
|
374 |
# create the configuration |
375 |
insinto /etc/vmware/hostd |
376 |
doins -r config/etc/vmware/hostd/* |
377 |
doins -r etc/vmware/hostd/* |
378 |
|
379 |
insinto /etc/vmware/ssl |
380 |
doins etc/vmware/ssl/* |
381 |
|
382 |
# pam |
383 |
pamd_mimic_system vmware-authd auth account |
384 |
|
385 |
# create directory for shared virtual machines. |
386 |
keepdir "${VM_DATA_STORE_DIR}" |
387 |
keepdir /var/log/vmware |
388 |
fi |
389 |
|
390 |
# install vmware-vix |
391 |
if use vix; then |
392 |
cd "${S}"/vmware-vix |
393 |
|
394 |
# install the binary |
395 |
into "${VM_INSTALL_DIR}" |
396 |
dobin bin/* |
397 |
|
398 |
# install the libraries |
399 |
insinto "${VM_INSTALL_DIR}"/lib/vmware-vix |
400 |
doins -r lib/* |
401 |
|
402 |
dosym vmware-vix/libvixAllProducts.so "${VM_INSTALL_DIR}"/lib/libbvixAllProducts.so |
403 |
|
404 |
# install headers |
405 |
insinto /usr/include/vmware-vix |
406 |
doins include/* |
407 |
|
408 |
if use doc; then |
409 |
dohtml -r doc/* |
410 |
fi |
411 |
fi |
412 |
|
413 |
# install ovftool |
414 |
if use ovftool; then |
415 |
cd "${S}" |
416 |
|
417 |
insinto "${VM_INSTALL_DIR}"/lib/vmware-ovftool |
418 |
doins -r vmware-ovftool/* |
419 |
|
420 |
chmod 0755 "${D}${VM_INSTALL_DIR}"/lib/vmware-ovftool/{ovftool,ovftool.bin} |
421 |
dosym "${D}${VM_INSTALL_DIR}"/lib/vmware-ovftool/ovftool "${VM_INSTALL_DIR}"/bin/ovftool |
422 |
fi |
423 |
|
424 |
# create symlinks for the various tools |
425 |
local tool ; for tool in thnuclnt vmware vmplayer{,-daemon} \ |
426 |
vmware-{acetool,enter-serial,gksu,fuseUI,modconfig{,-console},netcfg,tray,unity-helper} ; do |
427 |
dosym appLoader "${VM_INSTALL_DIR}"/lib/vmware/bin/"${tool}" |
428 |
done |
429 |
dosym "${VM_INSTALL_DIR}"/lib/vmware/bin/vmplayer "${VM_INSTALL_DIR}"/bin/vmplayer |
430 |
dosym "${VM_INSTALL_DIR}"/lib/vmware/bin/vmware "${VM_INSTALL_DIR}"/bin/vmware |
431 |
dosym "${VM_INSTALL_DIR}"/lib/vmware/icu /etc/vmware/icu |
432 |
|
433 |
# fixing gksu problem |
434 |
if use gnome; then |
435 |
dosym /usr/bin/gksu "${VM_INSTALL_DIR}"/bin/vmware-gksu |
436 |
fi |
437 |
if use kde; then |
438 |
dosym /usr/bin/kdesu "${VM_INSTALL_DIR}"/bin/vmware-gksu |
439 |
fi |
440 |
|
441 |
# fix up permissions |
442 |
fperms 0755 "${VM_INSTALL_DIR}"/lib/vmware/{bin/*,lib/wrapper-gtk24.sh,lib/libgksu2.so.0/gksu-run-helper,setup/*} |
443 |
fperms 4711 "${VM_INSTALL_DIR}"/bin/vmware-mount |
444 |
if use server; then |
445 |
fperms 4711 "${VM_INSTALL_DIR}"/sbin/vmware-authd |
446 |
fi |
447 |
fperms 4711 "${VM_INSTALL_DIR}"/lib/vmware/bin/vmware-vmx* |
448 |
|
449 |
if use vix; then |
450 |
fperms 0755 "${VM_INSTALL_DIR}"/lib/vmware-vix/setup/* |
451 |
fi |
452 |
|
453 |
# create the environment |
454 |
local envd="${T}/90vmware" |
455 |
cat > "${envd}" <<-EOF |
456 |
PATH='${VM_INSTALL_DIR}/bin' |
457 |
ROOTPATH='${VM_INSTALL_DIR}/bin' |
458 |
EOF |
459 |
doenvd "${envd}" |
460 |
|
461 |
# create the configuration |
462 |
dodir /etc/vmware |
463 |
|
464 |
cat > "${D}"/etc/vmware/bootstrap <<-EOF |
465 |
BINDIR='${VM_INSTALL_DIR}/bin' |
466 |
LIBDIR='${VM_INSTALL_DIR}/lib' |
467 |
EOF |
468 |
|
469 |
cat > "${D}"/etc/vmware/config <<-EOF |
470 |
bindir = "${VM_INSTALL_DIR}/bin" |
471 |
libdir = "${VM_INSTALL_DIR}/lib/vmware" |
472 |
initscriptdir = "/etc/init.d" |
473 |
authd.fullpath = "${VM_INSTALL_DIR}/sbin/vmware-authd" |
474 |
gksu.rootMethod = "su" |
475 |
VMCI_CONFED = "yes" |
476 |
VMBLOCK_CONFED = "yes" |
477 |
VSOCK_CONFED = "yes" |
478 |
NETWORKING = "yes" |
479 |
player.product.version = "${major_minor_revision}" |
480 |
product.version = "${major_minor_revision}" |
481 |
product.buildNumber = "${build}" |
482 |
product.name = "VMware Workstation" |
483 |
workstation.product.version = "${major_minor_revision}" |
484 |
EOF |
485 |
|
486 |
if use vix; then |
487 |
cat >> "${D}"/etc/vmware/config <<-EOF |
488 |
vmware.fullpath = "${VM_INSTALL_DIR}/bin/vmware" |
489 |
vix.libdir = "${VM_INSTALL_DIR}/lib/vmware-vix" |
490 |
vix.config.version = "1" |
491 |
EOF |
492 |
fi |
493 |
|
494 |
if use server; then |
495 |
cat >> "${D}"/etc/vmware/config <<-EOF |
496 |
authd.client.port = "902" |
497 |
authd.proxy.nfc = "vmware-hostd:ha-nfc" |
498 |
authd.soapserver = "TRUE" |
499 |
EOF |
500 |
fi |
501 |
|
502 |
# install the init.d script |
503 |
local initscript="${T}/vmware.rc" |
504 |
sed -e "s:@@BINDIR@@:${VM_INSTALL_DIR}/bin:g" \ |
505 |
"${FILESDIR}/vmware-${major_minor}.rc" > ${initscript} |
506 |
newinitd "${initscript}" vmware |
507 |
|
508 |
if use server; then |
509 |
# install the init.d script |
510 |
local initscript="${T}/vmware-workstation-server.rc" |
511 |
sed -e "s:@@ETCDIR@@:/etc/vmware:g" \ |
512 |
-e "s:@@PREFIX@@:${VM_INSTALL_DIR}:g" \ |
513 |
-e "s:@@BINDIR@@:${VM_INSTALL_DIR}/bin:g" \ |
514 |
-e "s:@@LIBDIR@@:${VM_INSTALL_DIR}/lib/vmware:g" \ |
515 |
"${FILESDIR}/vmware-server-8.0.rc" > ${initscript} |
516 |
newinitd "${initscript}" vmware-workstation-server |
517 |
fi |
518 |
|
519 |
# fill in variable placeholders |
520 |
sed -e "s:@@LIBCONF_DIR@@:${VM_INSTALL_DIR}/lib/vmware/libconf:g" \ |
521 |
-i "${D}${VM_INSTALL_DIR}"/lib/vmware/libconf/etc/{gtk-2.0/{gdk-pixbuf.loaders,gtk.immodules},pango/pango{.modules,rc}} |
522 |
sed -e "s:@@BINARY@@:${VM_INSTALL_DIR}/bin/vmware:g" \ |
523 |
-i "${D}/usr/share/applications/${PN}.desktop" |
524 |
sed -e "s:@@BINARY@@:${VM_INSTALL_DIR}/bin/vmplayer:g" \ |
525 |
-i "${D}/usr/share/applications/vmware-player.desktop" |
526 |
sed -e "s:@@BINARY@@:${VM_INSTALL_DIR}/bin/vmware-netcfg:g" \ |
527 |
-i "${D}/usr/share/applications/vmware-netcfg.desktop" |
528 |
|
529 |
if use server; then |
530 |
# Configuration for vmware-workstation-server |
531 |
local hostdUser="${VM_HOSTD_USER:-root}" |
532 |
sed -e "/ACEDataUser/s:root:${hostdUser}:g" \ |
533 |
-i "${D}/etc/vmware/hostd/authorization.xml" || die |
534 |
|
535 |
# Shared VMs Path: [standard]. |
536 |
sed -e "s:##{DS_NAME}##:standard:g" \ |
537 |
-e "s:##{DS_PATH}##:${VM_DATA_STORE_DIR}:g" \ |
538 |
-i "${D}/etc/vmware/hostd/datastores.xml" || die |
539 |
|
540 |
sed -e "s:##{HTTP_PORT}##:-1:g" \ |
541 |
-e "s:##{HTTPS_PORT}##:443:g" \ |
542 |
-e "s:##{PIPE_PREFIX}##:/var/run/vmware/:g" \ |
543 |
-i "${D}/etc/vmware/hostd/proxy.xml" || die |
544 |
|
545 |
# See vmware-workstation-server.py for more details. |
546 |
sed -e "s:##{BUILD_CFGDIR}##:/etc/vmware/hostd/:g" \ |
547 |
-e "s:##{CFGALTDIR}##:/etc/vmware/hostd/:g" \ |
548 |
-e "s:##{CFGDIR}##:/etc/vmware/:g" \ |
549 |
-e "s:##{ENABLE_AUTH}##:true:g" \ |
550 |
-e "s:##{HOSTDMODE}##:ws:g" \ |
551 |
-e "s:##{HOSTD_CFGDIR}##:/etc/vmware/hostd/:g" \ |
552 |
-e "s:##{HOSTD_MOCKUP}##:false:g" \ |
553 |
-e "s:##{LIBDIR}##:${VM_INSTALL_DIR}/lib/vmware:g" \ |
554 |
-e "s:##{LIBDIR_INSTALLED}##:${VM_INSTALL_DIR}/lib/vmware/:g" \ |
555 |
-e "s:##{LOGDIR}##:/var/log/vmware/:g" \ |
556 |
-e "s:##{LOGLEVEL}##:verbose:g" \ |
557 |
-e "s:##{MOCKUP}##:mockup-host-config.xml:g" \ |
558 |
-e "s:##{PLUGINDIR}##:./:g" \ |
559 |
-e "s:##{SHLIB_PREFIX}##:lib:g" \ |
560 |
-e "s:##{SHLIB_SUFFIX}##:.so:g" \ |
561 |
-e "s:##{USE_BLKLISTSVC}##:false:g" \ |
562 |
-e "s:##{USE_CBRCSVC}##:false:g" \ |
563 |
-e "s:##{USE_CIMSVC}##:false:g" \ |
564 |
-e "s:##{USE_DIRECTORYSVC}##:false:g" \ |
565 |
-e "s:##{USE_DIRECTORYSVC_MOCKUP}##:false:g" \ |
566 |
-e "s:##{USE_DYNAMIC_PLUGIN_LOADING}##:false:g" \ |
567 |
-e "s:##{USE_DYNAMO}##:false:g" \ |
568 |
-e "s:##{USE_DYNSVC}##:false:g" \ |
569 |
-e "s:##{USE_GUESTSVC}##:false:g" \ |
570 |
-e "s:##{USE_HBRSVC}##:false:g" \ |
571 |
-e "s:##{USE_HBRSVC_MOCKUP}##:false:g" \ |
572 |
-e "s:##{USE_HOSTSVC_MOCKUP}##:false:g" \ |
573 |
-e "s:##{USE_HTTPNFCSVC}##:false:g" \ |
574 |
-e "s:##{USE_HTTPNFCSVC_MOCKUP}##:false:g" \ |
575 |
-e "s:##{USE_LICENSESVC_MOCKUP}##:false:g" \ |
576 |
-e "s:##{USE_NFCSVC}##:true:g" \ |
577 |
-e "s:##{USE_NFCSVC_MOCKUP}##:false:g" \ |
578 |
-e "s:##{USE_OVFMGRSVC}##:true:g" \ |
579 |
-e "s:##{USE_PARTITIONSVC}##:false:g" \ |
580 |
-e "s:##{USE_SECURESOAP}##:false:g" \ |
581 |
-e "s:##{USE_SNMPSVC}##:false:g" \ |
582 |
-e "s:##{USE_SOLO_MOCKUP}##:false:g" \ |
583 |
-e "s:##{USE_STATSSVC_MOCKUP}##:false:g" \ |
584 |
-e "s:##{USE_VCSVC_MOCKUP}##:false:g" \ |
585 |
-e "s:##{USE_VDISKSVC}##:false:g" \ |
586 |
-e "s:##{USE_VDISKSVC_MOCKUP}##:false:g" \ |
587 |
-e "s:##{USE_VMSVC_MOCKUP}##:false:g" \ |
588 |
-e "s:##{VM_INVENTORY}##:vmInventory.xml:g" \ |
589 |
-e "s:##{VM_RESOURCES}##:vmResources.xml:g" \ |
590 |
-e "s:##{WEBSERVER_PORT_ENTRY}##::g" \ |
591 |
-e "s:##{WORKINGDIR}##:./:g" \ |
592 |
-i "${D}/etc/vmware/hostd/config.xml" || die |
593 |
|
594 |
sed -e "s:##{ENV_LOCATION}##:/etc/vmware/hostd/env/:g" \ |
595 |
-i "${D}/etc/vmware/hostd/environments.xml" || die |
596 |
|
597 |
# @@VICLIENT_URL@@=XXX |
598 |
sed -e "s:@@AUTHD_PORT@@:902:g" \ |
599 |
-i "${D}${VM_INSTALL_DIR}/lib/vmware/hostd/docroot/client/clients.xml" || die |
600 |
fi |
601 |
} |
602 |
|
603 |
pkg_config() { |
604 |
"${VM_INSTALL_DIR}"/bin/vmware-networks --postinstall ${PN},old,new |
605 |
} |
606 |
|
607 |
pkg_preinst() { |
608 |
gnome2_icon_savelist |
609 |
} |
610 |
|
611 |
pkg_postinst() { |
612 |
fdo-mime_desktop_database_update |
613 |
gnome2_icon_cache_update |
614 |
|
615 |
ewarn "/etc/env.d was updated. Please run:" |
616 |
ewarn "env-update && source /etc/profile" |
617 |
ewarn "" |
618 |
ewarn "Before you can use vmware workstation, you must configure a default network setup." |
619 |
ewarn "You can do this by running 'emerge --config ${PN}'." |
620 |
} |
621 |
|
622 |
pkg_prerm() { |
623 |
einfo "Stopping ${PN} for safe unmerge" |
624 |
/etc/init.d/vmware stop |
625 |
} |
626 |
|
627 |
pkg_postrm() { |
628 |
fdo-mime_desktop_database_update |
629 |
gnome2_icon_cache_update |
630 |
} |