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/, app-emulation/virtualbox-additions/, ...
Date: Wed, 28 Feb 2018 10:39:53
Message-Id: 1519814379.6d42a65c201dbf0c72889a86a30eef7ecd0339ba.polynomial-c@gentoo
1 commit: 6d42a65c201dbf0c72889a86a30eef7ecd0339ba
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Wed Feb 28 10:39:39 2018 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Wed Feb 28 10:39:39 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6d42a65c
7
8 virtualbox packages: Bump to versions 5.1.34 and 5.2.8
9
10 Package-Manager: Portage-2.3.24, Repoman-2.3.6
11
12 app-emulation/virtualbox-additions/Manifest | 2 +
13 .../virtualbox-additions-5.1.34.ebuild | 35 +++
14 .../virtualbox-additions-5.2.8.ebuild | 35 +++
15 app-emulation/virtualbox-bin/Manifest | 8 +
16 .../virtualbox-bin-5.1.34.121010.ebuild | 287 +++++++++++++++++++++
17 .../virtualbox-bin-5.2.8.121009.ebuild | 287 +++++++++++++++++++++
18 app-emulation/virtualbox-extpack-oracle/Manifest | 2 +
19 .../virtualbox-extpack-oracle-5.1.34.121010.ebuild | 42 +++
20 .../virtualbox-extpack-oracle-5.2.8.121009.ebuild | 42 +++
21 app-emulation/virtualbox-guest-additions/Manifest | 2 +
22 .../virtualbox-guest-additions-5.1.34.ebuild | 221 ++++++++++++++++
23 .../virtualbox-guest-additions-5.2.8.ebuild | 228 ++++++++++++++++
24 app-emulation/virtualbox-modules/Manifest | 2 +
25 .../virtualbox-modules-5.1.34.ebuild | 65 +++++
26 .../virtualbox-modules-5.2.8.ebuild | 56 ++++
27 app-emulation/virtualbox/Manifest | 2 +
28 ...albox-5.2.6.ebuild => virtualbox-5.1.34.ebuild} | 11 +-
29 app-emulation/virtualbox/virtualbox-5.2.6.ebuild | 2 +-
30 ...ualbox-5.2.6.ebuild => virtualbox-5.2.8.ebuild} | 7 +-
31 x11-drivers/xf86-video-virtualbox/Manifest | 1 +
32 .../xf86-video-virtualbox-5.1.34.ebuild | 192 ++++++++++++++
33 21 files changed, 1514 insertions(+), 15 deletions(-)
34
35 diff --git a/app-emulation/virtualbox-additions/Manifest b/app-emulation/virtualbox-additions/Manifest
36 index cc03e64c652..d0d9cea111c 100644
37 --- a/app-emulation/virtualbox-additions/Manifest
38 +++ b/app-emulation/virtualbox-additions/Manifest
39 @@ -1,2 +1,4 @@
40 DIST VBoxGuestAdditions_5.1.32.iso 59512832 BLAKE2B 73fcbb3d1db1056970a86e9c1c1efe1f8ddc3566c327df5bb8e14b22b827fc603dcba580a6db60c75f3dff00f268313ac196d49355e184395793363c6d16df68 SHA512 073b103308f7cab18ca096bbb863d8cdea8efd8aa4896b2ab2a6326f549f1cf6afb70ccb55baa1dab85485879e522584a9f91adb4434c5f8bd649e73dae65900
41 +DIST VBoxGuestAdditions_5.1.34.iso 59619328 BLAKE2B e8e7786a82785c4d58c2206c3ede4119c435c2884eba470128cd12ad968077eea7a7850fb05c20ef18ec01fb27919ae29a706d4b059203a7a55dba94f7680564 SHA512 e8c376a558991d603fbb6554969d27c510621bfd8f53542126f57c3604d68f6da7f7732361369b6144794575f40c22e0df0a9b2b4190d3462d80c035b7f0451f
42 DIST VBoxGuestAdditions_5.2.6.iso 57866240 BLAKE2B a9028dc084eaf8e2a759112a2dfcc9f15486a1479fbb0c3ab77484e2775b8ed8df3759d265b73bea18cf20e02d82c022c8af1f23e9a640b89f69d2a6bd8c3e26 SHA512 23fe9512455d77b4cade7f731c9244439882ae54068158384e96c988ba7b4e2721ba2414189f6366f7c2d13f6e5355a0fa0bff501db6087705b8d1242e9d0f2a
43 +DIST VBoxGuestAdditions_5.2.8.iso 57972736 BLAKE2B 4f78b5faa8379777f88be98af1c6e023863395004d5326a698801141ed939edbb04f5109967179e8777bdfae39a77ffa724c9f08f54a14a8898a074512318816 SHA512 29d1bd00e6f5f5ceb7fa50719dde6e05b17111583a0ada16f47cd1e38e9302a3d5d4d7708cef9c8c3f9c4eb2d5ccc276c792700e0733cec2dc611ba1e5bed098
44
45 diff --git a/app-emulation/virtualbox-additions/virtualbox-additions-5.1.34.ebuild b/app-emulation/virtualbox-additions/virtualbox-additions-5.1.34.ebuild
46 new file mode 100644
47 index 00000000000..a28d6005cb4
48 --- /dev/null
49 +++ b/app-emulation/virtualbox-additions/virtualbox-additions-5.1.34.ebuild
50 @@ -0,0 +1,35 @@
51 +# Copyright 1999-2018 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="https://www.virtualbox.org/"
65 +SRC_URI="https://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.8.ebuild b/app-emulation/virtualbox-additions/virtualbox-additions-5.2.8.ebuild
88 new file mode 100644
89 index 00000000000..a28d6005cb4
90 --- /dev/null
91 +++ b/app-emulation/virtualbox-additions/virtualbox-additions-5.2.8.ebuild
92 @@ -0,0 +1,35 @@
93 +# Copyright 1999-2018 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="https://www.virtualbox.org/"
107 +SRC_URI="https://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 e749dc55d02..34552b2e5df 100644
131 --- a/app-emulation/virtualbox-bin/Manifest
132 +++ b/app-emulation/virtualbox-bin/Manifest
133 @@ -1,8 +1,16 @@
134 DIST Oracle_VM_VirtualBox_Extension_Pack-5.1.32-120294.tar.gz 19589163 BLAKE2B b35d9bb90216a77706fe5f0de624affaff4177d4b6e561f7c76003efd1a386a1f5b5f6b1c6b559cddde6ffb55ab5f7eba3e4c9b2135f31c09313b473ba6579e5 SHA512 c1e13fc59b9556f980bec02bb2860e717f752d42c3d810f70267e5c07898bb1aba9d3f3403fa5aa388478aa609397da49dcf10311836d68093101715a6ae200d
135 +DIST Oracle_VM_VirtualBox_Extension_Pack-5.1.34-121010.tar.gz 19591849 BLAKE2B 573afe3624a3eace4272a067f472e32dbe344755814aefaa8d6685da0ff31e04faa7f6a22a58974938067fce3a0ea3d66a0c5d02db999105029cc7c5c8fea24b SHA512 4f05bc7abe989fbc0928aba259ad60b09f5b085859c0ddc3e24c052fdb4becb055795c8f0038fc4dd95be7b9954a3034afd499798bb58fe16522602cfe91e7fa
136 DIST Oracle_VM_VirtualBox_Extension_Pack-5.2.6-120293.tar.gz 19468503 BLAKE2B 5e1e490352fb06ceee868171583e50f8ca634a53799237cd1a3632566b6ca14d526e714156ccbeae48bf01aa4372a89d8926601cf5c1d8d34127d2d1e6a53edb SHA512 f81715b5e89ae21080d9a1b23cfd9be30bc35b32963c1b710262c1ee88bedc405dd9d2ff96761b8725716bd98625eea58fc076de6d42a4728078ebe303e195af
137 +DIST Oracle_VM_VirtualBox_Extension_Pack-5.2.8-121009.tar.gz 19469421 BLAKE2B 81651876802ad767339f3984a26375118f01e4b99b4247398e0cea8d749905431b40945f8a72d0c7802b2743080f01d3044aafd21600c4927773994c5a114a1f SHA512 2b69e2acab91ce95e9807006c79862fc0d1d10fdd269bd9cdf8f11b6704821823b103c7a4a76ad99c10e0868bd397ffe0e72b2eb2aa4fc2bd81ff968c71c2280
138 DIST VirtualBox-5.1.32-120294-Linux_amd64.run 88360402 BLAKE2B f548855260467be536f2e5ff95ae110636b1fa824a78058cf9318b21592d9643bd780691984ff803c7b0ec998f8e1720d81731fb26df42718cfe3c7b56ad09e4 SHA512 3b7e722ee231ad087b4d2419406e46b6b33a7947d6dcc8ecc0456f04925fb551810c5f27a54d9c99b0d729c1bb0d5d79d17bb8720291c8210ab88c15215244ec
139 DIST VirtualBox-5.1.32-120294-Linux_x86.run 87387598 BLAKE2B 657842740d52f046c969196ca776e5572e3bfde55587575bdcc2a957863bb890a40954c9fa014e9184ee77e1e5a81388eadbc5fcfcd22a21c0485e25074bb900 SHA512 38cb01d89edb1fcb44940bdd94c69af824577ebc9fa30a5a2c7c837142fc70848326325b9ee131ad878a9dce71e10b9762854ef0aa66c9060c159abc40c89241
140 +DIST VirtualBox-5.1.34-121010-Linux_amd64.run 88309202 BLAKE2B 77b906e52f54926a3d6a41ec54de906b4beca3c7ae817d3db20a480352ba4804d28cc41d8b501e89893b4ba153e8c62c7d9d106acd771c35431a1c841e964cdb SHA512 28b0b9cd58e1deba8b008bd0a2f611400de426701d9256cad58527761cfaed52949bb817a7b2cc101e15f524c79a605972349d87b637b7497ada0816421ecf4c
141 +DIST VirtualBox-5.1.34-121010-Linux_x86.run 87377358 BLAKE2B 48a0011a8fe80604a660eeb833b5b406f19827d9e22a0ae1f7a1394951b554a3d141d2150640107ebbb3d381b783084b7f7a2c4265302727524b98ced947c756 SHA512 7866f35f315ad9207fe85e0cfdbff7e5fb19f55ec1bff07606cadf68a9f7f965169b7c95713599952db4c9ba346f0813169f944e0d69702c4f2c43f35ff6c61f
142 DIST VirtualBox-5.2.6-120293-Linux_amd64.run 88554959 BLAKE2B ca35ed89b47a65c82abdc5268ec2b85fc78f405981e0919198effb99ca307fa74e2329d3901fcae9a18fada1dbefc2c39feec78609b818acf89ed09036f3693a SHA512 501e3de48553e3664242303c6f403784ffa71cb064de36c141a2be67aebe1d44161aab62af2101ada277cc02d98678fffbabbeb3aee69a5f97dca5dddb3ea553
143 DIST VirtualBox-5.2.6-120293-Linux_x86.run 87725517 BLAKE2B 301a44c5086377cff6e8cce794238661bebd6417a645de64227cfd5dccda5091d2bd88c33beaf393ceba61d912aed672eeba6ca084dd56553e042dfb0709a1f2 SHA512 f44753fdaad115aea5a576ac0b04463b7c25958c5c0a2cb20de76ef24045addbbd6fdfee60b0070149f78add2225f3384a523abd7938ee83f2fd9e79414b0742
144 +DIST VirtualBox-5.2.8-121009-Linux_amd64.run 88493520 BLAKE2B 2986918bb2eda12447468fb642d3760d999d3af3e5595bf7260e94572f15a811655cd3f1348e1cf23a827011b1eebf84f07f13185f4eab3c353a957c58c105d4 SHA512 211f94910ef50a00b178482c0600be48ecddb48086846515b7705b111a36f81346efd4cbeb39255d85f3a0e778509e0dd7676e4c9bcbea49014988be8635910f
145 +DIST VirtualBox-5.2.8-121009-Linux_x86.run 87705037 BLAKE2B 8d6774d0be3a3e12cd258bb6799e6f3eb84a3cff670277c0b910671879014b513d1e2958ebf60f5aaa1ee4ef56be52cc0908b3cb5fa25fa78db77023fbbb3660 SHA512 ee75f64332a8d1df61b60a28661d7b7ef760c789dabca61b749f5cf33ffbe5ef09d64bde6da4255e659b1bf86d947eca8d18d697738e4de9f6b0b423ea647e9b
146 DIST VirtualBoxSDK-5.1.32-120294.zip 9860157 BLAKE2B c9222bc865bdd70cc2ac516b27d1a1c91e0c05b04129a0c9793701ca8080c184ae2d8157bf687995c074aa03b8242e931164b03c5942e4d57589def16aa21b57 SHA512 aa2f0b647e177f95543c41beca64546a5d9b68f2081365ceb9a4494e500747de55fc71e899f31d65b96a9b5a1c8bfeaf8518ddb45791fb25e0ad992776c4c186
147 +DIST VirtualBoxSDK-5.1.34-121010.zip 9863604 BLAKE2B 63c7a28d509a910d4b63e7784a85a2cb125c6d5f6b6bf311c971235c706c4279266f40853f4c735ad41b483fd4febbf36bf9f07477e73675d39846b20e9105d7 SHA512 8a3931132e4eaffbcd82d64e9b34d6c2cce0c2971731b10af97f4e79e926baecd3ba3ead4b454512115e59c3f186d466ddbc9b13c83230f2b80743f5e0d0578c
148 DIST VirtualBoxSDK-5.2.6-120293.zip 10149320 BLAKE2B cc42df0d5e6a3f100fe5b205c6ab930f5537a9671c69ade26f60fe0922dd57ee2e82354e142acfcf08da3a5bd89ae796fa17a02b672185a7d7a78685df93f4b3 SHA512 73c50891df9094e4a894fe6a39026f2fc267f4cf6be9ce3130a8e20650ca7787c76cdf456c3d0035111ec3110d8300b5a9d15a4de3f2bdaa583980a4b83d5d6f
149 +DIST VirtualBoxSDK-5.2.8-121009.zip 10153749 BLAKE2B 0534f568f83d73f70f4192389e0f602bc4184d45a4a1aa82983692bf4e35fac0589eef21f5aa561c88c736aaa398986de0077dcdf3aa211df655788f5592b423 SHA512 386e38ee6e584ff8b0444b9285a67d259bb93f53d6e6b6e082cefd4121578da91ea56e2eb329b6848ff5476a14ad3055287b806cd25a21155aa6f708c58244a5
150
151 diff --git a/app-emulation/virtualbox-bin/virtualbox-bin-5.1.34.121010.ebuild b/app-emulation/virtualbox-bin/virtualbox-bin-5.1.34.121010.ebuild
152 new file mode 100644
153 index 00000000000..256314a1aed
154 --- /dev/null
155 +++ b/app-emulation/virtualbox-bin/virtualbox-bin-5.1.34.121010.ebuild
156 @@ -0,0 +1,287 @@
157 +# Copyright 1999-2018 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="https://www.virtualbox.org/"
187 +SRC_URI="amd64? ( https://download.virtualbox.org/virtualbox/${MY_PV}/${MY_P}_amd64.run )
188 + x86? ( https://download.virtualbox.org/virtualbox/${MY_PV}/${MY_P}_x86.run )
189 + https://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? ( https://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.8.121009.ebuild b/app-emulation/virtualbox-bin/virtualbox-bin-5.2.8.121009.ebuild
446 new file mode 100644
447 index 00000000000..256314a1aed
448 --- /dev/null
449 +++ b/app-emulation/virtualbox-bin/virtualbox-bin-5.2.8.121009.ebuild
450 @@ -0,0 +1,287 @@
451 +# Copyright 1999-2018 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="https://www.virtualbox.org/"
481 +SRC_URI="amd64? ( https://download.virtualbox.org/virtualbox/${MY_PV}/${MY_P}_amd64.run )
482 + x86? ( https://download.virtualbox.org/virtualbox/${MY_PV}/${MY_P}_x86.run )
483 + https://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? ( https://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 fc4f1cc5232..42e8aaff756 100644
741 --- a/app-emulation/virtualbox-extpack-oracle/Manifest
742 +++ b/app-emulation/virtualbox-extpack-oracle/Manifest
743 @@ -1,2 +1,4 @@
744 DIST Oracle_VM_VirtualBox_Extension_Pack-5.1.32-120294.tar.gz 19589163 BLAKE2B b35d9bb90216a77706fe5f0de624affaff4177d4b6e561f7c76003efd1a386a1f5b5f6b1c6b559cddde6ffb55ab5f7eba3e4c9b2135f31c09313b473ba6579e5 SHA512 c1e13fc59b9556f980bec02bb2860e717f752d42c3d810f70267e5c07898bb1aba9d3f3403fa5aa388478aa609397da49dcf10311836d68093101715a6ae200d
745 +DIST Oracle_VM_VirtualBox_Extension_Pack-5.1.34-121010.tar.gz 19591849 BLAKE2B 573afe3624a3eace4272a067f472e32dbe344755814aefaa8d6685da0ff31e04faa7f6a22a58974938067fce3a0ea3d66a0c5d02db999105029cc7c5c8fea24b SHA512 4f05bc7abe989fbc0928aba259ad60b09f5b085859c0ddc3e24c052fdb4becb055795c8f0038fc4dd95be7b9954a3034afd499798bb58fe16522602cfe91e7fa
746 DIST Oracle_VM_VirtualBox_Extension_Pack-5.2.6-120293.tar.gz 19468503 BLAKE2B 5e1e490352fb06ceee868171583e50f8ca634a53799237cd1a3632566b6ca14d526e714156ccbeae48bf01aa4372a89d8926601cf5c1d8d34127d2d1e6a53edb SHA512 f81715b5e89ae21080d9a1b23cfd9be30bc35b32963c1b710262c1ee88bedc405dd9d2ff96761b8725716bd98625eea58fc076de6d42a4728078ebe303e195af
747 +DIST Oracle_VM_VirtualBox_Extension_Pack-5.2.8-121009.tar.gz 19469421 BLAKE2B 81651876802ad767339f3984a26375118f01e4b99b4247398e0cea8d749905431b40945f8a72d0c7802b2743080f01d3044aafd21600c4927773994c5a114a1f SHA512 2b69e2acab91ce95e9807006c79862fc0d1d10fdd269bd9cdf8f11b6704821823b103c7a4a76ad99c10e0868bd397ffe0e72b2eb2aa4fc2bd81ff968c71c2280
748
749 diff --git a/app-emulation/virtualbox-extpack-oracle/virtualbox-extpack-oracle-5.1.34.121010.ebuild b/app-emulation/virtualbox-extpack-oracle/virtualbox-extpack-oracle-5.1.34.121010.ebuild
750 new file mode 100644
751 index 00000000000..7d7d5d2ea35
752 --- /dev/null
753 +++ b/app-emulation/virtualbox-extpack-oracle/virtualbox-extpack-oracle-5.1.34.121010.ebuild
754 @@ -0,0 +1,42 @@
755 +# Copyright 1999-2018 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="https://www.virtualbox.org/"
778 +SRC_URI="https://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.8.121009.ebuild b/app-emulation/virtualbox-extpack-oracle/virtualbox-extpack-oracle-5.2.8.121009.ebuild
799 new file mode 100644
800 index 00000000000..7d7d5d2ea35
801 --- /dev/null
802 +++ b/app-emulation/virtualbox-extpack-oracle/virtualbox-extpack-oracle-5.2.8.121009.ebuild
803 @@ -0,0 +1,42 @@
804 +# Copyright 1999-2018 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="https://www.virtualbox.org/"
827 +SRC_URI="https://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 4849fb9c5de..fc6326ed71e 100644
849 --- a/app-emulation/virtualbox-guest-additions/Manifest
850 +++ b/app-emulation/virtualbox-guest-additions/Manifest
851 @@ -1,4 +1,6 @@
852 DIST VirtualBox-5.1.32.tar.bz2 117268301 BLAKE2B 336df054e3407d7e701d6719258cfcba9beec1439cbe94f137570cfcbdea02df3e34374ac36d3b4387c47ebafd17a0f05c2fb710eb4f140d8200117b505aba98 SHA512 052ac1672515a36c4138e2d52672a466d4c768f219f52eefe98e747a292ebebe04e7de35547eae6803654be5dc937b8e6f4d358a65fd4f49a8333eac8862d138
853 +DIST VirtualBox-5.1.34.tar.bz2 117291269 BLAKE2B 0eb9b3f778f2d677ac3635fa59dfa6861d0fec3c0331582e5961b78ab55b5ab26bbf286de05a3e87e8a64e2b54861613a8d2c93f70736a07c551dca834786abd SHA512 0f828e58d68678a0a94a39c12313425105f9255ca207d40dd04065d0072857cdc4fc886f944b852c3fb63fed04d70a3449aecd2aab9e27af7f13b506143a4b6f
854 DIST VirtualBox-5.2.6.tar.bz2 118530572 BLAKE2B 19d32a9252e9594a4c09828bc2bc739c46daf409745c01f764fb54bc17faa667081a27534ac11666cbf1b417057cb99a416faa42e3986ce4d2c08378e7e7240c SHA512 ed6f801c055e9b8e152118a1ebfecdc15c310fac2b007ea3cd4a404d17cbbbc83782a3baa76b979c72b9399616844291576846d820f8aefb7c4b4ec2eaf36482
855 +DIST VirtualBox-5.2.8.tar.bz2 118500065 BLAKE2B 64d0cc0f928d224332f59e7966ee1bed8adcf097d27c577b6ecea5cbf203e170e38acca9f2371d6d7aa11f63b73e705b43a0516ccbe5993171f928406b8a3876 SHA512 49a3bd1c60d2c4cbd3799ece5fbfe15d9b6a00c5af9692478a1365a8eb4975228410e17dba24a388c0cf5387cb79fb7492feb4e6b2f531bc17322c3d61de7887
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.34.ebuild b/app-emulation/virtualbox-guest-additions/virtualbox-guest-additions-5.1.34.ebuild
860 new file mode 100644
861 index 00000000000..b85dda606c3
862 --- /dev/null
863 +++ b/app-emulation/virtualbox-guest-additions/virtualbox-guest-additions-5.1.34.ebuild
864 @@ -0,0 +1,221 @@
865 +# Copyright 1999-2018 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="https://www.virtualbox.org/"
877 +SRC_URI="https://download.virtualbox.org/virtualbox/${MY_PV}/${MY_P}.tar.bz2
878 + https://dev.gentoo.org/~polynomial-c/virtualbox/patchsets/virtualbox-5.1.32-patches-01.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.8.ebuild b/app-emulation/virtualbox-guest-additions/virtualbox-guest-additions-5.2.8.ebuild
1088 new file mode 100644
1089 index 00000000000..13cfeb79a1d
1090 --- /dev/null
1091 +++ b/app-emulation/virtualbox-guest-additions/virtualbox-guest-additions-5.2.8.ebuild
1092 @@ -0,0 +1,228 @@
1093 +# Copyright 1999-2018 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="https://www.virtualbox.org/"
1105 +SRC_URI="https://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 51e286048f7..fba419847f6 100644
1324 --- a/app-emulation/virtualbox-modules/Manifest
1325 +++ b/app-emulation/virtualbox-modules/Manifest
1326 @@ -1,2 +1,4 @@
1327 DIST vbox-kernel-module-src-5.1.32.tar.xz 626600 BLAKE2B eb3243d62d1a22f41f5ea2307b13a3f5ce17a19edcecb0340f94d34995e557b016195443a53edc9d68a313d064008e5af04c7fff28540ec513c6e9a5955e02e0 SHA512 10ead68e53ae6bd72e39b31d536fc36e0999fe506a6d7fd6a6f9e462d539213ad65deb56e2b926baa5cc4b16fb4071d89e105889e873fda0e4a1f20387a7cd39
1328 +DIST vbox-kernel-module-src-5.1.34.tar.xz 627576 BLAKE2B c1bd2af511824e5a74c3b85b73b7bc1664dd3651db3c17bbcba06b5ef8d9ba11c1a5c92bf28f443fb17aee1d057310f20a62c1a4608ce84eb087de61cbe67c25 SHA512 6176036a22d316e15c6560c124cfce9e93c6508a78e189bbe8e431ccf006b74d5f34ea747c9ca307bbd90e0c6fa414056ae0b56a5aa8124c2263de3d0dbf97d1
1329 DIST vbox-kernel-module-src-5.2.6.tar.xz 635096 BLAKE2B 8c168b9e1d3de395ef663ca81edf63939cb7670f769995c20f9d4cb4f87194b22812707bfd62d52dd85e19de2562c27c182aad22f40928358cf07a0c5ac15d79 SHA512 c85f94e08357a11574af306b00e71c445b80ef6dea6c47d9cf1003c0d9f36d265ebadd2ae27b3dd96f41cc544e501d3eb0551559bebf25d35b9861a282f489bc
1330 +DIST vbox-kernel-module-src-5.2.8.tar.xz 636172 BLAKE2B 0a0be16ee830dbf60e9bd8e0aa977ad020374d65c4ea19689bd20f7399da87633ac9ef57e2297963937e4d5eb82173a50beacd8ddd1b54943fe8d24fe723e3f4 SHA512 8875048d827ebbedec37864e219033305a228903b01d7ca22b371b02de9b23099d3bc76ddef4887b633f1215e73daa5db6e35c8d2e21f90200f439b15792d05f
1331
1332 diff --git a/app-emulation/virtualbox-modules/virtualbox-modules-5.1.34.ebuild b/app-emulation/virtualbox-modules/virtualbox-modules-5.1.34.ebuild
1333 new file mode 100644
1334 index 00000000000..cb21bd965ab
1335 --- /dev/null
1336 +++ b/app-emulation/virtualbox-modules/virtualbox-modules-5.1.34.ebuild
1337 @@ -0,0 +1,65 @@
1338 +# Copyright 1999-2018 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 + eapply "${FILESDIR}"/${PN}-4.1.4-pax-const.patch
1385 + fi
1386 +
1387 + if kernel_is -ge 4 14 0 ; then
1388 + eapply "${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 +}
1403
1404 diff --git a/app-emulation/virtualbox-modules/virtualbox-modules-5.2.8.ebuild b/app-emulation/virtualbox-modules/virtualbox-modules-5.2.8.ebuild
1405 new file mode 100644
1406 index 00000000000..8bbaca49a8f
1407 --- /dev/null
1408 +++ b/app-emulation/virtualbox-modules/virtualbox-modules-5.2.8.ebuild
1409 @@ -0,0 +1,56 @@
1410 +# Copyright 1999-2018 Gentoo Foundation
1411 +# Distributed under the terms of the GNU General Public License v2
1412 +
1413 +# XXX: the tarball here is just the kernel modules split out of the binary
1414 +# package that comes from virtualbox-bin
1415 +
1416 +EAPI=6
1417 +
1418 +inherit eutils linux-mod user
1419 +
1420 +MY_P=vbox-kernel-module-src-${PV}
1421 +DESCRIPTION="Kernel Modules for Virtualbox"
1422 +HOMEPAGE="http://www.virtualbox.org/"
1423 +SRC_URI="https://dev.gentoo.org/~polynomial-c/virtualbox/${MY_P}.tar.xz"
1424 +
1425 +LICENSE="GPL-2"
1426 +SLOT="0"
1427 +KEYWORDS="~amd64 ~x86"
1428 +IUSE="pax_kernel"
1429 +
1430 +RDEPEND="!=app-emulation/virtualbox-9999"
1431 +
1432 +S=${WORKDIR}
1433 +
1434 +BUILD_TARGETS="all"
1435 +BUILD_TARGET_ARCH="${ARCH}"
1436 +MODULE_NAMES="vboxdrv(misc:${S}) vboxnetflt(misc:${S}) vboxnetadp(misc:${S}) vboxpci(misc:${S})"
1437 +
1438 +pkg_setup() {
1439 + enewgroup vboxusers
1440 +
1441 + CONFIG_CHECK="!TRIM_UNUSED_KSYMS"
1442 + ERROR_TRIM_UNUSED_KSYMS="The kernel option CONFIG_TRIM_UNUSED_KSYMS removed kernel symbols that are needed by ${PN} to load correctly."
1443 +
1444 + linux-mod_pkg_setup
1445 +
1446 + BUILD_PARAMS="KERN_DIR=${KV_DIR} KERN_VER=${KV_FULL} O=${KV_OUT_DIR} V=1 KBUILD_VERBOSE=1"
1447 +}
1448 +
1449 +src_prepare() {
1450 + if use pax_kernel && kernel_is -ge 3 0 0 ; then
1451 + eapply "${FILESDIR}"/${PN}-4.1.4-pax-const.patch
1452 + fi
1453 +
1454 + default
1455 +}
1456 +
1457 +src_install() {
1458 + linux-mod_src_install
1459 + insinto /usr/lib/modules-load.d/
1460 + doins "${FILESDIR}"/virtualbox.conf
1461 +}
1462 +
1463 +pkg_postinst() {
1464 + linux-mod_pkg_postinst
1465 +}
1466
1467 diff --git a/app-emulation/virtualbox/Manifest b/app-emulation/virtualbox/Manifest
1468 index 17a2f4cac81..1f7c7371fa4 100644
1469 --- a/app-emulation/virtualbox/Manifest
1470 +++ b/app-emulation/virtualbox/Manifest
1471 @@ -1,4 +1,6 @@
1472 DIST VirtualBox-5.1.32.tar.bz2 117268301 BLAKE2B 336df054e3407d7e701d6719258cfcba9beec1439cbe94f137570cfcbdea02df3e34374ac36d3b4387c47ebafd17a0f05c2fb710eb4f140d8200117b505aba98 SHA512 052ac1672515a36c4138e2d52672a466d4c768f219f52eefe98e747a292ebebe04e7de35547eae6803654be5dc937b8e6f4d358a65fd4f49a8333eac8862d138
1473 +DIST VirtualBox-5.1.34.tar.bz2 117291269 BLAKE2B 0eb9b3f778f2d677ac3635fa59dfa6861d0fec3c0331582e5961b78ab55b5ab26bbf286de05a3e87e8a64e2b54861613a8d2c93f70736a07c551dca834786abd SHA512 0f828e58d68678a0a94a39c12313425105f9255ca207d40dd04065d0072857cdc4fc886f944b852c3fb63fed04d70a3449aecd2aab9e27af7f13b506143a4b6f
1474 DIST VirtualBox-5.2.6.tar.bz2 118530572 BLAKE2B 19d32a9252e9594a4c09828bc2bc739c46daf409745c01f764fb54bc17faa667081a27534ac11666cbf1b417057cb99a416faa42e3986ce4d2c08378e7e7240c SHA512 ed6f801c055e9b8e152118a1ebfecdc15c310fac2b007ea3cd4a404d17cbbbc83782a3baa76b979c72b9399616844291576846d820f8aefb7c4b4ec2eaf36482
1475 +DIST VirtualBox-5.2.8.tar.bz2 118500065 BLAKE2B 64d0cc0f928d224332f59e7966ee1bed8adcf097d27c577b6ecea5cbf203e170e38acca9f2371d6d7aa11f63b73e705b43a0516ccbe5993171f928406b8a3876 SHA512 49a3bd1c60d2c4cbd3799ece5fbfe15d9b6a00c5af9692478a1365a8eb4975228410e17dba24a388c0cf5387cb79fb7492feb4e6b2f531bc17322c3d61de7887
1476 DIST virtualbox-5.1.32-patches-01.tar.xz 2464 BLAKE2B 28f461634ac7f200b74d961e56f56aea486445bdb8d1490000bd34393b4873ee058d1dc9db6c32084921bd7d51a92be1e38b1b098385f443f41b9231c1489829 SHA512 08782c8eecc0cbb370f21fb3951af449ed1c8174a7184210de376a7d4ca5d64b14b2619d121aacef1c85982c8b485e545e260d3c0fc1f95769093efa23cd2cd2
1477 DIST virtualbox-5.2.0-patches-01.tar.xz 2460 BLAKE2B d3f973dc7ee0557c360f801c3bf84065a7e7bc9960984398b8f86d71fab32c59774e970c6cf873be07bcb9666af168570e8a78705a5999b1fc5d863dbbc6e538 SHA512 b91278dd81a50e412f5a281c72949f591a1c53303080549b74b28763cab9e3948948afb0256e0453d17736683cca3372a8e9c6d63f02f3eff3ef92c2a1ea332b
1478
1479 diff --git a/app-emulation/virtualbox/virtualbox-5.2.6.ebuild b/app-emulation/virtualbox/virtualbox-5.1.34.ebuild
1480 similarity index 97%
1481 copy from app-emulation/virtualbox/virtualbox-5.2.6.ebuild
1482 copy to app-emulation/virtualbox/virtualbox-5.1.34.ebuild
1483 index e40976f0165..e933a7f1041 100644
1484 --- a/app-emulation/virtualbox/virtualbox-5.2.6.ebuild
1485 +++ b/app-emulation/virtualbox/virtualbox-5.1.34.ebuild
1486 @@ -11,9 +11,9 @@ MY_PV="${MY_PV/rc/RC}"
1487 MY_P=VirtualBox-${MY_PV}
1488
1489 DESCRIPTION="Family of powerful x86 virtualization products for enterprise and home use"
1490 -HOMEPAGE="http://www.virtualbox.org/"
1491 +HOMEPAGE="https://www.virtualbox.org/"
1492 SRC_URI="https://download.virtualbox.org/virtualbox/${MY_PV}/${MY_P}.tar.bz2
1493 - https://dev.gentoo.org/~polynomial-c/${PN}/patchsets/${PN}-5.2.0-patches-01.tar.xz"
1494 + https://dev.gentoo.org/~polynomial-c/${PN}/patchsets/${PN}-5.1.32-patches-01.tar.xz"
1495
1496 LICENSE="GPL-2"
1497 SLOT="0"
1498 @@ -54,7 +54,7 @@ RDEPEND="!app-emulation/virtualbox-bin
1499 udev? ( >=virtual/udev-171 )
1500 vnc? ( >=net-libs/libvncserver-0.9.9 )"
1501 DEPEND="${RDEPEND}
1502 - >=dev-util/kbuild-0.1.9998.3127
1503 + >=dev-util/kbuild-0.1.9998_pre20131130-r1
1504 >=dev-lang/yasm-0.6.2
1505 sys-devel/bin86
1506 sys-libs/libcap
1507 @@ -440,11 +440,6 @@ pkg_postinst() {
1508 elog "For advanced networking setups you should emerge:"
1509 elog "net-misc/bridge-utils and sys-apps/usermode-utilities"
1510 elog ""
1511 - elog "IMPORTANT!"
1512 - elog "If you upgrade from app-emulation/virtualbox-ose make sure to run"
1513 - elog "\"env-update\" as root and logout and relogin as the user you wish"
1514 - elog "to run ${PN} as."
1515 - elog ""
1516 elog "Starting with version 4.0.0, ${PN} has USB-1 support."
1517 elog "For USB-2 support, PXE-boot ability and VRDP support please emerge"
1518 elog " app-emulation/virtualbox-extpack-oracle"
1519
1520 diff --git a/app-emulation/virtualbox/virtualbox-5.2.6.ebuild b/app-emulation/virtualbox/virtualbox-5.2.6.ebuild
1521 index e40976f0165..b1b10dbd411 100644
1522 --- a/app-emulation/virtualbox/virtualbox-5.2.6.ebuild
1523 +++ b/app-emulation/virtualbox/virtualbox-5.2.6.ebuild
1524 @@ -11,7 +11,7 @@ MY_PV="${MY_PV/rc/RC}"
1525 MY_P=VirtualBox-${MY_PV}
1526
1527 DESCRIPTION="Family of powerful x86 virtualization products for enterprise and home use"
1528 -HOMEPAGE="http://www.virtualbox.org/"
1529 +HOMEPAGE="https://www.virtualbox.org/"
1530 SRC_URI="https://download.virtualbox.org/virtualbox/${MY_PV}/${MY_P}.tar.bz2
1531 https://dev.gentoo.org/~polynomial-c/${PN}/patchsets/${PN}-5.2.0-patches-01.tar.xz"
1532
1533
1534 diff --git a/app-emulation/virtualbox/virtualbox-5.2.6.ebuild b/app-emulation/virtualbox/virtualbox-5.2.8.ebuild
1535 similarity index 98%
1536 copy from app-emulation/virtualbox/virtualbox-5.2.6.ebuild
1537 copy to app-emulation/virtualbox/virtualbox-5.2.8.ebuild
1538 index e40976f0165..608ae644b8f 100644
1539 --- a/app-emulation/virtualbox/virtualbox-5.2.6.ebuild
1540 +++ b/app-emulation/virtualbox/virtualbox-5.2.8.ebuild
1541 @@ -11,7 +11,7 @@ MY_PV="${MY_PV/rc/RC}"
1542 MY_P=VirtualBox-${MY_PV}
1543
1544 DESCRIPTION="Family of powerful x86 virtualization products for enterprise and home use"
1545 -HOMEPAGE="http://www.virtualbox.org/"
1546 +HOMEPAGE="https://www.virtualbox.org/"
1547 SRC_URI="https://download.virtualbox.org/virtualbox/${MY_PV}/${MY_P}.tar.bz2
1548 https://dev.gentoo.org/~polynomial-c/${PN}/patchsets/${PN}-5.2.0-patches-01.tar.xz"
1549
1550 @@ -440,11 +440,6 @@ pkg_postinst() {
1551 elog "For advanced networking setups you should emerge:"
1552 elog "net-misc/bridge-utils and sys-apps/usermode-utilities"
1553 elog ""
1554 - elog "IMPORTANT!"
1555 - elog "If you upgrade from app-emulation/virtualbox-ose make sure to run"
1556 - elog "\"env-update\" as root and logout and relogin as the user you wish"
1557 - elog "to run ${PN} as."
1558 - elog ""
1559 elog "Starting with version 4.0.0, ${PN} has USB-1 support."
1560 elog "For USB-2 support, PXE-boot ability and VRDP support please emerge"
1561 elog " app-emulation/virtualbox-extpack-oracle"
1562
1563 diff --git a/x11-drivers/xf86-video-virtualbox/Manifest b/x11-drivers/xf86-video-virtualbox/Manifest
1564 index 8a95cceb93d..c3040492dc3 100644
1565 --- a/x11-drivers/xf86-video-virtualbox/Manifest
1566 +++ b/x11-drivers/xf86-video-virtualbox/Manifest
1567 @@ -1 +1,2 @@
1568 DIST VirtualBox-5.1.32.tar.bz2 117268301 BLAKE2B 336df054e3407d7e701d6719258cfcba9beec1439cbe94f137570cfcbdea02df3e34374ac36d3b4387c47ebafd17a0f05c2fb710eb4f140d8200117b505aba98 SHA512 052ac1672515a36c4138e2d52672a466d4c768f219f52eefe98e747a292ebebe04e7de35547eae6803654be5dc937b8e6f4d358a65fd4f49a8333eac8862d138
1569 +DIST VirtualBox-5.1.34.tar.bz2 117291269 BLAKE2B 0eb9b3f778f2d677ac3635fa59dfa6861d0fec3c0331582e5961b78ab55b5ab26bbf286de05a3e87e8a64e2b54861613a8d2c93f70736a07c551dca834786abd SHA512 0f828e58d68678a0a94a39c12313425105f9255ca207d40dd04065d0072857cdc4fc886f944b852c3fb63fed04d70a3449aecd2aab9e27af7f13b506143a4b6f
1570
1571 diff --git a/x11-drivers/xf86-video-virtualbox/xf86-video-virtualbox-5.1.34.ebuild b/x11-drivers/xf86-video-virtualbox/xf86-video-virtualbox-5.1.34.ebuild
1572 new file mode 100644
1573 index 00000000000..932d9378fad
1574 --- /dev/null
1575 +++ b/x11-drivers/xf86-video-virtualbox/xf86-video-virtualbox-5.1.34.ebuild
1576 @@ -0,0 +1,192 @@
1577 +# Copyright 1999-2018 Gentoo Foundation
1578 +# Distributed under the terms of the GNU General Public License v2
1579 +
1580 +EAPI=6
1581 +
1582 +PYTHON_COMPAT=( python2_7 )
1583 +inherit eutils multilib python-single-r1 versionator toolchain-funcs
1584 +
1585 +MY_PV="${PV/beta/BETA}"
1586 +MY_PV="${MY_PV/rc/RC}"
1587 +MY_P=VirtualBox-${MY_PV}
1588 +DESCRIPTION="VirtualBox X11 video driver for Gentoo guest"
1589 +HOMEPAGE="https://www.virtualbox.org/"
1590 +SRC_URI="https://download.virtualbox.org/virtualbox/${MY_PV}/${MY_P}.tar.bz2"
1591 +
1592 +LICENSE="GPL-2"
1593 +SLOT="0"
1594 +KEYWORDS="~amd64 ~x86"
1595 +IUSE="dri"
1596 +REQUIRED_USE="${PYTHON_REQUIRED_USE}"
1597 +
1598 +RDEPEND="
1599 + >=x11-base/xorg-server-1.7:=[-minimal]
1600 + x11-libs/libXcomposite
1601 + ${PYTHON_DEPS}"
1602 +DEPEND="${RDEPEND}
1603 + >=dev-lang/yasm-0.6.2
1604 + >=dev-util/kbuild-0.1.9998_pre20131130
1605 + sys-power/iasl
1606 + x11-proto/fontsproto
1607 + x11-proto/randrproto
1608 + x11-proto/renderproto
1609 + x11-proto/resourceproto
1610 + x11-proto/scrnsaverproto
1611 + x11-proto/xextproto
1612 + x11-proto/xineramaproto
1613 + x11-proto/xproto
1614 + x11-libs/libXdmcp
1615 + x11-libs/libXau
1616 + x11-libs/libX11
1617 + x11-libs/libXfixes
1618 + x11-libs/libXext
1619 + dri? ( x11-proto/xf86driproto
1620 + >=x11-libs/libdrm-2.4.5 )"
1621 +PDEPEND="dri? ( ~app-emulation/virtualbox-guest-additions-${PV} )"
1622 +
1623 +BUILD_TARGETS="all"
1624 +BUILD_TARGET_ARCH="${ARCH}"
1625 +S="${WORKDIR}/${MY_P}"
1626 +MODULES_SRC_DIR="${S}/src/VBox/Additions/linux/drm"
1627 +
1628 +PATCHES=(
1629 + # Ugly hack to build the opengl part of the video driver
1630 + "${FILESDIR}/${PN}-2.2.0-enable-opengl.patch"
1631 +
1632 + # unset useless/problematic checks in configure
1633 + "${FILESDIR}/${PN}-5.0.0_beta3-configure_checks.patch"
1634 +
1635 + # xorg-1.19 patch from opensuse (bug #602784)
1636 + "${FILESDIR}/${PN}-5.1.10-xorg119.patch"
1637 +)
1638 +
1639 +QA_TEXTRELS_x86="usr/lib/VBoxOGL.so"
1640 +
1641 +pkg_setup() {
1642 + if [ "${MERGE_TYPE}" != "binary" ]; then
1643 + version_is_at_least 4.9 $(gcc-version) || die "Please set gcc 4.9 or higher as active in gcc-config to build ${PN}"
1644 + fi
1645 +
1646 + python-single-r1_pkg_setup
1647 +}
1648 +
1649 +src_prepare() {
1650 + # Prepare the vboxvideo_drm Makefiles and build dir
1651 + eapply "${FILESDIR}"/${PN}-5.1.24-Makefile.module.kms.patch
1652 +
1653 + # Remove shipped binaries (kBuild,yasm), see bug #232775
1654 + rm -r kBuild/bin tools || die
1655 +
1656 + # Disable things unused or splitted into separate ebuilds
1657 + cp "${FILESDIR}/${PN}-5-localconfig" LocalConfig.kmk || die
1658 +
1659 + # Remove pointless GCC version check
1660 + sed -e '/^check_gcc$/d' -i configure || die
1661 +
1662 + default
1663 +
1664 + # link with lazy on hardened #394757
1665 + sed '/^TEMPLATE_VBOXR3EXE_LDFLAGS.linux/s/$/ -Wl,-z,lazy/' \
1666 + -i Config.kmk || die
1667 +}
1668 +
1669 +src_configure() {
1670 + # build the user-space tools, warnings are harmless
1671 + local cmd=(
1672 + ./configure
1673 + --nofatal
1674 + --disable-xpcom
1675 + --disable-sdl-ttf
1676 + --disable-pulse
1677 + --disable-alsa
1678 + --with-gcc="$(tc-getCC)"
1679 + --with-g++="$(tc-getCXX)"
1680 + --target-arch=${ARCH}
1681 + --with-linux="${KV_OUT_DIR}"
1682 + --build-headless
1683 + )
1684 + echo "${cmd[@]}"
1685 + "${cmd[@]}" || die "configure failed"
1686 + source ./env.sh
1687 + export VBOX_GCC_OPT="${CFLAGS} ${CPPFLAGS}"
1688 +}
1689 +
1690 +src_compile() {
1691 + local each targets=(
1692 + Runtime
1693 + Additions/common/VBoxGuestLib
1694 + GuestHost/OpenGL
1695 + Additions/x11/x11stubs
1696 + Additions/common/crOpenGL
1697 + Additions/x11/vboxvideo
1698 + )
1699 +
1700 + # need to use the upstream build system to create necessary objects properly
1701 + use dri && targets+=( Additions/linux/drm )
1702 +
1703 + for each in ${targets[@]} ; do
1704 + pushd "${S}"/src/VBox/${each} &>/dev/null || die
1705 + MAKE="kmk" \
1706 + emake TOOL_YASM_AS=yasm \
1707 + VBOX_USE_SYSTEM_XORG_HEADERS=1 \
1708 + KBUILD_PATH="${S}/kBuild" \
1709 + KBUILD_VERBOSE=2
1710 + popd &>/dev/null || die
1711 + done
1712 +
1713 + if use dri; then
1714 + local objdir="out/linux.${ARCH}/release/obj/vboxvideo_drm"
1715 + # We need a Makefile, so use Makefile.module.kms
1716 + ln -s Makefile.module.kms "${MODULES_SRC_DIR}"/Makefile || die
1717 + # All of these are expected to be in $(KBUILD_EXTMOD)/ so symlink them into place
1718 + targets=(
1719 + include
1720 + src/VBox/Runtime/r0drv
1721 + src/VBox/Installer/linux/Makefile.include.{head,foot}er
1722 + out/linux.${ARCH}/release/{product,version,revision}-generated.h
1723 + )
1724 + for each in ${targets[@]} ; do
1725 + ln -s "${S}"/${each} \
1726 + "${MODULES_SRC_DIR}"/${each##*/} || die
1727 + done
1728 + # see the vboxvideo_drm_SOURCES list in Makefile.kmk for the below,
1729 + # and replace '..' with 'dt'
1730 + targets=(
1731 + dt/dt/common/VBoxVideo/HGSMIBase.o
1732 + dt/dt/common/VBoxVideo/Modesetting.o
1733 + dt/dt/common/VBoxVideo/VBVABase.o
1734 + dt/dt/dt/GuestHost/HGSMI/HGSMICommon.o
1735 + dt/dt/dt/GuestHost/HGSMI/HGSMIMemAlloc.o
1736 + dt/dt/dt/Runtime/common/alloc/heapoffset.o
1737 + )
1738 + for each in ${targets[@]} ; do
1739 + ln -s "${S}"/${objdir}/${each} \
1740 + "${MODULES_SRC_DIR}" || die
1741 + ln -s "${S}"/${objdir}/${each}.dep \
1742 + "${MODULES_SRC_DIR}" || die
1743 + done
1744 + fi
1745 +}
1746 +
1747 +src_install() {
1748 + cd "${S}/out/linux.${ARCH}/release/bin/additions" || die
1749 + insinto /usr/$(get_libdir)/xorg/modules/drivers
1750 + newins vboxvideo_drv_system.so vboxvideo_drv.so
1751 +
1752 + # Guest OpenGL driver
1753 + insinto /usr/$(get_libdir)
1754 + doins -r VBoxOGL*
1755 +
1756 + if use dri ; then
1757 + dosym /usr/$(get_libdir)/VBoxOGL.so \
1758 + /usr/$(get_libdir)/dri/vboxvideo_dri.so
1759 + fi
1760 +}
1761 +
1762 +pkg_postinst() {
1763 + elog "You need to edit the file /etc/X11/xorg.conf and set:"
1764 + elog ""
1765 + elog " Driver \"vboxvideo\""
1766 + elog ""
1767 + elog "in the Graphics device section (Section \"Device\")"
1768 +}