Gentoo Archives: gentoo-commits

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