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