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-guest-additions/files/, app-emulation/virtualbox-bin/, ...
Date: Wed, 28 Nov 2018 09:06:52
Message-Id: 1543395999.4caa95d19d760c355d72673af9d1c85f2a2a1e72.polynomial-c@gentoo
1 commit: 4caa95d19d760c355d72673af9d1c85f2a2a1e72
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Wed Nov 28 08:58:38 2018 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Wed Nov 28 09:06:39 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4caa95d1
7
8 virtualbox packages: Removed old.
9
10 Package-Manager: Portage-2.3.52, Repoman-2.3.12
11 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
12
13 app-emulation/virtualbox-additions/Manifest | 2 -
14 .../virtualbox-additions-5.2.14.ebuild | 33 --
15 .../virtualbox-additions-5.2.20.ebuild | 33 --
16 app-emulation/virtualbox-bin/Manifest | 8 -
17 .../virtualbox-bin-5.2.14.123301.ebuild | 287 -------------
18 .../virtualbox-bin-5.2.20.125813.ebuild | 287 -------------
19 app-emulation/virtualbox-extpack-oracle/Manifest | 2 -
20 .../virtualbox-extpack-oracle-5.2.14.123301.ebuild | 42 --
21 .../virtualbox-extpack-oracle-5.2.20.125813.ebuild | 42 --
22 app-emulation/virtualbox-guest-additions/Manifest | 3 -
23 ...tualbox-guest-additions-5.2.18-linux-4.18.patch | 29 --
24 .../virtualbox-guest-additions-5.2.14.ebuild | 228 ----------
25 .../virtualbox-guest-additions-5.2.20.ebuild | 227 ----------
26 app-emulation/virtualbox-modules/Manifest | 2 -
27 .../virtualbox-modules-5.2.14.ebuild | 51 ---
28 .../virtualbox-modules-5.2.20.ebuild | 51 ---
29 app-emulation/virtualbox/Manifest | 3 -
30 .../virtualbox/virtualbox-5.2.14-r1.ebuild | 474 --------------------
31 app-emulation/virtualbox/virtualbox-5.2.20.ebuild | 476 ---------------------
32 19 files changed, 2280 deletions(-)
33
34 diff --git a/app-emulation/virtualbox-additions/Manifest b/app-emulation/virtualbox-additions/Manifest
35 index e735dde076c..0491e24001e 100644
36 --- a/app-emulation/virtualbox-additions/Manifest
37 +++ b/app-emulation/virtualbox-additions/Manifest
38 @@ -1,4 +1,2 @@
39 -DIST VBoxGuestAdditions_5.2.14.iso 57978880 BLAKE2B de5cb3c5b7e2f3ee018588308573389fd973820e87d5b2e6640499c96dc21db95e71eb4e5e2469455febba8b2ccb4a7c6014176e784613218fa7eccabefe9e53 SHA512 1fd878f9e7fc1687907ac8dff6827bfd7aefe3ed48012b0dbbaf42ced21695ce52be6fe146128a6d1c67c7a0c5c39c9ef24e8ee562271fda117d13cca81427cb
40 -DIST VBoxGuestAdditions_5.2.20.iso 58013696 BLAKE2B 1a0df07f2a086c41741d884a3eabd43d6f1fee368b143fbae4c8dbc930834fb8d5dd82e8563fe7c9e4c562a58e79c25e9603847d9eca908943e525505bf2f697 SHA512 a8b8f12a8f0b26bb88745d33aa419c45adb4a1e682c3af9a34b0556ac1d8bdf33044253ede41d894e0dba1857f8f3c5cc234006149771a25133c6112ec4aa4c3
41 DIST VBoxGuestAdditions_5.2.22.iso 58013696 BLAKE2B 196f0048b685200328bcf753f3df23eac6477ce863885e93a54951795368bf62bdaa497589001ec203d75809b1f74ebbaa80419406d26bc7db43a131f5b9d698 SHA512 b320174b2f2ef796ac2c9c920579be38f0cedaa037d21992863ac355ecf6e99ae2aea56c70fb2034e9e03afac2cd7297f7717b447a6981701755593110164d37
42 DIST VBoxGuestAdditions_6.0.0_BETA2.iso 73023488 BLAKE2B 87a756c13686b49e0f80c332e3daf8033a60b65a1e658d6baf8be2e86c38dca7a46371774b8ebc6ffe57ac14ea4ebb83552a3583abb7a63091590f62b963933b SHA512 7588efd3ef578465716adb0f9c277e4fbe9d08ca39c85cae0583cf30dc60036ceb2233ab3e56d17fc168e8c97e7d210517650b79829ece886249bd116a8d22a2
43
44 diff --git a/app-emulation/virtualbox-additions/virtualbox-additions-5.2.14.ebuild b/app-emulation/virtualbox-additions/virtualbox-additions-5.2.14.ebuild
45 deleted file mode 100644
46 index 34d1dfef14c..00000000000
47 --- a/app-emulation/virtualbox-additions/virtualbox-additions-5.2.14.ebuild
48 +++ /dev/null
49 @@ -1,33 +0,0 @@
50 -# Copyright 1999-2018 Gentoo Foundation
51 -# Distributed under the terms of the GNU General Public License v2
52 -
53 -EAPI=7
54 -
55 -MY_PN=VBoxGuestAdditions
56 -MY_PV="${PV/beta/BETA}"
57 -MY_PV="${MY_PV/rc/RC}"
58 -MY_P=${MY_PN}_${MY_PV}
59 -
60 -DESCRIPTION="CD image containing guest additions for VirtualBox"
61 -HOMEPAGE="https://www.virtualbox.org/"
62 -SRC_URI="https://download.virtualbox.org/virtualbox/${MY_PV}/${MY_P}.iso"
63 -
64 -LICENSE="GPL-2+ LGPL-2.1+ MIT SGI-B-2.0 CDDL"
65 -SLOT="0"
66 -KEYWORDS="amd64 x86"
67 -IUSE=""
68 -RESTRICT="mirror"
69 -
70 -RDEPEND="!app-emulation/virtualbox-bin
71 - !=app-emulation/virtualbox-9999"
72 -
73 -S="${WORKDIR}"
74 -
75 -src_unpack() {
76 - return 0
77 -}
78 -
79 -src_install() {
80 - insinto /usr/share/${PN/-additions}
81 - newins "${DISTDIR}"/${MY_P}.iso ${MY_PN}.iso
82 -}
83
84 diff --git a/app-emulation/virtualbox-additions/virtualbox-additions-5.2.20.ebuild b/app-emulation/virtualbox-additions/virtualbox-additions-5.2.20.ebuild
85 deleted file mode 100644
86 index 7fa00c8a161..00000000000
87 --- a/app-emulation/virtualbox-additions/virtualbox-additions-5.2.20.ebuild
88 +++ /dev/null
89 @@ -1,33 +0,0 @@
90 -# Copyright 1999-2018 Gentoo Authors
91 -# Distributed under the terms of the GNU General Public License v2
92 -
93 -EAPI=7
94 -
95 -MY_PN=VBoxGuestAdditions
96 -MY_PV="${PV/beta/BETA}"
97 -MY_PV="${MY_PV/rc/RC}"
98 -MY_P=${MY_PN}_${MY_PV}
99 -
100 -DESCRIPTION="CD image containing guest additions for VirtualBox"
101 -HOMEPAGE="https://www.virtualbox.org/"
102 -SRC_URI="https://download.virtualbox.org/virtualbox/${MY_PV}/${MY_P}.iso"
103 -
104 -LICENSE="GPL-2+ LGPL-2.1+ MIT SGI-B-2.0 CDDL"
105 -SLOT="0"
106 -KEYWORDS="~amd64 ~x86"
107 -IUSE=""
108 -RESTRICT="mirror"
109 -
110 -RDEPEND="!app-emulation/virtualbox-bin
111 - !=app-emulation/virtualbox-9999"
112 -
113 -S="${WORKDIR}"
114 -
115 -src_unpack() {
116 - return 0
117 -}
118 -
119 -src_install() {
120 - insinto /usr/share/${PN/-additions}
121 - newins "${DISTDIR}"/${MY_P}.iso ${MY_PN}.iso
122 -}
123
124 diff --git a/app-emulation/virtualbox-bin/Manifest b/app-emulation/virtualbox-bin/Manifest
125 index d5b6bb5d2e9..02fcb49b0d5 100644
126 --- a/app-emulation/virtualbox-bin/Manifest
127 +++ b/app-emulation/virtualbox-bin/Manifest
128 @@ -1,15 +1,7 @@
129 -DIST Oracle_VM_VirtualBox_Extension_Pack-5.2.14-123301.tar.gz 19589209 BLAKE2B 385bdfb4cef67788a1dd3e758f52dab7a367f56ca8d286e465af9a7674ffe3bc0f6187a66d7d19bb8f2a8fc0e23e0ce7ef35ac2d46fd6971dc2df96e8a61ca11 SHA512 a47a7173685b72995e5012386fc8f6c55f9106049a28ecaea223f58f1bb40077e0929cf05102a2588e516fe90891428b8e569ec9351fcaf235eb9f8293e45b92
130 -DIST Oracle_VM_VirtualBox_Extension_Pack-5.2.20-125813.tar.gz 19641208 BLAKE2B ffe4e89b88609d575f7e9f5aed5330de5024462ae564684cf3f565b62649d022c8fc9368cfd1685e3e4fc34e9a23cb0651c483f129b533f9afec38bcae89d587 SHA512 df9ae6af9ad1c1106bf8bf0595fdcdd3ec45bc74b90655e762fb18a4c8ea268bed366ce3caaf0f95682577b61b337650a6fe7ef901f6925fa38679ccd885c21c
131 DIST Oracle_VM_VirtualBox_Extension_Pack-5.2.22-126460.tar.gz 19640932 BLAKE2B 162ab40da6b2cd30d00e020666a1f4fb026e29af2ca9d6c36c294e5fa299b61ab8fd147f24d2b500426c768808db2c7693c30e88519e695d7759f8eedf1c52c5 SHA512 85b8552668b6580bea24f051ad861c82b9ba32177fb7fa37fe2980d8bab32a84325d02bfa9c8f55c2021a4000ef2546d8996ca8b99ca7fc19f8281a92108dfb0
132 DIST Oracle_VM_VirtualBox_Extension_Pack-6.0.0_BETA2-126642.tar.gz 23239583 BLAKE2B f5444d2472152f3f0701f8e4e29f28c6f86fdd95d15c469d84af42bf5d5f4fb226c26dfe9ce152f0fdfe95537213f68897183c9f9519e795312838fcf9a80a2f SHA512 d2b64456558c48688460f874512ce9c08abd06f06a4a1c8d8548cfd8d17c408ba6344390716add606b3a4a519aab59591a8a454ab6384b8082db07fbc37a275d
133 -DIST VirtualBox-5.2.14-123301-Linux_amd64.run 88749523 BLAKE2B 5a2791a1258adcdc82f8776fb0d5502d525faa0083b808f1875f0c61b848aa371fa0b6b73ca024c244b36dfb074a8839747ad27a87cb8dfbaad09096a0cec887 SHA512 8c4633ef0e3a9f7f26603009a23244696a6f91baffa9777a0daf8f09abd80b4aca944dabfd2a10acddf4759e64ec719948d73ecaaf187a60a15e097467060ea9
134 -DIST VirtualBox-5.2.14-123301-Linux_x86.run 87776718 BLAKE2B 609c24ad2ba5b005f7cb619fbe2c2a82f026a7ae4ef74cda800c526c8c3552a2a1ed1af5a2a2b3d9c56f0dfbcdda493c2cc92b58156cbf41ebfb1d43bfee8aca SHA512 820c2b6c97a48c125b69e1f749a3b1473d5fe672726ae2cec30f20a6652186a28b3900d4aeffca701415275229232925d1c8c347aefa7a86840a2c5bf13f21a7
135 -DIST VirtualBox-5.2.20-125813-Linux_amd64.run 88841683 BLAKE2B a3cce78d5a90187ece0eda11032a36096a05b0a7020ec729c07963510db6fa4e436edbf03b5e385d826c7e2ddeae84e4138273b6b5876be2b33c7a8f259753f3 SHA512 28614d71b564e138526cf75662d5e0ce2c083bfa4bc0124f7b0d20532b5a09391d00609a2c003ac5311220c844f2b1fffdee46f53e1018f0df5b6ff1b7a6ba12
136 -DIST VirtualBox-5.2.20-125813-Linux_x86.run 87889359 BLAKE2B bc66cf6af5e7a92c642e028bc82830641bed02f5e7daa4c607b165af9f707b3ec359a0ab40f68822472e0087a9a17723de20567f08f14125f8c74d058eecbc88 SHA512 8a7cba49194a7dcb86b3b908e9b8f83d3ad83cfd057e75bda6bb16da1f62ec65e10892696f94f0bc0f4bff4f4f055aa2bdc250e10b46d06b3f8f616000dad48a
137 DIST VirtualBox-5.2.22-126460-Linux_amd64.run 88821201 BLAKE2B 1b0433844247ee9531af915dcbb740183fa29fb296f8c78b4165cc3b48300da71f7d329026983da581ffff0d7b8976a2e5e32d5e948861a557ddfa2437813ea0 SHA512 22b20a68884a114818fcdfe9a459a7c3b1b3598526a74cc66407f5bcdc6eb6bcbe022b820477ccdc081e22349777b73fac9d6126585ee3c8fa0d3d24624006f3
138 DIST VirtualBox-5.2.22-126460-Linux_x86.run 87817677 BLAKE2B 5f11e5f92386c9524869082cf1a5af413c69fe5b36b1ace58887076000c7b928267eb7c3be22282885d6871ccdcee981ec79a526c71f281f0e8ada5858194851 SHA512 32d44b6d691e33a1ee1426cb7a3cb3648722709c588d177951b8be802546faadfd612567981bbbfed3d782b18260e6e638e7879813f3b06bb5a8387b052b0227
139 DIST VirtualBox-6.0.0_BETA2-126642-Linux_amd64.run 143635921 BLAKE2B 7bc6193bf306dc2e2c8e55b0070020c5854d257aa662f169f3daaa2ea759bf024b0a35a9d21caa8c67c09ef56b78be9700aa2666dfe0d39f28c7750af2db7c5a SHA512 1d17d5abef701554706b0b8cdc83679a112ff6213346bacc84ac8424626e7c6630866921b567f62d074bb6959aa9edfe59e4c559c31c9120b51d6506435b0807
140 DIST VirtualBox-6.0.0_BETA2-126642-Linux_x86.run 142960077 BLAKE2B 9ae39b14c2371e7c744e02b3ea8819ab5685dca8da65578905090084bed81552a32c392df1804227d5394a56f1e243e0abd51ab49edbaca5055c3cf74093c67a SHA512 846eaa692c87e48541236fb3fa383da6cfa771c37ca430054a7aa79808ef9fc79bf502f10d4244f53acb7a56f7fd01b6b6f0ff7bca672014ab47204ccd098d57
141 -DIST VirtualBoxSDK-5.2.14-123301.zip 10154044 BLAKE2B 273219029c59ffd685fffb7e14fff914a5397acc0676c8b4ccaee9cecee51e90880e68d883125e061d6c02e09b53235821ff89a265e937c9b4e67365452a97d2 SHA512 c69e6f537af611b9a4bcbab3e014fa25c6593f754940c6596e451cf895cb088186d037ac4816a3bae793213c774befd54ffa86d43948fa546f753a37fcdabd51
142 -DIST VirtualBoxSDK-5.2.20-125813.zip 10152506 BLAKE2B 0a0fe51b22391430b5f67f4dfa24e2985beb364f69acf67f19154bbd5acca00260abdc8ade32c245e1a19340c88ee49776442b036dccdb5f932c052c9701c7e3 SHA512 e87b41bc23de5aae3a368834dc33e4b0eff63e945f81323886491cd6139089c29dc113d5d2144ac76650d501d3a6f0fc858ff2e1afe29df4396ed7cc7552762d
143 DIST VirtualBoxSDK-5.2.22-126460.zip 10154660 BLAKE2B e0a0106f695ca7198d4b2ac5c62bb435fe7934858115dcb3aed57b40d82655bd54cbbae63b279132c23762a227c53affe68131a0bf9452c69dcaf2162b1e4ebf SHA512 1d34b8f7f32602b5656fdb6184e6c35cc54d6ecb36bc41d7df3e154f18c27ea5938635969feb69defe86a53897eee87792514967f15810224ee89e8e523d2b29
144
145 diff --git a/app-emulation/virtualbox-bin/virtualbox-bin-5.2.14.123301.ebuild b/app-emulation/virtualbox-bin/virtualbox-bin-5.2.14.123301.ebuild
146 deleted file mode 100644
147 index 308c711876e..00000000000
148 --- a/app-emulation/virtualbox-bin/virtualbox-bin-5.2.14.123301.ebuild
149 +++ /dev/null
150 @@ -1,287 +0,0 @@
151 -# Copyright 1999-2018 Gentoo Foundation
152 -# Distributed under the terms of the GNU General Public License v2
153 -
154 -EAPI=6
155 -
156 -PYTHON_COMPAT=( python2_7 )
157 -
158 -inherit xdg-utils gnome2 pax-utils python-r1 udev unpacker eapi7-ver
159 -
160 -MAIN_PV="$(ver_cut 1-3)"
161 -if [[ ${PV} = *_beta* ]] || [[ ${PV} = *_rc* ]] ; then
162 - MY_PV="${MAIN_PV}_$(ver_cut 5)"
163 - MY_PV="${MY_PV/beta/BETA}"
164 - MY_PV="${MY_PV/rc/RC}"
165 -else
166 - MY_PV="${MAIN_PV}"
167 -fi
168 -VBOX_BUILD_ID="$(ver_cut 4)"
169 -VBOX_PV="${MY_PV}-${VBOX_BUILD_ID}"
170 -MY_P="VirtualBox-${VBOX_PV}-Linux"
171 -# needed as sometimes the extpack gets another build ID
172 -EXTP_PV="${VBOX_PV}"
173 -EXTP_PN="Oracle_VM_VirtualBox_Extension_Pack"
174 -EXTP_P="${EXTP_PN}-${EXTP_PV}"
175 -# needed as sometimes the SDK gets another build ID
176 -SDK_PV="${VBOX_PV}"
177 -SDK_P="VirtualBoxSDK-${SDK_PV}"
178 -
179 -DESCRIPTION="Family of powerful x86 virtualization products for enterprise and home use"
180 -HOMEPAGE="https://www.virtualbox.org/"
181 -SRC_URI="amd64? ( https://download.virtualbox.org/virtualbox/${MY_PV}/${MY_P}_amd64.run )
182 - x86? ( https://download.virtualbox.org/virtualbox/${MY_PV}/${MY_P}_x86.run )
183 - https://download.virtualbox.org/virtualbox/${MY_PV}/${EXTP_P}.vbox-extpack -> ${EXTP_P}.tar.gz"
184 -
185 -LICENSE="GPL-2 PUEL"
186 -SLOT="0"
187 -KEYWORDS="amd64 x86"
188 -IUSE="+additions +chm headless python vboxwebsrv rdesktop-vrdp"
189 -RESTRICT="mirror"
190 -
191 -if [[ "${PV}" != *beta* ]] ; then
192 - SRC_URI+="
193 - sdk? ( https://download.virtualbox.org/virtualbox/${MY_PV}/${SDK_P}.zip )"
194 - IUSE+=" sdk"
195 -fi
196 -
197 -DEPEND="app-arch/unzip
198 - ${PYTHON_DEPS}"
199 -
200 -RDEPEND="!!app-emulation/virtualbox
201 - !app-emulation/virtualbox-additions
202 - ~app-emulation/virtualbox-modules-${MAIN_PV}
203 - !headless? (
204 - dev-libs/glib
205 - media-libs/fontconfig
206 - media-libs/freetype
207 - media-libs/libpng
208 - media-libs/libsdl[X]
209 - x11-libs/libXcursor
210 - x11-libs/libXext
211 - x11-libs/libXfixes
212 - x11-libs/libXft
213 - x11-libs/libXi
214 - x11-libs/libXinerama
215 - x11-libs/libXrandr
216 - x11-libs/libXrender
217 - chm? ( dev-libs/expat )
218 - )
219 - dev-libs/libxml2
220 - sys-fs/lvm2
221 - x11-libs/libXau
222 - x11-libs/libX11
223 - x11-libs/libXt
224 - x11-libs/libXmu
225 - x11-libs/libSM
226 - x11-libs/libICE
227 - x11-libs/libXdmcp
228 - ${PYTHON_DEPS}"
229 -
230 -REQUIRED_USE="${PYTHON_REQUIRED_USE}"
231 -S="${WORKDIR}"
232 -
233 -QA_PREBUILT="opt/VirtualBox/*"
234 -
235 -PYTHON_UPDATER_IGNORE="1"
236 -
237 -src_unpack() {
238 - unpack_makeself ${MY_P}_${ARCH}.run
239 - unpack ./VirtualBox.tar.bz2
240 -
241 - mkdir "${S}"/${EXTP_PN} || die
242 - pushd "${S}"/${EXTP_PN} &>/dev/null || die
243 - unpack ${EXTP_P}.tar.gz
244 - popd &>/dev/null || die
245 -
246 - if [[ "${PV}" != *beta* ]] && use sdk ; then
247 - unpack VirtualBoxSDK-${SDK_PV}.zip
248 - fi
249 -}
250 -
251 -src_configure() {
252 - :;
253 -}
254 -
255 -src_compile() {
256 - :;
257 -}
258 -
259 -src_install() {
260 - # create virtualbox configurations files
261 - insinto /etc/vbox
262 - newins "${FILESDIR}/${PN}-config" vbox.cfg
263 -
264 - if ! use headless ; then
265 - newmenu "${FILESDIR}"/${PN}.desktop-2 ${PN}.desktop
266 -
267 - # set up symlinks (bug #572012)
268 - dosym ../../../../opt/VirtualBox/virtualbox.xml /usr/share/mime/packages/virtualbox.xml
269 -
270 - local size ico icofile
271 - for size in 16 24 32 48 64 72 96 128 256 ; do
272 - pushd "${S}"/icons/${size}x${size} &>/dev/null || die
273 - if [[ -f "virtualbox.png" ]] ; then
274 - doicon -s ${size} virtualbox.png
275 - fi
276 - for ico in hdd ova ovf vbox{,-extpack} vdi vdh vmdk ; do
277 - icofile="virtualbox-${ico}.png"
278 - if [[ -f "${icofile}" ]] ; then
279 - doicon -s ${size} ${icofile}
280 - fi
281 - done
282 - popd &>/dev/null || die
283 - done
284 - doicon -s scalable "${S}"/icons/scalable/virtualbox.svg
285 - insinto /usr/share/pixmaps
286 - newins "${S}"/icons/48x48/virtualbox.png ${PN}.png
287 - fi
288 -
289 - pushd "${S}"/${EXTP_PN} &>/dev/null || die
290 - insinto /opt/VirtualBox/ExtensionPacks/${EXTP_PN}
291 - doins -r linux.${ARCH}
292 - doins ExtPack* PXE-Intel.rom
293 - popd &>/dev/null || die
294 - rm -rf "${S}"/${EXTP_PN}
295 -
296 - insinto /opt/VirtualBox
297 - dodir /opt/bin
298 -
299 - doins UserManual.pdf
300 -
301 - if [[ "${PV}" != *beta* ]] && use sdk ; then
302 - doins -r sdk
303 - fi
304 -
305 - if use additions; then
306 - doins -r additions
307 - fi
308 -
309 - if use vboxwebsrv; then
310 - doins vboxwebsrv
311 - fowners root:vboxusers /opt/VirtualBox/vboxwebsrv
312 - fperms 0750 /opt/VirtualBox/vboxwebsrv
313 - dosym ../../opt/VirtualBox/VBox.sh /opt/bin/vboxwebsrv
314 - newinitd "${FILESDIR}"/vboxwebsrv-initd vboxwebsrv
315 - newconfd "${FILESDIR}"/vboxwebsrv-confd vboxwebsrv
316 - fi
317 -
318 - if use rdesktop-vrdp; then
319 - doins rdesktop-vrdp
320 - doins -r rdesktop-vrdp-keymaps
321 - fperms 0750 /opt/VirtualBox/rdesktop-vrdp
322 - dosym ../../opt/VirtualBox/rdesktop-vrdp /opt/bin/rdesktop-vrdp
323 - fi
324 -
325 - if ! use headless && use chm; then
326 - doins kchmviewer VirtualBox.chm
327 - fowners root:vboxusers /opt/VirtualBox/kchmviewer
328 - fperms 0750 /opt/VirtualBox/kchmviewer
329 - fi
330 -
331 - # This ebuild / package supports only py2.7. When py3 comes is unknown.
332 - # The compile phase makes VBoxPython2_7.so.
333 - # py3 support would presumably require a binary pre-compiled by py3.
334 - use python && doins VBoxPython.so VBoxPython2_7.so
335 -
336 - rm -rf src rdesktop* deffiles install* routines.sh runlevel.sh \
337 - vboxdrv.sh VBox.sh VBox.png vboxnet.sh additions VirtualBox.desktop \
338 - VirtualBox.tar.bz2 LICENSE VBoxSysInfo.sh rdesktop* vboxwebsrv \
339 - webtest kchmviewer VirtualBox.chm vbox-create-usb-node.sh \
340 - 90-vbox-usb.fdi uninstall.sh vboxshell.py vboxdrv-pardus.py \
341 - VBoxPython?_*.so
342 -
343 - if use headless ; then
344 - rm -rf VBoxSDL VirtualBox VBoxKeyboard.so
345 - fi
346 -
347 - doins -r * || die
348 -
349 - # create symlinks for working around unsupported $ORIGIN/.. in VBoxC.so (setuid)
350 - dosym ../VBoxVMM.so /opt/VirtualBox/components/VBoxVMM.so
351 - dosym ../VBoxREM.so /opt/VirtualBox/components/VBoxREM.so
352 - dosym ../VBoxRT.so /opt/VirtualBox/components/VBoxRT.so
353 - dosym ../VBoxDDU.so /opt/VirtualBox/components/VBoxDDU.so
354 - dosym ../VBoxXPCOM.so /opt/VirtualBox/components/VBoxXPCOM.so
355 -
356 - local each
357 - for each in VBox{Manage,SVC,XPCOMIPCD,Tunctl,NetAdpCtl,NetDHCP,NetNAT,TestOGL,ExtPackHelperApp}; do
358 - fowners root:vboxusers /opt/VirtualBox/${each}
359 - fperms 0750 /opt/VirtualBox/${each}
360 - pax-mark -m "${ED%/}"/opt/VirtualBox/${each}
361 - done
362 - # VBoxNetAdpCtl and VBoxNetDHCP binaries need to be suid root in any case..
363 - fperms 4750 /opt/VirtualBox/VBoxNetAdpCtl
364 - fperms 4750 /opt/VirtualBox/VBoxNetDHCP
365 - fperms 4750 /opt/VirtualBox/VBoxNetNAT
366 -
367 - if ! use headless ; then
368 - # Hardened build: Mark selected binaries set-user-ID-on-execution
369 - for each in VBox{SDL,Headless} VirtualBox; do
370 - fowners root:vboxusers /opt/VirtualBox/${each}
371 - fperms 4510 /opt/VirtualBox/${each}
372 - pax-mark -m "${ED%/}"/opt/VirtualBox/${each}
373 - done
374 -
375 - dosym ../VirtualBox/VBox.sh /opt/bin/VirtualBox
376 - dosym ../VirtualBox/VBox.sh /opt/bin/VBoxSDL
377 - else
378 - # Hardened build: Mark selected binaries set-user-ID-on-execution
379 - fowners root:vboxusers /opt/VirtualBox/VBoxHeadless
380 - fperms 4510 /opt/VirtualBox/VBoxHeadless
381 - pax-mark -m "${ED%/}"/opt/VirtualBox/VBoxHeadless
382 - fi
383 -
384 - exeinto /opt/VirtualBox
385 - newexe "${FILESDIR}/${PN}-3-wrapper" "VBox.sh"
386 - fowners root:vboxusers /opt/VirtualBox/VBox.sh
387 - fperms 0750 /opt/VirtualBox/VBox.sh
388 -
389 - dosym ../VirtualBox/VBox.sh /opt/bin/VBoxManage
390 - dosym ../VirtualBox/VBox.sh /opt/bin/VBoxVRDP
391 - dosym ../VirtualBox/VBox.sh /opt/bin/VBoxHeadless
392 - dosym ../VirtualBox/VBoxTunctl /opt/bin/VBoxTunctl
393 -
394 - # set an env-variable for 3rd party tools
395 - echo -n "VBOX_APP_HOME=/opt/VirtualBox" > "${T}/90virtualbox"
396 - doenvd "${T}/90virtualbox"
397 -
398 - local udevdir="$(get_udevdir)"
399 - insinto ${udevdir}/rules.d
400 - doins "${FILESDIR}"/10-virtualbox.rules
401 - sed "s@%UDEVDIR%@${udevdir}@" \
402 - -i "${ED%/}"${udevdir}/rules.d/10-virtualbox.rules || die
403 - # move udev scripts into ${udevdir} (bug #372491)
404 - mv "${ED%/}"/opt/VirtualBox/VBoxCreateUSBNode.sh "${ED%/}"${udevdir} || die
405 - fperms 0750 ${udevdir}/VBoxCreateUSBNode.sh
406 -}
407 -
408 -pkg_postinst() {
409 - xdg_desktop_database_update
410 -
411 - gnome2_icon_cache_update
412 -
413 - udevadm control --reload-rules && udevadm trigger --subsystem-match=usb
414 -
415 - elog ""
416 - if ! use headless ; then
417 - elog "To launch VirtualBox just type: \"VirtualBox\""
418 - elog ""
419 - fi
420 - elog "You must be in the vboxusers group to use VirtualBox."
421 - elog ""
422 - elog "For advanced networking setups you should emerge:"
423 - elog "net-misc/bridge-utils and sys-apps/usermode-utilities"
424 - elog ""
425 - elog "Please visit http://www.virtualbox.org/wiki/Editions for"
426 - elog "an overview about the different features of ${PN}"
427 - elog "and virtualbox-ose"
428 - if [ -e "${ROOT}/etc/udev/rules.d/10-virtualbox.rules" ] ; then
429 - elog ""
430 - elog "Please remove \"${ROOT}/etc/udev/rules.d/10-virtualbox.rules\""
431 - elog "or else USB in ${PN} won't work."
432 - fi
433 -}
434 -
435 -pkg_postrm() {
436 - xdg_desktop_database_update
437 -}
438
439 diff --git a/app-emulation/virtualbox-bin/virtualbox-bin-5.2.20.125813.ebuild b/app-emulation/virtualbox-bin/virtualbox-bin-5.2.20.125813.ebuild
440 deleted file mode 100644
441 index 33b7d2250e1..00000000000
442 --- a/app-emulation/virtualbox-bin/virtualbox-bin-5.2.20.125813.ebuild
443 +++ /dev/null
444 @@ -1,287 +0,0 @@
445 -# Copyright 1999-2018 Gentoo Authors
446 -# Distributed under the terms of the GNU General Public License v2
447 -
448 -EAPI=6
449 -
450 -PYTHON_COMPAT=( python2_7 )
451 -
452 -inherit xdg-utils gnome2 pax-utils python-r1 udev unpacker eapi7-ver
453 -
454 -MAIN_PV="$(ver_cut 1-3)"
455 -if [[ ${PV} = *_beta* ]] || [[ ${PV} = *_rc* ]] ; then
456 - MY_PV="${MAIN_PV}_$(ver_cut 5)"
457 - MY_PV="${MY_PV/beta/BETA}"
458 - MY_PV="${MY_PV/rc/RC}"
459 -else
460 - MY_PV="${MAIN_PV}"
461 -fi
462 -VBOX_BUILD_ID="$(ver_cut 4)"
463 -VBOX_PV="${MY_PV}-${VBOX_BUILD_ID}"
464 -MY_P="VirtualBox-${VBOX_PV}-Linux"
465 -# needed as sometimes the extpack gets another build ID
466 -EXTP_PV="${VBOX_PV}"
467 -EXTP_PN="Oracle_VM_VirtualBox_Extension_Pack"
468 -EXTP_P="${EXTP_PN}-${EXTP_PV}"
469 -# needed as sometimes the SDK gets another build ID
470 -SDK_PV="${VBOX_PV}"
471 -SDK_P="VirtualBoxSDK-${SDK_PV}"
472 -
473 -DESCRIPTION="Family of powerful x86 virtualization products for enterprise and home use"
474 -HOMEPAGE="https://www.virtualbox.org/"
475 -SRC_URI="amd64? ( https://download.virtualbox.org/virtualbox/${MY_PV}/${MY_P}_amd64.run )
476 - x86? ( https://download.virtualbox.org/virtualbox/${MY_PV}/${MY_P}_x86.run )
477 - https://download.virtualbox.org/virtualbox/${MY_PV}/${EXTP_P}.vbox-extpack -> ${EXTP_P}.tar.gz"
478 -
479 -LICENSE="GPL-2 PUEL"
480 -SLOT="0"
481 -KEYWORDS="~amd64 ~x86"
482 -IUSE="+additions +chm headless python vboxwebsrv rdesktop-vrdp"
483 -RESTRICT="mirror"
484 -
485 -if [[ "${PV}" != *beta* ]] ; then
486 - SRC_URI+="
487 - sdk? ( https://download.virtualbox.org/virtualbox/${MY_PV}/${SDK_P}.zip )"
488 - IUSE+=" sdk"
489 -fi
490 -
491 -DEPEND="app-arch/unzip
492 - ${PYTHON_DEPS}"
493 -
494 -RDEPEND="!!app-emulation/virtualbox
495 - !app-emulation/virtualbox-additions
496 - ~app-emulation/virtualbox-modules-${MAIN_PV}
497 - !headless? (
498 - dev-libs/glib
499 - media-libs/fontconfig
500 - media-libs/freetype
501 - media-libs/libpng
502 - media-libs/libsdl[X]
503 - x11-libs/libXcursor
504 - x11-libs/libXext
505 - x11-libs/libXfixes
506 - x11-libs/libXft
507 - x11-libs/libXi
508 - x11-libs/libXinerama
509 - x11-libs/libXrandr
510 - x11-libs/libXrender
511 - chm? ( dev-libs/expat )
512 - )
513 - dev-libs/libxml2
514 - sys-fs/lvm2
515 - x11-libs/libXau
516 - x11-libs/libX11
517 - x11-libs/libXt
518 - x11-libs/libXmu
519 - x11-libs/libSM
520 - x11-libs/libICE
521 - x11-libs/libXdmcp
522 - ${PYTHON_DEPS}"
523 -
524 -REQUIRED_USE="${PYTHON_REQUIRED_USE}"
525 -S="${WORKDIR}"
526 -
527 -QA_PREBUILT="opt/VirtualBox/*"
528 -
529 -PYTHON_UPDATER_IGNORE="1"
530 -
531 -src_unpack() {
532 - unpack_makeself ${MY_P}_${ARCH}.run
533 - unpack ./VirtualBox.tar.bz2
534 -
535 - mkdir "${S}"/${EXTP_PN} || die
536 - pushd "${S}"/${EXTP_PN} &>/dev/null || die
537 - unpack ${EXTP_P}.tar.gz
538 - popd &>/dev/null || die
539 -
540 - if [[ "${PV}" != *beta* ]] && use sdk ; then
541 - unpack VirtualBoxSDK-${SDK_PV}.zip
542 - fi
543 -}
544 -
545 -src_configure() {
546 - :;
547 -}
548 -
549 -src_compile() {
550 - :;
551 -}
552 -
553 -src_install() {
554 - # create virtualbox configurations files
555 - insinto /etc/vbox
556 - newins "${FILESDIR}/${PN}-config" vbox.cfg
557 -
558 - if ! use headless ; then
559 - newmenu "${FILESDIR}"/${PN}.desktop-2 ${PN}.desktop
560 -
561 - # set up symlinks (bug #572012)
562 - dosym ../../../../opt/VirtualBox/virtualbox.xml /usr/share/mime/packages/virtualbox.xml
563 -
564 - local size ico icofile
565 - for size in 16 24 32 48 64 72 96 128 256 ; do
566 - pushd "${S}"/icons/${size}x${size} &>/dev/null || die
567 - if [[ -f "virtualbox.png" ]] ; then
568 - doicon -s ${size} virtualbox.png
569 - fi
570 - for ico in hdd ova ovf vbox{,-extpack} vdi vdh vmdk ; do
571 - icofile="virtualbox-${ico}.png"
572 - if [[ -f "${icofile}" ]] ; then
573 - doicon -s ${size} ${icofile}
574 - fi
575 - done
576 - popd &>/dev/null || die
577 - done
578 - doicon -s scalable "${S}"/icons/scalable/virtualbox.svg
579 - insinto /usr/share/pixmaps
580 - newins "${S}"/icons/48x48/virtualbox.png ${PN}.png
581 - fi
582 -
583 - pushd "${S}"/${EXTP_PN} &>/dev/null || die
584 - insinto /opt/VirtualBox/ExtensionPacks/${EXTP_PN}
585 - doins -r linux.${ARCH}
586 - doins ExtPack* PXE-Intel.rom
587 - popd &>/dev/null || die
588 - rm -rf "${S}"/${EXTP_PN}
589 -
590 - insinto /opt/VirtualBox
591 - dodir /opt/bin
592 -
593 - doins UserManual.pdf
594 -
595 - if [[ "${PV}" != *beta* ]] && use sdk ; then
596 - doins -r sdk
597 - fi
598 -
599 - if use additions; then
600 - doins -r additions
601 - fi
602 -
603 - if use vboxwebsrv; then
604 - doins vboxwebsrv
605 - fowners root:vboxusers /opt/VirtualBox/vboxwebsrv
606 - fperms 0750 /opt/VirtualBox/vboxwebsrv
607 - dosym ../../opt/VirtualBox/VBox.sh /opt/bin/vboxwebsrv
608 - newinitd "${FILESDIR}"/vboxwebsrv-initd vboxwebsrv
609 - newconfd "${FILESDIR}"/vboxwebsrv-confd vboxwebsrv
610 - fi
611 -
612 - if use rdesktop-vrdp; then
613 - doins rdesktop-vrdp
614 - doins -r rdesktop-vrdp-keymaps
615 - fperms 0750 /opt/VirtualBox/rdesktop-vrdp
616 - dosym ../../opt/VirtualBox/rdesktop-vrdp /opt/bin/rdesktop-vrdp
617 - fi
618 -
619 - if ! use headless && use chm; then
620 - doins kchmviewer VirtualBox.chm
621 - fowners root:vboxusers /opt/VirtualBox/kchmviewer
622 - fperms 0750 /opt/VirtualBox/kchmviewer
623 - fi
624 -
625 - # This ebuild / package supports only py2.7. When py3 comes is unknown.
626 - # The compile phase makes VBoxPython2_7.so.
627 - # py3 support would presumably require a binary pre-compiled by py3.
628 - use python && doins VBoxPython.so VBoxPython2_7.so
629 -
630 - rm -rf src rdesktop* deffiles install* routines.sh runlevel.sh \
631 - vboxdrv.sh VBox.sh VBox.png vboxnet.sh additions VirtualBox.desktop \
632 - VirtualBox.tar.bz2 LICENSE VBoxSysInfo.sh rdesktop* vboxwebsrv \
633 - webtest kchmviewer VirtualBox.chm vbox-create-usb-node.sh \
634 - 90-vbox-usb.fdi uninstall.sh vboxshell.py vboxdrv-pardus.py \
635 - VBoxPython?_*.so
636 -
637 - if use headless ; then
638 - rm -rf VBoxSDL VirtualBox VBoxKeyboard.so
639 - fi
640 -
641 - doins -r * || die
642 -
643 - # create symlinks for working around unsupported $ORIGIN/.. in VBoxC.so (setuid)
644 - dosym ../VBoxVMM.so /opt/VirtualBox/components/VBoxVMM.so
645 - dosym ../VBoxREM.so /opt/VirtualBox/components/VBoxREM.so
646 - dosym ../VBoxRT.so /opt/VirtualBox/components/VBoxRT.so
647 - dosym ../VBoxDDU.so /opt/VirtualBox/components/VBoxDDU.so
648 - dosym ../VBoxXPCOM.so /opt/VirtualBox/components/VBoxXPCOM.so
649 -
650 - local each
651 - for each in VBox{Manage,SVC,XPCOMIPCD,Tunctl,NetAdpCtl,NetDHCP,NetNAT,TestOGL,ExtPackHelperApp}; do
652 - fowners root:vboxusers /opt/VirtualBox/${each}
653 - fperms 0750 /opt/VirtualBox/${each}
654 - pax-mark -m "${ED%/}"/opt/VirtualBox/${each}
655 - done
656 - # VBoxNetAdpCtl and VBoxNetDHCP binaries need to be suid root in any case..
657 - fperms 4750 /opt/VirtualBox/VBoxNetAdpCtl
658 - fperms 4750 /opt/VirtualBox/VBoxNetDHCP
659 - fperms 4750 /opt/VirtualBox/VBoxNetNAT
660 -
661 - if ! use headless ; then
662 - # Hardened build: Mark selected binaries set-user-ID-on-execution
663 - for each in VBox{SDL,Headless} VirtualBox; do
664 - fowners root:vboxusers /opt/VirtualBox/${each}
665 - fperms 4510 /opt/VirtualBox/${each}
666 - pax-mark -m "${ED%/}"/opt/VirtualBox/${each}
667 - done
668 -
669 - dosym ../VirtualBox/VBox.sh /opt/bin/VirtualBox
670 - dosym ../VirtualBox/VBox.sh /opt/bin/VBoxSDL
671 - else
672 - # Hardened build: Mark selected binaries set-user-ID-on-execution
673 - fowners root:vboxusers /opt/VirtualBox/VBoxHeadless
674 - fperms 4510 /opt/VirtualBox/VBoxHeadless
675 - pax-mark -m "${ED%/}"/opt/VirtualBox/VBoxHeadless
676 - fi
677 -
678 - exeinto /opt/VirtualBox
679 - newexe "${FILESDIR}/${PN}-3-wrapper" "VBox.sh"
680 - fowners root:vboxusers /opt/VirtualBox/VBox.sh
681 - fperms 0750 /opt/VirtualBox/VBox.sh
682 -
683 - dosym ../VirtualBox/VBox.sh /opt/bin/VBoxManage
684 - dosym ../VirtualBox/VBox.sh /opt/bin/VBoxVRDP
685 - dosym ../VirtualBox/VBox.sh /opt/bin/VBoxHeadless
686 - dosym ../VirtualBox/VBoxTunctl /opt/bin/VBoxTunctl
687 -
688 - # set an env-variable for 3rd party tools
689 - echo -n "VBOX_APP_HOME=/opt/VirtualBox" > "${T}/90virtualbox"
690 - doenvd "${T}/90virtualbox"
691 -
692 - local udevdir="$(get_udevdir)"
693 - insinto ${udevdir}/rules.d
694 - doins "${FILESDIR}"/10-virtualbox.rules
695 - sed "s@%UDEVDIR%@${udevdir}@" \
696 - -i "${ED%/}"${udevdir}/rules.d/10-virtualbox.rules || die
697 - # move udev scripts into ${udevdir} (bug #372491)
698 - mv "${ED%/}"/opt/VirtualBox/VBoxCreateUSBNode.sh "${ED%/}"${udevdir} || die
699 - fperms 0750 ${udevdir}/VBoxCreateUSBNode.sh
700 -}
701 -
702 -pkg_postinst() {
703 - xdg_desktop_database_update
704 -
705 - gnome2_icon_cache_update
706 -
707 - udevadm control --reload-rules && udevadm trigger --subsystem-match=usb
708 -
709 - elog ""
710 - if ! use headless ; then
711 - elog "To launch VirtualBox just type: \"VirtualBox\""
712 - elog ""
713 - fi
714 - elog "You must be in the vboxusers group to use VirtualBox."
715 - elog ""
716 - elog "For advanced networking setups you should emerge:"
717 - elog "net-misc/bridge-utils and sys-apps/usermode-utilities"
718 - elog ""
719 - elog "Please visit http://www.virtualbox.org/wiki/Editions for"
720 - elog "an overview about the different features of ${PN}"
721 - elog "and virtualbox-ose"
722 - if [ -e "${ROOT}/etc/udev/rules.d/10-virtualbox.rules" ] ; then
723 - elog ""
724 - elog "Please remove \"${ROOT}/etc/udev/rules.d/10-virtualbox.rules\""
725 - elog "or else USB in ${PN} won't work."
726 - fi
727 -}
728 -
729 -pkg_postrm() {
730 - xdg_desktop_database_update
731 -}
732
733 diff --git a/app-emulation/virtualbox-extpack-oracle/Manifest b/app-emulation/virtualbox-extpack-oracle/Manifest
734 index 5675fc437b9..68c99b68589 100644
735 --- a/app-emulation/virtualbox-extpack-oracle/Manifest
736 +++ b/app-emulation/virtualbox-extpack-oracle/Manifest
737 @@ -1,4 +1,2 @@
738 -DIST Oracle_VM_VirtualBox_Extension_Pack-5.2.14-123301.tar.gz 19589209 BLAKE2B 385bdfb4cef67788a1dd3e758f52dab7a367f56ca8d286e465af9a7674ffe3bc0f6187a66d7d19bb8f2a8fc0e23e0ce7ef35ac2d46fd6971dc2df96e8a61ca11 SHA512 a47a7173685b72995e5012386fc8f6c55f9106049a28ecaea223f58f1bb40077e0929cf05102a2588e516fe90891428b8e569ec9351fcaf235eb9f8293e45b92
739 -DIST Oracle_VM_VirtualBox_Extension_Pack-5.2.20-125813.tar.gz 19641208 BLAKE2B ffe4e89b88609d575f7e9f5aed5330de5024462ae564684cf3f565b62649d022c8fc9368cfd1685e3e4fc34e9a23cb0651c483f129b533f9afec38bcae89d587 SHA512 df9ae6af9ad1c1106bf8bf0595fdcdd3ec45bc74b90655e762fb18a4c8ea268bed366ce3caaf0f95682577b61b337650a6fe7ef901f6925fa38679ccd885c21c
740 DIST Oracle_VM_VirtualBox_Extension_Pack-5.2.22-126460.tar.gz 19640932 BLAKE2B 162ab40da6b2cd30d00e020666a1f4fb026e29af2ca9d6c36c294e5fa299b61ab8fd147f24d2b500426c768808db2c7693c30e88519e695d7759f8eedf1c52c5 SHA512 85b8552668b6580bea24f051ad861c82b9ba32177fb7fa37fe2980d8bab32a84325d02bfa9c8f55c2021a4000ef2546d8996ca8b99ca7fc19f8281a92108dfb0
741 DIST Oracle_VM_VirtualBox_Extension_Pack-6.0.0_BETA2-126642.tar.gz 23239583 BLAKE2B f5444d2472152f3f0701f8e4e29f28c6f86fdd95d15c469d84af42bf5d5f4fb226c26dfe9ce152f0fdfe95537213f68897183c9f9519e795312838fcf9a80a2f SHA512 d2b64456558c48688460f874512ce9c08abd06f06a4a1c8d8548cfd8d17c408ba6344390716add606b3a4a519aab59591a8a454ab6384b8082db07fbc37a275d
742
743 diff --git a/app-emulation/virtualbox-extpack-oracle/virtualbox-extpack-oracle-5.2.14.123301.ebuild b/app-emulation/virtualbox-extpack-oracle/virtualbox-extpack-oracle-5.2.14.123301.ebuild
744 deleted file mode 100644
745 index dfbdffec4d5..00000000000
746 --- a/app-emulation/virtualbox-extpack-oracle/virtualbox-extpack-oracle-5.2.14.123301.ebuild
747 +++ /dev/null
748 @@ -1,42 +0,0 @@
749 -# Copyright 1999-2018 Gentoo Foundation
750 -# Distributed under the terms of the GNU General Public License v2
751 -
752 -EAPI=7
753 -
754 -inherit multilib
755 -
756 -MAIN_PV="$(ver_cut 1-3)"
757 -if [[ ${PV} = *_beta* ]] || [[ ${PV} = *_rc* ]] ; then
758 - MY_PV="${MAIN_PV}_$(ver_cut 5)"
759 - DEP_PV="${MY_PV}"
760 - MY_PV="${MY_PV/beta/BETA}"
761 - MY_PV="${MY_PV/rc/RC}"
762 -else
763 - MY_PV="${MAIN_PV}"
764 - DEP_PV="${MAIN_PV}"
765 -fi
766 -VBOX_BUILD_ID="$(ver_cut 4)"
767 -MY_PN="Oracle_VM_VirtualBox_Extension_Pack"
768 -MY_P="${MY_PN}-${MY_PV}-${VBOX_BUILD_ID}"
769 -
770 -DESCRIPTION="PUEL extensions for VirtualBox"
771 -HOMEPAGE="https://www.virtualbox.org/"
772 -SRC_URI="https://download.virtualbox.org/virtualbox/${MY_PV}/${MY_P}.vbox-extpack -> ${MY_P}.tar.gz"
773 -
774 -LICENSE="PUEL"
775 -SLOT="0"
776 -KEYWORDS="amd64 x86"
777 -IUSE=""
778 -RESTRICT="mirror strip"
779 -
780 -RDEPEND="~app-emulation/virtualbox-${DEP_PV}"
781 -
782 -S="${WORKDIR}"
783 -
784 -QA_PREBUILT="/usr/lib*/virtualbox/ExtensionPacks/${MY_PN}/.*"
785 -
786 -src_install() {
787 - insinto /usr/$(get_libdir)/virtualbox/ExtensionPacks/${MY_PN}
788 - doins -r linux.${ARCH}
789 - doins ExtPack* PXE-Intel.rom
790 -}
791
792 diff --git a/app-emulation/virtualbox-extpack-oracle/virtualbox-extpack-oracle-5.2.20.125813.ebuild b/app-emulation/virtualbox-extpack-oracle/virtualbox-extpack-oracle-5.2.20.125813.ebuild
793 deleted file mode 100644
794 index 8a111898f4d..00000000000
795 --- a/app-emulation/virtualbox-extpack-oracle/virtualbox-extpack-oracle-5.2.20.125813.ebuild
796 +++ /dev/null
797 @@ -1,42 +0,0 @@
798 -# Copyright 1999-2018 Gentoo Authors
799 -# Distributed under the terms of the GNU General Public License v2
800 -
801 -EAPI=7
802 -
803 -inherit multilib
804 -
805 -MAIN_PV="$(ver_cut 1-3)"
806 -if [[ ${PV} = *_beta* ]] || [[ ${PV} = *_rc* ]] ; then
807 - MY_PV="${MAIN_PV}_$(ver_cut 5)"
808 - DEP_PV="${MY_PV}"
809 - MY_PV="${MY_PV/beta/BETA}"
810 - MY_PV="${MY_PV/rc/RC}"
811 -else
812 - MY_PV="${MAIN_PV}"
813 - DEP_PV="${MAIN_PV}"
814 -fi
815 -VBOX_BUILD_ID="$(ver_cut 4)"
816 -MY_PN="Oracle_VM_VirtualBox_Extension_Pack"
817 -MY_P="${MY_PN}-${MY_PV}-${VBOX_BUILD_ID}"
818 -
819 -DESCRIPTION="PUEL extensions for VirtualBox"
820 -HOMEPAGE="https://www.virtualbox.org/"
821 -SRC_URI="https://download.virtualbox.org/virtualbox/${MY_PV}/${MY_P}.vbox-extpack -> ${MY_P}.tar.gz"
822 -
823 -LICENSE="PUEL"
824 -SLOT="0"
825 -KEYWORDS="~amd64 ~x86"
826 -IUSE=""
827 -RESTRICT="mirror strip"
828 -
829 -RDEPEND="~app-emulation/virtualbox-${DEP_PV}"
830 -
831 -S="${WORKDIR}"
832 -
833 -QA_PREBUILT="/usr/lib*/virtualbox/ExtensionPacks/${MY_PN}/.*"
834 -
835 -src_install() {
836 - insinto /usr/$(get_libdir)/virtualbox/ExtensionPacks/${MY_PN}
837 - doins -r linux.${ARCH}
838 - doins ExtPack* PXE-Intel.rom
839 -}
840
841 diff --git a/app-emulation/virtualbox-guest-additions/Manifest b/app-emulation/virtualbox-guest-additions/Manifest
842 index 8527693bf99..5f8e2621187 100644
843 --- a/app-emulation/virtualbox-guest-additions/Manifest
844 +++ b/app-emulation/virtualbox-guest-additions/Manifest
845 @@ -1,7 +1,4 @@
846 -DIST VirtualBox-5.2.14.tar.bz2 118597539 BLAKE2B 5e0a8d92405378eb438cae375041609f7a0e1288b040d3a0bcc06157f16ddd48b3537f2f026aa12a71c5319bdef56d6f3907785ac51ebe05a8b7143e04f22d0a SHA512 b8202eccd83e9f2c92a77548d003082b6b3ff7838bb32ae48c3a25dcd622bfdc8ceca42cc49b855eeabf4439c55ad42df9b3959dd1bab77de154468e139c904e
847 -DIST VirtualBox-5.2.20.tar.bz2 118760364 BLAKE2B 7a5f72340796d3278ef5f3210f4b25bf4d999ec93cdd0449853faf68b38c45a6ffd00fe2c88f12296029882f7715c012d1793cfff9d1c2441aa4db414fa3225e SHA512 ff039e487c43b584c5c5959df1622151d82f6c39101af869262f800d07e68a68005ed442112e36ebe249ed79de34c0b974bbd43e7889a5d40df2ebe7dec77a15
848 DIST VirtualBox-5.2.22.tar.bz2 118757134 BLAKE2B be795cdbfb09d3d443f63e190b63898239622f5a57aefdd90f382d9a849d09cc1abc2624071fbc60b2c04a12f33376184540cc362c19225733f99a3bcc8ff6a3 SHA512 4f6c4611a3114778f45419587dc1519ca07410c1ea6474cdb18ecd3b068639a4fdac3f25146fe9b8e006e30f19eba134ce9f665182008b033f6f78497e1ea722
849 DIST VirtualBox-6.0.0_BETA2.tar.bz2 150947619 BLAKE2B 53ed4cfea4a9e62cb8ba68089e3b6cea04b33950496e8aa945591f0d30bb69bbf02428b6bd6dd67afbc916d612b0135ea10124741c0538b917749f46935cf834 SHA512 10f7bd5c7c14d79ed1bf4662fce76d66f4f61bba1a9c8c7dfff57dad2dd6eaf2ae03911fdc994d53769f872079d7a04a1732126fc1aa9907237cbdccefda3348
850 -DIST virtualbox-5.2.12-patches-01.tar.xz 2616 BLAKE2B 5731484d185414d83588ee227bbc1eef266451d1a3a710adf1b769cd6404ef1750dba7a60549f2ab9f3fb81ef15809db9ea0190127caefc72d7bc9bb8b741fb0 SHA512 712b55392a8e8357e95abb42ea4f8dac3391ecbf9cbecf27c7dbf674c40f42a1eb19d227a1b3adcf621384a9f64a6438d20fb43866c736189097fb5770c5c654
851 DIST virtualbox-5.2.16-patches-02.tar.xz 3152 BLAKE2B c8d8f3872f544a465c7d1aa07291599307120ac9eabfb299ddd788a11f85ca6c2d84b8e7306ee4ad436270dad0dd39f101ee68a549eac15afd1e3cdc03f23c6c SHA512 85ee8c4045de562d71ab2d761695ea48b6726a6f0c4bcaa2562bb0d147542d3f1a1b5b47cf593a7f22dac1b86f87b59a56bef421dce3e1fa8e5260cd41998450
852 DIST virtualbox-6.0.0_beta2-patches-01.tar.xz 2732 BLAKE2B a138e715d99f135f16ca21c92781bf6cd8913f7f766bb598eddcd63e98280e568e646f56bbd0a3714f273457ca90db0b77ec7940ba25028506a22891f1af7b2d SHA512 954e4b40d6e272efe756ee0965adb4110d45f764433a89080fda7ebaebbc20031f86a3e0027dfdaa1c6a7d6379a1af557cea71512504e4b57b5f5adbfc86b56e
853
854 diff --git a/app-emulation/virtualbox-guest-additions/files/virtualbox-guest-additions-5.2.18-linux-4.18.patch b/app-emulation/virtualbox-guest-additions/files/virtualbox-guest-additions-5.2.18-linux-4.18.patch
855 deleted file mode 100644
856 index ed314943a7c..00000000000
857 --- a/app-emulation/virtualbox-guest-additions/files/virtualbox-guest-additions-5.2.18-linux-4.18.patch
858 +++ /dev/null
859 @@ -1,29 +0,0 @@
860 -Author: Larry Finger
861 -Origin: https://www.mail-archive.com/vbox-dev@××××××××××.org/msg09363.html
862 -
863 ---- a/src/VBox/Additions/linux/sharedfolders/utils.c
864 -+++ b/src/VBox/Additions/linux/sharedfolders/utils.c
865 -@@ -50,7 +50,11 @@ static void sf_timespec_from_ftime(RTTIMESPEC *ts, time_t *time)
866 - RTTimeSpecSetNano(ts, t);
867 - }
868 - #else /* >= 2.6.0 */
869 -+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 18, 0)
870 -+static void sf_ftime_from_timespec(struct timespec64 *tv, RTTIMESPEC *ts)
871 -+#else
872 - static void sf_ftime_from_timespec(struct timespec *tv, RTTIMESPEC *ts)
873 -+#endif
874 - {
875 - int64_t t = RTTimeSpecGetNano(ts);
876 - int64_t nsec;
877 -@@ -60,7 +64,11 @@ static void sf_ftime_from_timespec(struct timespec *tv, RTTIMESPEC *ts)
878 - tv->tv_nsec = nsec;
879 - }
880 -
881 -+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 18, 0)
882 -+static void sf_timespec_from_ftime(RTTIMESPEC *ts, struct timespec64 *tv)
883 -+#else
884 - static void sf_timespec_from_ftime(RTTIMESPEC *ts, struct timespec *tv)
885 -+#endif
886 - {
887 - int64_t t = (int64_t)tv->tv_nsec + (int64_t)tv->tv_sec * 1000000000;
888 - RTTimeSpecSetNano(ts, t);
889
890 diff --git a/app-emulation/virtualbox-guest-additions/virtualbox-guest-additions-5.2.14.ebuild b/app-emulation/virtualbox-guest-additions/virtualbox-guest-additions-5.2.14.ebuild
891 deleted file mode 100644
892 index 77b0deee6c9..00000000000
893 --- a/app-emulation/virtualbox-guest-additions/virtualbox-guest-additions-5.2.14.ebuild
894 +++ /dev/null
895 @@ -1,228 +0,0 @@
896 -# Copyright 1999-2018 Gentoo Foundation
897 -# Distributed under the terms of the GNU General Public License v2
898 -
899 -EAPI=6
900 -
901 -inherit linux-mod systemd user toolchain-funcs
902 -
903 -MY_PV="${PV/beta/BETA}"
904 -MY_PV="${MY_PV/rc/RC}"
905 -MY_P="VirtualBox-${MY_PV}"
906 -DESCRIPTION="VirtualBox kernel modules and user-space tools for Gentoo guests"
907 -HOMEPAGE="https://www.virtualbox.org/"
908 -SRC_URI="https://download.virtualbox.org/virtualbox/${MY_PV}/${MY_P}.tar.bz2
909 - https://dev.gentoo.org/~polynomial-c/virtualbox/patchsets/virtualbox-5.2.12-patches-01.tar.xz"
910 -
911 -LICENSE="GPL-2"
912 -SLOT="0"
913 -KEYWORDS="amd64 x86"
914 -IUSE="X"
915 -
916 -RDEPEND="
917 - X? ( x11-apps/xrandr
918 - x11-apps/xrefresh
919 - x11-libs/libXmu
920 - x11-libs/libX11
921 - x11-libs/libXt
922 - x11-libs/libXext
923 - x11-libs/libXau
924 - x11-libs/libXdmcp
925 - x11-libs/libSM
926 - x11-libs/libICE )
927 - sys-apps/dbus
928 -"
929 -DEPEND="
930 - ${RDEPEND}
931 - >=dev-util/kbuild-0.1.9998.3127
932 - >=dev-lang/yasm-0.6.2
933 - sys-devel/bin86
934 - sys-libs/pam
935 - sys-power/iasl
936 - x11-base/xorg-proto
937 -"
938 -PDEPEND="
939 - X? ( x11-drivers/xf86-video-vboxvideo )
940 -"
941 -BUILD_TARGETS="all"
942 -BUILD_TARGET_ARCH="${ARCH}"
943 -
944 -S="${WORKDIR}/${MY_P}"
945 -
946 -pkg_setup() {
947 - MODULE_NAMES="vboxguest(misc:${WORKDIR}/vboxguest:${WORKDIR}/vboxguest)
948 - vboxsf(misc:${WORKDIR}/vboxsf:${WORKDIR}/vboxsf)"
949 - use X && MODULE_NAMES+=" vboxvideo(misc:${WORKDIR}/vboxvideo::${WORKDIR}/vboxvideo)"
950 -
951 - linux-mod_pkg_setup
952 - BUILD_PARAMS="KERN_DIR=${KV_OUT_DIR} KERNOUT=${KV_OUT_DIR}"
953 - enewgroup vboxguest
954 - enewuser vboxguest -1 /bin/sh /dev/null vboxguest
955 - # automount Error: VBoxServiceAutoMountWorker: Group "vboxsf" does not exist
956 - enewgroup vboxsf
957 -}
958 -
959 -src_unpack() {
960 - unpack ${A}
961 -
962 - # Apply before we create archive with Linux guest kernel modules
963 - pushd "${S}" &>/dev/null || die
964 - eapply "${FILESDIR}"/virtualbox-guest-additions-5.2.18-linux-4.18.patch # 663488
965 - popd &>/dev/null || die
966 -
967 - # Create and unpack a tarball with the sources of the Linux guest
968 - # kernel modules, to include all the needed files
969 - "${S}"/src/VBox/Additions/linux/export_modules.sh "${WORKDIR}/vbox-kmod.tar.gz"
970 - unpack ./vbox-kmod.tar.gz
971 -
972 - # Remove shipped binaries (kBuild,yasm), see bug #232775
973 - cd "${S}"
974 - rm -rf kBuild/bin tools
975 -}
976 -
977 -src_prepare() {
978 - # PaX fixes (see bug #298988)
979 - pushd "${WORKDIR}" &>/dev/null || die
980 - eapply "${FILESDIR}"/vboxguest-4.1.0-log-use-c99.patch
981 - popd &>/dev/null || die
982 -
983 - # Disable things unused or splitted into separate ebuilds
984 - cp "${FILESDIR}/${PN}-5-localconfig" LocalConfig.kmk || die
985 - use X || echo "VBOX_WITH_X11_ADDITIONS :=" >> LocalConfig.kmk
986 -
987 - # stupid new header references...
988 - for vboxheader in {product,revision,version}-generated.h ; do
989 - for mdir in vbox{guest,sf} ; do
990 - ln -sf "${S}"/out/linux.${ARCH}/release/${vboxheader} \
991 - "${WORKDIR}/${mdir}/${vboxheader}"
992 - done
993 - done
994 -
995 - # Remove pointless GCC version check
996 - sed -e '/^check_gcc$/d' -i configure || die
997 -
998 - eapply "${WORKDIR}/patches"
999 -
1000 - eapply_user
1001 -}
1002 -
1003 -src_configure() {
1004 - # build the user-space tools, warnings are harmless
1005 - local cmd=(
1006 - ./configure
1007 - --nofatal
1008 - --disable-xpcom
1009 - --disable-sdl-ttf
1010 - --disable-pulse
1011 - --disable-alsa
1012 - --with-gcc="$(tc-getCC)"
1013 - --with-g++="$(tc-getCXX)"
1014 - --target-arch=${ARCH}
1015 - --with-linux="${KV_OUT_DIR}"
1016 - --build-headless
1017 - )
1018 - echo "${cmd[@]}"
1019 - "${cmd[@]}" || die "configure failed"
1020 - source ./env.sh
1021 - export VBOX_GCC_OPT="${CFLAGS} ${CPPFLAGS}"
1022 -}
1023 -
1024 -src_compile() {
1025 - MAKE="kmk" \
1026 - emake TOOL_YASM_AS=yasm \
1027 - VBOX_ONLY_ADDITIONS=1 \
1028 - KBUILD_VERBOSE=2
1029 -
1030 - # Now creating the kernel modules. We must do this _after_
1031 - # we compiled the user-space tools as we need two of the
1032 - # automatically generated header files. (>=3.2.0)
1033 - linux-mod_src_compile
1034 -}
1035 -
1036 -src_install() {
1037 - linux-mod_src_install
1038 -
1039 - cd "${S}"/out/linux.${ARCH}/release/bin/additions || die
1040 -
1041 - insinto /sbin
1042 - newins mount.vboxsf mount.vboxsf
1043 - fperms 4755 /sbin/mount.vboxsf
1044 -
1045 - newinitd "${FILESDIR}"/${PN}-8.initd ${PN}
1046 -
1047 - insinto /usr/sbin/
1048 - newins VBoxService vboxguest-service
1049 - fperms 0755 /usr/sbin/vboxguest-service
1050 -
1051 - insinto /usr/bin
1052 - doins VBoxControl
1053 - fperms 0755 /usr/bin/VBoxControl
1054 -
1055 - # VBoxClient user service and xrandr wrapper
1056 - if use X ; then
1057 - doins VBoxClient
1058 - fperms 0755 /usr/bin/VBoxClient
1059 -
1060 - pushd "${S}"/src/VBox/Additions/x11/Installer &>/dev/null \
1061 - || die
1062 - newins 98vboxadd-xclient VBoxClient-all
1063 - fperms 0755 /usr/bin/VBoxClient-all
1064 - popd &>/dev/null || die
1065 - fi
1066 -
1067 - # udev rule for vboxdrv
1068 - local udev_rules_dir="/lib/udev/rules.d"
1069 - dodir ${udev_rules_dir}
1070 - echo 'KERNEL=="vboxguest", OWNER="vboxguest", GROUP="vboxguest", MODE="0660"' \
1071 - >> "${ED%/}/${udev_rules_dir}/60-virtualbox-guest-additions.rules" \
1072 - || die
1073 - echo 'KERNEL=="vboxuser", OWNER="vboxguest", GROUP="vboxguest", MODE="0660"' \
1074 - >> "${ED%/}/${udev_rules_dir}/60-virtualbox-guest-additions.rules" \
1075 - || die
1076 -
1077 - # VBoxClient autostart file
1078 - insinto /etc/xdg/autostart
1079 - doins "${FILESDIR}"/vboxclient.desktop
1080 -
1081 - # sample xorg.conf
1082 - insinto /usr/share/doc/${PF}
1083 - doins "${FILESDIR}"/xorg.conf.vbox
1084 -
1085 - systemd_dounit "${FILESDIR}/${PN}.service"
1086 -}
1087 -
1088 -pkg_postinst() {
1089 - linux-mod_pkg_postinst
1090 - if ! use X ; then
1091 - elog "use flag X is off, enable it to install the"
1092 - elog "X Window System video driver."
1093 - fi
1094 - elog ""
1095 - elog "Please add users to the \"vboxguest\" group so they can"
1096 - elog "benefit from seamless mode, auto-resize and clipboard."
1097 - elog ""
1098 - elog "The vboxsf group has been added to make automount services work."
1099 - elog "These services are part of the shared folders support."
1100 - elog ""
1101 - elog "Please add:"
1102 - elog "/etc/init.d/${PN}"
1103 - elog "to the default runlevel in order to start"
1104 - elog "needed services."
1105 - elog "To use the VirtualBox X driver, use the following"
1106 - elog "file as your /etc/X11/xorg.conf:"
1107 - elog " /usr/share/doc/${PF}/xorg.conf.vbox"
1108 - elog ""
1109 - elog "Also make sure you use the Mesa library for OpenGL:"
1110 - elog " eselect opengl set xorg-x11"
1111 - elog ""
1112 - elog "An autostart .desktop file has been installed to start"
1113 - elog "VBoxClient in desktop sessions."
1114 - elog ""
1115 - elog "You can mount shared folders with:"
1116 - elog " mount -t vboxsf <shared_folder_name> <mount_point>"
1117 - elog ""
1118 - elog "Warning:"
1119 - elog "this ebuild is only needed if you are running gentoo"
1120 - elog "inside a VirtualBox Virtual Machine, you don't need"
1121 - elog "it to run VirtualBox itself."
1122 - elog ""
1123 -}
1124
1125 diff --git a/app-emulation/virtualbox-guest-additions/virtualbox-guest-additions-5.2.20.ebuild b/app-emulation/virtualbox-guest-additions/virtualbox-guest-additions-5.2.20.ebuild
1126 deleted file mode 100644
1127 index 64bc7a6872f..00000000000
1128 --- a/app-emulation/virtualbox-guest-additions/virtualbox-guest-additions-5.2.20.ebuild
1129 +++ /dev/null
1130 @@ -1,227 +0,0 @@
1131 -# Copyright 1999-2018 Gentoo Authors
1132 -# Distributed under the terms of the GNU General Public License v2
1133 -
1134 -EAPI=7
1135 -
1136 -inherit linux-mod systemd user toolchain-funcs
1137 -
1138 -MY_PV="${PV/beta/BETA}"
1139 -MY_PV="${MY_PV/rc/RC}"
1140 -MY_P="VirtualBox-${MY_PV}"
1141 -DESCRIPTION="VirtualBox kernel modules and user-space tools for Gentoo guests"
1142 -HOMEPAGE="https://www.virtualbox.org/"
1143 -SRC_URI="https://download.virtualbox.org/virtualbox/${MY_PV}/${MY_P}.tar.bz2
1144 - https://dev.gentoo.org/~polynomial-c/virtualbox/patchsets/virtualbox-5.2.16-patches-02.tar.xz"
1145 -
1146 -LICENSE="GPL-2"
1147 -SLOT="0"
1148 -KEYWORDS="~amd64 ~x86"
1149 -IUSE="X"
1150 -
1151 -RDEPEND="
1152 - X? ( x11-apps/xrandr
1153 - x11-apps/xrefresh
1154 - x11-libs/libXmu
1155 - x11-libs/libX11
1156 - x11-libs/libXt
1157 - x11-libs/libXext
1158 - x11-libs/libXau
1159 - x11-libs/libXdmcp
1160 - x11-libs/libSM
1161 - x11-libs/libICE )
1162 - sys-apps/dbus
1163 -"
1164 -DEPEND="
1165 - ${RDEPEND}
1166 - >=dev-util/kbuild-0.1.9998.3127
1167 - >=dev-lang/yasm-0.6.2
1168 - sys-devel/bin86
1169 - sys-libs/pam
1170 - sys-power/iasl
1171 - x11-base/xorg-proto
1172 -"
1173 -PDEPEND="
1174 - X? ( x11-drivers/xf86-video-vboxvideo )
1175 -"
1176 -BUILD_TARGETS="all"
1177 -BUILD_TARGET_ARCH="${ARCH}"
1178 -
1179 -S="${WORKDIR}/${MY_P}"
1180 -
1181 -pkg_setup() {
1182 - MODULE_NAMES="vboxguest(misc:${WORKDIR}/vboxguest:${WORKDIR}/vboxguest)
1183 - vboxsf(misc:${WORKDIR}/vboxsf:${WORKDIR}/vboxsf)"
1184 - use X && MODULE_NAMES+=" vboxvideo(misc:${WORKDIR}/vboxvideo::${WORKDIR}/vboxvideo)"
1185 -
1186 - linux-mod_pkg_setup
1187 - BUILD_PARAMS="KERN_DIR=/lib/modules/${KV_FULL}/build KERNOUT=${KV_OUT_DIR}"
1188 -}
1189 -
1190 -src_unpack() {
1191 - unpack ${A}
1192 -
1193 - # Create and unpack a tarball with the sources of the Linux guest
1194 - # kernel modules, to include all the needed files
1195 - "${S}"/src/VBox/Additions/linux/export_modules.sh "${WORKDIR}/vbox-kmod.tar.gz"
1196 - unpack ./vbox-kmod.tar.gz
1197 -
1198 - # Remove shipped binaries (kBuild,yasm), see bug #232775
1199 - cd "${S}"
1200 - rm -rf kBuild/bin tools
1201 -}
1202 -
1203 -src_prepare() {
1204 - # PaX fixes (see bug #298988)
1205 - pushd "${WORKDIR}" &>/dev/null || die
1206 - eapply "${FILESDIR}"/vboxguest-4.1.0-log-use-c99.patch
1207 - popd &>/dev/null || die
1208 -
1209 - # Disable things unused or splitted into separate ebuilds
1210 - cp "${FILESDIR}/${PN}-5-localconfig" LocalConfig.kmk || die
1211 - use X || echo "VBOX_WITH_X11_ADDITIONS :=" >> LocalConfig.kmk
1212 -
1213 - # stupid new header references...
1214 - local vboxheader mdir
1215 - for vboxheader in {product,revision,version}-generated.h ; do
1216 - for mdir in vbox{guest,sf} ; do
1217 - ln -sf "${S}"/out/linux.${ARCH}/release/${vboxheader} \
1218 - "${WORKDIR}/${mdir}/${vboxheader}"
1219 - done
1220 - done
1221 -
1222 - # Remove pointless GCC version check
1223 - sed -e '/^check_gcc$/d' -i configure || die
1224 -
1225 - eapply "${WORKDIR}/patches"
1226 -
1227 - eapply_user
1228 -}
1229 -
1230 -src_configure() {
1231 - # build the user-space tools, warnings are harmless
1232 - local cmd=(
1233 - ./configure
1234 - --nofatal
1235 - --disable-xpcom
1236 - --disable-sdl-ttf
1237 - --disable-pulse
1238 - --disable-alsa
1239 - --with-gcc="$(tc-getCC)"
1240 - --with-g++="$(tc-getCXX)"
1241 - --target-arch=${ARCH}
1242 - --with-linux="${KV_OUT_DIR}"
1243 - --build-headless
1244 - )
1245 - echo "${cmd[@]}"
1246 - "${cmd[@]}" || die "configure failed"
1247 - source ./env.sh
1248 - export VBOX_GCC_OPT="${CFLAGS} ${CPPFLAGS}"
1249 -}
1250 -
1251 -src_compile() {
1252 - MAKE="kmk" \
1253 - emake TOOL_YASM_AS=yasm \
1254 - VBOX_ONLY_ADDITIONS=1 \
1255 - KBUILD_VERBOSE=2
1256 -
1257 - # Now creating the kernel modules. We must do this _after_
1258 - # we compiled the user-space tools as we need two of the
1259 - # automatically generated header files. (>=3.2.0)
1260 - linux-mod_src_compile
1261 -}
1262 -
1263 -src_install() {
1264 - linux-mod_src_install
1265 -
1266 - cd "${S}"/out/linux.${ARCH}/release/bin/additions || die
1267 -
1268 - insinto /sbin
1269 - newins mount.vboxsf mount.vboxsf
1270 - fperms 4755 /sbin/mount.vboxsf
1271 -
1272 - newinitd "${FILESDIR}"/${PN}-8.initd ${PN}
1273 -
1274 - insinto /usr/sbin/
1275 - newins VBoxService vboxguest-service
1276 - fperms 0755 /usr/sbin/vboxguest-service
1277 -
1278 - insinto /usr/bin
1279 - doins VBoxControl
1280 - fperms 0755 /usr/bin/VBoxControl
1281 -
1282 - # VBoxClient user service and xrandr wrapper
1283 - if use X ; then
1284 - doins VBoxClient
1285 - fperms 0755 /usr/bin/VBoxClient
1286 -
1287 - pushd "${S}"/src/VBox/Additions/x11/Installer &>/dev/null \
1288 - || die
1289 - newins 98vboxadd-xclient VBoxClient-all
1290 - fperms 0755 /usr/bin/VBoxClient-all
1291 - popd &>/dev/null || die
1292 - fi
1293 -
1294 - # udev rule for vboxdrv
1295 - local udev_rules_dir="/lib/udev/rules.d"
1296 - dodir ${udev_rules_dir}
1297 - echo 'KERNEL=="vboxguest", OWNER="vboxguest", GROUP="vboxguest", MODE="0660"' \
1298 - >> "${ED%/}/${udev_rules_dir}/60-virtualbox-guest-additions.rules" \
1299 - || die
1300 - echo 'KERNEL=="vboxuser", OWNER="vboxguest", GROUP="vboxguest", MODE="0660"' \
1301 - >> "${ED%/}/${udev_rules_dir}/60-virtualbox-guest-additions.rules" \
1302 - || die
1303 -
1304 - # VBoxClient autostart file
1305 - insinto /etc/xdg/autostart
1306 - doins "${FILESDIR}"/vboxclient.desktop
1307 -
1308 - # sample xorg.conf
1309 - insinto /usr/share/doc/${PF}
1310 - doins "${FILESDIR}"/xorg.conf.vbox
1311 -
1312 - systemd_dounit "${FILESDIR}/${PN}.service"
1313 -}
1314 -
1315 -pkg_preinst() {
1316 - enewgroup vboxguest
1317 - enewuser vboxguest -1 /bin/sh /dev/null vboxguest
1318 - # automount Error: VBoxServiceAutoMountWorker: Group "vboxsf" does not exist
1319 - enewgroup vboxsf
1320 -}
1321 -
1322 -pkg_postinst() {
1323 - linux-mod_pkg_postinst
1324 - if ! use X ; then
1325 - elog "use flag X is off, enable it to install the"
1326 - elog "X Window System video driver."
1327 - fi
1328 - elog ""
1329 - elog "Please add users to the \"vboxguest\" group so they can"
1330 - elog "benefit from seamless mode, auto-resize and clipboard."
1331 - elog ""
1332 - elog "The vboxsf group has been added to make automount services work."
1333 - elog "These services are part of the shared folders support."
1334 - elog ""
1335 - elog "Please add:"
1336 - elog "/etc/init.d/${PN}"
1337 - elog "to the default runlevel in order to start"
1338 - elog "needed services."
1339 - elog "To use the VirtualBox X driver, use the following"
1340 - elog "file as your /etc/X11/xorg.conf:"
1341 - elog " /usr/share/doc/${PF}/xorg.conf.vbox"
1342 - elog ""
1343 - elog "Also make sure you use the Mesa library for OpenGL:"
1344 - elog " eselect opengl set xorg-x11"
1345 - elog ""
1346 - elog "An autostart .desktop file has been installed to start"
1347 - elog "VBoxClient in desktop sessions."
1348 - elog ""
1349 - elog "You can mount shared folders with:"
1350 - elog " mount -t vboxsf <shared_folder_name> <mount_point>"
1351 - elog ""
1352 - elog "Warning:"
1353 - elog "this ebuild is only needed if you are running gentoo"
1354 - elog "inside a VirtualBox Virtual Machine, you don't need"
1355 - elog "it to run VirtualBox itself."
1356 - elog ""
1357 -}
1358
1359 diff --git a/app-emulation/virtualbox-modules/Manifest b/app-emulation/virtualbox-modules/Manifest
1360 index 36177aeda6a..ce590db8c1c 100644
1361 --- a/app-emulation/virtualbox-modules/Manifest
1362 +++ b/app-emulation/virtualbox-modules/Manifest
1363 @@ -1,4 +1,2 @@
1364 -DIST vbox-kernel-module-src-5.2.14.tar.xz 637352 BLAKE2B 7ccefbb13f25fe995e0f769192a93baa91358c09e7126d6a6c8bef7fceeab50082f78843140d23cf88c4931c561552c4131b17625e7a3821766571387d78d2a3 SHA512 920eca67fb10ed4d1eeab95b14e65c585dd96df82a4690c34c9d85366ec6dd9835f9a772eb4718a80e6ffb2637de2a698151a6bdfd7984fc2070cd0bade5c077
1365 -DIST vbox-kernel-module-src-5.2.20.tar.xz 638452 BLAKE2B f8fa29e21a77ebfec765ce0e006aaba9fdc76773e216d0c24c705e688730598e85b2c191406acd376f4020c67e296b6f22b0acecb7f15f3e343233b4a7da62fa SHA512 5378be30ab697ded6c07e74b15a38331914b19f72c55847e92e6e89541c25d89aeb6020aaaa3820e84902efb10a5b7ba7190a5271da93cd490b25fcbd787bf28
1366 DIST vbox-kernel-module-src-5.2.22.tar.xz 638492 BLAKE2B 71aba29b056bb3dfeffbf4632fbf7f15d89b988267ba24c766b78b1d9c50a4d27fb1b8e699108b973af68024f9f77ca0a8ad787355d7342fe1400f14189487ff SHA512 3361bb536af8e8d490377be04d1b1b9af478538e23ec409d3e0205ad930c16e5228c57ae7d92d214ac533ae64298d9eaff3c9284ff9bb308108d1ad7d69fb507
1367 DIST vbox-kernel-module-src-6.0.0_beta2.tar.xz 664280 BLAKE2B b309b38cfb3986ed9efa38e70998977d14d79b4b8b6796e735be16c957cc7248714eb94e14b6a7ec8be2f7b7ccf555fb556bd8884bfe66d599a23742ed40a8fe SHA512 56267c1c37f1c4cd549777c53533fa7063f95df47d59eaa890f6fda90dddaa768c8cb51313591ba5d3509e5c59597062866efba492a55d8554dafd95b316e42e
1368
1369 diff --git a/app-emulation/virtualbox-modules/virtualbox-modules-5.2.14.ebuild b/app-emulation/virtualbox-modules/virtualbox-modules-5.2.14.ebuild
1370 deleted file mode 100644
1371 index 83434a84f92..00000000000
1372 --- a/app-emulation/virtualbox-modules/virtualbox-modules-5.2.14.ebuild
1373 +++ /dev/null
1374 @@ -1,51 +0,0 @@
1375 -# Copyright 1999-2018 Gentoo Foundation
1376 -# Distributed under the terms of the GNU General Public License v2
1377 -
1378 -# XXX: the tarball here is just the kernel modules split out of the binary
1379 -# package that comes from virtualbox-bin
1380 -
1381 -EAPI=6
1382 -
1383 -inherit eutils linux-mod user
1384 -
1385 -MY_P="vbox-kernel-module-src-${PV}"
1386 -DESCRIPTION="Kernel Modules for Virtualbox"
1387 -HOMEPAGE="https://www.virtualbox.org/"
1388 -SRC_URI="https://dev.gentoo.org/~polynomial-c/virtualbox/${MY_P}.tar.xz"
1389 -
1390 -LICENSE="GPL-2"
1391 -SLOT="0"
1392 -KEYWORDS="amd64 x86"
1393 -IUSE="pax_kernel"
1394 -
1395 -RDEPEND="!=app-emulation/virtualbox-9999"
1396 -
1397 -S="${WORKDIR}"
1398 -
1399 -BUILD_TARGETS="all"
1400 -BUILD_TARGET_ARCH="${ARCH}"
1401 -MODULE_NAMES="vboxdrv(misc:${S}) vboxnetflt(misc:${S}) vboxnetadp(misc:${S}) vboxpci(misc:${S})"
1402 -
1403 -pkg_setup() {
1404 - enewgroup vboxusers
1405 - linux-mod_pkg_setup
1406 - BUILD_PARAMS="CC=$(tc-getBUILD_CC) KERN_DIR=${KV_DIR} KERN_VER=${KV_FULL} O=${KV_OUT_DIR} V=1 KBUILD_VERBOSE=1"
1407 -}
1408 -
1409 -src_prepare() {
1410 - if use pax_kernel && kernel_is -ge 3 0 0 ; then
1411 - eapply -p0 "${FILESDIR}"/${PN}-5.2.8-pax-const.patch
1412 - fi
1413 -
1414 - default
1415 -}
1416 -
1417 -src_install() {
1418 - linux-mod_src_install
1419 - insinto /usr/lib/modules-load.d/
1420 - doins "${FILESDIR}"/virtualbox.conf
1421 -}
1422 -
1423 -pkg_postinst() {
1424 - linux-mod_pkg_postinst
1425 -}
1426
1427 diff --git a/app-emulation/virtualbox-modules/virtualbox-modules-5.2.20.ebuild b/app-emulation/virtualbox-modules/virtualbox-modules-5.2.20.ebuild
1428 deleted file mode 100644
1429 index 49a28e2fd79..00000000000
1430 --- a/app-emulation/virtualbox-modules/virtualbox-modules-5.2.20.ebuild
1431 +++ /dev/null
1432 @@ -1,51 +0,0 @@
1433 -# Copyright 1999-2018 Gentoo Authors
1434 -# Distributed under the terms of the GNU General Public License v2
1435 -
1436 -# XXX: the tarball here is just the kernel modules split out of the binary
1437 -# package that comes from virtualbox-bin
1438 -
1439 -EAPI=7
1440 -
1441 -inherit linux-mod user
1442 -
1443 -MY_P="vbox-kernel-module-src-${PV}"
1444 -DESCRIPTION="Kernel Modules for Virtualbox"
1445 -HOMEPAGE="https://www.virtualbox.org/"
1446 -SRC_URI="https://dev.gentoo.org/~polynomial-c/virtualbox/${MY_P}.tar.xz"
1447 -
1448 -LICENSE="GPL-2"
1449 -SLOT="0"
1450 -KEYWORDS="~amd64 ~x86"
1451 -IUSE="pax_kernel"
1452 -
1453 -RDEPEND="!=app-emulation/virtualbox-9999"
1454 -
1455 -S="${WORKDIR}"
1456 -
1457 -BUILD_TARGETS="all"
1458 -BUILD_TARGET_ARCH="${ARCH}"
1459 -MODULE_NAMES="vboxdrv(misc:${S}) vboxnetflt(misc:${S}) vboxnetadp(misc:${S}) vboxpci(misc:${S})"
1460 -
1461 -pkg_setup() {
1462 - enewgroup vboxusers
1463 - linux-mod_pkg_setup
1464 - BUILD_PARAMS="CC=$(tc-getBUILD_CC) KERN_DIR=${KV_DIR} KERN_VER=${KV_FULL} O=${KV_OUT_DIR} V=1 KBUILD_VERBOSE=1"
1465 -}
1466 -
1467 -src_prepare() {
1468 - if use pax_kernel && kernel_is -ge 3 0 0 ; then
1469 - eapply -p0 "${FILESDIR}"/${PN}-5.2.8-pax-const.patch
1470 - fi
1471 -
1472 - default
1473 -}
1474 -
1475 -src_install() {
1476 - linux-mod_src_install
1477 - insinto /usr/lib/modules-load.d/
1478 - doins "${FILESDIR}"/virtualbox.conf
1479 -}
1480 -
1481 -pkg_postinst() {
1482 - linux-mod_pkg_postinst
1483 -}
1484
1485 diff --git a/app-emulation/virtualbox/Manifest b/app-emulation/virtualbox/Manifest
1486 index 8527693bf99..5f8e2621187 100644
1487 --- a/app-emulation/virtualbox/Manifest
1488 +++ b/app-emulation/virtualbox/Manifest
1489 @@ -1,7 +1,4 @@
1490 -DIST VirtualBox-5.2.14.tar.bz2 118597539 BLAKE2B 5e0a8d92405378eb438cae375041609f7a0e1288b040d3a0bcc06157f16ddd48b3537f2f026aa12a71c5319bdef56d6f3907785ac51ebe05a8b7143e04f22d0a SHA512 b8202eccd83e9f2c92a77548d003082b6b3ff7838bb32ae48c3a25dcd622bfdc8ceca42cc49b855eeabf4439c55ad42df9b3959dd1bab77de154468e139c904e
1491 -DIST VirtualBox-5.2.20.tar.bz2 118760364 BLAKE2B 7a5f72340796d3278ef5f3210f4b25bf4d999ec93cdd0449853faf68b38c45a6ffd00fe2c88f12296029882f7715c012d1793cfff9d1c2441aa4db414fa3225e SHA512 ff039e487c43b584c5c5959df1622151d82f6c39101af869262f800d07e68a68005ed442112e36ebe249ed79de34c0b974bbd43e7889a5d40df2ebe7dec77a15
1492 DIST VirtualBox-5.2.22.tar.bz2 118757134 BLAKE2B be795cdbfb09d3d443f63e190b63898239622f5a57aefdd90f382d9a849d09cc1abc2624071fbc60b2c04a12f33376184540cc362c19225733f99a3bcc8ff6a3 SHA512 4f6c4611a3114778f45419587dc1519ca07410c1ea6474cdb18ecd3b068639a4fdac3f25146fe9b8e006e30f19eba134ce9f665182008b033f6f78497e1ea722
1493 DIST VirtualBox-6.0.0_BETA2.tar.bz2 150947619 BLAKE2B 53ed4cfea4a9e62cb8ba68089e3b6cea04b33950496e8aa945591f0d30bb69bbf02428b6bd6dd67afbc916d612b0135ea10124741c0538b917749f46935cf834 SHA512 10f7bd5c7c14d79ed1bf4662fce76d66f4f61bba1a9c8c7dfff57dad2dd6eaf2ae03911fdc994d53769f872079d7a04a1732126fc1aa9907237cbdccefda3348
1494 -DIST virtualbox-5.2.12-patches-01.tar.xz 2616 BLAKE2B 5731484d185414d83588ee227bbc1eef266451d1a3a710adf1b769cd6404ef1750dba7a60549f2ab9f3fb81ef15809db9ea0190127caefc72d7bc9bb8b741fb0 SHA512 712b55392a8e8357e95abb42ea4f8dac3391ecbf9cbecf27c7dbf674c40f42a1eb19d227a1b3adcf621384a9f64a6438d20fb43866c736189097fb5770c5c654
1495 DIST virtualbox-5.2.16-patches-02.tar.xz 3152 BLAKE2B c8d8f3872f544a465c7d1aa07291599307120ac9eabfb299ddd788a11f85ca6c2d84b8e7306ee4ad436270dad0dd39f101ee68a549eac15afd1e3cdc03f23c6c SHA512 85ee8c4045de562d71ab2d761695ea48b6726a6f0c4bcaa2562bb0d147542d3f1a1b5b47cf593a7f22dac1b86f87b59a56bef421dce3e1fa8e5260cd41998450
1496 DIST virtualbox-6.0.0_beta2-patches-01.tar.xz 2732 BLAKE2B a138e715d99f135f16ca21c92781bf6cd8913f7f766bb598eddcd63e98280e568e646f56bbd0a3714f273457ca90db0b77ec7940ba25028506a22891f1af7b2d SHA512 954e4b40d6e272efe756ee0965adb4110d45f764433a89080fda7ebaebbc20031f86a3e0027dfdaa1c6a7d6379a1af557cea71512504e4b57b5f5adbfc86b56e
1497
1498 diff --git a/app-emulation/virtualbox/virtualbox-5.2.14-r1.ebuild b/app-emulation/virtualbox/virtualbox-5.2.14-r1.ebuild
1499 deleted file mode 100644
1500 index 4d8d595387b..00000000000
1501 --- a/app-emulation/virtualbox/virtualbox-5.2.14-r1.ebuild
1502 +++ /dev/null
1503 @@ -1,474 +0,0 @@
1504 -# Copyright 1999-2018 Gentoo Authors
1505 -# Distributed under the terms of the GNU General Public License v2
1506 -
1507 -EAPI=6
1508 -
1509 -PYTHON_COMPAT=( python2_7 )
1510 -inherit flag-o-matic gnome2-utils java-pkg-opt-2 linux-info pax-utils python-single-r1 tmpfiles toolchain-funcs udev xdg-utils
1511 -
1512 -MY_PV="${PV/beta/BETA}"
1513 -MY_PV="${MY_PV/rc/RC}"
1514 -MY_P=VirtualBox-${MY_PV}
1515 -
1516 -DESCRIPTION="Family of powerful x86 virtualization products for enterprise and home use"
1517 -HOMEPAGE="https://www.virtualbox.org/"
1518 -SRC_URI="https://download.virtualbox.org/virtualbox/${MY_PV}/${MY_P}.tar.bz2
1519 - https://dev.gentoo.org/~polynomial-c/${PN}/patchsets/${PN}-5.2.12-patches-01.tar.xz"
1520 -
1521 -LICENSE="GPL-2"
1522 -SLOT="0"
1523 -KEYWORDS="amd64 x86"
1524 -IUSE="alsa debug doc headless java libressl lvm pam pax_kernel pulseaudio +opengl python +qt5 +sdk +udev vboxwebsrv vnc"
1525 -
1526 -RDEPEND="!app-emulation/virtualbox-bin
1527 - ~app-emulation/virtualbox-modules-${PV}
1528 - dev-libs/libIDL
1529 - >=dev-libs/libxslt-1.1.19
1530 - net-misc/curl
1531 - dev-libs/libxml2
1532 - media-libs/libpng:0=
1533 - media-libs/libvpx:0=
1534 - sys-libs/zlib:=
1535 - !headless? (
1536 - media-libs/libsdl:0[X,video]
1537 - x11-libs/libX11
1538 - x11-libs/libxcb:=
1539 - x11-libs/libXcursor
1540 - x11-libs/libXext
1541 - x11-libs/libXmu
1542 - x11-libs/libXt
1543 - opengl? ( virtual/opengl media-libs/freeglut )
1544 - qt5? (
1545 - dev-qt/qtcore:5
1546 - dev-qt/qtgui:5
1547 - dev-qt/qtprintsupport:5
1548 - dev-qt/qtwidgets:5
1549 - dev-qt/qtx11extras:5
1550 - opengl? ( dev-qt/qtopengl:5 )
1551 - x11-libs/libXinerama
1552 - )
1553 - )
1554 - libressl? ( dev-libs/libressl:= )
1555 - !libressl? ( dev-libs/openssl:0= )
1556 - lvm? ( sys-fs/lvm2 )
1557 - udev? ( >=virtual/udev-171 )
1558 - vnc? ( >=net-libs/libvncserver-0.9.9 )"
1559 -DEPEND="${RDEPEND}
1560 - >=dev-util/kbuild-0.1.9998.3127
1561 - >=dev-lang/yasm-0.6.2
1562 - sys-devel/bin86
1563 - sys-libs/libcap
1564 - sys-power/iasl
1565 - virtual/pkgconfig
1566 - alsa? ( >=media-libs/alsa-lib-1.0.13 )
1567 - doc? (
1568 - app-text/docbook-sgml-dtd:4.4
1569 - dev-texlive/texlive-basic
1570 - dev-texlive/texlive-latex
1571 - dev-texlive/texlive-latexrecommended
1572 - dev-texlive/texlive-latexextra
1573 - dev-texlive/texlive-fontsrecommended
1574 - dev-texlive/texlive-fontsextra
1575 - )
1576 - !headless? ( x11-libs/libXinerama )
1577 - java? ( >=virtual/jdk-1.6 )
1578 - pam? ( sys-libs/pam )
1579 - pax_kernel? ( sys-apps/elfix )
1580 - pulseaudio? ( media-sound/pulseaudio )
1581 - qt5? ( dev-qt/linguist-tools:5 )
1582 - vboxwebsrv? ( net-libs/gsoap[-gnutls(-)] )
1583 - ${PYTHON_DEPS}"
1584 -RDEPEND="${RDEPEND}
1585 - java? ( >=virtual/jre-1.6 )"
1586 -
1587 -QA_TEXTRELS_x86="usr/lib/virtualbox-ose/VBoxGuestPropSvc.so
1588 - usr/lib/virtualbox/VBoxSDL.so
1589 - usr/lib/virtualbox/VBoxSharedFolders.so
1590 - usr/lib/virtualbox/VBoxDD2.so
1591 - usr/lib/virtualbox/VBoxOGLrenderspu.so
1592 - usr/lib/virtualbox/VBoxPython.so
1593 - usr/lib/virtualbox/VBoxDD.so
1594 - usr/lib/virtualbox/VBoxDDU.so
1595 - usr/lib/virtualbox/VBoxREM64.so
1596 - usr/lib/virtualbox/VBoxSharedClipboard.so
1597 - usr/lib/virtualbox/VBoxHeadless.so
1598 - usr/lib/virtualbox/VBoxRT.so
1599 - usr/lib/virtualbox/VBoxREM.so
1600 - usr/lib/virtualbox/VBoxSettings.so
1601 - usr/lib/virtualbox/VBoxKeyboard.so
1602 - usr/lib/virtualbox/VBoxSharedCrOpenGL.so
1603 - usr/lib/virtualbox/VBoxVMM.so
1604 - usr/lib/virtualbox/VirtualBox.so
1605 - usr/lib/virtualbox/VBoxOGLhosterrorspu.so
1606 - usr/lib/virtualbox/components/VBoxC.so
1607 - usr/lib/virtualbox/components/VBoxSVCM.so
1608 - usr/lib/virtualbox/components/VBoxDDU.so
1609 - usr/lib/virtualbox/components/VBoxRT.so
1610 - usr/lib/virtualbox/components/VBoxREM.so
1611 - usr/lib/virtualbox/components/VBoxVMM.so
1612 - usr/lib/virtualbox/VBoxREM32.so
1613 - usr/lib/virtualbox/VBoxPython2_7.so
1614 - usr/lib/virtualbox/VBoxXPCOMC.so
1615 - usr/lib/virtualbox/VBoxOGLhostcrutil.so
1616 - usr/lib/virtualbox/VBoxNetDHCP.so
1617 - usr/lib/virtualbox/VBoxNetNAT.so"
1618 -
1619 -S="${WORKDIR}/${MY_P}"
1620 -
1621 -REQUIRED_USE="
1622 - java? ( sdk )
1623 - python? ( sdk )
1624 - vboxwebsrv? ( java )
1625 - ${PYTHON_REQUIRED_USE}
1626 -"
1627 -
1628 -pkg_setup() {
1629 - if ! use headless && ! use qt5 ; then
1630 - einfo "No USE=\"qt5\" selected, this build will not include any Qt frontend."
1631 - elif use headless && use qt5 ; then
1632 - einfo "You selected USE=\"headless qt5\", defaulting to"
1633 - einfo "USE=\"headless\", this build will not include any X11/Qt frontend."
1634 - fi
1635 -
1636 - if ! use opengl ; then
1637 - einfo "No USE=\"opengl\" selected, this build will lack"
1638 - einfo "the OpenGL feature."
1639 - fi
1640 - if ! use python ; then
1641 - einfo "You have disabled the \"python\" USE flag. This will only"
1642 - einfo "disable the python bindings being installed."
1643 - fi
1644 - java-pkg-opt-2_pkg_setup
1645 - python-single-r1_pkg_setup
1646 -
1647 - tc-ld-disable-gold #bug 488176
1648 - tc-export CC CXX LD AR RANLIB
1649 - export HOST_CC="$(tc-getBUILD_CC)"
1650 -}
1651 -
1652 -src_prepare() {
1653 - # Remove shipped binaries (kBuild,yasm), see bug #232775
1654 - rm -r kBuild/bin tools || die
1655 -
1656 - # Replace pointless GCC version check with something less stupid.
1657 - # This is needed for the qt5 version check.
1658 - sed -e 's@^check_gcc$@cc_maj="$(gcc -dumpversion | cut -d. -f1)" ; cc_min="$(gcc -dumpversion | cut -d. -f2)"@' \
1659 - -i configure || die
1660 -
1661 - # Disable things unused or split into separate ebuilds
1662 - sed -e "s@MY_LIBDIR@$(get_libdir)@" \
1663 - "${FILESDIR}"/${PN}-5-localconfig > LocalConfig.kmk || die
1664 -
1665 - # Respect LDFLAGS
1666 - sed -e "s@_LDFLAGS\.${ARCH}*.*=@& ${LDFLAGS}@g" \
1667 - -i Config.kmk src/libs/xpcom18a4/Config.kmk || die
1668 -
1669 - # Do not use hard-coded ld (related to bug #488176)
1670 - sed -e '/QUIET)ld /s@ld @$(LD) @' \
1671 - -i src/VBox/Devices/PC/ipxe/Makefile.kmk || die
1672 -
1673 - # Use PAM only when pam USE flag is enbaled (bug #376531)
1674 - if ! use pam ; then
1675 - elog "Disabling PAM removes the possibility to use the VRDP features."
1676 - sed -i 's@^.*VBOX_WITH_PAM@#VBOX_WITH_PAM@' Config.kmk || die
1677 - sed -i 's@\(.*/auth/Makefile.kmk.*\)@#\1@' \
1678 - src/VBox/HostServices/Makefile.kmk || die
1679 - fi
1680 -
1681 - # add correct java path
1682 - if use java ; then
1683 - sed "s@/usr/lib/jvm/java-6-sun@$(java-config -O)@" \
1684 - -i "${S}"/Config.kmk || die
1685 - java-pkg-opt-2_src_prepare
1686 - fi
1687 -
1688 - # Only add nopie patch when we're on hardened
1689 - if gcc-specs-pie ; then
1690 - eapply "${FILESDIR}/050_virtualbox-5.2.8-nopie.patch"
1691 - fi
1692 -
1693 - # Only add paxmark patch when we're on pax_kernel
1694 - if use pax_kernel ; then
1695 - eapply "${FILESDIR}"/virtualbox-5.2.8-paxmark-bldprogs.patch
1696 - fi
1697 -
1698 - eapply "${WORKDIR}/patches"
1699 -
1700 - eapply_user
1701 -}
1702 -
1703 -doecho() {
1704 - echo "$@"
1705 - "$@" || die
1706 -}
1707 -
1708 -src_configure() {
1709 - local myconf=(
1710 - --with-gcc="$(tc-getCC)"
1711 - --with-g++="$(tc-getCXX)"
1712 - --disable-dbus
1713 - --disable-kmods
1714 - $(usex alsa '' --disable-alsa)
1715 - $(usex debug --build-debug '')
1716 - $(usex doc '' --disable-docs)
1717 - $(usex java '' --disable-java)
1718 - $(usex lvm '' --disable-devmapper)
1719 - $(usex pulseaudio '' --disable-pulse)
1720 - $(usex python '' --disable-python)
1721 - $(usex vboxwebsrv --enable-webservice '')
1722 - $(usex vnc --enable-vnc '')
1723 - )
1724 - if ! use headless ; then
1725 - myconf+=(
1726 - $(usex opengl '' --disable-opengl)
1727 - $(usex qt5 '' --disable-qt)
1728 - )
1729 - else
1730 - myconf+=(
1731 - --build-headless
1732 - --disable-opengl
1733 - )
1734 - fi
1735 - if use amd64 && ! has_multilib_profile ; then
1736 - myconf+=( --disable-vmmraw )
1737 - fi
1738 - # not an autoconf script
1739 - doecho ./configure ${myconf[@]}
1740 -}
1741 -
1742 -src_compile() {
1743 - source ./env.sh || die
1744 -
1745 - # Force kBuild to respect C[XX]FLAGS and MAKEOPTS (bug #178529)
1746 - MAKEJOBS=$(grep -Eo '(\-j|\-\-jobs)(=?|[[:space:]]*)[[:digit:]]+' <<< ${MAKEOPTS}) #'
1747 - MAKELOAD=$(grep -Eo '(\-l|\-\-load-average)(=?|[[:space:]]*)[[:digit:]]+' <<< ${MAKEOPTS}) #'
1748 - MAKEOPTS="${MAKEJOBS} ${MAKELOAD}"
1749 - MAKE="kmk" emake \
1750 - VBOX_BUILD_PUBLISHER=_Gentoo \
1751 - TOOL_GCC3_CC="$(tc-getCC)" TOOL_GCC3_CXX="$(tc-getCXX)" \
1752 - TOOL_GCC3_AS="$(tc-getCC)" TOOL_GCC3_AR="$(tc-getAR)" \
1753 - TOOL_GCC3_LD="$(tc-getCXX)" TOOL_GCC3_LD_SYSMOD="$(tc-getLD)" \
1754 - TOOL_GCC3_CFLAGS="${CFLAGS}" TOOL_GCC3_CXXFLAGS="${CXXFLAGS}" \
1755 - VBOX_GCC_OPT="${CXXFLAGS}" \
1756 - TOOL_YASM_AS=yasm KBUILD_VERBOSE=2 \
1757 - all
1758 -}
1759 -
1760 -src_install() {
1761 - local binpath="release"
1762 - use debug && binpath="debug"
1763 - cd "${S}"/out/linux.${ARCH}/${binpath}/bin || die
1764 -
1765 - local vbox_inst_path="/usr/$(get_libdir)/${PN}" each fwfile size ico icofile
1766 -
1767 - vbox_inst() {
1768 - local binary="${1}"
1769 - local perms="${2:-0750}"
1770 - local path="${3:-${vbox_inst_path}}"
1771 -
1772 - [[ -n "${binary}" ]] || die "vbox_inst: No binray given!"
1773 - [[ ${perms} =~ ^[[:digit:]]+{4}$ ]] || die "vbox_inst: perms must consist of four digits."
1774 -
1775 - insinto ${path}
1776 - doins ${binary}
1777 - fowners root:vboxusers ${path}/${binary}
1778 - fperms ${perms} ${path}/${binary}
1779 - }
1780 -
1781 - # Create configuration files
1782 - insinto /etc/vbox
1783 - newins "${FILESDIR}/${PN}-4-config" vbox.cfg
1784 -
1785 - # Set the correct libdir
1786 - sed \
1787 - -e "s@MY_LIBDIR@$(get_libdir)@" \
1788 - -i "${ED%/}"/etc/vbox/vbox.cfg || die "vbox.cfg sed failed"
1789 -
1790 - # Install the wrapper script
1791 - exeinto ${vbox_inst_path}
1792 - newexe "${FILESDIR}/${PN}-ose-5-wrapper" "VBox"
1793 - fowners root:vboxusers ${vbox_inst_path}/VBox
1794 - fperms 0750 ${vbox_inst_path}/VBox
1795 -
1796 - # Install binaries and libraries
1797 - insinto ${vbox_inst_path}
1798 - doins -r components
1799 -
1800 - # *.rc files for x86_64 are only available on multilib systems
1801 - local rcfiles="*.rc"
1802 - if use amd64 && ! has_multilib_profile ; then
1803 - rcfiles=""
1804 - fi
1805 - for each in VBox{ExtPackHelperApp,Manage,SVC,Tunctl,XPCOMIPCD} *so *r0 ${rcfiles} ; do
1806 - vbox_inst ${each}
1807 - done
1808 -
1809 - # These binaries need to be suid root.
1810 - for each in VBox{Headless,Net{AdpCtl,DHCP,NAT}} ; do
1811 - vbox_inst ${each} 4750
1812 - done
1813 -
1814 - # Install EFI Firmware files (bug #320757)
1815 - pushd "${S}"/src/VBox/Devices/EFI/FirmwareBin &>/dev/null || die
1816 - for fwfile in VBoxEFI{32,64}.fd ; do
1817 - vbox_inst ${fwfile} 0644
1818 - done
1819 - popd &>/dev/null || die
1820 -
1821 - # VBoxSVC and VBoxManage need to be pax-marked (bug #403453)
1822 - # VBoxXPCOMIPCD (bug #524202)
1823 - for each in VBox{Headless,Manage,SVC,XPCOMIPCD} ; do
1824 - pax-mark -m "${ED%/}"${vbox_inst_path}/${each}
1825 - done
1826 -
1827 - # Symlink binaries to the shipped wrapper
1828 - for each in vbox{headless,manage} VBox{Headless,Manage,VRDP} ; do
1829 - dosym ${vbox_inst_path}/VBox /usr/bin/${each}
1830 - done
1831 - dosym ${vbox_inst_path}/VBoxTunctl /usr/bin/VBoxTunctl
1832 -
1833 - if use pam ; then
1834 - # VRDPAuth only works with this (bug #351949)
1835 - dosym VBoxAuth.so ${vbox_inst_path}/VRDPAuth.so
1836 - fi
1837 -
1838 - # set an env-variable for 3rd party tools
1839 - echo -n "VBOX_APP_HOME=${vbox_inst_path}" > "${T}/90virtualbox"
1840 - doenvd "${T}/90virtualbox"
1841 -
1842 - if ! use headless ; then
1843 - vbox_inst VBoxSDL 4750
1844 - pax-mark -m "${ED%/}"${vbox_inst_path}/VBoxSDL
1845 -
1846 - for each in vboxsdl VBoxSDL ; do
1847 - dosym ${vbox_inst_path}/VBox /usr/bin/${each}
1848 - done
1849 -
1850 - if use qt5 ; then
1851 - vbox_inst VirtualBox 4750
1852 - pax-mark -m "${ED%/}"${vbox_inst_path}/VirtualBox
1853 -
1854 - if use opengl ; then
1855 - vbox_inst VBoxTestOGL
1856 - pax-mark -m "${ED%/}"${vbox_inst_path}/VBoxTestOGL
1857 - fi
1858 -
1859 - for each in virtualbox VirtualBox ; do
1860 - dosym ${vbox_inst_path}/VBox /usr/bin/${each}
1861 - done
1862 -
1863 - insinto /usr/share/${PN}
1864 - doins -r nls
1865 - doins -r UnattendedTemplates
1866 -
1867 - newmenu "${FILESDIR}"/${PN}-ose.desktop-2 ${PN}.desktop
1868 - fi
1869 -
1870 - pushd "${S}"/src/VBox/Artwork/OSE &>/dev/null || die
1871 - for size in 16 32 48 64 128 ; do
1872 - newicon -s ${size} ${PN}-${size}px.png ${PN}.png
1873 - done
1874 - newicon ${PN}-48px.png ${PN}.png
1875 - doicon -s scalable ${PN}.svg
1876 - popd &>/dev/null || die
1877 - pushd "${S}"/src/VBox/Artwork/other &>/dev/null || die
1878 - for size in 16 24 32 48 64 72 96 128 256 512 ; do
1879 - for ico in hdd ova ovf vbox{,-extpack} vdi vdh vmdk ; do
1880 - icofile="${PN}-${ico}-${size}px.png"
1881 - if [[ -f "${icofile}" ]] ; then
1882 - newicon -s ${size} ${icofile} ${PN}-${ico}.png
1883 - fi
1884 - done
1885 - done
1886 - popd &>/dev/null || die
1887 - fi
1888 -
1889 - if use lvm ; then
1890 - vbox_inst VBoxVolInfo 4750
1891 - dosym ${vbox_inst_path}/VBoxVolInfo /usr/bin/VBoxVolInfo
1892 - fi
1893 -
1894 - if use sdk ; then
1895 - insinto ${vbox_inst_path}
1896 - doins -r sdk
1897 -
1898 - if use java ; then
1899 - java-pkg_regjar "${ED%/}/${vbox_inst_path}/sdk/bindings/xpcom/java/vboxjxpcom.jar"
1900 - java-pkg_regso "${ED%/}/${vbox_inst_path}/libvboxjxpcom.so"
1901 - fi
1902 - fi
1903 -
1904 - if use udev ; then
1905 - # New way of handling USB device nodes for VBox (bug #356215)
1906 - local udevdir="$(get_udevdir)"
1907 - insinto ${udevdir}
1908 - doins VBoxCreateUSBNode.sh
1909 - fowners root:vboxusers ${udevdir}/VBoxCreateUSBNode.sh
1910 - fperms 0750 ${udevdir}/VBoxCreateUSBNode.sh
1911 - insinto ${udevdir}/rules.d
1912 - sed "s@%UDEVDIR%@${udevdir}@" "${FILESDIR}"/10-virtualbox.rules \
1913 - > "${T}"/10-virtualbox.rules || die
1914 - doins "${T}"/10-virtualbox.rules
1915 - fi
1916 -
1917 - if use vboxwebsrv ; then
1918 - vbox_inst vboxwebsrv
1919 - dosym ${vbox_inst_path}/VBox /usr/bin/vboxwebsrv
1920 - newinitd "${FILESDIR}"/vboxwebsrv-initd vboxwebsrv
1921 - newconfd "${FILESDIR}"/vboxwebsrv-confd vboxwebsrv
1922 - fi
1923 -
1924 - if use doc ; then
1925 - dodoc UserManual.pdf
1926 - fi
1927 -
1928 - newtmpfiles "${FILESDIR}"/${PN}-vboxusb_tmpfilesd ${PN}-vboxusb.conf
1929 -}
1930 -
1931 -pkg_postinst() {
1932 - gnome2_icon_cache_update
1933 - xdg_desktop_database_update
1934 -
1935 - if use udev ; then
1936 - udevadm control --reload-rules \
1937 - && udevadm trigger --subsystem-match=usb
1938 - fi
1939 -
1940 - tmpfiles_process /usr/lib/tmpfiles.d/virtualbox-vboxusb.conf
1941 -
1942 - if ! use headless && use qt5 ; then
1943 - elog "To launch VirtualBox just type: \"virtualbox\"."
1944 - fi
1945 - elog "You must be in the vboxusers group to use VirtualBox."
1946 - elog ""
1947 - elog "The latest user manual is available for download at:"
1948 - elog "http://download.virtualbox.org/virtualbox/${PV}/UserManual.pdf"
1949 - elog ""
1950 - elog "For advanced networking setups you should emerge:"
1951 - elog "net-misc/bridge-utils and sys-apps/usermode-utilities"
1952 - elog ""
1953 - elog "Starting with version 4.0.0, ${PN} has USB-1 support."
1954 - elog "For USB-2 support, PXE-boot ability and VRDP support please emerge"
1955 - elog " app-emulation/virtualbox-extpack-oracle"
1956 - elog "package."
1957 - elog "Starting with version 5.0.0, ${PN} no longer has the \"additions\" and"
1958 - elog "the \"extension\" USE flag. For installation of the guest additions ISO"
1959 - elog "image, please emerge"
1960 - elog " app-emulation/virtualbox-additions"
1961 - elog "and for the USB2, USB3, VRDP and PXE boot ROM modules, please emerge"
1962 - elog " app-emulation/virtualbox-extpack-oracle"
1963 - if ! use udev ; then
1964 - elog ""
1965 - elog "WARNING!"
1966 - elog "Without USE=udev, USB devices will likely not work in ${PN}."
1967 - elif [ -e "${ROOT%/}/etc/udev/rules.d/10-virtualbox.rules" ] ; then
1968 - elog ""
1969 - elog "Please remove \"${ROOT%/}/etc/udev/rules.d/10-virtualbox.rules\""
1970 - elog "or else USB in ${PN} won't work."
1971 - fi
1972 -}
1973 -
1974 -pkg_postrm() {
1975 - gnome2_icon_cache_update
1976 - xdg_desktop_database_update
1977 -}
1978
1979 diff --git a/app-emulation/virtualbox/virtualbox-5.2.20.ebuild b/app-emulation/virtualbox/virtualbox-5.2.20.ebuild
1980 deleted file mode 100644
1981 index ea84396fbfb..00000000000
1982 --- a/app-emulation/virtualbox/virtualbox-5.2.20.ebuild
1983 +++ /dev/null
1984 @@ -1,476 +0,0 @@
1985 -# Copyright 1999-2018 Gentoo Authors
1986 -# Distributed under the terms of the GNU General Public License v2
1987 -
1988 -EAPI=6
1989 -
1990 -PYTHON_COMPAT=( python2_7 )
1991 -inherit flag-o-matic gnome2-utils java-pkg-opt-2 linux-info pax-utils python-single-r1 tmpfiles toolchain-funcs udev xdg-utils
1992 -
1993 -MY_PV="${PV/beta/BETA}"
1994 -MY_PV="${MY_PV/rc/RC}"
1995 -MY_P=VirtualBox-${MY_PV}
1996 -
1997 -DESCRIPTION="Family of powerful x86 virtualization products for enterprise and home use"
1998 -HOMEPAGE="https://www.virtualbox.org/"
1999 -SRC_URI="https://download.virtualbox.org/virtualbox/${MY_PV}/${MY_P}.tar.bz2
2000 - https://dev.gentoo.org/~polynomial-c/${PN}/patchsets/${PN}-5.2.16-patches-02.tar.xz"
2001 -
2002 -LICENSE="GPL-2"
2003 -SLOT="0"
2004 -KEYWORDS="~amd64 ~x86"
2005 -IUSE="alsa debug doc headless java libressl lvm +opus pam pax_kernel pulseaudio +opengl python +qt5 +sdk +udev vboxwebsrv vnc"
2006 -
2007 -RDEPEND="!app-emulation/virtualbox-bin
2008 - ~app-emulation/virtualbox-modules-${PV}
2009 - dev-libs/libIDL
2010 - >=dev-libs/libxslt-1.1.19
2011 - net-misc/curl
2012 - dev-libs/libxml2
2013 - media-libs/libpng:0=
2014 - media-libs/libvpx:0=
2015 - sys-libs/zlib:=
2016 - !headless? (
2017 - media-libs/libsdl:0[X,video]
2018 - x11-libs/libX11
2019 - x11-libs/libxcb:=
2020 - x11-libs/libXcursor
2021 - x11-libs/libXext
2022 - x11-libs/libXmu
2023 - x11-libs/libXt
2024 - opengl? ( virtual/opengl media-libs/freeglut )
2025 - qt5? (
2026 - dev-qt/qtcore:5
2027 - dev-qt/qtgui:5
2028 - dev-qt/qtprintsupport:5
2029 - dev-qt/qtwidgets:5
2030 - dev-qt/qtx11extras:5
2031 - opengl? ( dev-qt/qtopengl:5 )
2032 - x11-libs/libXinerama
2033 - )
2034 - )
2035 - libressl? ( dev-libs/libressl:= )
2036 - !libressl? ( dev-libs/openssl:0= )
2037 - lvm? ( sys-fs/lvm2 )
2038 - opus? ( media-libs/opus )
2039 - udev? ( >=virtual/udev-171 )
2040 - vnc? ( >=net-libs/libvncserver-0.9.9 )"
2041 -DEPEND="${RDEPEND}
2042 - >=dev-util/kbuild-0.1.9998.3127
2043 - >=dev-lang/yasm-0.6.2
2044 - sys-devel/bin86
2045 - sys-libs/libcap
2046 - sys-power/iasl
2047 - virtual/pkgconfig
2048 - alsa? ( >=media-libs/alsa-lib-1.0.13 )
2049 - doc? (
2050 - app-text/docbook-sgml-dtd:4.4
2051 - dev-texlive/texlive-basic
2052 - dev-texlive/texlive-latex
2053 - dev-texlive/texlive-latexrecommended
2054 - dev-texlive/texlive-latexextra
2055 - dev-texlive/texlive-fontsrecommended
2056 - dev-texlive/texlive-fontsextra
2057 - )
2058 - !headless? ( x11-libs/libXinerama )
2059 - java? ( >=virtual/jdk-1.6 )
2060 - pam? ( sys-libs/pam )
2061 - pax_kernel? ( sys-apps/elfix )
2062 - pulseaudio? ( media-sound/pulseaudio )
2063 - qt5? ( dev-qt/linguist-tools:5 )
2064 - vboxwebsrv? ( net-libs/gsoap[-gnutls(-)] )
2065 - ${PYTHON_DEPS}"
2066 -RDEPEND="${RDEPEND}
2067 - java? ( >=virtual/jre-1.6 )"
2068 -
2069 -QA_TEXTRELS_x86="usr/lib/virtualbox-ose/VBoxGuestPropSvc.so
2070 - usr/lib/virtualbox/VBoxSDL.so
2071 - usr/lib/virtualbox/VBoxSharedFolders.so
2072 - usr/lib/virtualbox/VBoxDD2.so
2073 - usr/lib/virtualbox/VBoxOGLrenderspu.so
2074 - usr/lib/virtualbox/VBoxPython.so
2075 - usr/lib/virtualbox/VBoxDD.so
2076 - usr/lib/virtualbox/VBoxDDU.so
2077 - usr/lib/virtualbox/VBoxREM64.so
2078 - usr/lib/virtualbox/VBoxSharedClipboard.so
2079 - usr/lib/virtualbox/VBoxHeadless.so
2080 - usr/lib/virtualbox/VBoxRT.so
2081 - usr/lib/virtualbox/VBoxREM.so
2082 - usr/lib/virtualbox/VBoxSettings.so
2083 - usr/lib/virtualbox/VBoxKeyboard.so
2084 - usr/lib/virtualbox/VBoxSharedCrOpenGL.so
2085 - usr/lib/virtualbox/VBoxVMM.so
2086 - usr/lib/virtualbox/VirtualBox.so
2087 - usr/lib/virtualbox/VBoxOGLhosterrorspu.so
2088 - usr/lib/virtualbox/components/VBoxC.so
2089 - usr/lib/virtualbox/components/VBoxSVCM.so
2090 - usr/lib/virtualbox/components/VBoxDDU.so
2091 - usr/lib/virtualbox/components/VBoxRT.so
2092 - usr/lib/virtualbox/components/VBoxREM.so
2093 - usr/lib/virtualbox/components/VBoxVMM.so
2094 - usr/lib/virtualbox/VBoxREM32.so
2095 - usr/lib/virtualbox/VBoxPython2_7.so
2096 - usr/lib/virtualbox/VBoxXPCOMC.so
2097 - usr/lib/virtualbox/VBoxOGLhostcrutil.so
2098 - usr/lib/virtualbox/VBoxNetDHCP.so
2099 - usr/lib/virtualbox/VBoxNetNAT.so"
2100 -
2101 -S="${WORKDIR}/${MY_P}"
2102 -
2103 -REQUIRED_USE="
2104 - java? ( sdk )
2105 - python? ( sdk )
2106 - vboxwebsrv? ( java )
2107 - ${PYTHON_REQUIRED_USE}
2108 -"
2109 -
2110 -pkg_setup() {
2111 - if ! use headless && ! use qt5 ; then
2112 - einfo "No USE=\"qt5\" selected, this build will not include any Qt frontend."
2113 - elif use headless && use qt5 ; then
2114 - einfo "You selected USE=\"headless qt5\", defaulting to"
2115 - einfo "USE=\"headless\", this build will not include any X11/Qt frontend."
2116 - fi
2117 -
2118 - if ! use opengl ; then
2119 - einfo "No USE=\"opengl\" selected, this build will lack"
2120 - einfo "the OpenGL feature."
2121 - fi
2122 - if ! use python ; then
2123 - einfo "You have disabled the \"python\" USE flag. This will only"
2124 - einfo "disable the python bindings being installed."
2125 - fi
2126 - java-pkg-opt-2_pkg_setup
2127 - python-single-r1_pkg_setup
2128 -
2129 - tc-ld-disable-gold #bug 488176
2130 - tc-export CC CXX LD AR RANLIB
2131 - export HOST_CC="$(tc-getBUILD_CC)"
2132 -}
2133 -
2134 -src_prepare() {
2135 - # Remove shipped binaries (kBuild,yasm), see bug #232775
2136 - rm -r kBuild/bin tools || die
2137 -
2138 - # Replace pointless GCC version check with something less stupid.
2139 - # This is needed for the qt5 version check.
2140 - sed -e 's@^check_gcc$@cc_maj="$(gcc -dumpversion | cut -d. -f1)" ; cc_min="$(gcc -dumpversion | cut -d. -f2)"@' \
2141 - -i configure || die
2142 -
2143 - # Disable things unused or split into separate ebuilds
2144 - sed -e "s@MY_LIBDIR@$(get_libdir)@" \
2145 - "${FILESDIR}"/${PN}-5-localconfig > LocalConfig.kmk || die
2146 -
2147 - # Respect LDFLAGS
2148 - sed -e "s@_LDFLAGS\.${ARCH}*.*=@& ${LDFLAGS}@g" \
2149 - -i Config.kmk src/libs/xpcom18a4/Config.kmk || die
2150 -
2151 - # Do not use hard-coded ld (related to bug #488176)
2152 - sed -e '/QUIET)ld /s@ld @$(LD) @' \
2153 - -i src/VBox/Devices/PC/ipxe/Makefile.kmk || die
2154 -
2155 - # Use PAM only when pam USE flag is enbaled (bug #376531)
2156 - if ! use pam ; then
2157 - elog "Disabling PAM removes the possibility to use the VRDP features."
2158 - sed -i 's@^.*VBOX_WITH_PAM@#VBOX_WITH_PAM@' Config.kmk || die
2159 - sed -i 's@\(.*/auth/Makefile.kmk.*\)@#\1@' \
2160 - src/VBox/HostServices/Makefile.kmk || die
2161 - fi
2162 -
2163 - # add correct java path
2164 - if use java ; then
2165 - sed "s@/usr/lib/jvm/java-6-sun@$(java-config -O)@" \
2166 - -i "${S}"/Config.kmk || die
2167 - java-pkg-opt-2_src_prepare
2168 - fi
2169 -
2170 - # Only add nopie patch when we're on hardened
2171 - if gcc-specs-pie ; then
2172 - eapply "${FILESDIR}/050_virtualbox-5.2.8-nopie.patch"
2173 - fi
2174 -
2175 - # Only add paxmark patch when we're on pax_kernel
2176 - if use pax_kernel ; then
2177 - eapply "${FILESDIR}"/virtualbox-5.2.8-paxmark-bldprogs.patch
2178 - fi
2179 -
2180 - eapply "${WORKDIR}/patches"
2181 -
2182 - eapply_user
2183 -}
2184 -
2185 -doecho() {
2186 - echo "$@"
2187 - "$@" || die
2188 -}
2189 -
2190 -src_configure() {
2191 - local myconf=(
2192 - --with-gcc="$(tc-getCC)"
2193 - --with-g++="$(tc-getCXX)"
2194 - --disable-dbus
2195 - --disable-kmods
2196 - $(usex alsa '' --disable-alsa)
2197 - $(usex debug --build-debug '')
2198 - $(usex doc '' --disable-docs)
2199 - $(usex java '' --disable-java)
2200 - $(usex lvm '' --disable-devmapper)
2201 - $(usex opus --build-libopus '')
2202 - $(usex pulseaudio '' --disable-pulse)
2203 - $(usex python '' --disable-python)
2204 - $(usex vboxwebsrv --enable-webservice '')
2205 - $(usex vnc --enable-vnc '')
2206 - )
2207 - if ! use headless ; then
2208 - myconf+=(
2209 - $(usex opengl '' --disable-opengl)
2210 - $(usex qt5 '' --disable-qt)
2211 - )
2212 - else
2213 - myconf+=(
2214 - --build-headless
2215 - --disable-opengl
2216 - )
2217 - fi
2218 - if use amd64 && ! has_multilib_profile ; then
2219 - myconf+=( --disable-vmmraw )
2220 - fi
2221 - # not an autoconf script
2222 - doecho ./configure ${myconf[@]}
2223 -}
2224 -
2225 -src_compile() {
2226 - source ./env.sh || die
2227 -
2228 - # Force kBuild to respect C[XX]FLAGS and MAKEOPTS (bug #178529)
2229 - MAKEJOBS=$(grep -Eo '(\-j|\-\-jobs)(=?|[[:space:]]*)[[:digit:]]+' <<< ${MAKEOPTS}) #'
2230 - MAKELOAD=$(grep -Eo '(\-l|\-\-load-average)(=?|[[:space:]]*)[[:digit:]]+' <<< ${MAKEOPTS}) #'
2231 - MAKEOPTS="${MAKEJOBS} ${MAKELOAD}"
2232 - MAKE="kmk" emake \
2233 - VBOX_BUILD_PUBLISHER=_Gentoo \
2234 - TOOL_GCC3_CC="$(tc-getCC)" TOOL_GCC3_CXX="$(tc-getCXX)" \
2235 - TOOL_GCC3_AS="$(tc-getCC)" TOOL_GCC3_AR="$(tc-getAR)" \
2236 - TOOL_GCC3_LD="$(tc-getCXX)" TOOL_GCC3_LD_SYSMOD="$(tc-getLD)" \
2237 - TOOL_GCC3_CFLAGS="${CFLAGS}" TOOL_GCC3_CXXFLAGS="${CXXFLAGS}" \
2238 - VBOX_GCC_OPT="${CXXFLAGS}" \
2239 - TOOL_YASM_AS=yasm KBUILD_VERBOSE=2 \
2240 - all
2241 -}
2242 -
2243 -src_install() {
2244 - local binpath="release"
2245 - use debug && binpath="debug"
2246 - cd "${S}"/out/linux.${ARCH}/${binpath}/bin || die
2247 -
2248 - local vbox_inst_path="/usr/$(get_libdir)/${PN}" each fwfile size ico icofile
2249 -
2250 - vbox_inst() {
2251 - local binary="${1}"
2252 - local perms="${2:-0750}"
2253 - local path="${3:-${vbox_inst_path}}"
2254 -
2255 - [[ -n "${binary}" ]] || die "vbox_inst: No binray given!"
2256 - [[ ${perms} =~ ^[[:digit:]]+{4}$ ]] || die "vbox_inst: perms must consist of four digits."
2257 -
2258 - insinto ${path}
2259 - doins ${binary}
2260 - fowners root:vboxusers ${path}/${binary}
2261 - fperms ${perms} ${path}/${binary}
2262 - }
2263 -
2264 - # Create configuration files
2265 - insinto /etc/vbox
2266 - newins "${FILESDIR}/${PN}-4-config" vbox.cfg
2267 -
2268 - # Set the correct libdir
2269 - sed \
2270 - -e "s@MY_LIBDIR@$(get_libdir)@" \
2271 - -i "${ED%/}"/etc/vbox/vbox.cfg || die "vbox.cfg sed failed"
2272 -
2273 - # Install the wrapper script
2274 - exeinto ${vbox_inst_path}
2275 - newexe "${FILESDIR}/${PN}-ose-5-wrapper" "VBox"
2276 - fowners root:vboxusers ${vbox_inst_path}/VBox
2277 - fperms 0750 ${vbox_inst_path}/VBox
2278 -
2279 - # Install binaries and libraries
2280 - insinto ${vbox_inst_path}
2281 - doins -r components
2282 -
2283 - # *.rc files for x86_64 are only available on multilib systems
2284 - local rcfiles="*.rc"
2285 - if use amd64 && ! has_multilib_profile ; then
2286 - rcfiles=""
2287 - fi
2288 - for each in VBox{ExtPackHelperApp,Manage,SVC,Tunctl,XPCOMIPCD} *so *r0 ${rcfiles} ; do
2289 - vbox_inst ${each}
2290 - done
2291 -
2292 - # These binaries need to be suid root.
2293 - for each in VBox{Headless,Net{AdpCtl,DHCP,NAT}} ; do
2294 - vbox_inst ${each} 4750
2295 - done
2296 -
2297 - # Install EFI Firmware files (bug #320757)
2298 - pushd "${S}"/src/VBox/Devices/EFI/FirmwareBin &>/dev/null || die
2299 - for fwfile in VBoxEFI{32,64}.fd ; do
2300 - vbox_inst ${fwfile} 0644
2301 - done
2302 - popd &>/dev/null || die
2303 -
2304 - # VBoxSVC and VBoxManage need to be pax-marked (bug #403453)
2305 - # VBoxXPCOMIPCD (bug #524202)
2306 - for each in VBox{Headless,Manage,SVC,XPCOMIPCD} ; do
2307 - pax-mark -m "${ED%/}"${vbox_inst_path}/${each}
2308 - done
2309 -
2310 - # Symlink binaries to the shipped wrapper
2311 - for each in vbox{headless,manage} VBox{Headless,Manage,VRDP} ; do
2312 - dosym ${vbox_inst_path}/VBox /usr/bin/${each}
2313 - done
2314 - dosym ${vbox_inst_path}/VBoxTunctl /usr/bin/VBoxTunctl
2315 -
2316 - if use pam ; then
2317 - # VRDPAuth only works with this (bug #351949)
2318 - dosym VBoxAuth.so ${vbox_inst_path}/VRDPAuth.so
2319 - fi
2320 -
2321 - # set an env-variable for 3rd party tools
2322 - echo -n "VBOX_APP_HOME=${vbox_inst_path}" > "${T}/90virtualbox"
2323 - doenvd "${T}/90virtualbox"
2324 -
2325 - if ! use headless ; then
2326 - vbox_inst VBoxSDL 4750
2327 - pax-mark -m "${ED%/}"${vbox_inst_path}/VBoxSDL
2328 -
2329 - for each in vboxsdl VBoxSDL ; do
2330 - dosym ${vbox_inst_path}/VBox /usr/bin/${each}
2331 - done
2332 -
2333 - if use qt5 ; then
2334 - vbox_inst VirtualBox 4750
2335 - pax-mark -m "${ED%/}"${vbox_inst_path}/VirtualBox
2336 -
2337 - if use opengl ; then
2338 - vbox_inst VBoxTestOGL
2339 - pax-mark -m "${ED%/}"${vbox_inst_path}/VBoxTestOGL
2340 - fi
2341 -
2342 - for each in virtualbox VirtualBox ; do
2343 - dosym ${vbox_inst_path}/VBox /usr/bin/${each}
2344 - done
2345 -
2346 - insinto /usr/share/${PN}
2347 - doins -r nls
2348 - doins -r UnattendedTemplates
2349 -
2350 - newmenu "${FILESDIR}"/${PN}-ose.desktop-2 ${PN}.desktop
2351 - fi
2352 -
2353 - pushd "${S}"/src/VBox/Artwork/OSE &>/dev/null || die
2354 - for size in 16 32 48 64 128 ; do
2355 - newicon -s ${size} ${PN}-${size}px.png ${PN}.png
2356 - done
2357 - newicon ${PN}-48px.png ${PN}.png
2358 - doicon -s scalable ${PN}.svg
2359 - popd &>/dev/null || die
2360 - pushd "${S}"/src/VBox/Artwork/other &>/dev/null || die
2361 - for size in 16 24 32 48 64 72 96 128 256 512 ; do
2362 - for ico in hdd ova ovf vbox{,-extpack} vdi vdh vmdk ; do
2363 - icofile="${PN}-${ico}-${size}px.png"
2364 - if [[ -f "${icofile}" ]] ; then
2365 - newicon -s ${size} ${icofile} ${PN}-${ico}.png
2366 - fi
2367 - done
2368 - done
2369 - popd &>/dev/null || die
2370 - fi
2371 -
2372 - if use lvm ; then
2373 - vbox_inst VBoxVolInfo 4750
2374 - dosym ${vbox_inst_path}/VBoxVolInfo /usr/bin/VBoxVolInfo
2375 - fi
2376 -
2377 - if use sdk ; then
2378 - insinto ${vbox_inst_path}
2379 - doins -r sdk
2380 -
2381 - if use java ; then
2382 - java-pkg_regjar "${ED%/}/${vbox_inst_path}/sdk/bindings/xpcom/java/vboxjxpcom.jar"
2383 - java-pkg_regso "${ED%/}/${vbox_inst_path}/libvboxjxpcom.so"
2384 - fi
2385 - fi
2386 -
2387 - if use udev ; then
2388 - # New way of handling USB device nodes for VBox (bug #356215)
2389 - local udevdir="$(get_udevdir)"
2390 - insinto ${udevdir}
2391 - doins VBoxCreateUSBNode.sh
2392 - fowners root:vboxusers ${udevdir}/VBoxCreateUSBNode.sh
2393 - fperms 0750 ${udevdir}/VBoxCreateUSBNode.sh
2394 - insinto ${udevdir}/rules.d
2395 - sed "s@%UDEVDIR%@${udevdir}@" "${FILESDIR}"/10-virtualbox.rules \
2396 - > "${T}"/10-virtualbox.rules || die
2397 - doins "${T}"/10-virtualbox.rules
2398 - fi
2399 -
2400 - if use vboxwebsrv ; then
2401 - vbox_inst vboxwebsrv
2402 - dosym ${vbox_inst_path}/VBox /usr/bin/vboxwebsrv
2403 - newinitd "${FILESDIR}"/vboxwebsrv-initd vboxwebsrv
2404 - newconfd "${FILESDIR}"/vboxwebsrv-confd vboxwebsrv
2405 - fi
2406 -
2407 - if use doc ; then
2408 - dodoc UserManual.pdf
2409 - fi
2410 -
2411 - newtmpfiles "${FILESDIR}"/${PN}-vboxusb_tmpfilesd ${PN}-vboxusb.conf
2412 -}
2413 -
2414 -pkg_postinst() {
2415 - gnome2_icon_cache_update
2416 - xdg_desktop_database_update
2417 -
2418 - if use udev ; then
2419 - udevadm control --reload-rules \
2420 - && udevadm trigger --subsystem-match=usb
2421 - fi
2422 -
2423 - tmpfiles_process /usr/lib/tmpfiles.d/virtualbox-vboxusb.conf
2424 -
2425 - if ! use headless && use qt5 ; then
2426 - elog "To launch VirtualBox just type: \"virtualbox\"."
2427 - fi
2428 - elog "You must be in the vboxusers group to use VirtualBox."
2429 - elog ""
2430 - elog "The latest user manual is available for download at:"
2431 - elog "http://download.virtualbox.org/virtualbox/${PV}/UserManual.pdf"
2432 - elog ""
2433 - elog "For advanced networking setups you should emerge:"
2434 - elog "net-misc/bridge-utils and sys-apps/usermode-utilities"
2435 - elog ""
2436 - elog "Starting with version 4.0.0, ${PN} has USB-1 support."
2437 - elog "For USB-2 support, PXE-boot ability and VRDP support please emerge"
2438 - elog " app-emulation/virtualbox-extpack-oracle"
2439 - elog "package."
2440 - elog "Starting with version 5.0.0, ${PN} no longer has the \"additions\" and"
2441 - elog "the \"extension\" USE flag. For installation of the guest additions ISO"
2442 - elog "image, please emerge"
2443 - elog " app-emulation/virtualbox-additions"
2444 - elog "and for the USB2, USB3, VRDP and PXE boot ROM modules, please emerge"
2445 - elog " app-emulation/virtualbox-extpack-oracle"
2446 - if ! use udev ; then
2447 - elog ""
2448 - elog "WARNING!"
2449 - elog "Without USE=udev, USB devices will likely not work in ${PN}."
2450 - elif [ -e "${ROOT%/}/etc/udev/rules.d/10-virtualbox.rules" ] ; then
2451 - elog ""
2452 - elog "Please remove \"${ROOT%/}/etc/udev/rules.d/10-virtualbox.rules\""
2453 - elog "or else USB in ${PN} won't work."
2454 - fi
2455 -}
2456 -
2457 -pkg_postrm() {
2458 - gnome2_icon_cache_update
2459 - xdg_desktop_database_update
2460 -}