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