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