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