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-modules/, app-emulation/virtualbox-additions/, ...
Date: Fri, 16 Nov 2018 14:48:22
Message-Id: 1542379688.10c68ecfcbdfda6b511ed4b101bf3885255a5311.polynomial-c@gentoo
1 commit: 10c68ecfcbdfda6b511ed4b101bf3885255a5311
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Fri Nov 16 14:47:27 2018 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Fri Nov 16 14:48:08 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=10c68ecf
7
8 virtualbox packages: Bump to version 6.0.0_beta2
9
10 Package-Manager: Portage-2.3.51, Repoman-2.3.12
11 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
12
13 app-emulation/virtualbox-additions/Manifest | 1 +
14 .../virtualbox-additions-6.0.0_beta2.ebuild | 34 ++
15 app-emulation/virtualbox-bin/Manifest | 3 +
16 .../virtualbox-bin-6.0.0.126642_beta2.ebuild | 287 +++++++++++++
17 app-emulation/virtualbox-extpack-oracle/Manifest | 1 +
18 ...ualbox-extpack-oracle-6.0.0.126642_beta2.ebuild | 43 ++
19 app-emulation/virtualbox-guest-additions/Manifest | 2 +
20 .../virtualbox-guest-additions-6.0.0_beta2.ebuild | 228 ++++++++++
21 app-emulation/virtualbox-modules/Manifest | 1 +
22 .../virtualbox-modules-6.0.0_beta2.ebuild | 52 +++
23 app-emulation/virtualbox/Manifest | 2 +
24 .../virtualbox/virtualbox-6.0.0_beta2.ebuild | 471 +++++++++++++++++++++
25 12 files changed, 1125 insertions(+)
26
27 diff --git a/app-emulation/virtualbox-additions/Manifest b/app-emulation/virtualbox-additions/Manifest
28 index a5da20d59a4..e735dde076c 100644
29 --- a/app-emulation/virtualbox-additions/Manifest
30 +++ b/app-emulation/virtualbox-additions/Manifest
31 @@ -1,3 +1,4 @@
32 DIST VBoxGuestAdditions_5.2.14.iso 57978880 BLAKE2B de5cb3c5b7e2f3ee018588308573389fd973820e87d5b2e6640499c96dc21db95e71eb4e5e2469455febba8b2ccb4a7c6014176e784613218fa7eccabefe9e53 SHA512 1fd878f9e7fc1687907ac8dff6827bfd7aefe3ed48012b0dbbaf42ced21695ce52be6fe146128a6d1c67c7a0c5c39c9ef24e8ee562271fda117d13cca81427cb
33 DIST VBoxGuestAdditions_5.2.20.iso 58013696 BLAKE2B 1a0df07f2a086c41741d884a3eabd43d6f1fee368b143fbae4c8dbc930834fb8d5dd82e8563fe7c9e4c562a58e79c25e9603847d9eca908943e525505bf2f697 SHA512 a8b8f12a8f0b26bb88745d33aa419c45adb4a1e682c3af9a34b0556ac1d8bdf33044253ede41d894e0dba1857f8f3c5cc234006149771a25133c6112ec4aa4c3
34 DIST VBoxGuestAdditions_5.2.22.iso 58013696 BLAKE2B 196f0048b685200328bcf753f3df23eac6477ce863885e93a54951795368bf62bdaa497589001ec203d75809b1f74ebbaa80419406d26bc7db43a131f5b9d698 SHA512 b320174b2f2ef796ac2c9c920579be38f0cedaa037d21992863ac355ecf6e99ae2aea56c70fb2034e9e03afac2cd7297f7717b447a6981701755593110164d37
35 +DIST VBoxGuestAdditions_6.0.0_BETA2.iso 73023488 BLAKE2B 87a756c13686b49e0f80c332e3daf8033a60b65a1e658d6baf8be2e86c38dca7a46371774b8ebc6ffe57ac14ea4ebb83552a3583abb7a63091590f62b963933b SHA512 7588efd3ef578465716adb0f9c277e4fbe9d08ca39c85cae0583cf30dc60036ceb2233ab3e56d17fc168e8c97e7d210517650b79829ece886249bd116a8d22a2
36
37 diff --git a/app-emulation/virtualbox-additions/virtualbox-additions-6.0.0_beta2.ebuild b/app-emulation/virtualbox-additions/virtualbox-additions-6.0.0_beta2.ebuild
38 new file mode 100644
39 index 00000000000..74484529869
40 --- /dev/null
41 +++ b/app-emulation/virtualbox-additions/virtualbox-additions-6.0.0_beta2.ebuild
42 @@ -0,0 +1,34 @@
43 +# Copyright 1999-2018 Gentoo Authors
44 +# Distributed under the terms of the GNU General Public License v2
45 +
46 +EAPI=7
47 +
48 +MY_PN=VBoxGuestAdditions
49 +MY_PV="${PV/beta/BETA}"
50 +MY_PV="${MY_PV/rc/RC}"
51 +MY_P=${MY_PN}_${MY_PV}
52 +
53 +DESCRIPTION="CD image containing guest additions for VirtualBox"
54 +HOMEPAGE="https://www.virtualbox.org/"
55 +SRC_URI="https://download.virtualbox.org/virtualbox/${MY_PV}/${MY_P}.iso"
56 +
57 +LICENSE="GPL-2+ LGPL-2.1+ MIT SGI-B-2.0 CDDL"
58 +SLOT="0"
59 +[[ "${PV}" == *_beta* ]] || [[ "${PV}" == *_rc* ]] || \
60 +KEYWORDS="~amd64 ~x86"
61 +IUSE=""
62 +RESTRICT="mirror"
63 +
64 +RDEPEND="!app-emulation/virtualbox-bin
65 + !=app-emulation/virtualbox-9999"
66 +
67 +S="${WORKDIR}"
68 +
69 +src_unpack() {
70 + return 0
71 +}
72 +
73 +src_install() {
74 + insinto /usr/share/${PN/-additions}
75 + newins "${DISTDIR}"/${MY_P}.iso ${MY_PN}.iso
76 +}
77
78 diff --git a/app-emulation/virtualbox-bin/Manifest b/app-emulation/virtualbox-bin/Manifest
79 index e84bb139e6e..d5b6bb5d2e9 100644
80 --- a/app-emulation/virtualbox-bin/Manifest
81 +++ b/app-emulation/virtualbox-bin/Manifest
82 @@ -1,12 +1,15 @@
83 DIST Oracle_VM_VirtualBox_Extension_Pack-5.2.14-123301.tar.gz 19589209 BLAKE2B 385bdfb4cef67788a1dd3e758f52dab7a367f56ca8d286e465af9a7674ffe3bc0f6187a66d7d19bb8f2a8fc0e23e0ce7ef35ac2d46fd6971dc2df96e8a61ca11 SHA512 a47a7173685b72995e5012386fc8f6c55f9106049a28ecaea223f58f1bb40077e0929cf05102a2588e516fe90891428b8e569ec9351fcaf235eb9f8293e45b92
84 DIST Oracle_VM_VirtualBox_Extension_Pack-5.2.20-125813.tar.gz 19641208 BLAKE2B ffe4e89b88609d575f7e9f5aed5330de5024462ae564684cf3f565b62649d022c8fc9368cfd1685e3e4fc34e9a23cb0651c483f129b533f9afec38bcae89d587 SHA512 df9ae6af9ad1c1106bf8bf0595fdcdd3ec45bc74b90655e762fb18a4c8ea268bed366ce3caaf0f95682577b61b337650a6fe7ef901f6925fa38679ccd885c21c
85 DIST Oracle_VM_VirtualBox_Extension_Pack-5.2.22-126460.tar.gz 19640932 BLAKE2B 162ab40da6b2cd30d00e020666a1f4fb026e29af2ca9d6c36c294e5fa299b61ab8fd147f24d2b500426c768808db2c7693c30e88519e695d7759f8eedf1c52c5 SHA512 85b8552668b6580bea24f051ad861c82b9ba32177fb7fa37fe2980d8bab32a84325d02bfa9c8f55c2021a4000ef2546d8996ca8b99ca7fc19f8281a92108dfb0
86 +DIST Oracle_VM_VirtualBox_Extension_Pack-6.0.0_BETA2-126642.tar.gz 23239583 BLAKE2B f5444d2472152f3f0701f8e4e29f28c6f86fdd95d15c469d84af42bf5d5f4fb226c26dfe9ce152f0fdfe95537213f68897183c9f9519e795312838fcf9a80a2f SHA512 d2b64456558c48688460f874512ce9c08abd06f06a4a1c8d8548cfd8d17c408ba6344390716add606b3a4a519aab59591a8a454ab6384b8082db07fbc37a275d
87 DIST VirtualBox-5.2.14-123301-Linux_amd64.run 88749523 BLAKE2B 5a2791a1258adcdc82f8776fb0d5502d525faa0083b808f1875f0c61b848aa371fa0b6b73ca024c244b36dfb074a8839747ad27a87cb8dfbaad09096a0cec887 SHA512 8c4633ef0e3a9f7f26603009a23244696a6f91baffa9777a0daf8f09abd80b4aca944dabfd2a10acddf4759e64ec719948d73ecaaf187a60a15e097467060ea9
88 DIST VirtualBox-5.2.14-123301-Linux_x86.run 87776718 BLAKE2B 609c24ad2ba5b005f7cb619fbe2c2a82f026a7ae4ef74cda800c526c8c3552a2a1ed1af5a2a2b3d9c56f0dfbcdda493c2cc92b58156cbf41ebfb1d43bfee8aca SHA512 820c2b6c97a48c125b69e1f749a3b1473d5fe672726ae2cec30f20a6652186a28b3900d4aeffca701415275229232925d1c8c347aefa7a86840a2c5bf13f21a7
89 DIST VirtualBox-5.2.20-125813-Linux_amd64.run 88841683 BLAKE2B a3cce78d5a90187ece0eda11032a36096a05b0a7020ec729c07963510db6fa4e436edbf03b5e385d826c7e2ddeae84e4138273b6b5876be2b33c7a8f259753f3 SHA512 28614d71b564e138526cf75662d5e0ce2c083bfa4bc0124f7b0d20532b5a09391d00609a2c003ac5311220c844f2b1fffdee46f53e1018f0df5b6ff1b7a6ba12
90 DIST VirtualBox-5.2.20-125813-Linux_x86.run 87889359 BLAKE2B bc66cf6af5e7a92c642e028bc82830641bed02f5e7daa4c607b165af9f707b3ec359a0ab40f68822472e0087a9a17723de20567f08f14125f8c74d058eecbc88 SHA512 8a7cba49194a7dcb86b3b908e9b8f83d3ad83cfd057e75bda6bb16da1f62ec65e10892696f94f0bc0f4bff4f4f055aa2bdc250e10b46d06b3f8f616000dad48a
91 DIST VirtualBox-5.2.22-126460-Linux_amd64.run 88821201 BLAKE2B 1b0433844247ee9531af915dcbb740183fa29fb296f8c78b4165cc3b48300da71f7d329026983da581ffff0d7b8976a2e5e32d5e948861a557ddfa2437813ea0 SHA512 22b20a68884a114818fcdfe9a459a7c3b1b3598526a74cc66407f5bcdc6eb6bcbe022b820477ccdc081e22349777b73fac9d6126585ee3c8fa0d3d24624006f3
92 DIST VirtualBox-5.2.22-126460-Linux_x86.run 87817677 BLAKE2B 5f11e5f92386c9524869082cf1a5af413c69fe5b36b1ace58887076000c7b928267eb7c3be22282885d6871ccdcee981ec79a526c71f281f0e8ada5858194851 SHA512 32d44b6d691e33a1ee1426cb7a3cb3648722709c588d177951b8be802546faadfd612567981bbbfed3d782b18260e6e638e7879813f3b06bb5a8387b052b0227
93 +DIST VirtualBox-6.0.0_BETA2-126642-Linux_amd64.run 143635921 BLAKE2B 7bc6193bf306dc2e2c8e55b0070020c5854d257aa662f169f3daaa2ea759bf024b0a35a9d21caa8c67c09ef56b78be9700aa2666dfe0d39f28c7750af2db7c5a SHA512 1d17d5abef701554706b0b8cdc83679a112ff6213346bacc84ac8424626e7c6630866921b567f62d074bb6959aa9edfe59e4c559c31c9120b51d6506435b0807
94 +DIST VirtualBox-6.0.0_BETA2-126642-Linux_x86.run 142960077 BLAKE2B 9ae39b14c2371e7c744e02b3ea8819ab5685dca8da65578905090084bed81552a32c392df1804227d5394a56f1e243e0abd51ab49edbaca5055c3cf74093c67a SHA512 846eaa692c87e48541236fb3fa383da6cfa771c37ca430054a7aa79808ef9fc79bf502f10d4244f53acb7a56f7fd01b6b6f0ff7bca672014ab47204ccd098d57
95 DIST VirtualBoxSDK-5.2.14-123301.zip 10154044 BLAKE2B 273219029c59ffd685fffb7e14fff914a5397acc0676c8b4ccaee9cecee51e90880e68d883125e061d6c02e09b53235821ff89a265e937c9b4e67365452a97d2 SHA512 c69e6f537af611b9a4bcbab3e014fa25c6593f754940c6596e451cf895cb088186d037ac4816a3bae793213c774befd54ffa86d43948fa546f753a37fcdabd51
96 DIST VirtualBoxSDK-5.2.20-125813.zip 10152506 BLAKE2B 0a0fe51b22391430b5f67f4dfa24e2985beb364f69acf67f19154bbd5acca00260abdc8ade32c245e1a19340c88ee49776442b036dccdb5f932c052c9701c7e3 SHA512 e87b41bc23de5aae3a368834dc33e4b0eff63e945f81323886491cd6139089c29dc113d5d2144ac76650d501d3a6f0fc858ff2e1afe29df4396ed7cc7552762d
97 DIST VirtualBoxSDK-5.2.22-126460.zip 10154660 BLAKE2B e0a0106f695ca7198d4b2ac5c62bb435fe7934858115dcb3aed57b40d82655bd54cbbae63b279132c23762a227c53affe68131a0bf9452c69dcaf2162b1e4ebf SHA512 1d34b8f7f32602b5656fdb6184e6c35cc54d6ecb36bc41d7df3e154f18c27ea5938635969feb69defe86a53897eee87792514967f15810224ee89e8e523d2b29
98
99 diff --git a/app-emulation/virtualbox-bin/virtualbox-bin-6.0.0.126642_beta2.ebuild b/app-emulation/virtualbox-bin/virtualbox-bin-6.0.0.126642_beta2.ebuild
100 new file mode 100644
101 index 00000000000..88e968c6182
102 --- /dev/null
103 +++ b/app-emulation/virtualbox-bin/virtualbox-bin-6.0.0.126642_beta2.ebuild
104 @@ -0,0 +1,287 @@
105 +# Copyright 1999-2018 Gentoo Authors
106 +# Distributed under the terms of the GNU General Public License v2
107 +
108 +EAPI=6
109 +
110 +PYTHON_COMPAT=( python2_7 )
111 +
112 +inherit xdg-utils gnome2 pax-utils python-r1 udev unpacker eapi7-ver
113 +
114 +MAIN_PV="$(ver_cut 1-3)"
115 +if [[ ${PV} = *_beta* ]] || [[ ${PV} = *_rc* ]] ; then
116 + MY_PV="${MAIN_PV}_$(ver_cut 5-6)"
117 + MY_PV="${MY_PV/beta/BETA}"
118 + MY_PV="${MY_PV/rc/RC}"
119 +else
120 + MY_PV="${MAIN_PV}"
121 + KEYWORDS="~amd64 ~x86"
122 +fi
123 +VBOX_BUILD_ID="$(ver_cut 4)"
124 +VBOX_PV="${MY_PV}-${VBOX_BUILD_ID}"
125 +MY_P="VirtualBox-${VBOX_PV}-Linux"
126 +# needed as sometimes the extpack gets another build ID
127 +EXTP_PV="${VBOX_PV}"
128 +EXTP_PN="Oracle_VM_VirtualBox_Extension_Pack"
129 +EXTP_P="${EXTP_PN}-${EXTP_PV}"
130 +# needed as sometimes the SDK gets another build ID
131 +SDK_PV="${VBOX_PV}"
132 +SDK_P="VirtualBoxSDK-${SDK_PV}"
133 +
134 +DESCRIPTION="Family of powerful x86 virtualization products for enterprise and home use"
135 +HOMEPAGE="https://www.virtualbox.org/"
136 +SRC_URI="amd64? ( https://download.virtualbox.org/virtualbox/${MY_PV}/${MY_P}_amd64.run )
137 + x86? ( https://download.virtualbox.org/virtualbox/${MY_PV}/${MY_P}_x86.run )
138 + https://download.virtualbox.org/virtualbox/${MY_PV}/${EXTP_P}.vbox-extpack -> ${EXTP_P}.tar.gz"
139 +
140 +LICENSE="GPL-2 PUEL"
141 +SLOT="0"
142 +IUSE="+additions +chm headless python vboxwebsrv rdesktop-vrdp"
143 +RESTRICT="mirror"
144 +
145 +if [[ "${PV}" != *beta* ]] ; then
146 + SRC_URI+="
147 + sdk? ( https://download.virtualbox.org/virtualbox/${MY_PV}/${SDK_P}.zip )"
148 + IUSE+=" sdk"
149 +fi
150 +
151 +DEPEND="app-arch/unzip
152 + ${PYTHON_DEPS}"
153 +
154 +RDEPEND="!!app-emulation/virtualbox
155 + !app-emulation/virtualbox-additions
156 + ~app-emulation/virtualbox-modules-${MAIN_PV}
157 + !headless? (
158 + dev-libs/glib
159 + media-libs/fontconfig
160 + media-libs/freetype
161 + media-libs/libpng
162 + media-libs/libsdl[X]
163 + x11-libs/libXcursor
164 + x11-libs/libXext
165 + x11-libs/libXfixes
166 + x11-libs/libXft
167 + x11-libs/libXi
168 + x11-libs/libXinerama
169 + x11-libs/libXrandr
170 + x11-libs/libXrender
171 + chm? ( dev-libs/expat )
172 + )
173 + dev-libs/libxml2
174 + sys-fs/lvm2
175 + x11-libs/libXau
176 + x11-libs/libX11
177 + x11-libs/libXt
178 + x11-libs/libXmu
179 + x11-libs/libSM
180 + x11-libs/libICE
181 + x11-libs/libXdmcp
182 + ${PYTHON_DEPS}"
183 +
184 +REQUIRED_USE="${PYTHON_REQUIRED_USE}"
185 +S="${WORKDIR}"
186 +
187 +QA_PREBUILT="opt/VirtualBox/*"
188 +
189 +PYTHON_UPDATER_IGNORE="1"
190 +
191 +src_unpack() {
192 + unpack_makeself ${MY_P}_${ARCH}.run
193 + unpack ./VirtualBox.tar.bz2
194 +
195 + mkdir "${S}"/${EXTP_PN} || die
196 + pushd "${S}"/${EXTP_PN} &>/dev/null || die
197 + unpack ${EXTP_P}.tar.gz
198 + popd &>/dev/null || die
199 +
200 + if [[ "${PV}" != *beta* ]] && use sdk ; then
201 + unpack VirtualBoxSDK-${SDK_PV}.zip
202 + fi
203 +}
204 +
205 +src_configure() {
206 + :;
207 +}
208 +
209 +src_compile() {
210 + :;
211 +}
212 +
213 +src_install() {
214 + # create virtualbox configurations files
215 + insinto /etc/vbox
216 + newins "${FILESDIR}/${PN}-config" vbox.cfg
217 +
218 + if ! use headless ; then
219 + newmenu "${FILESDIR}"/${PN}.desktop-2 ${PN}.desktop
220 +
221 + # set up symlinks (bug #572012)
222 + dosym ../../../../opt/VirtualBox/virtualbox.xml /usr/share/mime/packages/virtualbox.xml
223 +
224 + local size ico icofile
225 + for size in 16 24 32 48 64 72 96 128 256 ; do
226 + pushd "${S}"/icons/${size}x${size} &>/dev/null || die
227 + if [[ -f "virtualbox.png" ]] ; then
228 + doicon -s ${size} virtualbox.png
229 + fi
230 + for ico in hdd ova ovf vbox{,-extpack} vdi vdh vmdk ; do
231 + icofile="virtualbox-${ico}.png"
232 + if [[ -f "${icofile}" ]] ; then
233 + doicon -s ${size} ${icofile}
234 + fi
235 + done
236 + popd &>/dev/null || die
237 + done
238 + doicon -s scalable "${S}"/icons/scalable/virtualbox.svg
239 + insinto /usr/share/pixmaps
240 + newins "${S}"/icons/48x48/virtualbox.png ${PN}.png
241 + fi
242 +
243 + pushd "${S}"/${EXTP_PN} &>/dev/null || die
244 + insinto /opt/VirtualBox/ExtensionPacks/${EXTP_PN}
245 + doins -r linux.${ARCH}
246 + doins ExtPack* PXE-Intel.rom
247 + popd &>/dev/null || die
248 + rm -rf "${S}"/${EXTP_PN}
249 +
250 + insinto /opt/VirtualBox
251 + dodir /opt/bin
252 +
253 + doins UserManual.pdf
254 +
255 + if [[ "${PV}" != *beta* ]] && use sdk ; then
256 + doins -r sdk
257 + fi
258 +
259 + if use additions; then
260 + doins -r additions
261 + fi
262 +
263 + if use vboxwebsrv; then
264 + doins vboxwebsrv
265 + fowners root:vboxusers /opt/VirtualBox/vboxwebsrv
266 + fperms 0750 /opt/VirtualBox/vboxwebsrv
267 + dosym ../../opt/VirtualBox/VBox.sh /opt/bin/vboxwebsrv
268 + newinitd "${FILESDIR}"/vboxwebsrv-initd vboxwebsrv
269 + newconfd "${FILESDIR}"/vboxwebsrv-confd vboxwebsrv
270 + fi
271 +
272 + if use rdesktop-vrdp; then
273 + doins rdesktop-vrdp
274 + doins -r rdesktop-vrdp-keymaps
275 + fperms 0750 /opt/VirtualBox/rdesktop-vrdp
276 + dosym ../../opt/VirtualBox/rdesktop-vrdp /opt/bin/rdesktop-vrdp
277 + fi
278 +
279 + if ! use headless && use chm; then
280 + doins kchmviewer VirtualBox.chm
281 + fowners root:vboxusers /opt/VirtualBox/kchmviewer
282 + fperms 0750 /opt/VirtualBox/kchmviewer
283 + fi
284 +
285 + # This ebuild / package supports only py2.7. When py3 comes is unknown.
286 + # The compile phase makes VBoxPython2_7.so.
287 + # py3 support would presumably require a binary pre-compiled by py3.
288 + use python && doins VBoxPython.so VBoxPython2_7.so
289 +
290 + rm -rf src rdesktop* deffiles install* routines.sh runlevel.sh \
291 + vboxdrv.sh VBox.sh VBox.png vboxnet.sh additions VirtualBox.desktop \
292 + VirtualBox.tar.bz2 LICENSE VBoxSysInfo.sh rdesktop* vboxwebsrv \
293 + webtest kchmviewer VirtualBox.chm vbox-create-usb-node.sh \
294 + 90-vbox-usb.fdi uninstall.sh vboxshell.py vboxdrv-pardus.py \
295 + VBoxPython?_*.so
296 +
297 + if use headless ; then
298 + rm -rf VBoxSDL VirtualBox VBoxKeyboard.so
299 + fi
300 +
301 + doins -r * || die
302 +
303 + # create symlinks for working around unsupported $ORIGIN/.. in VBoxC.so (setuid)
304 + dosym ../VBoxVMM.so /opt/VirtualBox/components/VBoxVMM.so
305 + dosym ../VBoxREM.so /opt/VirtualBox/components/VBoxREM.so
306 + dosym ../VBoxRT.so /opt/VirtualBox/components/VBoxRT.so
307 + dosym ../VBoxDDU.so /opt/VirtualBox/components/VBoxDDU.so
308 + dosym ../VBoxXPCOM.so /opt/VirtualBox/components/VBoxXPCOM.so
309 +
310 + local each
311 + for each in VBox{Manage,SVC,XPCOMIPCD,Tunctl,NetAdpCtl,NetDHCP,NetNAT,TestOGL,ExtPackHelperApp}; do
312 + fowners root:vboxusers /opt/VirtualBox/${each}
313 + fperms 0750 /opt/VirtualBox/${each}
314 + pax-mark -m "${ED%/}"/opt/VirtualBox/${each}
315 + done
316 + # VBoxNetAdpCtl and VBoxNetDHCP binaries need to be suid root in any case..
317 + fperms 4750 /opt/VirtualBox/VBoxNetAdpCtl
318 + fperms 4750 /opt/VirtualBox/VBoxNetDHCP
319 + fperms 4750 /opt/VirtualBox/VBoxNetNAT
320 +
321 + if ! use headless ; then
322 + # Hardened build: Mark selected binaries set-user-ID-on-execution
323 + for each in VBox{SDL,Headless} VirtualBox; do
324 + fowners root:vboxusers /opt/VirtualBox/${each}
325 + fperms 4510 /opt/VirtualBox/${each}
326 + pax-mark -m "${ED%/}"/opt/VirtualBox/${each}
327 + done
328 +
329 + dosym ../VirtualBox/VBox.sh /opt/bin/VirtualBox
330 + dosym ../VirtualBox/VBox.sh /opt/bin/VBoxSDL
331 + else
332 + # Hardened build: Mark selected binaries set-user-ID-on-execution
333 + fowners root:vboxusers /opt/VirtualBox/VBoxHeadless
334 + fperms 4510 /opt/VirtualBox/VBoxHeadless
335 + pax-mark -m "${ED%/}"/opt/VirtualBox/VBoxHeadless
336 + fi
337 +
338 + exeinto /opt/VirtualBox
339 + newexe "${FILESDIR}/${PN}-3-wrapper" "VBox.sh"
340 + fowners root:vboxusers /opt/VirtualBox/VBox.sh
341 + fperms 0750 /opt/VirtualBox/VBox.sh
342 +
343 + dosym ../VirtualBox/VBox.sh /opt/bin/VBoxManage
344 + dosym ../VirtualBox/VBox.sh /opt/bin/VBoxVRDP
345 + dosym ../VirtualBox/VBox.sh /opt/bin/VBoxHeadless
346 + dosym ../VirtualBox/VBoxTunctl /opt/bin/VBoxTunctl
347 +
348 + # set an env-variable for 3rd party tools
349 + echo -n "VBOX_APP_HOME=/opt/VirtualBox" > "${T}/90virtualbox"
350 + doenvd "${T}/90virtualbox"
351 +
352 + local udevdir="$(get_udevdir)"
353 + insinto ${udevdir}/rules.d
354 + doins "${FILESDIR}"/10-virtualbox.rules
355 + sed "s@%UDEVDIR%@${udevdir}@" \
356 + -i "${ED%/}"${udevdir}/rules.d/10-virtualbox.rules || die
357 + # move udev scripts into ${udevdir} (bug #372491)
358 + mv "${ED%/}"/opt/VirtualBox/VBoxCreateUSBNode.sh "${ED%/}"${udevdir} || die
359 + fperms 0750 ${udevdir}/VBoxCreateUSBNode.sh
360 +}
361 +
362 +pkg_postinst() {
363 + xdg_desktop_database_update
364 +
365 + gnome2_icon_cache_update
366 +
367 + udevadm control --reload-rules && udevadm trigger --subsystem-match=usb
368 +
369 + elog ""
370 + if ! use headless ; then
371 + elog "To launch VirtualBox just type: \"VirtualBox\""
372 + elog ""
373 + fi
374 + elog "You must be in the vboxusers group to use VirtualBox."
375 + elog ""
376 + elog "For advanced networking setups you should emerge:"
377 + elog "net-misc/bridge-utils and sys-apps/usermode-utilities"
378 + elog ""
379 + elog "Please visit http://www.virtualbox.org/wiki/Editions for"
380 + elog "an overview about the different features of ${PN}"
381 + elog "and virtualbox-ose"
382 + if [ -e "${ROOT}/etc/udev/rules.d/10-virtualbox.rules" ] ; then
383 + elog ""
384 + elog "Please remove \"${ROOT}/etc/udev/rules.d/10-virtualbox.rules\""
385 + elog "or else USB in ${PN} won't work."
386 + fi
387 +}
388 +
389 +pkg_postrm() {
390 + xdg_desktop_database_update
391 +}
392
393 diff --git a/app-emulation/virtualbox-extpack-oracle/Manifest b/app-emulation/virtualbox-extpack-oracle/Manifest
394 index 73c9474d6ba..5675fc437b9 100644
395 --- a/app-emulation/virtualbox-extpack-oracle/Manifest
396 +++ b/app-emulation/virtualbox-extpack-oracle/Manifest
397 @@ -1,3 +1,4 @@
398 DIST Oracle_VM_VirtualBox_Extension_Pack-5.2.14-123301.tar.gz 19589209 BLAKE2B 385bdfb4cef67788a1dd3e758f52dab7a367f56ca8d286e465af9a7674ffe3bc0f6187a66d7d19bb8f2a8fc0e23e0ce7ef35ac2d46fd6971dc2df96e8a61ca11 SHA512 a47a7173685b72995e5012386fc8f6c55f9106049a28ecaea223f58f1bb40077e0929cf05102a2588e516fe90891428b8e569ec9351fcaf235eb9f8293e45b92
399 DIST Oracle_VM_VirtualBox_Extension_Pack-5.2.20-125813.tar.gz 19641208 BLAKE2B ffe4e89b88609d575f7e9f5aed5330de5024462ae564684cf3f565b62649d022c8fc9368cfd1685e3e4fc34e9a23cb0651c483f129b533f9afec38bcae89d587 SHA512 df9ae6af9ad1c1106bf8bf0595fdcdd3ec45bc74b90655e762fb18a4c8ea268bed366ce3caaf0f95682577b61b337650a6fe7ef901f6925fa38679ccd885c21c
400 DIST Oracle_VM_VirtualBox_Extension_Pack-5.2.22-126460.tar.gz 19640932 BLAKE2B 162ab40da6b2cd30d00e020666a1f4fb026e29af2ca9d6c36c294e5fa299b61ab8fd147f24d2b500426c768808db2c7693c30e88519e695d7759f8eedf1c52c5 SHA512 85b8552668b6580bea24f051ad861c82b9ba32177fb7fa37fe2980d8bab32a84325d02bfa9c8f55c2021a4000ef2546d8996ca8b99ca7fc19f8281a92108dfb0
401 +DIST Oracle_VM_VirtualBox_Extension_Pack-6.0.0_BETA2-126642.tar.gz 23239583 BLAKE2B f5444d2472152f3f0701f8e4e29f28c6f86fdd95d15c469d84af42bf5d5f4fb226c26dfe9ce152f0fdfe95537213f68897183c9f9519e795312838fcf9a80a2f SHA512 d2b64456558c48688460f874512ce9c08abd06f06a4a1c8d8548cfd8d17c408ba6344390716add606b3a4a519aab59591a8a454ab6384b8082db07fbc37a275d
402
403 diff --git a/app-emulation/virtualbox-extpack-oracle/virtualbox-extpack-oracle-6.0.0.126642_beta2.ebuild b/app-emulation/virtualbox-extpack-oracle/virtualbox-extpack-oracle-6.0.0.126642_beta2.ebuild
404 new file mode 100644
405 index 00000000000..a3fc85c66fa
406 --- /dev/null
407 +++ b/app-emulation/virtualbox-extpack-oracle/virtualbox-extpack-oracle-6.0.0.126642_beta2.ebuild
408 @@ -0,0 +1,43 @@
409 +# Copyright 1999-2018 Gentoo Authors
410 +# Distributed under the terms of the GNU General Public License v2
411 +
412 +EAPI=7
413 +
414 +inherit multilib
415 +
416 +MAIN_PV="$(ver_cut 1-3)"
417 +if [[ ${PV} = *_beta* ]] || [[ ${PV} = *_rc* ]] ; then
418 + MY_PV="${MAIN_PV}_$(ver_cut 5-6)"
419 + DEP_PV="${MY_PV}"
420 + MY_PV="${MY_PV/beta/BETA}"
421 + MY_PV="${MY_PV/rc/RC}"
422 +else
423 + MY_PV="${MAIN_PV}"
424 + DEP_PV="${MAIN_PV}"
425 +fi
426 +VBOX_BUILD_ID="$(ver_cut 4)"
427 +MY_PN="Oracle_VM_VirtualBox_Extension_Pack"
428 +MY_P="${MY_PN}-${MY_PV}-${VBOX_BUILD_ID}"
429 +
430 +DESCRIPTION="PUEL extensions for VirtualBox"
431 +HOMEPAGE="https://www.virtualbox.org/"
432 +SRC_URI="https://download.virtualbox.org/virtualbox/${MY_PV}/${MY_P}.vbox-extpack -> ${MY_P}.tar.gz"
433 +
434 +LICENSE="PUEL"
435 +SLOT="0"
436 +[[ "${PV}" == *_beta* ]] || [[ "${PV}" == *_rc* ]] || \
437 +KEYWORDS="~amd64 ~x86"
438 +IUSE=""
439 +RESTRICT="mirror strip"
440 +
441 +RDEPEND="~app-emulation/virtualbox-${DEP_PV}"
442 +
443 +S="${WORKDIR}"
444 +
445 +QA_PREBUILT="/usr/lib*/virtualbox/ExtensionPacks/${MY_PN}/.*"
446 +
447 +src_install() {
448 + insinto /usr/$(get_libdir)/virtualbox/ExtensionPacks/${MY_PN}
449 + doins -r linux.${ARCH}
450 + doins ExtPack* PXE-Intel.rom
451 +}
452
453 diff --git a/app-emulation/virtualbox-guest-additions/Manifest b/app-emulation/virtualbox-guest-additions/Manifest
454 index 1f0d9511807..cef5467df51 100644
455 --- a/app-emulation/virtualbox-guest-additions/Manifest
456 +++ b/app-emulation/virtualbox-guest-additions/Manifest
457 @@ -1,5 +1,7 @@
458 DIST VirtualBox-5.2.14.tar.bz2 118597539 BLAKE2B 5e0a8d92405378eb438cae375041609f7a0e1288b040d3a0bcc06157f16ddd48b3537f2f026aa12a71c5319bdef56d6f3907785ac51ebe05a8b7143e04f22d0a SHA512 b8202eccd83e9f2c92a77548d003082b6b3ff7838bb32ae48c3a25dcd622bfdc8ceca42cc49b855eeabf4439c55ad42df9b3959dd1bab77de154468e139c904e
459 DIST VirtualBox-5.2.20.tar.bz2 118760364 BLAKE2B 7a5f72340796d3278ef5f3210f4b25bf4d999ec93cdd0449853faf68b38c45a6ffd00fe2c88f12296029882f7715c012d1793cfff9d1c2441aa4db414fa3225e SHA512 ff039e487c43b584c5c5959df1622151d82f6c39101af869262f800d07e68a68005ed442112e36ebe249ed79de34c0b974bbd43e7889a5d40df2ebe7dec77a15
460 DIST VirtualBox-5.2.22.tar.bz2 118757134 BLAKE2B be795cdbfb09d3d443f63e190b63898239622f5a57aefdd90f382d9a849d09cc1abc2624071fbc60b2c04a12f33376184540cc362c19225733f99a3bcc8ff6a3 SHA512 4f6c4611a3114778f45419587dc1519ca07410c1ea6474cdb18ecd3b068639a4fdac3f25146fe9b8e006e30f19eba134ce9f665182008b033f6f78497e1ea722
461 +DIST VirtualBox-6.0.0_BETA2.tar.bz2 150947619 BLAKE2B 53ed4cfea4a9e62cb8ba68089e3b6cea04b33950496e8aa945591f0d30bb69bbf02428b6bd6dd67afbc916d612b0135ea10124741c0538b917749f46935cf834 SHA512 10f7bd5c7c14d79ed1bf4662fce76d66f4f61bba1a9c8c7dfff57dad2dd6eaf2ae03911fdc994d53769f872079d7a04a1732126fc1aa9907237cbdccefda3348
462 DIST virtualbox-5.2.12-patches-01.tar.xz 2616 BLAKE2B 5731484d185414d83588ee227bbc1eef266451d1a3a710adf1b769cd6404ef1750dba7a60549f2ab9f3fb81ef15809db9ea0190127caefc72d7bc9bb8b741fb0 SHA512 712b55392a8e8357e95abb42ea4f8dac3391ecbf9cbecf27c7dbf674c40f42a1eb19d227a1b3adcf621384a9f64a6438d20fb43866c736189097fb5770c5c654
463 DIST virtualbox-5.2.16-patches-02.tar.xz 3152 BLAKE2B c8d8f3872f544a465c7d1aa07291599307120ac9eabfb299ddd788a11f85ca6c2d84b8e7306ee4ad436270dad0dd39f101ee68a549eac15afd1e3cdc03f23c6c SHA512 85ee8c4045de562d71ab2d761695ea48b6726a6f0c4bcaa2562bb0d147542d3f1a1b5b47cf593a7f22dac1b86f87b59a56bef421dce3e1fa8e5260cd41998450
464 +DIST virtualbox-6.0.0_beta2-patches-01.tar.xz 2924 BLAKE2B fd2dd4bca69adbdcdc3f3035e86b84773c8e884cc36c78ba74047a0c5d971c2a74b47c284a321d144ee9ece058beba7909e978c12f6a22e9568d370075681a13 SHA512 d7db90a7975fd452e53219175b8eb21a3b09916bf0b2dba687ff7543cbacf9f24cc35156c0f19d4c3d98f8003e386db2d68e8d953226930bdae82b12cdc3c0e9
465
466 diff --git a/app-emulation/virtualbox-guest-additions/virtualbox-guest-additions-6.0.0_beta2.ebuild b/app-emulation/virtualbox-guest-additions/virtualbox-guest-additions-6.0.0_beta2.ebuild
467 new file mode 100644
468 index 00000000000..978d1681f8b
469 --- /dev/null
470 +++ b/app-emulation/virtualbox-guest-additions/virtualbox-guest-additions-6.0.0_beta2.ebuild
471 @@ -0,0 +1,228 @@
472 +# Copyright 1999-2018 Gentoo Authors
473 +# Distributed under the terms of the GNU General Public License v2
474 +
475 +EAPI=7
476 +
477 +inherit linux-mod systemd user toolchain-funcs
478 +
479 +MY_PV="${PV/beta/BETA}"
480 +MY_PV="${MY_PV/rc/RC}"
481 +MY_P="VirtualBox-${MY_PV}"
482 +DESCRIPTION="VirtualBox kernel modules and user-space tools for Gentoo guests"
483 +HOMEPAGE="https://www.virtualbox.org/"
484 +SRC_URI="https://download.virtualbox.org/virtualbox/${MY_PV}/${MY_P}.tar.bz2
485 + https://dev.gentoo.org/~polynomial-c/virtualbox/patchsets/virtualbox-6.0.0_beta2-patches-01.tar.xz"
486 +
487 +LICENSE="GPL-2"
488 +SLOT="0"
489 +[[ "${PV}" == *_beta* ]] || [[ "${PV}" == *_rc* ]] || \
490 +KEYWORDS="~amd64 ~x86"
491 +IUSE="X"
492 +
493 +RDEPEND="
494 + X? ( x11-apps/xrandr
495 + x11-apps/xrefresh
496 + x11-libs/libXmu
497 + x11-libs/libX11
498 + x11-libs/libXt
499 + x11-libs/libXext
500 + x11-libs/libXau
501 + x11-libs/libXdmcp
502 + x11-libs/libSM
503 + x11-libs/libICE )
504 + sys-apps/dbus
505 +"
506 +DEPEND="
507 + ${RDEPEND}
508 + >=dev-util/kbuild-0.1.9998.3127
509 + >=dev-lang/yasm-0.6.2
510 + sys-devel/bin86
511 + sys-libs/pam
512 + sys-power/iasl
513 + x11-base/xorg-proto
514 +"
515 +PDEPEND="
516 + X? ( x11-drivers/xf86-video-vboxvideo )
517 +"
518 +BUILD_TARGETS="all"
519 +BUILD_TARGET_ARCH="${ARCH}"
520 +
521 +S="${WORKDIR}/${MY_P}"
522 +
523 +pkg_setup() {
524 + MODULE_NAMES="vboxguest(misc:${WORKDIR}/vboxguest:${WORKDIR}/vboxguest)
525 + vboxsf(misc:${WORKDIR}/vboxsf:${WORKDIR}/vboxsf)"
526 + use X && MODULE_NAMES+=" vboxvideo(misc:${WORKDIR}/vboxvideo::${WORKDIR}/vboxvideo)"
527 +
528 + linux-mod_pkg_setup
529 + BUILD_PARAMS="KERN_DIR=/lib/modules/${KV_FULL}/build KERNOUT=${KV_OUT_DIR}"
530 +}
531 +
532 +src_unpack() {
533 + unpack ${A}
534 +
535 + # Create and unpack a tarball with the sources of the Linux guest
536 + # kernel modules, to include all the needed files
537 + "${S}"/src/VBox/Additions/linux/export_modules.sh "${WORKDIR}/vbox-kmod.tar.gz"
538 + unpack ./vbox-kmod.tar.gz
539 +
540 + # Remove shipped binaries (kBuild,yasm), see bug #232775
541 + cd "${S}"
542 + rm -rf kBuild/bin tools
543 +}
544 +
545 +src_prepare() {
546 + # PaX fixes (see bug #298988)
547 + pushd "${WORKDIR}" &>/dev/null || die
548 + eapply "${FILESDIR}"/vboxguest-4.1.0-log-use-c99.patch
549 + popd &>/dev/null || die
550 +
551 + # Disable things unused or splitted into separate ebuilds
552 + cp "${FILESDIR}/${PN}-5-localconfig" LocalConfig.kmk || die
553 + use X || echo "VBOX_WITH_X11_ADDITIONS :=" >> LocalConfig.kmk
554 +
555 + # stupid new header references...
556 + local vboxheader mdir
557 + for vboxheader in {product,revision,version}-generated.h ; do
558 + for mdir in vbox{guest,sf} ; do
559 + ln -sf "${S}"/out/linux.${ARCH}/release/${vboxheader} \
560 + "${WORKDIR}/${mdir}/${vboxheader}"
561 + done
562 + done
563 +
564 + # Remove pointless GCC version check
565 + sed -e '/^check_gcc$/d' -i configure || die
566 +
567 + eapply "${WORKDIR}/patches"
568 +
569 + eapply_user
570 +}
571 +
572 +src_configure() {
573 + # build the user-space tools, warnings are harmless
574 + local cmd=(
575 + ./configure
576 + --nofatal
577 + --disable-xpcom
578 + --disable-sdl-ttf
579 + --disable-pulse
580 + --disable-alsa
581 + --with-gcc="$(tc-getCC)"
582 + --with-g++="$(tc-getCXX)"
583 + --target-arch=${ARCH}
584 + --with-linux="${KV_OUT_DIR}"
585 + --build-headless
586 + )
587 + echo "${cmd[@]}"
588 + "${cmd[@]}" || die "configure failed"
589 + source ./env.sh
590 + export VBOX_GCC_OPT="${CFLAGS} ${CPPFLAGS}"
591 +}
592 +
593 +src_compile() {
594 + MAKE="kmk" \
595 + emake TOOL_YASM_AS=yasm \
596 + VBOX_ONLY_ADDITIONS=1 \
597 + KBUILD_VERBOSE=2
598 +
599 + # Now creating the kernel modules. We must do this _after_
600 + # we compiled the user-space tools as we need two of the
601 + # automatically generated header files. (>=3.2.0)
602 + linux-mod_src_compile
603 +}
604 +
605 +src_install() {
606 + linux-mod_src_install
607 +
608 + cd "${S}"/out/linux.${ARCH}/release/bin/additions || die
609 +
610 + insinto /sbin
611 + newins mount.vboxsf mount.vboxsf
612 + fperms 4755 /sbin/mount.vboxsf
613 +
614 + newinitd "${FILESDIR}"/${PN}-8.initd ${PN}
615 +
616 + insinto /usr/sbin/
617 + newins VBoxService vboxguest-service
618 + fperms 0755 /usr/sbin/vboxguest-service
619 +
620 + insinto /usr/bin
621 + doins VBoxControl
622 + fperms 0755 /usr/bin/VBoxControl
623 +
624 + # VBoxClient user service and xrandr wrapper
625 + if use X ; then
626 + doins VBoxClient
627 + fperms 0755 /usr/bin/VBoxClient
628 +
629 + pushd "${S}"/src/VBox/Additions/x11/Installer &>/dev/null \
630 + || die
631 + newins 98vboxadd-xclient VBoxClient-all
632 + fperms 0755 /usr/bin/VBoxClient-all
633 + popd &>/dev/null || die
634 + fi
635 +
636 + # udev rule for vboxdrv
637 + local udev_rules_dir="/lib/udev/rules.d"
638 + dodir ${udev_rules_dir}
639 + echo 'KERNEL=="vboxguest", OWNER="vboxguest", GROUP="vboxguest", MODE="0660"' \
640 + >> "${ED%/}/${udev_rules_dir}/60-virtualbox-guest-additions.rules" \
641 + || die
642 + echo 'KERNEL=="vboxuser", OWNER="vboxguest", GROUP="vboxguest", MODE="0660"' \
643 + >> "${ED%/}/${udev_rules_dir}/60-virtualbox-guest-additions.rules" \
644 + || die
645 +
646 + # VBoxClient autostart file
647 + insinto /etc/xdg/autostart
648 + doins "${FILESDIR}"/vboxclient.desktop
649 +
650 + # sample xorg.conf
651 + insinto /usr/share/doc/${PF}
652 + doins "${FILESDIR}"/xorg.conf.vbox
653 +
654 + systemd_dounit "${FILESDIR}/${PN}.service"
655 +}
656 +
657 +pkg_preinst() {
658 + enewgroup vboxguest
659 + enewuser vboxguest -1 /bin/sh /dev/null vboxguest
660 + # automount Error: VBoxServiceAutoMountWorker: Group "vboxsf" does not exist
661 + enewgroup vboxsf
662 +}
663 +
664 +pkg_postinst() {
665 + linux-mod_pkg_postinst
666 + if ! use X ; then
667 + elog "use flag X is off, enable it to install the"
668 + elog "X Window System video driver."
669 + fi
670 + elog ""
671 + elog "Please add users to the \"vboxguest\" group so they can"
672 + elog "benefit from seamless mode, auto-resize and clipboard."
673 + elog ""
674 + elog "The vboxsf group has been added to make automount services work."
675 + elog "These services are part of the shared folders support."
676 + elog ""
677 + elog "Please add:"
678 + elog "/etc/init.d/${PN}"
679 + elog "to the default runlevel in order to start"
680 + elog "needed services."
681 + elog "To use the VirtualBox X driver, use the following"
682 + elog "file as your /etc/X11/xorg.conf:"
683 + elog " /usr/share/doc/${PF}/xorg.conf.vbox"
684 + elog ""
685 + elog "Also make sure you use the Mesa library for OpenGL:"
686 + elog " eselect opengl set xorg-x11"
687 + elog ""
688 + elog "An autostart .desktop file has been installed to start"
689 + elog "VBoxClient in desktop sessions."
690 + elog ""
691 + elog "You can mount shared folders with:"
692 + elog " mount -t vboxsf <shared_folder_name> <mount_point>"
693 + elog ""
694 + elog "Warning:"
695 + elog "this ebuild is only needed if you are running gentoo"
696 + elog "inside a VirtualBox Virtual Machine, you don't need"
697 + elog "it to run VirtualBox itself."
698 + elog ""
699 +}
700
701 diff --git a/app-emulation/virtualbox-modules/Manifest b/app-emulation/virtualbox-modules/Manifest
702 index addce0f49e0..36177aeda6a 100644
703 --- a/app-emulation/virtualbox-modules/Manifest
704 +++ b/app-emulation/virtualbox-modules/Manifest
705 @@ -1,3 +1,4 @@
706 DIST vbox-kernel-module-src-5.2.14.tar.xz 637352 BLAKE2B 7ccefbb13f25fe995e0f769192a93baa91358c09e7126d6a6c8bef7fceeab50082f78843140d23cf88c4931c561552c4131b17625e7a3821766571387d78d2a3 SHA512 920eca67fb10ed4d1eeab95b14e65c585dd96df82a4690c34c9d85366ec6dd9835f9a772eb4718a80e6ffb2637de2a698151a6bdfd7984fc2070cd0bade5c077
707 DIST vbox-kernel-module-src-5.2.20.tar.xz 638452 BLAKE2B f8fa29e21a77ebfec765ce0e006aaba9fdc76773e216d0c24c705e688730598e85b2c191406acd376f4020c67e296b6f22b0acecb7f15f3e343233b4a7da62fa SHA512 5378be30ab697ded6c07e74b15a38331914b19f72c55847e92e6e89541c25d89aeb6020aaaa3820e84902efb10a5b7ba7190a5271da93cd490b25fcbd787bf28
708 DIST vbox-kernel-module-src-5.2.22.tar.xz 638492 BLAKE2B 71aba29b056bb3dfeffbf4632fbf7f15d89b988267ba24c766b78b1d9c50a4d27fb1b8e699108b973af68024f9f77ca0a8ad787355d7342fe1400f14189487ff SHA512 3361bb536af8e8d490377be04d1b1b9af478538e23ec409d3e0205ad930c16e5228c57ae7d92d214ac533ae64298d9eaff3c9284ff9bb308108d1ad7d69fb507
709 +DIST vbox-kernel-module-src-6.0.0_beta2.tar.xz 664280 BLAKE2B b309b38cfb3986ed9efa38e70998977d14d79b4b8b6796e735be16c957cc7248714eb94e14b6a7ec8be2f7b7ccf555fb556bd8884bfe66d599a23742ed40a8fe SHA512 56267c1c37f1c4cd549777c53533fa7063f95df47d59eaa890f6fda90dddaa768c8cb51313591ba5d3509e5c59597062866efba492a55d8554dafd95b316e42e
710
711 diff --git a/app-emulation/virtualbox-modules/virtualbox-modules-6.0.0_beta2.ebuild b/app-emulation/virtualbox-modules/virtualbox-modules-6.0.0_beta2.ebuild
712 new file mode 100644
713 index 00000000000..7d8c894ee38
714 --- /dev/null
715 +++ b/app-emulation/virtualbox-modules/virtualbox-modules-6.0.0_beta2.ebuild
716 @@ -0,0 +1,52 @@
717 +# Copyright 1999-2018 Gentoo Authors
718 +# Distributed under the terms of the GNU General Public License v2
719 +
720 +# XXX: the tarball here is just the kernel modules split out of the binary
721 +# package that comes from virtualbox-bin
722 +
723 +EAPI=7
724 +
725 +inherit linux-mod user
726 +
727 +MY_P="vbox-kernel-module-src-${PV}"
728 +DESCRIPTION="Kernel Modules for Virtualbox"
729 +HOMEPAGE="https://www.virtualbox.org/"
730 +SRC_URI="https://dev.gentoo.org/~polynomial-c/virtualbox/${MY_P}.tar.xz"
731 +
732 +LICENSE="GPL-2"
733 +SLOT="0"
734 +[[ "${PV}" == *_beta* ]] || [[ "${PV}" == *_rc* ]] || \
735 +KEYWORDS="~amd64 ~x86"
736 +IUSE="pax_kernel"
737 +
738 +RDEPEND="!=app-emulation/virtualbox-9999"
739 +
740 +S="${WORKDIR}"
741 +
742 +BUILD_TARGETS="all"
743 +BUILD_TARGET_ARCH="${ARCH}"
744 +MODULE_NAMES="vboxdrv(misc:${S}) vboxnetflt(misc:${S}) vboxnetadp(misc:${S}) vboxpci(misc:${S})"
745 +
746 +pkg_setup() {
747 + enewgroup vboxusers
748 + linux-mod_pkg_setup
749 + BUILD_PARAMS="CC=$(tc-getBUILD_CC) KERN_DIR=${KV_DIR} KERN_VER=${KV_FULL} O=${KV_OUT_DIR} V=1 KBUILD_VERBOSE=1"
750 +}
751 +
752 +src_prepare() {
753 + if use pax_kernel && kernel_is -ge 3 0 0 ; then
754 + eapply -p0 "${FILESDIR}"/${PN}-5.2.8-pax-const.patch
755 + fi
756 +
757 + default
758 +}
759 +
760 +src_install() {
761 + linux-mod_src_install
762 + insinto /usr/lib/modules-load.d/
763 + doins "${FILESDIR}"/virtualbox.conf
764 +}
765 +
766 +pkg_postinst() {
767 + linux-mod_pkg_postinst
768 +}
769
770 diff --git a/app-emulation/virtualbox/Manifest b/app-emulation/virtualbox/Manifest
771 index 1f0d9511807..cef5467df51 100644
772 --- a/app-emulation/virtualbox/Manifest
773 +++ b/app-emulation/virtualbox/Manifest
774 @@ -1,5 +1,7 @@
775 DIST VirtualBox-5.2.14.tar.bz2 118597539 BLAKE2B 5e0a8d92405378eb438cae375041609f7a0e1288b040d3a0bcc06157f16ddd48b3537f2f026aa12a71c5319bdef56d6f3907785ac51ebe05a8b7143e04f22d0a SHA512 b8202eccd83e9f2c92a77548d003082b6b3ff7838bb32ae48c3a25dcd622bfdc8ceca42cc49b855eeabf4439c55ad42df9b3959dd1bab77de154468e139c904e
776 DIST VirtualBox-5.2.20.tar.bz2 118760364 BLAKE2B 7a5f72340796d3278ef5f3210f4b25bf4d999ec93cdd0449853faf68b38c45a6ffd00fe2c88f12296029882f7715c012d1793cfff9d1c2441aa4db414fa3225e SHA512 ff039e487c43b584c5c5959df1622151d82f6c39101af869262f800d07e68a68005ed442112e36ebe249ed79de34c0b974bbd43e7889a5d40df2ebe7dec77a15
777 DIST VirtualBox-5.2.22.tar.bz2 118757134 BLAKE2B be795cdbfb09d3d443f63e190b63898239622f5a57aefdd90f382d9a849d09cc1abc2624071fbc60b2c04a12f33376184540cc362c19225733f99a3bcc8ff6a3 SHA512 4f6c4611a3114778f45419587dc1519ca07410c1ea6474cdb18ecd3b068639a4fdac3f25146fe9b8e006e30f19eba134ce9f665182008b033f6f78497e1ea722
778 +DIST VirtualBox-6.0.0_BETA2.tar.bz2 150947619 BLAKE2B 53ed4cfea4a9e62cb8ba68089e3b6cea04b33950496e8aa945591f0d30bb69bbf02428b6bd6dd67afbc916d612b0135ea10124741c0538b917749f46935cf834 SHA512 10f7bd5c7c14d79ed1bf4662fce76d66f4f61bba1a9c8c7dfff57dad2dd6eaf2ae03911fdc994d53769f872079d7a04a1732126fc1aa9907237cbdccefda3348
779 DIST virtualbox-5.2.12-patches-01.tar.xz 2616 BLAKE2B 5731484d185414d83588ee227bbc1eef266451d1a3a710adf1b769cd6404ef1750dba7a60549f2ab9f3fb81ef15809db9ea0190127caefc72d7bc9bb8b741fb0 SHA512 712b55392a8e8357e95abb42ea4f8dac3391ecbf9cbecf27c7dbf674c40f42a1eb19d227a1b3adcf621384a9f64a6438d20fb43866c736189097fb5770c5c654
780 DIST virtualbox-5.2.16-patches-02.tar.xz 3152 BLAKE2B c8d8f3872f544a465c7d1aa07291599307120ac9eabfb299ddd788a11f85ca6c2d84b8e7306ee4ad436270dad0dd39f101ee68a549eac15afd1e3cdc03f23c6c SHA512 85ee8c4045de562d71ab2d761695ea48b6726a6f0c4bcaa2562bb0d147542d3f1a1b5b47cf593a7f22dac1b86f87b59a56bef421dce3e1fa8e5260cd41998450
781 +DIST virtualbox-6.0.0_beta2-patches-01.tar.xz 2924 BLAKE2B fd2dd4bca69adbdcdc3f3035e86b84773c8e884cc36c78ba74047a0c5d971c2a74b47c284a321d144ee9ece058beba7909e978c12f6a22e9568d370075681a13 SHA512 d7db90a7975fd452e53219175b8eb21a3b09916bf0b2dba687ff7543cbacf9f24cc35156c0f19d4c3d98f8003e386db2d68e8d953226930bdae82b12cdc3c0e9
782
783 diff --git a/app-emulation/virtualbox/virtualbox-6.0.0_beta2.ebuild b/app-emulation/virtualbox/virtualbox-6.0.0_beta2.ebuild
784 new file mode 100644
785 index 00000000000..fee02593ba9
786 --- /dev/null
787 +++ b/app-emulation/virtualbox/virtualbox-6.0.0_beta2.ebuild
788 @@ -0,0 +1,471 @@
789 +# Copyright 1999-2018 Gentoo Authors
790 +# Distributed under the terms of the GNU General Public License v2
791 +
792 +EAPI=6
793 +
794 +PYTHON_COMPAT=( python2_7 )
795 +inherit flag-o-matic gnome2-utils java-pkg-opt-2 linux-info pax-utils python-single-r1 tmpfiles toolchain-funcs udev xdg-utils
796 +
797 +MY_PV="${PV/beta/BETA}"
798 +MY_PV="${MY_PV/rc/RC}"
799 +MY_P=VirtualBox-${MY_PV}
800 +
801 +DESCRIPTION="Family of powerful x86 virtualization products for enterprise and home use"
802 +HOMEPAGE="https://www.virtualbox.org/"
803 +SRC_URI="https://download.virtualbox.org/virtualbox/${MY_PV}/${MY_P}.tar.bz2
804 + https://dev.gentoo.org/~polynomial-c/${PN}/patchsets/${PN}-6.0.0_beta2-patches-01.tar.xz"
805 +
806 +LICENSE="GPL-2"
807 +SLOT="0"
808 +[[ "${PV}" == *_beta* ]] || [[ "${PV}" == *_rc* ]] || \
809 +KEYWORDS="~amd64 ~x86"
810 +IUSE="alsa debug doc headless java libressl lvm +opus pam pax_kernel pulseaudio +opengl python +qt5 +sdk +udev vboxwebsrv vnc"
811 +
812 +RDEPEND="!app-emulation/virtualbox-bin
813 + ~app-emulation/virtualbox-modules-${PV}
814 + dev-libs/libIDL
815 + >=dev-libs/libxslt-1.1.19
816 + net-misc/curl
817 + dev-libs/libxml2
818 + media-libs/libpng:0=
819 + media-libs/libvpx:0=
820 + sys-libs/zlib
821 + !headless? (
822 + media-libs/libsdl:0[X,video]
823 + x11-libs/libX11
824 + x11-libs/libXcursor
825 + x11-libs/libXext
826 + x11-libs/libXmu
827 + x11-libs/libXt
828 + opengl? ( virtual/opengl media-libs/freeglut )
829 + qt5? (
830 + dev-qt/qtcore:5
831 + dev-qt/qtgui:5
832 + dev-qt/qtprintsupport:5
833 + dev-qt/qtwidgets:5
834 + dev-qt/qtx11extras:5
835 + opengl? ( dev-qt/qtopengl:5 )
836 + x11-libs/libXinerama
837 + )
838 + )
839 + libressl? ( dev-libs/libressl:= )
840 + !libressl? ( dev-libs/openssl:0= )
841 + lvm? ( sys-fs/lvm2 )
842 + opus? ( media-libs/opus )
843 + udev? ( >=virtual/udev-171 )
844 + vnc? ( >=net-libs/libvncserver-0.9.9 )"
845 +DEPEND="${RDEPEND}
846 + >=dev-util/kbuild-0.1.9998.3127
847 + >=dev-lang/yasm-0.6.2
848 + sys-devel/bin86
849 + sys-libs/libcap
850 + sys-power/iasl
851 + virtual/pkgconfig
852 + alsa? ( >=media-libs/alsa-lib-1.0.13 )
853 + doc? (
854 + app-text/docbook-sgml-dtd:4.4
855 + dev-texlive/texlive-basic
856 + dev-texlive/texlive-latex
857 + dev-texlive/texlive-latexrecommended
858 + dev-texlive/texlive-latexextra
859 + dev-texlive/texlive-fontsrecommended
860 + dev-texlive/texlive-fontsextra
861 + )
862 + !headless? ( x11-libs/libXinerama )
863 + java? ( >=virtual/jdk-1.6 )
864 + pam? ( sys-libs/pam )
865 + pax_kernel? ( sys-apps/elfix )
866 + pulseaudio? ( media-sound/pulseaudio )
867 + qt5? ( dev-qt/linguist-tools:5 )
868 + vboxwebsrv? ( net-libs/gsoap[-gnutls(-)] )
869 + ${PYTHON_DEPS}"
870 +RDEPEND="${RDEPEND}
871 + java? ( >=virtual/jre-1.6 )"
872 +
873 +QA_TEXTRELS_x86="usr/lib/virtualbox-ose/VBoxGuestPropSvc.so
874 + usr/lib/virtualbox/VBoxSDL.so
875 + usr/lib/virtualbox/VBoxSharedFolders.so
876 + usr/lib/virtualbox/VBoxDD2.so
877 + usr/lib/virtualbox/VBoxOGLrenderspu.so
878 + usr/lib/virtualbox/VBoxPython.so
879 + usr/lib/virtualbox/VBoxDD.so
880 + usr/lib/virtualbox/VBoxDDU.so
881 + usr/lib/virtualbox/VBoxREM64.so
882 + usr/lib/virtualbox/VBoxSharedClipboard.so
883 + usr/lib/virtualbox/VBoxHeadless.so
884 + usr/lib/virtualbox/VBoxRT.so
885 + usr/lib/virtualbox/VBoxREM.so
886 + usr/lib/virtualbox/VBoxSettings.so
887 + usr/lib/virtualbox/VBoxKeyboard.so
888 + usr/lib/virtualbox/VBoxSharedCrOpenGL.so
889 + usr/lib/virtualbox/VBoxVMM.so
890 + usr/lib/virtualbox/VirtualBox.so
891 + usr/lib/virtualbox/VBoxOGLhosterrorspu.so
892 + usr/lib/virtualbox/components/VBoxC.so
893 + usr/lib/virtualbox/components/VBoxSVCM.so
894 + usr/lib/virtualbox/components/VBoxDDU.so
895 + usr/lib/virtualbox/components/VBoxRT.so
896 + usr/lib/virtualbox/components/VBoxREM.so
897 + usr/lib/virtualbox/components/VBoxVMM.so
898 + usr/lib/virtualbox/VBoxREM32.so
899 + usr/lib/virtualbox/VBoxPython2_7.so
900 + usr/lib/virtualbox/VBoxXPCOMC.so
901 + usr/lib/virtualbox/VBoxOGLhostcrutil.so
902 + usr/lib/virtualbox/VBoxNetDHCP.so
903 + usr/lib/virtualbox/VBoxNetNAT.so"
904 +
905 +S="${WORKDIR}/${MY_P}"
906 +
907 +REQUIRED_USE="
908 + java? ( sdk )
909 + python? ( sdk )
910 + vboxwebsrv? ( java )
911 + ${PYTHON_REQUIRED_USE}
912 +"
913 +
914 +pkg_setup() {
915 + if ! use headless && ! use qt5 ; then
916 + einfo "No USE=\"qt5\" selected, this build will not include any Qt frontend."
917 + elif use headless && use qt5 ; then
918 + einfo "You selected USE=\"headless qt5\", defaulting to"
919 + einfo "USE=\"headless\", this build will not include any X11/Qt frontend."
920 + fi
921 +
922 + if ! use opengl ; then
923 + einfo "No USE=\"opengl\" selected, this build will lack"
924 + einfo "the OpenGL feature."
925 + fi
926 + if ! use python ; then
927 + einfo "You have disabled the \"python\" USE flag. This will only"
928 + einfo "disable the python bindings being installed."
929 + fi
930 + java-pkg-opt-2_pkg_setup
931 + python-single-r1_pkg_setup
932 +
933 + tc-ld-disable-gold #bug 488176
934 + tc-export CC CXX LD AR RANLIB
935 + export HOST_CC="$(tc-getBUILD_CC)"
936 +}
937 +
938 +src_prepare() {
939 + # Remove shipped binaries (kBuild,yasm), see bug #232775
940 + rm -r kBuild/bin tools || die
941 +
942 + # Replace pointless GCC version check with something less stupid.
943 + # This is needed for the qt5 version check.
944 + sed -e 's@^check_gcc$@cc_maj="$(gcc -dumpversion | cut -d. -f1)" ; cc_min="$(gcc -dumpversion | cut -d. -f2)"@' \
945 + -i configure || die
946 +
947 + # Disable things unused or split into separate ebuilds
948 + sed -e "s@MY_LIBDIR@$(get_libdir)@" \
949 + "${FILESDIR}"/${PN}-5-localconfig > LocalConfig.kmk || die
950 +
951 + # Respect LDFLAGS
952 + sed -e "s@_LDFLAGS\.${ARCH}*.*=@& ${LDFLAGS}@g" \
953 + -i Config.kmk src/libs/xpcom18a4/Config.kmk || die
954 +
955 + # Do not use hard-coded ld (related to bug #488176)
956 + sed -e '/QUIET)ld /s@ld @$(LD) @' \
957 + -i src/VBox/Devices/PC/ipxe/Makefile.kmk || die
958 +
959 + # Use PAM only when pam USE flag is enbaled (bug #376531)
960 + if ! use pam ; then
961 + elog "Disabling PAM removes the possibility to use the VRDP features."
962 + sed -i 's@^.*VBOX_WITH_PAM@#VBOX_WITH_PAM@' Config.kmk || die
963 + sed -i 's@\(.*/auth/Makefile.kmk.*\)@#\1@' \
964 + src/VBox/HostServices/Makefile.kmk || die
965 + fi
966 +
967 + # add correct java path
968 + if use java ; then
969 + sed "s@/usr/lib/jvm/java-6-sun@$(java-config -O)@" \
970 + -i "${S}"/Config.kmk || die
971 + java-pkg-opt-2_src_prepare
972 + fi
973 +
974 + # Only add nopie patch when we're on hardened
975 + if gcc-specs-pie ; then
976 + eapply "${FILESDIR}/050_virtualbox-5.2.8-nopie.patch"
977 + fi
978 +
979 + # Only add paxmark patch when we're on pax_kernel
980 + if use pax_kernel ; then
981 + eapply "${FILESDIR}"/virtualbox-5.2.8-paxmark-bldprogs.patch
982 + fi
983 +
984 + eapply "${WORKDIR}/patches"
985 +
986 + eapply_user
987 +}
988 +
989 +src_configure() {
990 + local myconf=(
991 + --with-gcc="$(tc-getCC)"
992 + --with-g++="$(tc-getCXX)"
993 + --disable-dbus
994 + --disable-kmods
995 + $(usex alsa '' --disable-alsa)
996 + $(usex debug --build-debug '')
997 + $(usex doc '' --disable-docs)
998 + $(usex java '' --disable-java)
999 + $(usex lvm '' --disable-devmapper)
1000 + $(usex opus --build-libopus '')
1001 + $(usex pulseaudio '' --disable-pulse)
1002 + $(usex python '' --disable-python)
1003 + $(usex vboxwebsrv --enable-webservice '')
1004 + $(usex vnc --enable-vnc '')
1005 + )
1006 + if ! use headless ; then
1007 + myconf+=(
1008 + $(usex opengl '' --disable-opengl)
1009 + $(usex qt5 '' --disable-qt)
1010 + )
1011 + else
1012 + myconf+=(
1013 + --build-headless
1014 + --disable-opengl
1015 + )
1016 + fi
1017 + if use amd64 && ! has_multilib_profile ; then
1018 + myconf+=( --disable-vmmraw )
1019 + fi
1020 + # not an autoconf script
1021 + ./configure ${myconf[@]} || die "configure failed"
1022 +}
1023 +
1024 +src_compile() {
1025 + source ./env.sh || die
1026 +
1027 + # Force kBuild to respect C[XX]FLAGS and MAKEOPTS (bug #178529)
1028 + MAKEJOBS=$(grep -Eo '(\-j|\-\-jobs)(=?|[[:space:]]*)[[:digit:]]+' <<< ${MAKEOPTS}) #'
1029 + MAKELOAD=$(grep -Eo '(\-l|\-\-load-average)(=?|[[:space:]]*)[[:digit:]]+' <<< ${MAKEOPTS}) #'
1030 + MAKEOPTS="${MAKEJOBS} ${MAKELOAD}"
1031 + MAKE="kmk" emake \
1032 + VBOX_BUILD_PUBLISHER=_Gentoo \
1033 + TOOL_GCC3_CC="$(tc-getCC)" TOOL_GCC3_CXX="$(tc-getCXX)" \
1034 + TOOL_GCC3_AS="$(tc-getCC)" TOOL_GCC3_AR="$(tc-getAR)" \
1035 + TOOL_GCC3_LD="$(tc-getCXX)" TOOL_GCC3_LD_SYSMOD="$(tc-getLD)" \
1036 + TOOL_GCC3_CFLAGS="${CFLAGS}" TOOL_GCC3_CXXFLAGS="${CXXFLAGS}" \
1037 + VBOX_GCC_OPT="${CXXFLAGS}" \
1038 + TOOL_YASM_AS=yasm KBUILD_VERBOSE=2 \
1039 + all
1040 +}
1041 +
1042 +src_install() {
1043 + local binpath="release"
1044 + use debug && binpath="debug"
1045 + cd "${S}"/out/linux.${ARCH}/${binpath}/bin || die
1046 +
1047 + local vbox_inst_path="/usr/$(get_libdir)/${PN}" each fwfile size ico icofile
1048 +
1049 + vbox_inst() {
1050 + local binary="${1}"
1051 + local perms="${2:-0750}"
1052 + local path="${3:-${vbox_inst_path}}"
1053 +
1054 + [[ -n "${binary}" ]] || die "vbox_inst: No binray given!"
1055 + [[ ${perms} =~ ^[[:digit:]]+{4}$ ]] || die "vbox_inst: perms must consist of four digits."
1056 +
1057 + insinto ${path}
1058 + doins ${binary}
1059 + fowners root:vboxusers ${path}/${binary}
1060 + fperms ${perms} ${path}/${binary}
1061 + }
1062 +
1063 + # Create configuration files
1064 + insinto /etc/vbox
1065 + newins "${FILESDIR}/${PN}-4-config" vbox.cfg
1066 +
1067 + # Set the correct libdir
1068 + sed \
1069 + -e "s@MY_LIBDIR@$(get_libdir)@" \
1070 + -i "${ED%/}"/etc/vbox/vbox.cfg || die "vbox.cfg sed failed"
1071 +
1072 + # Install the wrapper script
1073 + exeinto ${vbox_inst_path}
1074 + newexe "${FILESDIR}/${PN}-ose-5-wrapper" "VBox"
1075 + fowners root:vboxusers ${vbox_inst_path}/VBox
1076 + fperms 0750 ${vbox_inst_path}/VBox
1077 +
1078 + # Install binaries and libraries
1079 + insinto ${vbox_inst_path}
1080 + doins -r components
1081 +
1082 + # *.rc files for x86_64 are only available on multilib systems
1083 + local rcfiles="*.rc"
1084 + if use amd64 && ! has_multilib_profile ; then
1085 + rcfiles=""
1086 + fi
1087 + for each in VBox{ExtPackHelperApp,Manage,SVC,Tunctl,XPCOMIPCD} *so *r0 ${rcfiles} ; do
1088 + vbox_inst ${each}
1089 + done
1090 +
1091 + # These binaries need to be suid root.
1092 + for each in VBox{Headless,Net{AdpCtl,DHCP,NAT}} ; do
1093 + vbox_inst ${each} 4750
1094 + done
1095 +
1096 + # Install EFI Firmware files (bug #320757)
1097 + pushd "${S}"/src/VBox/Devices/EFI/FirmwareBin &>/dev/null || die
1098 + for fwfile in VBoxEFI{32,64}.fd ; do
1099 + vbox_inst ${fwfile} 0644
1100 + done
1101 + popd &>/dev/null || die
1102 +
1103 + # VBoxSVC and VBoxManage need to be pax-marked (bug #403453)
1104 + # VBoxXPCOMIPCD (bug #524202)
1105 + for each in VBox{Headless,Manage,SVC,XPCOMIPCD} ; do
1106 + pax-mark -m "${ED%/}"${vbox_inst_path}/${each}
1107 + done
1108 +
1109 + # Symlink binaries to the shipped wrapper
1110 + for each in vbox{headless,manage} VBox{Headless,Manage,VRDP} ; do
1111 + dosym ${vbox_inst_path}/VBox /usr/bin/${each}
1112 + done
1113 + dosym ${vbox_inst_path}/VBoxTunctl /usr/bin/VBoxTunctl
1114 +
1115 + if use pam ; then
1116 + # VRDPAuth only works with this (bug #351949)
1117 + dosym VBoxAuth.so ${vbox_inst_path}/VRDPAuth.so
1118 + fi
1119 +
1120 + # set an env-variable for 3rd party tools
1121 + echo -n "VBOX_APP_HOME=${vbox_inst_path}" > "${T}/90virtualbox"
1122 + doenvd "${T}/90virtualbox"
1123 +
1124 + if ! use headless ; then
1125 + vbox_inst VBoxSDL 4750
1126 + pax-mark -m "${ED%/}"${vbox_inst_path}/VBoxSDL
1127 +
1128 + for each in vboxsdl VBoxSDL ; do
1129 + dosym ${vbox_inst_path}/VBox /usr/bin/${each}
1130 + done
1131 +
1132 + if use qt5 ; then
1133 + vbox_inst VirtualBox 4750
1134 + pax-mark -m "${ED%/}"${vbox_inst_path}/VirtualBox
1135 +
1136 + if use opengl ; then
1137 + vbox_inst VBoxTestOGL
1138 + pax-mark -m "${ED%/}"${vbox_inst_path}/VBoxTestOGL
1139 + fi
1140 +
1141 + for each in virtualbox VirtualBox ; do
1142 + dosym ${vbox_inst_path}/VBox /usr/bin/${each}
1143 + done
1144 +
1145 + insinto /usr/share/${PN}
1146 + doins -r nls
1147 + doins -r UnattendedTemplates
1148 +
1149 + newmenu "${FILESDIR}"/${PN}-ose.desktop-2 ${PN}.desktop
1150 + fi
1151 +
1152 + pushd "${S}"/src/VBox/Artwork/OSE &>/dev/null || die
1153 + for size in 16 32 48 64 128 ; do
1154 + newicon -s ${size} ${PN}-${size}px.png ${PN}.png
1155 + done
1156 + newicon ${PN}-48px.png ${PN}.png
1157 + doicon -s scalable ${PN}.svg
1158 + popd &>/dev/null || die
1159 + pushd "${S}"/src/VBox/Artwork/other &>/dev/null || die
1160 + for size in 16 24 32 48 64 72 96 128 256 512 ; do
1161 + for ico in hdd ova ovf vbox{,-extpack} vdi vdh vmdk ; do
1162 + icofile="${PN}-${ico}-${size}px.png"
1163 + if [[ -f "${icofile}" ]] ; then
1164 + newicon -s ${size} ${icofile} ${PN}-${ico}.png
1165 + fi
1166 + done
1167 + done
1168 + popd &>/dev/null || die
1169 + fi
1170 +
1171 + if use lvm ; then
1172 + vbox_inst VBoxVolInfo 4750
1173 + dosym ${vbox_inst_path}/VBoxVolInfo /usr/bin/VBoxVolInfo
1174 + fi
1175 +
1176 + if use sdk ; then
1177 + insinto ${vbox_inst_path}
1178 + doins -r sdk
1179 +
1180 + if use java ; then
1181 + java-pkg_regjar "${ED%/}/${vbox_inst_path}/sdk/bindings/xpcom/java/vboxjxpcom.jar"
1182 + java-pkg_regso "${ED%/}/${vbox_inst_path}/libvboxjxpcom.so"
1183 + fi
1184 + fi
1185 +
1186 + if use udev ; then
1187 + # New way of handling USB device nodes for VBox (bug #356215)
1188 + local udevdir="$(get_udevdir)"
1189 + insinto ${udevdir}
1190 + doins VBoxCreateUSBNode.sh
1191 + fowners root:vboxusers ${udevdir}/VBoxCreateUSBNode.sh
1192 + fperms 0750 ${udevdir}/VBoxCreateUSBNode.sh
1193 + insinto ${udevdir}/rules.d
1194 + sed "s@%UDEVDIR%@${udevdir}@" "${FILESDIR}"/10-virtualbox.rules \
1195 + > "${T}"/10-virtualbox.rules || die
1196 + doins "${T}"/10-virtualbox.rules
1197 + fi
1198 +
1199 + if use vboxwebsrv ; then
1200 + vbox_inst vboxwebsrv
1201 + dosym ${vbox_inst_path}/VBox /usr/bin/vboxwebsrv
1202 + newinitd "${FILESDIR}"/vboxwebsrv-initd vboxwebsrv
1203 + newconfd "${FILESDIR}"/vboxwebsrv-confd vboxwebsrv
1204 + fi
1205 +
1206 + if use doc ; then
1207 + dodoc UserManual.pdf
1208 + fi
1209 +
1210 + newtmpfiles "${FILESDIR}"/${PN}-vboxusb_tmpfilesd ${PN}-vboxusb.conf
1211 +}
1212 +
1213 +pkg_postinst() {
1214 + gnome2_icon_cache_update
1215 + xdg_desktop_database_update
1216 +
1217 + if use udev ; then
1218 + udevadm control --reload-rules \
1219 + && udevadm trigger --subsystem-match=usb
1220 + fi
1221 +
1222 + tmpfiles_process /usr/lib/tmpfiles.d/virtualbox-vboxusb.conf
1223 +
1224 + if ! use headless && use qt5 ; then
1225 + elog "To launch VirtualBox just type: \"virtualbox\"."
1226 + fi
1227 + elog "You must be in the vboxusers group to use VirtualBox."
1228 + elog ""
1229 + elog "The latest user manual is available for download at:"
1230 + elog "http://download.virtualbox.org/virtualbox/${PV}/UserManual.pdf"
1231 + elog ""
1232 + elog "For advanced networking setups you should emerge:"
1233 + elog "net-misc/bridge-utils and sys-apps/usermode-utilities"
1234 + elog ""
1235 + elog "Starting with version 4.0.0, ${PN} has USB-1 support."
1236 + elog "For USB-2 support, PXE-boot ability and VRDP support please emerge"
1237 + elog " app-emulation/virtualbox-extpack-oracle"
1238 + elog "package."
1239 + elog "Starting with version 5.0.0, ${PN} no longer has the \"additions\" and"
1240 + elog "the \"extension\" USE flag. For installation of the guest additions ISO"
1241 + elog "image, please emerge"
1242 + elog " app-emulation/virtualbox-additions"
1243 + elog "and for the USB2, USB3, VRDP and PXE boot ROM modules, please emerge"
1244 + elog " app-emulation/virtualbox-extpack-oracle"
1245 + if ! use udev ; then
1246 + elog ""
1247 + elog "WARNING!"
1248 + elog "Without USE=udev, USB devices will likely not work in ${PN}."
1249 + elif [ -e "${ROOT%/}/etc/udev/rules.d/10-virtualbox.rules" ] ; then
1250 + elog ""
1251 + elog "Please remove \"${ROOT%/}/etc/udev/rules.d/10-virtualbox.rules\""
1252 + elog "or else USB in ${PN} won't work."
1253 + fi
1254 +}
1255 +
1256 +pkg_postrm() {
1257 + gnome2_icon_cache_update
1258 + xdg_desktop_database_update
1259 +}