Gentoo Archives: gentoo-commits

From: Evan Teran <evan.teran@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/vmware:master commit in: app-emulation/vmware-workstation/, app-emulation/vmware-vsphere-cli/
Date: Tue, 06 Oct 2015 03:40:29
Message-Id: 1444102794.268c44ba9c64cde8c244b96088a5b196e1bcbfbc.eteran@gentoo
1 commit: 268c44ba9c64cde8c244b96088a5b196e1bcbfbc
2 Author: Evan Teran <evan.teran <AT> gmail <DOT> com>
3 AuthorDate: Tue Oct 6 03:39:54 2015 +0000
4 Commit: Evan Teran <evan.teran <AT> gmail <DOT> com>
5 CommitDate: Tue Oct 6 03:39:54 2015 +0000
6 URL: https://gitweb.gentoo.org/proj/vmware.git/commit/?id=268c44ba
7
8 trying to fix some dependancy issues, also fixed headers and KEYWORDS of some ebuilds
9
10 .../vmware-vsphere-cli-4.1.0.254719-r1.ebuild | 2 +-
11 .../vmware-workstation-11.1.2.2780323-r3.ebuild | 530 +++++++++++++++++++++
12 2 files changed, 531 insertions(+), 1 deletion(-)
13
14 diff --git a/app-emulation/vmware-vsphere-cli/vmware-vsphere-cli-4.1.0.254719-r1.ebuild b/app-emulation/vmware-vsphere-cli/vmware-vsphere-cli-4.1.0.254719-r1.ebuild
15 index 998aa39..743061a 100644
16 --- a/app-emulation/vmware-vsphere-cli/vmware-vsphere-cli-4.1.0.254719-r1.ebuild
17 +++ b/app-emulation/vmware-vsphere-cli/vmware-vsphere-cli-4.1.0.254719-r1.ebuild
18 @@ -1,6 +1,6 @@
19 # Copyright 1999-2015 Gentoo Foundation
20 # Distributed under the terms of the GNU General Public License v2
21 -# $Header: $
22 +# $Id$
23
24 # Unlike many other binary packages the user doesn't need to agree to a licence
25 # to download VMWare. The agreeing to a licence is part of the configure step
26
27 diff --git a/app-emulation/vmware-workstation/vmware-workstation-11.1.2.2780323-r3.ebuild b/app-emulation/vmware-workstation/vmware-workstation-11.1.2.2780323-r3.ebuild
28 new file mode 100644
29 index 0000000..4e31501
30 --- /dev/null
31 +++ b/app-emulation/vmware-workstation/vmware-workstation-11.1.2.2780323-r3.ebuild
32 @@ -0,0 +1,530 @@
33 +# Copyright 1999-2015 Gentoo Foundation
34 +# Distributed under the terms of the GNU General Public License v2
35 +# $Id$
36 +
37 +EAPI=5
38 +
39 +inherit eutils versionator readme.gentoo fdo-mime systemd gnome2-utils pam vmware-bundle
40 +
41 +MY_PN="VMware-Workstation"
42 +MY_PV=$(get_version_component_range 1-3)
43 +PV_MINOR=$(get_version_component_range 3)
44 +PV_BUILD=$(get_version_component_range 4)
45 +MY_P="${MY_PN}-${MY_PV}-${PV_BUILD}"
46 +
47 +SYSTEMD_UNITS_TAG="gentoo-01"
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 + amd64? ( ${BASE_URI}${MY_P}.x86_64.bundle.tar )
54 + https://github.com/akhuettel/systemd-vmware/archive/${SYSTEMD_UNITS_TAG}.tar.gz -> vmware-systemd-${SYSTEMD_UNITS_TAG}.tgz
55 + "
56 +LICENSE="vmware GPL-2"
57 +SLOT="0"
58 +KEYWORDS="-* ~amd64"
59 +IUSE="cups bundled-libs doc ovftool server vix vmware-tools"
60 +RESTRICT="mirror strip"
61 +
62 +BUNDLED_LIBS_DIR=/opt/vmware/lib/vmware/lib
63 +
64 +BUNDLED_LIBS="
65 + libXau.so.6
66 + libXcomposite.so.1
67 + libXcursor.so.1
68 + libXdamage.so.1
69 + libXdmcp.so.6
70 + libXfixes.so.3
71 + libXft.so.2
72 + libXinerama.so.1
73 + libXrandr.so.2
74 + libXrender.so.1
75 + libaio.so.1
76 + libatk-1.0.so.0
77 + libatkmm-1.6.so.1
78 + libatspi.so.0
79 + libcairo.so.2
80 + libcairomm-1.0.so.1
81 + libcurl.so.4
82 +"
83 +
84 +BUNDLED_LIB_DEPENDS="
85 + x11-libs/libXau
86 + x11-libs/libXcomposite
87 + x11-libs/libXcursor
88 + x11-libs/libXdamage
89 + x11-libs/libXdmcp
90 + x11-libs/libXfixes
91 + x11-libs/libXft
92 + x11-libs/libXinerama
93 + x11-libs/libXrandr
94 + x11-libs/libXrender
95 + dev-libs/libaio
96 + dev-libs/atk
97 + dev-cpp/atkmm
98 + app-accessibility/at-spi2-core
99 + x11-libs/cairo
100 + dev-cpp/cairomm
101 + net-misc/curl
102 +"
103 +
104 +# vmware-workstation should not use virtual/libc as this is a
105 +# precompiled binary package thats linked to glibc.
106 +RDEPEND="
107 + dev-cpp/glibmm:2
108 + dev-cpp/gtkmm:2.4
109 + dev-cpp/libgnomecanvasmm
110 + dev-cpp/pangomm
111 + dev-libs/glib:2
112 + dev-libs/icu
113 + dev-libs/expat
114 + >=dev-libs/libgcrypt-1.5.0:0/11
115 + dev-libs/libsigc++:2
116 + dev-libs/libxml2
117 + dev-libs/openssl:0.9.8
118 + dev-libs/xmlrpc-c
119 + gnome-base/libgnomecanvas
120 + gnome-base/libgtop:2
121 + gnome-base/librsvg:2
122 + gnome-base/orbit
123 + media-libs/fontconfig
124 + media-libs/freetype
125 + media-libs/libart_lgpl
126 + media-libs/libpng:1.2
127 + media-libs/libpng
128 + media-libs/tiff:3
129 + cups? ( net-print/cups )
130 + sys-devel/gcc
131 + sys-fs/fuse
132 + sys-libs/glibc
133 + sys-libs/zlib
134 + x11-libs/gtk+:2
135 + x11-libs/libgksu
136 + x11-libs/libICE
137 + x11-libs/libSM
138 + x11-libs/libX11
139 + x11-libs/libxcb
140 + x11-libs/libXext
141 + x11-libs/libXi
142 + x11-libs/libXtst
143 + x11-libs/pango
144 + x11-libs/pangox-compat
145 + x11-libs/startup-notification
146 + x11-themes/hicolor-icon-theme
147 + !app-emulation/vmware-player
148 + !bundled-libs? ( ${BUNDLED_LIB_DEPENDS} )
149 +"
150 +PDEPEND="~app-emulation/vmware-modules-304.${PV_MINOR}
151 + vmware-tools? ( app-emulation/vmware-tools )"
152 +
153 +S=${WORKDIR}
154 +VM_INSTALL_DIR="/opt/vmware"
155 +VM_DATA_STORE_DIR="/var/lib/vmware/Shared VMs"
156 +VM_HOSTD_USER="root"
157 +
158 +QA_PREBUILT="/opt/*"
159 +
160 +QA_WX_LOAD="/opt/vmware/lib/vmware/tools-upgraders/vmware-tools-upgrader-32 /opt/vmware/lib/vmware/bin/vmware-vmx-stats /opt/vmware/lib/vmware/bin/vmware-vmx-debug /opt/vmware/lib/vmware/bin/vmware-vmx"
161 +
162 +src_unpack() {
163 + default
164 + local bundle
165 + use amd64 && bundle=${MY_P}.x86_64.bundle
166 + local component; for component in \
167 + vmware-vmx \
168 + vmware-player-app \
169 + vmware-player-setup \
170 + vmware-workstation \
171 + vmware-network-editor \
172 + vmware-network-editor-ui \
173 + vmware-usbarbitrator \
174 + vmware-vprobe
175 + do
176 + vmware-bundle_extract-bundle-component "${bundle}" "${component}" "${S}"
177 + done
178 +
179 + if use server; then
180 + vmware-bundle_extract-bundle-component "${bundle}" vmware-workstation-server #"${S}"
181 + fi
182 +
183 + if use vix; then
184 + vmware-bundle_extract-bundle-component "${bundle}" vmware-vix-core vmware-vix
185 + vmware-bundle_extract-bundle-component "${bundle}" vmware-vix-lib-Workstation1100andvSphere600 vmware-vix
186 + fi
187 + if use ovftool; then
188 + vmware-bundle_extract-bundle-component "${bundle}" vmware-ovftool
189 + fi
190 +}
191 +
192 +clean_bundled_libs() {
193 + einfo Removing bundled libraries
194 + for libname in ${BUNDLED_LIBS} ; do
195 + rm -rv "${S}"/lib/lib/${libname} || die "Failed removing bundled ${libname}"
196 + done
197 +}
198 +
199 +src_prepare() {
200 + rm -f bin/vmware-modconfig
201 + rm -rf lib/modules/binary
202 + # Bug 459566
203 + mv lib/libvmware-netcfg.so lib/lib/
204 +
205 + if use server; then
206 + rm -f vmware-workstation-server/bin/{openssl,configure-hostd.sh}
207 + fi
208 +
209 + find "${S}" -name '*.a' -delete
210 +
211 + clean_bundled_libs
212 +
213 + DOC_CONTENTS="
214 +/etc/env.d is updated during ${PN} installation. Please run:\n
215 +env-update && source /etc/profile\n
216 +Before you can use vmware workstation, you must configure a default network setup.
217 +You can do this by running 'emerge --config ${PN}'.\n
218 +To be able to run ${PN} your user must be in the vmware group.
219 +"
220 +}
221 +
222 +src_install() {
223 + local major_minor=$(get_version_component_range 1-2 "${PV}")
224 + local major_minor_revision=$(get_version_component_range 1-3 "${PV}")
225 + local build=$(get_version_component_range 4 "${PV}")
226 +
227 + # revdep-rebuild entry
228 + insinto /etc/revdep-rebuild
229 + echo "SEARCH_DIRS_MASK=\"${VM_INSTALL_DIR}\"" >> ${T}/10${PN}
230 + doins "${T}"/10${PN}
231 +
232 + # install the binaries
233 + into "${VM_INSTALL_DIR}"
234 + dobin bin/*
235 +
236 + # install the libraries
237 + insinto "${VM_INSTALL_DIR}"/lib/vmware
238 + doins -r lib/*
239 +
240 + # Bug 432918
241 + dosym "${VM_INSTALL_DIR}"/lib/vmware/lib/libcrypto.so.0.9.8/libcrypto.so.0.9.8 \
242 + "${VM_INSTALL_DIR}"/lib/vmware/lib/libvmwarebase.so.0/libcrypto.so.0.9.8
243 + dosym "${VM_INSTALL_DIR}"/lib/vmware/lib/libssl.so.0.9.8/libssl.so.0.9.8 \
244 + "${VM_INSTALL_DIR}"/lib/vmware/lib/libvmwarebase.so.0/libssl.so.0.9.8
245 +
246 + # install the ancillaries
247 + insinto /usr
248 + doins -r share
249 +
250 + if use cups; then
251 + exeinto $(cups-config --serverbin)/filter
252 + doexe extras/thnucups
253 +
254 + insinto /etc/cups
255 + doins -r etc/cups/*
256 + fi
257 +
258 + insinto /etc/xdg
259 + doins -r etc/xdg/*
260 +
261 + # install documentation
262 + doman man/man1/vmware.1.gz
263 +
264 + if use doc; then
265 + dodoc doc/*
266 + fi
267 +
268 + insinto "${VM_INSTALL_DIR}"/lib/vmware/setup
269 + doins vmware-config
270 +
271 + # install vmware workstation server
272 + if use server; then
273 + dosbin sbin/*
274 +
275 + cd "${S}"/vmware-workstation-server
276 +
277 + # install binaries
278 + into "${VM_INSTALL_DIR}"/lib/vmware
279 + dobin bin/*
280 +
281 + dobin "${FILESDIR}"/configure-hostd.sh
282 +
283 + dobin "${FILESDIR}"/configure-hostd.sh
284 +
285 + # install the libraries
286 + insinto "${VM_INSTALL_DIR}"/lib/vmware/lib
287 + doins -r lib/*
288 +
289 + into "${VM_INSTALL_DIR}"
290 + for tool in vmware-{hostd,wssc-adminTool} ; do
291 + cat > "${T}/${tool}" <<-EOF
292 + #!/usr/bin/env bash
293 + set -e
294 +
295 + . /etc/vmware/bootstrap
296 +
297 + exec "${VM_INSTALL_DIR}/lib/vmware/lib/wrapper-gtk24.sh" \\
298 + "${VM_INSTALL_DIR}/lib/vmware/lib" \\
299 + "${VM_INSTALL_DIR}/lib/vmware/bin/${tool}" \\
300 + "${VM_INSTALL_DIR}/lib/vmware/libconf" "\$@"
301 + EOF
302 + dobin "${T}/${tool}"
303 + done
304 +
305 + insinto "${VM_INSTALL_DIR}"/lib/vmware
306 + doins -r hostd
307 +
308 + # create the configuration
309 + insinto /etc/vmware/hostd
310 + doins -r config/etc/vmware/hostd/*
311 + doins -r etc/vmware/hostd/*
312 +
313 + insinto /etc/vmware/ssl
314 + doins etc/vmware/ssl/*
315 +
316 + # pam
317 + pamd_mimic_system vmware-authd auth account
318 +
319 + # create directory for shared virtual machines.
320 + keepdir "${VM_DATA_STORE_DIR}"
321 + keepdir /var/log/vmware
322 + fi
323 +
324 + # install vmware-vix
325 + if use vix; then
326 + cd "${S}"/vmware-vix
327 +
328 + # install the binary
329 + into "${VM_INSTALL_DIR}"
330 + dobin bin/*
331 +
332 + # install the libraries
333 + insinto "${VM_INSTALL_DIR}"/lib/vmware-vix
334 + doins -r lib/*
335 +
336 + dosym vmware-vix/libvixAllProducts.so "${VM_INSTALL_DIR}"/lib/libbvixAllProducts.so
337 +
338 + # install headers
339 + insinto /usr/include/vmware-vix
340 + doins include/*
341 +
342 + if use doc; then
343 + dohtml -r doc/*
344 + fi
345 + fi
346 +
347 + # install ovftool
348 + if use ovftool; then
349 + cd "${S}"
350 +
351 + insinto "${VM_INSTALL_DIR}"/lib/vmware-ovftool
352 + doins -r vmware-ovftool/*
353 +
354 + chmod 0755 "${D}${VM_INSTALL_DIR}"/lib/vmware-ovftool/{ovftool,ovftool.bin}
355 + dosym "${D}${VM_INSTALL_DIR}"/lib/vmware-ovftool/ovftool "${VM_INSTALL_DIR}"/bin/ovftool
356 + fi
357 +
358 + # create symlinks for the various tools
359 + local tool ; for tool in thnuclnt vmware vmplayer{,-daemon} licenseTool vmamqpd \
360 + vmware-{acetool,enter-serial,gksu,fuseUI,modconfig{,-console},netcfg,tray,unity-helper,zenity} ; do
361 + dosym appLoader "${VM_INSTALL_DIR}"/lib/vmware/bin/"${tool}"
362 + done
363 + dosym "${VM_INSTALL_DIR}"/lib/vmware/bin/vmplayer "${VM_INSTALL_DIR}"/bin/vmplayer
364 + dosym "${VM_INSTALL_DIR}"/lib/vmware/bin/vmware "${VM_INSTALL_DIR}"/bin/vmware
365 + dosym "${VM_INSTALL_DIR}"/lib/vmware/icu /etc/vmware/icu
366 +
367 + # fix permissions
368 + fperms 0755 "${VM_INSTALL_DIR}"/lib/vmware/bin/{appLoader,fusermount,launcher.sh,mkisofs,vmware-remotemks}
369 + fperms 0755 "${VM_INSTALL_DIR}"/lib/vmware/lib/{wrapper-gtk24.sh,libgksu2.so.0/gksu-run-helper}
370 + fperms 0755 "${VM_INSTALL_DIR}"/lib/vmware/setup/vmware-config
371 + fperms 4711 "${VM_INSTALL_DIR}"/bin/vmware-mount
372 + fperms 4711 "${VM_INSTALL_DIR}"/lib/vmware/bin/vmware-vmx{,-debug,-stats}
373 + if use server; then
374 + fperms 0755 "${VM_INSTALL_DIR}"/lib/vmware/bin/vmware-{hostd,wssc-adminTool}
375 + fperms 4711 "${VM_INSTALL_DIR}"/sbin/vmware-authd
376 + fperms 1777 "${VM_DATA_STORE_DIR}"
377 + fi
378 + if use vix; then
379 + fperms 0755 "${VM_INSTALL_DIR}"/lib/vmware-vix/setup/vmware-config
380 + fi
381 +
382 + # create the environment
383 + local envd="${T}/90vmware"
384 + cat > "${envd}" <<-EOF
385 + PATH='${VM_INSTALL_DIR}/bin'
386 + ROOTPATH='${VM_INSTALL_DIR}/bin'
387 + EOF
388 + doenvd "${envd}"
389 +
390 + # create the configuration
391 + dodir /etc/vmware
392 +
393 + cat > "${D}"/etc/vmware/bootstrap <<-EOF
394 + BINDIR='${VM_INSTALL_DIR}/bin'
395 + LIBDIR='${VM_INSTALL_DIR}/lib'
396 + EOF
397 +
398 + cat > "${D}"/etc/vmware/config <<-EOF
399 + bindir = "${VM_INSTALL_DIR}/bin"
400 + libdir = "${VM_INSTALL_DIR}/lib/vmware"
401 + initscriptdir = "/etc/init.d"
402 + authd.fullpath = "${VM_INSTALL_DIR}/sbin/vmware-authd"
403 + gksu.rootMethod = "su"
404 + VMCI_CONFED = "yes"
405 + VMBLOCK_CONFED = "yes"
406 + VSOCK_CONFED = "yes"
407 + NETWORKING = "yes"
408 + player.product.version = "${major_minor_revision}"
409 + product.version = "${major_minor_revision}"
410 + product.buildNumber = "${build}"
411 + product.name = "VMware Workstation"
412 + workstation.product.version = "${major_minor_revision}"
413 + EOF
414 +
415 + if use vix; then
416 + cat >> "${D}"/etc/vmware/config <<-EOF
417 + vmware.fullpath = "${VM_INSTALL_DIR}/bin/vmware"
418 + vix.libdir = "${VM_INSTALL_DIR}/lib/vmware-vix"
419 + vix.config.version = "1"
420 + EOF
421 + fi
422 +
423 + if use server; then
424 + cat >> "${D}"/etc/vmware/config <<-EOF
425 + authd.client.port = "902"
426 + authd.proxy.nfc = "vmware-hostd:ha-nfc"
427 + authd.soapserver = "TRUE"
428 + EOF
429 + fi
430 +
431 + # install the init.d script
432 + local initscript="${T}/vmware.rc"
433 + sed -e "s:@@BINDIR@@:${VM_INSTALL_DIR}/bin:g" \
434 + "${FILESDIR}/vmware-${major_minor}.rc" > ${initscript}
435 + newinitd "${initscript}" vmware
436 +
437 + if use server; then
438 + # install the init.d script
439 + local initscript="${T}/vmware-workstation-server.rc"
440 + sed -e "s:@@ETCDIR@@:/etc/vmware:g" \
441 + -e "s:@@PREFIX@@:${VM_INSTALL_DIR}:g" \
442 + -e "s:@@BINDIR@@:${VM_INSTALL_DIR}/bin:g" \
443 + -e "s:@@LIBDIR@@:${VM_INSTALL_DIR}/lib/vmware:g" \
444 + "${FILESDIR}/vmware-server-${major_minor}.rc" > ${initscript}
445 + newinitd "${initscript}" vmware-workstation-server
446 + fi
447 +
448 + # fill in variable placeholders
449 + sed -e "s:@@LIBCONF_DIR@@:${VM_INSTALL_DIR}/lib/vmware/libconf:g" \
450 + -i "${D}${VM_INSTALL_DIR}"/lib/vmware/libconf/etc/{gtk-2.0/{gdk-pixbuf.loaders,gtk.immodules},pango/pango{.modules,rc}}
451 + sed -e "s:@@BINARY@@:${VM_INSTALL_DIR}/bin/vmware:g" \
452 + -e "/^Encoding/d" \
453 + -i "${D}/usr/share/applications/${PN}.desktop"
454 + sed -e "s:@@BINARY@@:${VM_INSTALL_DIR}/bin/vmplayer:g" \
455 + -e "/^Encoding/d" \
456 + -i "${D}/usr/share/applications/vmware-player.desktop"
457 + sed -e "s:@@BINARY@@:${VM_INSTALL_DIR}/bin/vmware-netcfg:g" \
458 + -e "/^Encoding/d" \
459 + -i "${D}/usr/share/applications/vmware-netcfg.desktop"
460 +
461 + if use server; then
462 + # Configuration for vmware-workstation-server
463 + local hostdUser="${VM_HOSTD_USER:-root}"
464 + sed -e "/ACEDataUser/s:root:${hostdUser}:g" \
465 + -i "${D}/etc/vmware/hostd/authorization.xml" || die
466 +
467 + # Shared VMs Path: [standard].
468 + sed -e "s:##{DS_NAME}##:standard:g" \
469 + -e "s:##{DS_PATH}##:${VM_DATA_STORE_DIR}:g" \
470 + -i "${D}/etc/vmware/hostd/datastores.xml" || die
471 +
472 + sed -e "s:##{HTTP_PORT}##:-1:g" \
473 + -e "s:##{HTTPS_PORT}##:443:g" \
474 + -e "s:##{PIPE_PREFIX}##:/var/run/vmware/:g" \
475 + -i "${D}/etc/vmware/hostd/proxy.xml" || die
476 +
477 + # See vmware-workstation-server.py for more details.
478 + sed -e "s:##{BUILD_CFGDIR}##:/etc/vmware/hostd/:g" \
479 + -e "s:##{CFGALTDIR}##:/etc/vmware/hostd/:g" \
480 + -e "s:##{CFGDIR}##:/etc/vmware/:g" \
481 + -e "s:##{ENABLE_AUTH}##:true:g" \
482 + -e "s:##{HOSTDMODE}##:ws:g" \
483 + -e "s:##{HOSTD_CFGDIR}##:/etc/vmware/hostd/:g" \
484 + -e "s:##{HOSTD_MOCKUP}##:false:g" \
485 + -e "s:##{LIBDIR}##:${VM_INSTALL_DIR}/lib/vmware:g" \
486 + -e "s:##{LIBDIR_INSTALLED}##:${VM_INSTALL_DIR}/lib/vmware/:g" \
487 + -e "s:##{LOGDIR}##:/var/log/vmware/:g" \
488 + -e "s:##{LOGLEVEL}##:verbose:g" \
489 + -e "s:##{MOCKUP}##:mockup-host-config.xml:g" \
490 + -e "s:##{PLUGINDIR}##:./:g" \
491 + -e "s:##{SHLIB_PREFIX}##:lib:g" \
492 + -e "s:##{SHLIB_SUFFIX}##:.so:g" \
493 + -e "s:##{USE_BLKLISTSVC}##:false:g" \
494 + -e "s:##{USE_CBRCSVC}##:false:g" \
495 + -e "s:##{USE_CIMSVC}##:false:g" \
496 + -e "s:##{USE_DIRECTORYSVC}##:false:g" \
497 + -e "s:##{USE_DIRECTORYSVC_MOCKUP}##:false:g" \
498 + -e "s:##{USE_DYNAMIC_PLUGIN_LOADING}##:false:g" \
499 + -e "s:##{USE_DYNAMO}##:false:g" \
500 + -e "s:##{USE_DYNSVC}##:false:g" \
501 + -e "s:##{USE_GUESTSVC}##:false:g" \
502 + -e "s:##{USE_HBRSVC}##:false:g" \
503 + -e "s:##{USE_HBRSVC_MOCKUP}##:false:g" \
504 + -e "s:##{USE_HOSTSVC_MOCKUP}##:false:g" \
505 + -e "s:##{USE_HTTPNFCSVC}##:false:g" \
506 + -e "s:##{USE_HTTPNFCSVC_MOCKUP}##:false:g" \
507 + -e "s:##{USE_LICENSESVC_MOCKUP}##:false:g" \
508 + -e "s:##{USE_NFCSVC}##:true:g" \
509 + -e "s:##{USE_NFCSVC_MOCKUP}##:false:g" \
510 + -e "s:##{USE_OVFMGRSVC}##:true:g" \
511 + -e "s:##{USE_PARTITIONSVC}##:false:g" \
512 + -e "s:##{USE_SECURESOAP}##:false:g" \
513 + -e "s:##{USE_SNMPSVC}##:false:g" \
514 + -e "s:##{USE_SOLO_MOCKUP}##:false:g" \
515 + -e "s:##{USE_STATSSVC_MOCKUP}##:false:g" \
516 + -e "s:##{USE_VCSVC_MOCKUP}##:false:g" \
517 + -e "s:##{USE_VDISKSVC}##:false:g" \
518 + -e "s:##{USE_VDISKSVC_MOCKUP}##:false:g" \
519 + -e "s:##{USE_VMSVC_MOCKUP}##:false:g" \
520 + -e "s:##{VM_INVENTORY}##:vmInventory.xml:g" \
521 + -e "s:##{VM_RESOURCES}##:vmResources.xml:g" \
522 + -e "s:##{WEBSERVER_PORT_ENTRY}##::g" \
523 + -e "s:##{WORKINGDIR}##:./:g" \
524 + -i "${D}/etc/vmware/hostd/config.xml" || die
525 +
526 + sed -e "s:##{ENV_LOCATION}##:/etc/vmware/hostd/env/:g" \
527 + -i "${D}/etc/vmware/hostd/environments.xml" || die
528 +
529 + # @@VICLIENT_URL@@=XXX
530 + sed -e "s:@@AUTHD_PORT@@:902:g" \
531 + -i "${D}${VM_INSTALL_DIR}/lib/vmware/hostd/docroot/client/clients.xml" || die
532 + fi
533 +
534 + # install systemd unit files
535 + systemd_dounit "${WORKDIR}/systemd-vmware-${SYSTEMD_UNITS_TAG}/"*.{service,target}
536 +
537 + readme.gentoo_create_doc
538 +}
539 +
540 +pkg_config() {
541 + "${VM_INSTALL_DIR}"/bin/vmware-networks --postinstall ${PN},old,new
542 +}
543 +
544 +pkg_preinst() {
545 + gnome2_icon_savelist
546 +}
547 +
548 +pkg_postinst() {
549 + fdo-mime_desktop_database_update
550 + gnome2_icon_cache_update
551 + readme.gentoo_pkg_postinst
552 +}
553 +
554 +pkg_prerm() {
555 + einfo "Stopping ${PN} for safe unmerge"
556 + /etc/init.d/vmware stop
557 +}
558 +
559 +pkg_postrm() {
560 + fdo-mime_desktop_database_update
561 + gnome2_icon_cache_update
562 +}