Gentoo Archives: gentoo-commits

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