Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-emulation/virtualbox/
Date: Thu, 14 Jul 2016 09:28:43
Message-Id: 1468488501.0caa578caccb6ac7f454a4b2be18f921e8be447e.polynomial-c@gentoo
1 commit: 0caa578caccb6ac7f454a4b2be18f921e8be447e
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jul 14 09:07:08 2016 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Thu Jul 14 09:28:21 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0caa578c
7
8 app-emulation/virtualbox: Bump to version 4.3.38
9
10 Package-Manager: portage-2.3.0
11 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
12
13 app-emulation/virtualbox/Manifest | 1 +
14 app-emulation/virtualbox/virtualbox-4.3.38.ebuild | 422 ++++++++++++++++++++++
15 2 files changed, 423 insertions(+)
16
17 diff --git a/app-emulation/virtualbox/Manifest b/app-emulation/virtualbox/Manifest
18 index b464140..4c2d7ce7 100644
19 --- a/app-emulation/virtualbox/Manifest
20 +++ b/app-emulation/virtualbox/Manifest
21 @@ -1,5 +1,6 @@
22 DIST VirtualBox-4.3.32.tar.bz2 98168101 SHA256 dc5bf4e6f9989792d31bac174d20d7fc9e638654fa5a99c02b20a60557927261 SHA512 856b36cd90647cdceb7e182d066e9e1489d2bae0b71ce8b2f6324cd2d9854806eaea0fe0aad2d4e8b84bd836c688e13258ae69e094320572729b7d886c8d35f0 WHIRLPOOL 441041947dcd190d73a9cc5007bc0001b6eeb36ba958f4a09fca775670faff690423095d334e258fc0d6dcbef01d74a085505c8549397ced5dbe75ca96724144
23 DIST VirtualBox-4.3.36.tar.bz2 98421624 SHA256 af0776df6d03b2709cb76a69f055487bf12bdb3b4163e2a82959860300283046 SHA512 179fd8c7d3562fd6c3c6815ef56a3dbda3fcbb841171f911a923ded06e627fb2e6e33f66124303b448a05c364343ec35e2fb264f462a48e52d66277dfd77bcfc WHIRLPOOL 0419c2baac6f07d729a35a54be872d7949cb6fa99a5ce0f2317df32f27e20e42f045811697e40255f240ec84b08a3a1f36a563841a341a528c37c9e63fda2e6d
24 +DIST VirtualBox-4.3.38.tar.bz2 98437150 SHA256 36f16d435acf04c1dce81df08ba0b522b7c3b10fe48f6ab5b95e9c8404d1f2e5 SHA512 cdde06b26b20bf1f8a9c0ec9607a8d38de3246422a1907978d065b94f69e7b19bc4a9618ac0e3c18cb46b4f3912bfcb87332296ee12d711e8e738f0026f959c4 WHIRLPOOL 15869dc2730ffb8b5dc4d3d01678e889c6e095ea8cee8f607a8b5f9e016f018a0fd8594a2c3279d8f224d4a9e98b161e1e583320d9617b3de0c005774795b08e
25 DIST VirtualBox-5.0.16.tar.bz2 111062984 SHA256 f5a44d33a1db911f445b2eb2d22d9293a96a535cba488b5a235577ef868fa63c SHA512 3da3a227360fb50d299e99770378f65e8cb99525377343fa8faff2360be66643d46f68323d6a8b8d4d26182082f171bb35ab2497167bf6df18827a5ea7742074 WHIRLPOOL ea709057c588f28820790c2b193decba9ee0c57e0f82aa4361ca87aef661315182e18b5ee29558e47ed92f6037eb91befa5390680661a7b9f2248c7819b4a85c
26 DIST VirtualBox-5.0.20.tar.bz2 111231246 SHA256 af9c0787aae22964a1192cefbf9aa91a40c1d41e5fea485adebf09ab922d4c2b SHA512 a039455eed3715b9aa42e2dc6b65ea68b27899c0bcf0065a93c53d1093cce56ebf8a6982cd804208ef9e51794eab9c5c4f3b20550d41532fd4addbd7afda0f8e WHIRLPOOL f74f0a910e5e3f7b1704f57e9831f88b1036efbc61e3b97779f5b2a337ad70d55638b59f356c769d4b6bfd5955348d490f5080b04a3f494f25eb176944756cfd
27 DIST VirtualBox-5.0.24.tar.bz2 111252724 SHA256 9134b04ca21ca23534e2300aab5ab7ff60d21b56bfd2e21504316bfee73afa87 SHA512 81a40c8c76fda02260ff6bbfdc464dcdb1f95155725772cc1edbafe813ca96955714d5bfe0418e2db60c6983b7fa0eb8a32a3833348c314fc0a429f345b3038c WHIRLPOOL aaffc6c3fda0fbdb93c2ba27857b885c45194fa4bc78d7f4939148fc054bc0b8dc26fbf9bdcab3d0e2f4f873e6bfa07479411839ac97aea6d905538fe00daeb0
28
29 diff --git a/app-emulation/virtualbox/virtualbox-4.3.38.ebuild b/app-emulation/virtualbox/virtualbox-4.3.38.ebuild
30 new file mode 100644
31 index 0000000..fd4a1ec
32 --- /dev/null
33 +++ b/app-emulation/virtualbox/virtualbox-4.3.38.ebuild
34 @@ -0,0 +1,422 @@
35 +# Copyright 1999-2016 Gentoo Foundation
36 +# Distributed under the terms of the GNU General Public License v2
37 +# $Id$
38 +
39 +EAPI=5
40 +
41 +PYTHON_COMPAT=( python2_7 )
42 +inherit eutils fdo-mime flag-o-matic java-pkg-opt-2 linux-info multilib pax-utils python-single-r1 qt4-r2 toolchain-funcs udev
43 +
44 +MY_PV="${PV/beta/BETA}"
45 +MY_PV="${MY_PV/rc/RC}"
46 +MY_P=VirtualBox-${MY_PV}
47 +SRC_URI="http://download.virtualbox.org/virtualbox/${MY_PV}/${MY_P}.tar.bz2
48 + https://dev.gentoo.org/~polynomial-c/${PN}/patchsets/${PN}-4.3.16-patches-01.tar.xz"
49 +S="${WORKDIR}/${MY_P}"
50 +
51 +DESCRIPTION="Family of powerful x86 virtualization products for enterprise and home use"
52 +HOMEPAGE="http://www.virtualbox.org/"
53 +
54 +LICENSE="GPL-2"
55 +SLOT="0"
56 +KEYWORDS="~amd64 ~x86"
57 +IUSE="+additions alsa doc extensions headless java libressl pam pulseaudio +opengl python +qt4 +sdk +udev vboxwebsrv vnc"
58 +
59 +RDEPEND="!app-emulation/virtualbox-bin
60 + ~app-emulation/virtualbox-modules-${PV}
61 + dev-libs/libIDL
62 + >=dev-libs/libxslt-1.1.19
63 + net-misc/curl
64 + !libressl? ( dev-libs/openssl:0= )
65 + libressl? ( dev-libs/libressl:= )
66 + dev-libs/libxml2
67 + media-libs/libpng:0=
68 + media-libs/libvpx:0=
69 + sys-libs/zlib
70 + !headless? (
71 + qt4? (
72 + dev-qt/qtgui:4
73 + dev-qt/qtcore:4
74 + opengl? ( dev-qt/qtopengl:4 )
75 + x11-libs/libXinerama
76 + )
77 + opengl? ( virtual/opengl media-libs/freeglut )
78 + x11-libs/libX11
79 + x11-libs/libXcursor
80 + x11-libs/libXext
81 + x11-libs/libXmu
82 + x11-libs/libXt
83 + media-libs/libsdl:0[X,video]
84 + )
85 +
86 + java? ( >=virtual/jre-1.6:= )
87 + udev? ( >=virtual/udev-171 )
88 + vnc? ( >=net-libs/libvncserver-0.9.9 )"
89 +DEPEND="${RDEPEND}
90 + >=dev-util/kbuild-0.1.9998_pre20131130
91 + >=dev-lang/yasm-0.6.2
92 + sys-devel/bin86
93 + sys-power/iasl
94 + pam? ( sys-libs/pam )
95 + sys-libs/libcap
96 + doc? (
97 + dev-texlive/texlive-basic
98 + dev-texlive/texlive-latex
99 + dev-texlive/texlive-latexrecommended
100 + dev-texlive/texlive-latexextra
101 + dev-texlive/texlive-fontsrecommended
102 + dev-texlive/texlive-fontsextra
103 + )
104 + java? ( >=virtual/jre-1.6:= )
105 + virtual/pkgconfig
106 + alsa? ( >=media-libs/alsa-lib-1.0.13 )
107 + !headless? ( x11-libs/libXinerama )
108 + pulseaudio? ( media-sound/pulseaudio )
109 + vboxwebsrv? ( net-libs/gsoap[-gnutls(-)] )
110 + ${PYTHON_DEPS}"
111 +PDEPEND="additions? ( ~app-emulation/virtualbox-additions-${PV} )
112 + extensions? ( =app-emulation/virtualbox-extpack-oracle-${PV}* )"
113 +
114 +QA_TEXTRELS_x86="usr/lib/virtualbox-ose/VBoxGuestPropSvc.so
115 + usr/lib/virtualbox/VBoxSDL.so
116 + usr/lib/virtualbox/VBoxSharedFolders.so
117 + usr/lib/virtualbox/VBoxDD2.so
118 + usr/lib/virtualbox/VBoxOGLrenderspu.so
119 + usr/lib/virtualbox/VBoxPython.so
120 + usr/lib/virtualbox/VBoxDD.so
121 + usr/lib/virtualbox/VBoxDDU.so
122 + usr/lib/virtualbox/VBoxREM64.so
123 + usr/lib/virtualbox/VBoxSharedClipboard.so
124 + usr/lib/virtualbox/VBoxHeadless.so
125 + usr/lib/virtualbox/VBoxRT.so
126 + usr/lib/virtualbox/VBoxREM.so
127 + usr/lib/virtualbox/VBoxSettings.so
128 + usr/lib/virtualbox/VBoxKeyboard.so
129 + usr/lib/virtualbox/VBoxSharedCrOpenGL.so
130 + usr/lib/virtualbox/VBoxVMM.so
131 + usr/lib/virtualbox/VirtualBox.so
132 + usr/lib/virtualbox/VBoxOGLhosterrorspu.so
133 + usr/lib/virtualbox/components/VBoxC.so
134 + usr/lib/virtualbox/components/VBoxSVCM.so
135 + usr/lib/virtualbox/components/VBoxDDU.so
136 + usr/lib/virtualbox/components/VBoxRT.so
137 + usr/lib/virtualbox/components/VBoxREM.so
138 + usr/lib/virtualbox/components/VBoxVMM.so
139 + usr/lib/virtualbox/VBoxREM32.so
140 + usr/lib/virtualbox/VBoxPython2_4.so
141 + usr/lib/virtualbox/VBoxPython2_5.so
142 + usr/lib/virtualbox/VBoxPython2_6.so
143 + usr/lib/virtualbox/VBoxPython2_7.so
144 + usr/lib/virtualbox/VBoxXPCOMC.so
145 + usr/lib/virtualbox/VBoxOGLhostcrutil.so
146 + usr/lib/virtualbox/VBoxNetDHCP.so
147 + usr/lib/virtualbox/VBoxNetNAT.so"
148 +
149 +REQUIRED_USE="
150 + java? ( sdk )
151 + python? (
152 + ( sdk )
153 + )
154 + vboxwebsrv? ( java )
155 + ${PYTHON_REQUIRED_USE}
156 +"
157 +
158 +pkg_setup() {
159 + if ! use headless && ! use qt4 ; then
160 + einfo "No USE=\"qt4\" selected, this build will not include"
161 + einfo "any Qt frontend."
162 + elif use headless && use qt4 ; then
163 + einfo "You selected USE=\"headless qt4\", defaulting to"
164 + einfo "USE=\"headless\", this build will not include any X11/Qt frontend."
165 + fi
166 +
167 + if ! use opengl ; then
168 + einfo "No USE=\"opengl\" selected, this build will lack"
169 + einfo "the OpenGL feature."
170 + fi
171 + if ! use python ; then
172 + einfo "You have disabled the \"python\" USE flag. This will only"
173 + einfo "disable the python bindings being installed."
174 + fi
175 + java-pkg-opt-2_pkg_setup
176 + python-single-r1_pkg_setup
177 +}
178 +
179 +src_prepare() {
180 + # Remove shipped binaries (kBuild,yasm), see bug #232775
181 + rm -rf kBuild/bin tools
182 +
183 + # Remove pointless GCC version limitations in check_gcc()
184 + sed -e "/\s*-o\s*\\\(\s*\$cc_maj\s*-eq\s*[5-9]\s*-a\s*\$cc_min\s*-gt\s*[0-5]\s*\\\)\s*\\\/d" \
185 + -i configure || die
186 +
187 + # Disable things unused or split into separate ebuilds
188 + sed -e "s@MY_LIBDIR@$(get_libdir)@" \
189 + "${FILESDIR}"/${PN}-4-localconfig > LocalConfig.kmk || die
190 +
191 + # Respect LDFLAGS
192 + sed -e "s@_LDFLAGS\.${ARCH}*.*=@& ${LDFLAGS}@g" \
193 + -i Config.kmk src/libs/xpcom18a4/Config.kmk || die
194 +
195 + # Use PAM only when pam USE flag is enbaled (bug #376531)
196 + if ! use pam ; then
197 + elog "Disabling PAM removes the possibility to use the VRDP features."
198 + sed -i 's@^.*VBOX_WITH_PAM@#VBOX_WITH_PAM@' Config.kmk || die
199 + sed -i 's@\(.*/auth/Makefile.kmk.*\)@#\1@' \
200 + src/VBox/HostServices/Makefile.kmk || die
201 + fi
202 +
203 + # add correct java path
204 + if use java ; then
205 + sed "s@/usr/lib/jvm/java-6-sun@$(java-config -O)@" \
206 + -i "${S}"/Config.kmk || die
207 + java-pkg-opt-2_src_prepare
208 + fi
209 +
210 + if ! gcc-specs-pie ; then
211 + EPATCH_EXCLUDE="050_${PN}-4.3.14-nopie.patch"
212 + fi
213 +
214 + EPATCH_SUFFIX="patch" \
215 + EPATCH_FORCE="yes" \
216 + epatch "${WORKDIR}/patches"
217 +
218 + epatch_user
219 +}
220 +
221 +src_configure() {
222 + local myconf
223 + use alsa || myconf+=" --disable-alsa"
224 + use doc || myconf+=" --disable-docs"
225 + use java || myconf+=" --disable-java"
226 + use opengl || myconf+=" --disable-opengl"
227 + use pulseaudio || myconf+=" --disable-pulse"
228 + use python || myconf+=" --disable-python"
229 + use vboxwebsrv && myconf+=" --enable-webservice"
230 + use vnc && myconf+=" --enable-vnc"
231 + if ! use headless ; then
232 + use qt4 || myconf+=" --disable-qt4"
233 + else
234 + myconf+=" --build-headless --disable-opengl"
235 + fi
236 + if use amd64 && ! has_multilib_profile ; then
237 + myconf+=" --disable-vmmraw"
238 + fi
239 + # not an autoconf script
240 + ./configure \
241 + --with-gcc="$(tc-getCC)" \
242 + --with-g++="$(tc-getCXX)" \
243 + --disable-kmods \
244 + --disable-dbus \
245 + --disable-devmapper \
246 + ${myconf} \
247 + || die "configure failed"
248 +}
249 +
250 +src_compile() {
251 + source ./env.sh
252 +
253 + # Force kBuild to respect C[XX]FLAGS and MAKEOPTS (bug #178529)
254 + # and strip all flags
255 + # strip-flags
256 +
257 + MAKEJOBS=$(echo ${MAKEOPTS} | egrep -o '(\-j|\-\-jobs)(=?|[[:space:]]*)[[:digit:]]+')
258 + MAKELOAD=$(echo ${MAKEOPTS} | egrep -o '(\-l|\-\-load-average)(=?|[[:space:]]*)[[:digit:]]+')
259 + MAKEOPTS="${MAKEJOBS} ${MAKELOAD}"
260 + MAKE="kmk" emake \
261 + VBOX_BUILD_PUBLISHER=_Gentoo \
262 + TOOL_GCC3_CC="$(tc-getCC)" TOOL_GCC3_CXX="$(tc-getCXX)" \
263 + TOOL_GCC3_AS="$(tc-getCC)" TOOL_GCC3_AR="$(tc-getAR)" \
264 + TOOL_GCC3_LD="$(tc-getCXX)" TOOL_GCC3_LD_SYSMOD="$(tc-getLD)" \
265 + TOOL_GCC3_CFLAGS="${CFLAGS}" TOOL_GCC3_CXXFLAGS="${CXXFLAGS}" \
266 + VBOX_GCC_OPT="${CXXFLAGS}" \
267 + TOOL_YASM_AS=yasm KBUILD_VERBOSE=2 \
268 + all
269 +}
270 +
271 +src_install() {
272 + cd "${S}"/out/linux.${ARCH}/release/bin || die
273 +
274 + # Create configuration files
275 + insinto /etc/vbox
276 + newins "${FILESDIR}/${PN}-4-config" vbox.cfg
277 +
278 + # Set the right libdir
279 + sed -i \
280 + -e "s@MY_LIBDIR@$(get_libdir)@" \
281 + "${D}"/etc/vbox/vbox.cfg || die "vbox.cfg sed failed"
282 +
283 + # Symlink binaries to the shipped wrapper
284 + exeinto /usr/$(get_libdir)/${PN}
285 + newexe "${FILESDIR}/${PN}-ose-3-wrapper" "VBox"
286 + fowners root:vboxusers /usr/$(get_libdir)/${PN}/VBox
287 + fperms 0750 /usr/$(get_libdir)/${PN}/VBox
288 +
289 + dosym /usr/$(get_libdir)/${PN}/VBox /usr/bin/VBoxManage
290 + dosym /usr/$(get_libdir)/${PN}/VBox /usr/bin/VBoxVRDP
291 + dosym /usr/$(get_libdir)/${PN}/VBox /usr/bin/VBoxHeadless
292 + dosym /usr/$(get_libdir)/${PN}/VBoxTunctl /usr/bin/VBoxTunctl
293 +
294 + # Install binaries and libraries
295 + insinto /usr/$(get_libdir)/${PN}
296 + doins -r components
297 +
298 + if use sdk ; then
299 + doins -r sdk
300 + fi
301 +
302 + if use vboxwebsrv ; then
303 + doins vboxwebsrv
304 + fowners root:vboxusers /usr/$(get_libdir)/${PN}/vboxwebsrv
305 + fperms 0750 /usr/$(get_libdir)/${PN}/vboxwebsrv
306 + dosym /usr/$(get_libdir)/${PN}/VBox /usr/bin/vboxwebsrv
307 + newinitd "${FILESDIR}"/vboxwebsrv-initd vboxwebsrv
308 + newconfd "${FILESDIR}"/vboxwebsrv-confd vboxwebsrv
309 + fi
310 +
311 + local gcfiles="*gc"
312 + if use amd64 && ! has_multilib_profile ; then
313 + gcfiles=""
314 + fi
315 +
316 + for each in VBox{Manage,SVC,XPCOMIPCD,Tunctl,ExtPackHelperApp} *so *r0 ${gcfiles} ; do
317 + doins ${each}
318 + fowners root:vboxusers /usr/$(get_libdir)/${PN}/${each}
319 + fperms 0750 /usr/$(get_libdir)/${PN}/${each}
320 + done
321 +
322 + # VBoxNetAdpCtl and VBoxNetDHCP binaries need to be suid root in any case..
323 + for each in VBoxNet{AdpCtl,DHCP,NAT} ; do
324 + doins ${each}
325 + fowners root:vboxusers /usr/$(get_libdir)/${PN}/${each}
326 + fperms 4750 /usr/$(get_libdir)/${PN}/${each}
327 + done
328 +
329 + # VBoxSVC and VBoxManage need to be pax-marked (bug #403453)
330 + # VBoxXPCOMIPCD (bug #524202)
331 + for each in VBox{Manage,SVC,XPCOMIPCD} ; do
332 + pax-mark -m "${D}"/usr/$(get_libdir)/${PN}/${each}
333 + done
334 +
335 + if ! use headless ; then
336 + doins VBoxSDL
337 + fowners root:vboxusers /usr/$(get_libdir)/${PN}/VBoxSDL
338 + fperms 4750 /usr/$(get_libdir)/${PN}/VBoxSDL
339 + pax-mark -m "${D}"/usr/$(get_libdir)/${PN}/VBoxSDL
340 +
341 + if use opengl && use qt4 ; then
342 + doins VBoxTestOGL
343 + fowners root:vboxusers /usr/$(get_libdir)/${PN}/VBoxTestOGL
344 + fperms 0750 /usr/$(get_libdir)/${PN}/VBoxTestOGL
345 + pax-mark -m "${D}"/usr/$(get_libdir)/${PN}/VBoxTestOGL
346 + fi
347 +
348 + dosym /usr/$(get_libdir)/${PN}/VBox /usr/bin/VBoxSDL
349 +
350 + if use qt4 ; then
351 + doins VirtualBox
352 + fowners root:vboxusers /usr/$(get_libdir)/${PN}/VirtualBox
353 + fperms 4750 /usr/$(get_libdir)/${PN}/VirtualBox
354 + pax-mark -m "${D}"/usr/$(get_libdir)/${PN}/VirtualBox
355 +
356 + dosym /usr/$(get_libdir)/${PN}/VBox /usr/bin/VirtualBox
357 +
358 + newmenu "${FILESDIR}"/${PN}-ose.desktop-2 ${PN}.desktop
359 + fi
360 +
361 + pushd "${S}"/src/VBox/Resources/OSE &>/dev/null || die
362 + for size in 16 32 48 64 128 ; do
363 + newicon -s ${size} ${PN}-${size}px.png ${PN}.png
364 + done
365 + newicon ${PN}-48px.png ${PN}.png
366 + doicon -s scalable ${PN}.svg
367 + popd &>/dev/null || die
368 + fi
369 +
370 + doins VBoxHeadless
371 + fowners root:vboxusers /usr/$(get_libdir)/${PN}/VBoxHeadless
372 + fperms 4750 /usr/$(get_libdir)/${PN}/VBoxHeadless
373 + pax-mark -m "${D}"/usr/$(get_libdir)/${PN}/VBoxHeadless
374 +
375 + insinto /usr/$(get_libdir)/${PN}
376 + # Install EFI Firmware files (bug #320757)
377 + pushd "${S}"/src/VBox/Devices/EFI/FirmwareBin &>/dev/null || die
378 + for fwfile in VBoxEFI{32,64}.fd ; do
379 + doins ${fwfile}
380 + fowners root:vboxusers /usr/$(get_libdir)/${PN}/${fwfile}
381 + done
382 + popd &>/dev/null || die
383 +
384 + if use udev ; then
385 + # New way of handling USB device nodes for VBox (bug #356215)
386 + local udevdir="$(get_udevdir)"
387 + insinto ${udevdir}
388 + doins VBoxCreateUSBNode.sh
389 + fowners root:vboxusers ${udevdir}/VBoxCreateUSBNode.sh
390 + fperms 0750 ${udevdir}/VBoxCreateUSBNode.sh
391 + insinto ${udevdir}/rules.d
392 + doins "${FILESDIR}"/10-virtualbox.rules
393 + sed "s@%UDEVDIR%@${udevdir}@" \
394 + -i "${D}"${udevdir}/rules.d/10-virtualbox.rules || die
395 + fi
396 +
397 + insinto /usr/share/${PN}
398 + if ! use headless && use qt4 ; then
399 + doins -r nls
400 + fi
401 +
402 + # VRDPAuth only works with this (bug #351949)
403 + dosym VBoxAuth.so /usr/$(get_libdir)/${PN}/VRDPAuth.so
404 +
405 + # set an env-variable for 3rd party tools
406 + echo -n "VBOX_APP_HOME=/usr/$(get_libdir)/${PN}" > "${T}/90virtualbox"
407 + doenvd "${T}/90virtualbox"
408 +
409 + if use java ; then
410 + java-pkg_regjar "${D}/usr/$(get_libdir)/${PN}/sdk/bindings/xpcom/java/vboxjxpcom.jar"
411 + java-pkg_regso "${D}/usr/$(get_libdir)/${PN}/libvboxjxpcom.so"
412 + fi
413 +}
414 +
415 +pkg_postinst() {
416 + fdo-mime_desktop_database_update
417 +
418 + if use udev ; then
419 + udevadm control --reload-rules \
420 + && udevadm trigger --subsystem-match=usb
421 + fi
422 +
423 + if ! use headless && use qt4 ; then
424 + elog "To launch VirtualBox just type: \"VirtualBox\"."
425 + fi
426 + elog "You must be in the vboxusers group to use VirtualBox."
427 + elog ""
428 + elog "The latest user manual is available for download at:"
429 + elog "http://download.virtualbox.org/virtualbox/${PV}/UserManual.pdf"
430 + elog ""
431 + elog "For advanced networking setups you should emerge:"
432 + elog "net-misc/bridge-utils and sys-apps/usermode-utilities"
433 + elog ""
434 + elog "IMPORTANT!"
435 + elog "If you upgrade from app-emulation/virtualbox-ose make sure to run"
436 + elog "\"env-update\" as root and logout and relogin as the user you wish"
437 + elog "to run ${PN} as."
438 + elog ""
439 + elog "Starting with version 4.0.0, ${PN} has USB-1 support."
440 + elog "For USB-2 support, PXE-boot ability and VRDP support please emerge"
441 + elog " app-emulation/virtualbox-extpack-oracle"
442 + elog "package."
443 + if ! use udev ; then
444 + elog ""
445 + elog "WARNING!"
446 + elog "Without USE=udev, USB devices will likely not work in ${PN}."
447 + elif [ -e "${ROOT}/etc/udev/rules.d/10-virtualbox.rules" ] ; then
448 + elog ""
449 + elog "Please remove \"${ROOT}/etc/udev/rules.d/10-virtualbox.rules\""
450 + elog "or else USB in ${PN} won't work."
451 + fi
452 +}
453 +
454 +pkg_postrm() {
455 + fdo-mime_desktop_database_update
456 +}