Gentoo Archives: gentoo-commits

From: Vadim Kuznetsov <vadimk@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/vmware:master commit in: app-emulation/vmware-workstation/
Date: Sun, 17 Jun 2012 00:17:39
Message-Id: 1339892274.54958f9c1884a4bf4473284cc1bf17df88c04928.vadimk@gentoo
1 commit: 54958f9c1884a4bf4473284cc1bf17df88c04928
2 Author: Vadim Kuznetsov <vadimk <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jun 17 00:17:54 2012 +0000
4 Commit: Vadim Kuznetsov <vadimk <AT> gentoo <DOT> org>
5 CommitDate: Sun Jun 17 00:17:54 2012 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/vmware.git;a=commit;h=54958f9c
7
8 without fetch restriction
9 modified: Manifest
10 new file: vmware-workstation-8.0.4.744019-r1.ebuild
11
12 ---
13 app-emulation/vmware-workstation/Manifest | 2 +
14 .../vmware-workstation-8.0.4.744019-r1.ebuild | 473 ++++++++++++++++++++
15 2 files changed, 475 insertions(+), 0 deletions(-)
16
17 diff --git a/app-emulation/vmware-workstation/Manifest b/app-emulation/vmware-workstation/Manifest
18 index f2bf2fe..b338f29 100644
19 --- a/app-emulation/vmware-workstation/Manifest
20 +++ b/app-emulation/vmware-workstation/Manifest
21 @@ -1,4 +1,6 @@
22 DIST VMware-Workstation-7.1.6-744570.i386.bundle 130391795 SHA256 fbeadabe7c0929a10f144dc82e37afc73bbd60bedf299bb2c6142dda379ad5b4 SHA512 c57148f0ef7041bdadf46668aaddd0315134185103706dc23815bf3ebe4f2389a9387c63d0caf3fb0e1baf236320c633264e473439b2e00eb26c11d489e6af0a WHIRLPOOL e631ccb14424d5165fc2f9bbe7d910e60c06ed3f4c5fbddbbf5b4bc66153a84927a3779359f3d07b258a59766ff9d063585e1ecc70dc4d107c073bf529541dbf
23 DIST VMware-Workstation-7.1.6-744570.x86_64.bundle 137422513 SHA256 1a0694349393ce326f62c291d76c1c5e8d5473b49bf986476e1485df422a2f8f SHA512 df72b0c770f9e356efd1bbffe2c596909f193bc2100a015cfbab819fea017ee735fcc932180c0cc5ffbe8223fa66a06dcd35e34d183b06f71c7ba937c440e2fd WHIRLPOOL e7b50e706b88e30801ccaeaedf59f5fbdf06342d8566a65b3cb19ec2c433da52768b55f9e5e58e274071c284d38280e0635f8a9c3fd2d01f53037c1082d15af3
24 +DIST VMware-Workstation-8.0.4-744019.i386.bundle.tar 189839360 SHA256 5b469de4f583fc0d33750253244c23e0f6a9d5b713e8d46ea3dd07f01af2b5ed SHA512 f0b17262594bf613a971c49843eec8fd1182a031c0cdca91824a1c6a0315e87183c0d99f6e37e2aa3a9a9a00f57efbbc6ff155094aa6cc776901177697aa8e49 WHIRLPOOL bf5a7a2f8c7cfc53fe2d0dfbe1b8b1fa9452a3eb0a1b5a70363dab4bd23c86a628a3938b5c5c30301639ea748347230fc3ad0b8977dabc1c2b828f6dde81b1f1
25 +DIST VMware-Workstation-8.0.4-744019.x86_64.bundle.tar 189552640 SHA256 83cdf3f4cf99afdd3e9685b5cc50f613094cc24e7502a2dc577f05640382a6c5 SHA512 87258301b157f9bade30094a02a5f3749342b00ccb5b1359d10152331d3d257bb1afe23fa7b68c973e2f4e2b9e9afc7ca52e99118041e1d45be3099f8d10d51c WHIRLPOOL 1bf6ce95e63042bb47971c36f55f943ef8ce736c5f9355fe7afbc114a09f716277199a847af041bd467cdb02170414bd660bafa54cce59029347e27ffda6eb73
26 DIST VMware-Workstation-Full-8.0.4-744019.i386.bundle 341955503 SHA256 bdc4298f2733578281370dd08784216b36dadc460fcd767d70c30796530a2477 SHA512 4e228e047438777a6345e7a7de95d2faadc6f02ab2563996ccbeaf8cc8f50786099bcc9fb311fcea8dcbce26cbdf224dcc26b2dd6a0adb2fa418347d8a9357b1 WHIRLPOOL 825097fb2d4cd10a4b6955ecc77c7eea009d4981e44a5284c19fe3b16f33af1cc9ade8735e7d61443e6bd69cf3df97a6564cf49871526e0e174e5ce39d44961d
27 DIST VMware-Workstation-Full-8.0.4-744019.x86_64.bundle 341672831 SHA256 ba60f215ef501f89ed97f64e5cd13c4462c7eb6c6d0441008dfd035cb4020f3c SHA512 e7778550a96971dabad732f85495e14583343f9e15dd42bfe5c30f3d63a4d1ac8bd978c4aa069c433633761dcebc3debde24b18aecf0af371c10ad7480c4b006 WHIRLPOOL 0187ef2809e328a8cca200a68f397c162c8ea49e23865dbcac2df17f575931e8ff2f9bb5aaa709f6bbfcd2eed5432641060a2df44b66f4b46c79f0fa3dc34c11
28
29 diff --git a/app-emulation/vmware-workstation/vmware-workstation-8.0.4.744019-r1.ebuild b/app-emulation/vmware-workstation/vmware-workstation-8.0.4.744019-r1.ebuild
30 new file mode 100644
31 index 0000000..e285e35
32 --- /dev/null
33 +++ b/app-emulation/vmware-workstation/vmware-workstation-8.0.4.744019-r1.ebuild
34 @@ -0,0 +1,473 @@
35 +# Copyright 1999-2012 Gentoo Foundation
36 +# Distributed under the terms of the GNU General Public License v2
37 +# $Header: /var/cvsroot/gentoo-x86/app-emulation/vmware-workstation/vmware-workstation-8.0.2.591240.ebuild,v 1.1 2012/03/10 14:20:59 vadimk Exp $
38 +
39 +EAPI="4"
40 +
41 +inherit eutils versionator fdo-mime gnome2-utils pam vmware-bundle
42 +
43 +MY_PN="VMware-Workstation"
44 +MY_PV=$(get_version_component_range 1-3)
45 +PV_MINOR=$(get_version_component_range 3)
46 +PV_BUILD=$(get_version_component_range 4)
47 +MY_P="${MY_PN}-${MY_PV}-${PV_BUILD}"
48 +
49 +DESCRIPTION="Emulate a complete PC on your PC without the usual performance overhead of most emulators"
50 +HOMEPAGE="http://www.vmware.com/products/workstation/"
51 +BASE_URI="https://softwareupdate.vmware.com/cds/vmw-desktop/ws/${MY_PV}/${PV_BUILD}/linux/core/"
52 +SRC_URI="
53 + x86? ( ${BASE_URI}${MY_P}.i386.bundle.tar )
54 + amd64? ( ${BASE_URI}${MY_P}.x86_64.bundle.tar )
55 + "
56 +LICENSE="vmware"
57 +SLOT="0"
58 +KEYWORDS="-* ~amd64 ~x86"
59 +IUSE="cups doc ovftool server vix vmware-tools"
60 +RESTRICT="binchecks mirror strip"
61 +
62 +# vmware-workstation should not use virtual/libc as this is a
63 +# precompiled binary package thats linked to glibc.
64 +RDEPEND="dev-cpp/cairomm
65 + dev-cpp/glibmm:2
66 + dev-cpp/gtkmm:2.4
67 + dev-cpp/libgnomecanvasmm
68 + dev-cpp/libsexymm
69 + dev-cpp/pangomm
70 + dev-libs/atk
71 + dev-libs/glib:2
72 + dev-libs/icu
73 + dev-libs/expat
74 + dev-libs/libaio
75 + dev-libs/libsigc++
76 + dev-libs/libxml2
77 + =dev-libs/openssl-0.9.8*
78 + dev-libs/xmlrpc-c
79 + gnome-base/libgnomecanvas
80 + gnome-base/libgtop:2
81 + gnome-base/librsvg:2
82 + gnome-base/orbit
83 + media-libs/fontconfig
84 + media-libs/freetype
85 + media-libs/libart_lgpl
86 + =media-libs/libpng-1.2*
87 + media-libs/libpng
88 + net-misc/curl
89 + cups? ( net-print/cups )
90 + sys-devel/gcc
91 + sys-fs/fuse
92 + sys-libs/glibc
93 + sys-libs/zlib
94 + x11-libs/cairo
95 + x11-libs/gtk+:2
96 + x11-libs/libgksu
97 + x11-libs/libICE
98 + x11-libs/libsexy
99 + x11-libs/libSM
100 + x11-libs/libX11
101 + x11-libs/libXau
102 + x11-libs/libxcb
103 + x11-libs/libXcomposite
104 + x11-libs/libXcursor
105 + x11-libs/libXdamage
106 + x11-libs/libXdmcp
107 + x11-libs/libXext
108 + x11-libs/libXfixes
109 + x11-libs/libXft
110 + x11-libs/libXi
111 + x11-libs/libXinerama
112 + x11-libs/libXrandr
113 + x11-libs/libXrender
114 + x11-libs/libXtst
115 + x11-libs/pango
116 + x11-libs/startup-notification
117 + x11-themes/hicolor-icon-theme
118 + !app-emulation/vmware-player"
119 +PDEPEND="~app-emulation/vmware-modules-264.${PV_MINOR}
120 + vmware-tools? ( app-emulation/vmware-tools )"
121 +
122 +S=${WORKDIR}
123 +VM_INSTALL_DIR="/opt/vmware"
124 +VM_DATA_STORE_DIR="/var/lib/vmware/Shared VMs"
125 +VM_HOSTD_USER="root"
126 +
127 +src_unpack() {
128 + default
129 + bundle=${A%.tar}
130 +
131 + local component; for component in \
132 + vmware-vmx \
133 + vmware-player-app \
134 + vmware-player-setup \
135 + vmware-workstation \
136 + vmware-network-editor \
137 + vmware-network-editor-ui \
138 + vmware-usbarbitrator
139 + do
140 + vmware-bundle_extract-bundle-component "${bundle}" "${component}" "${S}"
141 + done
142 +
143 + if use server; then
144 + vmware-bundle_extract-bundle-component "${bundle}" vmware-workstation-server #"${S}"
145 + fi
146 +
147 + if use vix; then
148 + vmware-bundle_extract-bundle-component "${bundle}" vmware-vix-core vmware-vix
149 + vmware-bundle_extract-bundle-component "${bundle}" vmware-vix-lib-Workstation800andvSphere500 vmware-vix
150 + fi
151 + if use ovftool; then
152 + vmware-bundle_extract-bundle-component "${bundle}" vmware-ovftool
153 + fi
154 +}
155 +
156 +src_prepare() {
157 + rm -f bin/vmware-modconfig
158 + rm -rf lib/modules/binary
159 + if use server; then
160 + rm -f vmware-workstation-server/bin/{openssl,configure-hostd.sh}
161 + fi
162 +
163 + find "${S}" -name '*.a' -delete
164 +
165 +# clean_bundled_libs
166 +}
167 +
168 +clean_bundled_libs() {
169 + ebegin 'Removing superfluous libraries'
170 + cd lib/lib || die
171 + ldconfig -p | \
172 + sed 's:^\s\+\([^(]*[^( ]\).*=> /.*$:\1:g;t;d' | \
173 + fgrep -vx 'libcrypto.so.0.9.8
174 +libssl.so.0.9.8i
175 +libgcr.so.0
176 +libglib-2.0.so.0' |
177 + xargs -d'\n' -r rm -rf
178 + eend
179 +}
180 +
181 +src_install() {
182 + local major_minor=$(get_version_component_range 1-2 "${PV}")
183 + local major_minor_revision=$(get_version_component_range 1-3 "${PV}")
184 + local build=$(get_version_component_range 4 "${PV}")
185 +
186 + # install the binaries
187 + into "${VM_INSTALL_DIR}"
188 + dobin bin/*
189 +
190 + # install the libraries
191 + insinto "${VM_INSTALL_DIR}"/lib/vmware
192 + doins -r lib/*
193 +
194 + # install the ancillaries
195 + insinto /usr
196 + doins -r share
197 +
198 + if use cups; then
199 + exeinto $(cups-config --serverbin)/filter
200 + doexe extras/thnucups
201 +
202 + insinto /etc/cups
203 + doins -r etc/cups/*
204 + fi
205 +
206 + insinto /etc/xdg
207 + doins -r etc/xdg/*
208 +
209 + # install documentation
210 + doman man/man1/vmware.1.gz
211 +
212 + if use doc; then
213 + dodoc doc/*
214 + fi
215 +
216 + insinto "${VM_INSTALL_DIR}"/lib/vmware/setup
217 + doins vmware-config
218 +
219 + # install vmware workstation server
220 + if use server; then
221 + dosbin sbin/*
222 +
223 + cd "${S}"/vmware-workstation-server
224 +
225 + # install binaries
226 + into "${VM_INSTALL_DIR}"/lib/vmware
227 + dobin bin/*
228 +
229 + dobin "${FILESDIR}"/configure-hostd.sh
230 +
231 + dobin "${FILESDIR}"/configure-hostd.sh
232 +
233 + # install the libraries
234 + insinto "${VM_INSTALL_DIR}"/lib/vmware/lib
235 + doins -r lib/*
236 +
237 + into "${VM_INSTALL_DIR}"
238 + for tool in vmware-{hostd,vim-cmd,wssc-adminTool} ; do
239 + cat > "${T}/${tool}" <<-EOF
240 + #!/usr/bin/env bash
241 + set -e
242 +
243 + . /etc/vmware/bootstrap
244 +
245 + exec "${VM_INSTALL_DIR}/lib/vmware/lib/wrapper-gtk24.sh" \\
246 + "${VM_INSTALL_DIR}/lib/vmware/lib" \\
247 + "${VM_INSTALL_DIR}/lib/vmware/bin/${tool}" \\
248 + "${VM_INSTALL_DIR}/lib/vmware/libconf" "\$@"
249 + EOF
250 + dobin "${T}/${tool}"
251 + done
252 +
253 + insinto "${VM_INSTALL_DIR}"/lib/vmware
254 + doins -r hostd
255 +
256 + # create the configuration
257 + insinto /etc/vmware/hostd
258 + doins -r config/etc/vmware/hostd/*
259 + doins -r etc/vmware/hostd/*
260 +
261 + insinto /etc/vmware/ssl
262 + doins etc/vmware/ssl/*
263 +
264 + # pam
265 + pamd_mimic_system vmware-authd auth account
266 +
267 + # create directory for shared virtual machines.
268 + keepdir "${VM_DATA_STORE_DIR}"
269 + keepdir /var/log/vmware
270 + fi
271 +
272 + # install vmware-vix
273 + if use vix; then
274 + cd "${S}"/vmware-vix
275 +
276 + # install the binary
277 + into "${VM_INSTALL_DIR}"
278 + dobin bin/*
279 +
280 + # install the libraries
281 + insinto "${VM_INSTALL_DIR}"/lib/vmware-vix
282 + doins -r lib/*
283 +
284 + dosym vmware-vix/libvixAllProducts.so "${VM_INSTALL_DIR}"/lib/libbvixAllProducts.so
285 +
286 + # install headers
287 + insinto /usr/include/vmware-vix
288 + doins include/*
289 +
290 + if use doc; then
291 + dohtml -r doc/*
292 + fi
293 + fi
294 +
295 + # install ovftool
296 + if use ovftool; then
297 + cd "${S}"
298 +
299 + insinto "${VM_INSTALL_DIR}"/lib/vmware-ovftool
300 + doins -r vmware-ovftool/*
301 +
302 + chmod 0755 "${D}${VM_INSTALL_DIR}"/lib/vmware-ovftool/{ovftool,ovftool.bin}
303 + dosym "${D}${VM_INSTALL_DIR}"/lib/vmware-ovftool/ovftool "${VM_INSTALL_DIR}"/bin/ovftool
304 + fi
305 +
306 + # create symlinks for the various tools
307 + local tool ; for tool in thnuclnt vmware vmplayer{,-daemon} \
308 + vmware-{acetool,enter-serial,gksu,fuseUI,modconfig{,-console},netcfg,tray,unity-helper} ; do
309 + dosym appLoader "${VM_INSTALL_DIR}"/lib/vmware/bin/"${tool}"
310 + done
311 + dosym "${VM_INSTALL_DIR}"/lib/vmware/bin/vmplayer "${VM_INSTALL_DIR}"/bin/vmplayer
312 + dosym "${VM_INSTALL_DIR}"/lib/vmware/bin/vmware "${VM_INSTALL_DIR}"/bin/vmware
313 + dosym "${VM_INSTALL_DIR}"/lib/vmware/icu /etc/vmware/icu
314 +
315 + # fix permissions
316 + fperms 0755 "${VM_INSTALL_DIR}"/lib/vmware/bin/{appLoader,fusermount,launcher.sh,mkisofs,vmware-remotemks}
317 + fperms 0755 "${VM_INSTALL_DIR}"/lib/vmware/lib/{wrapper-gtk24.sh,libgksu2.so.0/gksu-run-helper}
318 + fperms 0755 "${VM_INSTALL_DIR}"/lib/vmware/setup/vmware-config
319 + fperms 4711 "${VM_INSTALL_DIR}"/bin/vmware-mount
320 + fperms 4711 "${VM_INSTALL_DIR}"/lib/vmware/bin/vmware-vmx{,-debug,-stats}
321 + if use server; then
322 + fperms 0755 "${VM_INSTALL_DIR}"/lib/vmware/bin/vmware-{hostd,vim-cmd,wssc-adminTool}
323 + fperms 4711 "${VM_INSTALL_DIR}"/sbin/vmware-authd
324 + fperms 1777 "${VM_DATA_STORE_DIR}"
325 + fi
326 + if use vix; then
327 + fperms 0755 "${VM_INSTALL_DIR}"/lib/vmware-vix/setup/vmware-config
328 + fi
329 +
330 + # create the environment
331 + local envd="${T}/90vmware"
332 + cat > "${envd}" <<-EOF
333 + PATH='${VM_INSTALL_DIR}/bin'
334 + ROOTPATH='${VM_INSTALL_DIR}/bin'
335 + EOF
336 + doenvd "${envd}"
337 +
338 + # create the configuration
339 + dodir /etc/vmware
340 +
341 + cat > "${D}"/etc/vmware/bootstrap <<-EOF
342 + BINDIR='${VM_INSTALL_DIR}/bin'
343 + LIBDIR='${VM_INSTALL_DIR}/lib'
344 + EOF
345 +
346 + cat > "${D}"/etc/vmware/config <<-EOF
347 + bindir = "${VM_INSTALL_DIR}/bin"
348 + libdir = "${VM_INSTALL_DIR}/lib/vmware"
349 + initscriptdir = "/etc/init.d"
350 + authd.fullpath = "${VM_INSTALL_DIR}/sbin/vmware-authd"
351 + gksu.rootMethod = "su"
352 + VMCI_CONFED = "yes"
353 + VMBLOCK_CONFED = "yes"
354 + VSOCK_CONFED = "yes"
355 + NETWORKING = "yes"
356 + player.product.version = "${major_minor_revision}"
357 + product.version = "${major_minor_revision}"
358 + product.buildNumber = "${build}"
359 + product.name = "VMware Workstation"
360 + workstation.product.version = "${major_minor_revision}"
361 + EOF
362 +
363 + if use vix; then
364 + cat >> "${D}"/etc/vmware/config <<-EOF
365 + vmware.fullpath = "${VM_INSTALL_DIR}/bin/vmware"
366 + vix.libdir = "${VM_INSTALL_DIR}/lib/vmware-vix"
367 + vix.config.version = "1"
368 + EOF
369 + fi
370 +
371 + if use server; then
372 + cat >> "${D}"/etc/vmware/config <<-EOF
373 + authd.client.port = "902"
374 + authd.proxy.nfc = "vmware-hostd:ha-nfc"
375 + authd.soapserver = "TRUE"
376 + EOF
377 + fi
378 +
379 + # install the init.d script
380 + local initscript="${T}/vmware.rc"
381 + sed -e "s:@@BINDIR@@:${VM_INSTALL_DIR}/bin:g" \
382 + "${FILESDIR}/vmware-${major_minor}.rc" > ${initscript}
383 + newinitd "${initscript}" vmware
384 +
385 + if use server; then
386 + # install the init.d script
387 + local initscript="${T}/vmware-workstation-server.rc"
388 + sed -e "s:@@ETCDIR@@:/etc/vmware:g" \
389 + -e "s:@@PREFIX@@:${VM_INSTALL_DIR}:g" \
390 + -e "s:@@BINDIR@@:${VM_INSTALL_DIR}/bin:g" \
391 + -e "s:@@LIBDIR@@:${VM_INSTALL_DIR}/lib/vmware:g" \
392 + "${FILESDIR}/vmware-server-8.0.rc" > ${initscript}
393 + newinitd "${initscript}" vmware-workstation-server
394 + fi
395 +
396 + # fill in variable placeholders
397 + sed -e "s:@@LIBCONF_DIR@@:${VM_INSTALL_DIR}/lib/vmware/libconf:g" \
398 + -i "${D}${VM_INSTALL_DIR}"/lib/vmware/libconf/etc/{gtk-2.0/{gdk-pixbuf.loaders,gtk.immodules},pango/pango{.modules,rc}}
399 + sed -e "s:@@BINARY@@:${VM_INSTALL_DIR}/bin/vmware:g" \
400 + -i "${D}/usr/share/applications/${PN}.desktop"
401 + sed -e "s:@@BINARY@@:${VM_INSTALL_DIR}/bin/vmplayer:g" \
402 + -i "${D}/usr/share/applications/vmware-player.desktop"
403 + sed -e "s:@@BINARY@@:${VM_INSTALL_DIR}/bin/vmware-netcfg:g" \
404 + -i "${D}/usr/share/applications/vmware-netcfg.desktop"
405 +
406 + if use server; then
407 + # Configuration for vmware-workstation-server
408 + local hostdUser="${VM_HOSTD_USER:-root}"
409 + sed -e "/ACEDataUser/s:root:${hostdUser}:g" \
410 + -i "${D}/etc/vmware/hostd/authorization.xml" || die
411 +
412 + # Shared VMs Path: [standard].
413 + sed -e "s:##{DS_NAME}##:standard:g" \
414 + -e "s:##{DS_PATH}##:${VM_DATA_STORE_DIR}:g" \
415 + -i "${D}/etc/vmware/hostd/datastores.xml" || die
416 +
417 + sed -e "s:##{HTTP_PORT}##:-1:g" \
418 + -e "s:##{HTTPS_PORT}##:443:g" \
419 + -e "s:##{PIPE_PREFIX}##:/var/run/vmware/:g" \
420 + -i "${D}/etc/vmware/hostd/proxy.xml" || die
421 +
422 + # See vmware-workstation-server.py for more details.
423 + sed -e "s:##{BUILD_CFGDIR}##:/etc/vmware/hostd/:g" \
424 + -e "s:##{CFGALTDIR}##:/etc/vmware/hostd/:g" \
425 + -e "s:##{CFGDIR}##:/etc/vmware/:g" \
426 + -e "s:##{ENABLE_AUTH}##:true:g" \
427 + -e "s:##{HOSTDMODE}##:ws:g" \
428 + -e "s:##{HOSTD_CFGDIR}##:/etc/vmware/hostd/:g" \
429 + -e "s:##{HOSTD_MOCKUP}##:false:g" \
430 + -e "s:##{LIBDIR}##:${VM_INSTALL_DIR}/lib/vmware:g" \
431 + -e "s:##{LIBDIR_INSTALLED}##:${VM_INSTALL_DIR}/lib/vmware/:g" \
432 + -e "s:##{LOGDIR}##:/var/log/vmware/:g" \
433 + -e "s:##{LOGLEVEL}##:verbose:g" \
434 + -e "s:##{MOCKUP}##:mockup-host-config.xml:g" \
435 + -e "s:##{PLUGINDIR}##:./:g" \
436 + -e "s:##{SHLIB_PREFIX}##:lib:g" \
437 + -e "s:##{SHLIB_SUFFIX}##:.so:g" \
438 + -e "s:##{USE_BLKLISTSVC}##:false:g" \
439 + -e "s:##{USE_CBRCSVC}##:false:g" \
440 + -e "s:##{USE_CIMSVC}##:false:g" \
441 + -e "s:##{USE_DIRECTORYSVC}##:false:g" \
442 + -e "s:##{USE_DIRECTORYSVC_MOCKUP}##:false:g" \
443 + -e "s:##{USE_DYNAMIC_PLUGIN_LOADING}##:false:g" \
444 + -e "s:##{USE_DYNAMO}##:false:g" \
445 + -e "s:##{USE_DYNSVC}##:false:g" \
446 + -e "s:##{USE_GUESTSVC}##:false:g" \
447 + -e "s:##{USE_HBRSVC}##:false:g" \
448 + -e "s:##{USE_HBRSVC_MOCKUP}##:false:g" \
449 + -e "s:##{USE_HOSTSVC_MOCKUP}##:false:g" \
450 + -e "s:##{USE_HTTPNFCSVC}##:false:g" \
451 + -e "s:##{USE_HTTPNFCSVC_MOCKUP}##:false:g" \
452 + -e "s:##{USE_LICENSESVC_MOCKUP}##:false:g" \
453 + -e "s:##{USE_NFCSVC}##:true:g" \
454 + -e "s:##{USE_NFCSVC_MOCKUP}##:false:g" \
455 + -e "s:##{USE_OVFMGRSVC}##:true:g" \
456 + -e "s:##{USE_PARTITIONSVC}##:false:g" \
457 + -e "s:##{USE_SECURESOAP}##:false:g" \
458 + -e "s:##{USE_SNMPSVC}##:false:g" \
459 + -e "s:##{USE_SOLO_MOCKUP}##:false:g" \
460 + -e "s:##{USE_STATSSVC_MOCKUP}##:false:g" \
461 + -e "s:##{USE_VCSVC_MOCKUP}##:false:g" \
462 + -e "s:##{USE_VDISKSVC}##:false:g" \
463 + -e "s:##{USE_VDISKSVC_MOCKUP}##:false:g" \
464 + -e "s:##{USE_VMSVC_MOCKUP}##:false:g" \
465 + -e "s:##{VM_INVENTORY}##:vmInventory.xml:g" \
466 + -e "s:##{VM_RESOURCES}##:vmResources.xml:g" \
467 + -e "s:##{WEBSERVER_PORT_ENTRY}##::g" \
468 + -e "s:##{WORKINGDIR}##:./:g" \
469 + -i "${D}/etc/vmware/hostd/config.xml" || die
470 +
471 + sed -e "s:##{ENV_LOCATION}##:/etc/vmware/hostd/env/:g" \
472 + -i "${D}/etc/vmware/hostd/environments.xml" || die
473 +
474 + # @@VICLIENT_URL@@=XXX
475 + sed -e "s:@@AUTHD_PORT@@:902:g" \
476 + -i "${D}${VM_INSTALL_DIR}/lib/vmware/hostd/docroot/client/clients.xml" || die
477 + fi
478 +}
479 +
480 +pkg_config() {
481 + "${VM_INSTALL_DIR}"/bin/vmware-networks --postinstall ${PN},old,new
482 +}
483 +
484 +pkg_preinst() {
485 + gnome2_icon_savelist
486 +}
487 +
488 +pkg_postinst() {
489 + fdo-mime_desktop_database_update
490 + gnome2_icon_cache_update
491 +
492 + ewarn "/etc/env.d was updated. Please run:"
493 + ewarn "env-update && source /etc/profile"
494 + ewarn ""
495 + ewarn "Before you can use vmware workstation, you must configure a default network setup."
496 + ewarn "You can do this by running 'emerge --config ${PN}'."
497 +}
498 +
499 +pkg_prerm() {
500 + einfo "Stopping ${PN} for safe unmerge"
501 + /etc/init.d/vmware stop
502 +}
503 +
504 +pkg_postrm() {
505 + fdo-mime_desktop_database_update
506 + gnome2_icon_cache_update
507 +}