Gentoo Archives: gentoo-commits

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