Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-emulation/virtualbox-modules/, app-emulation/virtualbox-extpack-oracle/, ...
Date: Wed, 18 Jul 2018 09:39:22
Message-Id: 1531906747.39a23ac538f6769790a4880b3e10ac70ca0d4e8a.polynomial-c@gentoo
1 commit: 39a23ac538f6769790a4880b3e10ac70ca0d4e8a
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jul 18 09:38:50 2018 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Wed Jul 18 09:39:07 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=39a23ac5
7
8 virtualbox packages: Removed old.
9
10 Package-Manager: Portage-2.3.43, Repoman-2.3.10
11
12 app-emulation/virtualbox-additions/Manifest | 1 -
13 .../virtualbox-additions-5.2.12.ebuild | 35 --
14 app-emulation/virtualbox-bin/Manifest | 4 -
15 .../virtualbox-bin-5.2.12.122591.ebuild | 287 -------------
16 app-emulation/virtualbox-extpack-oracle/Manifest | 1 -
17 .../virtualbox-extpack-oracle-5.2.12.122591.ebuild | 42 --
18 app-emulation/virtualbox-guest-additions/Manifest | 2 -
19 .../virtualbox-guest-additions-5.2.12.ebuild | 226 ----------
20 app-emulation/virtualbox-modules/Manifest | 1 -
21 .../virtualbox-modules-5.2.12.ebuild | 51 ---
22 app-emulation/virtualbox/Manifest | 1 -
23 app-emulation/virtualbox/virtualbox-5.2.12.ebuild | 470 ---------------------
24 12 files changed, 1121 deletions(-)
25
26 diff --git a/app-emulation/virtualbox-additions/Manifest b/app-emulation/virtualbox-additions/Manifest
27 index 39a3421ffdd..a6eabaa9ec4 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.12.iso 57976832 BLAKE2B 3b1485da265a9d7bd659e846ceb9e3e8f3463816f2f8157654704875e9b7a91d6f610cfa6285d9d54b06e87ca4f3e5d4600b26ac622b592c90c42bde0cc0f2ee SHA512 276b6348942bb82f68dacdc957590130281c5b3818d47c60238e00e1015682b5a44f28091163297ea052d327f916ed2e79bc32820f39f8b8e5dab5bd0fccbe77
34 DIST VBoxGuestAdditions_5.2.14.iso 57978880 BLAKE2B de5cb3c5b7e2f3ee018588308573389fd973820e87d5b2e6640499c96dc21db95e71eb4e5e2469455febba8b2ccb4a7c6014176e784613218fa7eccabefe9e53 SHA512 1fd878f9e7fc1687907ac8dff6827bfd7aefe3ed48012b0dbbaf42ced21695ce52be6fe146128a6d1c67c7a0c5c39c9ef24e8ee562271fda117d13cca81427cb
35 DIST VBoxGuestAdditions_5.2.16.iso 57976832 BLAKE2B 78c8d71e2a68306efaf2951d73099b7199e15d83d9fc2c70f73266fdf59798948b22815234a5e30eff43471fcb8a5967c74a439d79b5ed47971dd170498145de SHA512 f25bf8ce789f640e5a80ac55c5d1918702bfed711aeacddc951948dcb56a4aa43a5a4e8760e3b8cc6e18eee18eabff032dd8fff8b95cc18bc60177b0a481b592
36
37 diff --git a/app-emulation/virtualbox-additions/virtualbox-additions-5.2.12.ebuild b/app-emulation/virtualbox-additions/virtualbox-additions-5.2.12.ebuild
38 deleted file mode 100644
39 index a28d6005cb4..00000000000
40 --- a/app-emulation/virtualbox-additions/virtualbox-additions-5.2.12.ebuild
41 +++ /dev/null
42 @@ -1,35 +0,0 @@
43 -# Copyright 1999-2018 Gentoo Foundation
44 -# Distributed under the terms of the GNU General Public License v2
45 -
46 -EAPI=6
47 -
48 -inherit eutils
49 -
50 -MY_PN=VBoxGuestAdditions
51 -MY_PV="${PV/beta/BETA}"
52 -MY_PV="${MY_PV/rc/RC}"
53 -MY_P=${MY_PN}_${MY_PV}
54 -
55 -DESCRIPTION="CD image containing guest additions for VirtualBox"
56 -HOMEPAGE="https://www.virtualbox.org/"
57 -SRC_URI="https://download.virtualbox.org/virtualbox/${MY_PV}/${MY_P}.iso"
58 -
59 -LICENSE="GPL-2+ LGPL-2.1+ MIT SGI-B-2.0 CDDL"
60 -SLOT="0"
61 -KEYWORDS="~amd64 ~x86"
62 -IUSE=""
63 -RESTRICT="mirror"
64 -
65 -RDEPEND="!app-emulation/virtualbox-bin
66 - !=app-emulation/virtualbox-9999"
67 -
68 -S="${WORKDIR}"
69 -
70 -src_unpack() {
71 - return 0
72 -}
73 -
74 -src_install() {
75 - insinto /usr/share/${PN/-additions}
76 - newins "${DISTDIR}"/${MY_P}.iso ${MY_PN}.iso
77 -}
78
79 diff --git a/app-emulation/virtualbox-bin/Manifest b/app-emulation/virtualbox-bin/Manifest
80 index 2432465f862..428c66d12f0 100644
81 --- a/app-emulation/virtualbox-bin/Manifest
82 +++ b/app-emulation/virtualbox-bin/Manifest
83 @@ -1,20 +1,16 @@
84 DIST Oracle_VM_VirtualBox_Extension_Pack-5.1.36-122089.tar.gz 19605234 BLAKE2B 4b263b27b130e5b5d7917f15f0dc782f28f7708cc10e22028ee27b33be6541df5211c4fb36951a6b293d19b8933182097cd0575da8c1d00b6a96e747c1962762 SHA512 e11b294da83b4605c40132f2ea5f95f2820f901d2ed1d438c22c4cc9f779baa3112b9334036717d1593d5f9ec8374d7d7bc826012e2019ef0ba79bacb1deb7b8
85 DIST Oracle_VM_VirtualBox_Extension_Pack-5.1.38-122592.tar.gz 19717251 BLAKE2B 90dcaa58284c6dc9101dbc8eb9ceda55d16c4a48fd58fb43c4a6b7d3d5c582c31930f6e773397ae9379e75771c88b40aad276436bb1d56a71a8e744353e04ec9 SHA512 ba44d53e06adababd0ac7c8a68ea025e1e7afd39fe648079bbb879e81130d45f00b944795cfd37f7f05c16d5a7723b85c49a8435c8399180af627dd3b3de00bc
86 -DIST Oracle_VM_VirtualBox_Extension_Pack-5.2.12-122591.tar.gz 19590585 BLAKE2B 433ae630e55f2320d48c06d0fd5120528ee10c04f2e471da3a72fb98ae826b2909fa5fcd2a4ad7c875a1785d07c0a3dc9ec3001fa7d16903037731dbe1e24a75 SHA512 3e55cb2c8a5adfdac988b81804650aa35e66e052a946b371d61a92d459e5dbb83495f80423f22cfa2a4c2196cf94d1146ff5aed621985f27f2e5069c13f5daee
87 DIST Oracle_VM_VirtualBox_Extension_Pack-5.2.14-123301.tar.gz 19589209 BLAKE2B 385bdfb4cef67788a1dd3e758f52dab7a367f56ca8d286e465af9a7674ffe3bc0f6187a66d7d19bb8f2a8fc0e23e0ce7ef35ac2d46fd6971dc2df96e8a61ca11 SHA512 a47a7173685b72995e5012386fc8f6c55f9106049a28ecaea223f58f1bb40077e0929cf05102a2588e516fe90891428b8e569ec9351fcaf235eb9f8293e45b92
88 DIST Oracle_VM_VirtualBox_Extension_Pack-5.2.16-123759.tar.gz 19588810 BLAKE2B 51fb01ace72f6bc3f0e1ab6804c44ca44463ad24986af08b79c41bb06f43776c9f022d1766d07a4f9a47615119963636cad52d8f7d7bcc9f5e58f51c093f0bcd SHA512 8dfadb83111226a7bbc522d1caf16327051d76ee9382cb62281df5735f87d0e26994dd38a279027dae27c0371120bf95066d5260e79003c5a8982710579ecbce
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 DIST VirtualBox-5.1.38-122592-Linux_x86.run 87449039 BLAKE2B a591a64422cd6e7bb292aaa0f35e5ed9a722b3d835800b2ce09814f2756f088e3a7adc0fc483f2a6ec36e265aeddf6ecfe1aa1bf60a78675696859bff1d0afb9 SHA512 41f9aebbb7c4ad6192cfef57ca956c5ec4b96c8547380abc3b56629c821094ccb28bac69645042e0ac22664db6c59aeff49ccc80d88e1eae5ffb95f55a467a07
93 -DIST VirtualBox-5.2.12-122591-Linux_amd64.run 88677843 BLAKE2B 3fd56527c106193ea0bb46ad51968c59d1bb6453282ddfc84b08227e0f5ed4af941bc11030edb3a0c2d0845d602c036e033a48af020b80ba225d626a3514d321 SHA512 682e42ef3bb65f0e31e08fda2c2a9ce8b555ae8978692b22e9855c1725e5fd3e3db126501df37849b546a5022480a319db12470d1fed44463f2e49144a6383ac
94 -DIST VirtualBox-5.2.12-122591-Linux_x86.run 87827919 BLAKE2B 7efc88298b8e96f0d45cfac3d4fd3b24ffc725f14e1ae822dace092abf6a460cbad4349b907c08998dcdacdfdb915a2de6e8ae8db4edb1842c29941faa6acdd8 SHA512 e6f6890baddef29db0c103569d5abe7bdfb597840e8c9b023ba041b85a7c3ba7bf45f983826266722b43fcca95b2e93bfdc944c25ffcf6f0e386794f22eb5e8a
95 DIST VirtualBox-5.2.14-123301-Linux_amd64.run 88749523 BLAKE2B 5a2791a1258adcdc82f8776fb0d5502d525faa0083b808f1875f0c61b848aa371fa0b6b73ca024c244b36dfb074a8839747ad27a87cb8dfbaad09096a0cec887 SHA512 8c4633ef0e3a9f7f26603009a23244696a6f91baffa9777a0daf8f09abd80b4aca944dabfd2a10acddf4759e64ec719948d73ecaaf187a60a15e097467060ea9
96 DIST VirtualBox-5.2.14-123301-Linux_x86.run 87776718 BLAKE2B 609c24ad2ba5b005f7cb619fbe2c2a82f026a7ae4ef74cda800c526c8c3552a2a1ed1af5a2a2b3d9c56f0dfbcdda493c2cc92b58156cbf41ebfb1d43bfee8aca SHA512 820c2b6c97a48c125b69e1f749a3b1473d5fe672726ae2cec30f20a6652186a28b3900d4aeffca701415275229232925d1c8c347aefa7a86840a2c5bf13f21a7
97 DIST VirtualBox-5.2.16-123759-Linux_amd64.run 88729043 BLAKE2B 0bc183146cdafbd5b12c4d46976cd3775a4ea11aaadae155d979ef81cf04ae8c77d6b48d0e240bad3bd440f532530e6d7584f58e7b29161a0f355bc8b7c15061 SHA512 c815a025376d86a5bed753ef8b729155b2a01d9e4c9b573e70d3b4f7db497285b991b278504d4b4fbf382a00080974551f214176c0e3fbaa2679534b3ee32b90
98 DIST VirtualBox-5.2.16-123759-Linux_x86.run 87756239 BLAKE2B 911ddf8b260ce18ff12c9cd6675105327b9c5916f436ee7421db3362403ee4960a8e24a6c25348c7188becdfbbfe0685f42a84ac166e39a753d4407c04721248 SHA512 9b52faab1ecd9e30cbf37fbec1a9a150f3dabb47ac62f355ed67744a849f07c52885852c310c39d9d36f90461fb318f8923afde9ec81bd754c1afbeeb2788427
99 DIST VirtualBoxSDK-5.1.36-122089.zip 9864160 BLAKE2B 0db3d44c44f93a80607791f2ff5cbdf6aed2b324c207bb9bbc808b5cc836f01ade9c48ed3474c4f174a43b29969fe632b5ccd2b3ad0af197894d63887144bf0c SHA512 98f6e59a5e344bf23f6af6c0e791f28920940de907721981c99b66b8e7c20cb06a7e1211b2029a1279e583fb4ed456019005c2bf3a91b3d8b3fbd61e6e44c914
100 DIST VirtualBoxSDK-5.1.38-122592.zip 9867112 BLAKE2B d3deeda2adafcb675370c7228f49a209e5f76986fc4c9ac5aa8ff2e809912f458c9cfc2d8f011404fb4bd7b45b80f0ff857dd85dd597d622971a2556c6b17bbf SHA512 e03fab6573e61f59fc4e017d8c6cfde08e734939efe6c2f8edc5e6e9da5a1d616012cae06d630a3e2a2b1d72775eb8f0a05eb230fa81321ec33ba1975ec34ce9
101 -DIST VirtualBoxSDK-5.2.12-122591.zip 10153856 BLAKE2B ea4fdc39744e5fcc2edcdcf521c795b2669344cec4be2b7d9f08d1e0917c24b5c06721d76d81966c611ee41d220095aeb6bbab211a0e1b52e6479e0c9595d97a SHA512 6d7e3968c9edb00b88aa5118ec9c74ae85e04d788f49741b68506b07307c4dd2c8cb7bb307c76f9d2908bc47c7683257f39395008b0a03eff72a1e77567f0e77
102 DIST VirtualBoxSDK-5.2.14-123301.zip 10154044 BLAKE2B 273219029c59ffd685fffb7e14fff914a5397acc0676c8b4ccaee9cecee51e90880e68d883125e061d6c02e09b53235821ff89a265e937c9b4e67365452a97d2 SHA512 c69e6f537af611b9a4bcbab3e014fa25c6593f754940c6596e451cf895cb088186d037ac4816a3bae793213c774befd54ffa86d43948fa546f753a37fcdabd51
103 DIST VirtualBoxSDK-5.2.16-123759.zip 10158952 BLAKE2B 66140092c221b998919a3840745e2ae58671b65f1db774ddb6691d085e95a35cdfa1e939a84cb032e2f67bd4485bd8f940f5db6d3712569942cbcc2a0f1bf234 SHA512 2b735016ea99e94317876f2e845cf94dd845bf51a86b42e938cae4bee003483f6061a7d89150f3d1fe5b84970a4fa83ae5bed7acf6570b849df5258efc8eb38f
104
105 diff --git a/app-emulation/virtualbox-bin/virtualbox-bin-5.2.12.122591.ebuild b/app-emulation/virtualbox-bin/virtualbox-bin-5.2.12.122591.ebuild
106 deleted file mode 100644
107 index 94de7dd7a10..00000000000
108 --- a/app-emulation/virtualbox-bin/virtualbox-bin-5.2.12.122591.ebuild
109 +++ /dev/null
110 @@ -1,287 +0,0 @@
111 -# Copyright 1999-2018 Gentoo Foundation
112 -# Distributed under the terms of the GNU General Public License v2
113 -
114 -EAPI=5
115 -
116 -PYTHON_COMPAT=( python2_7 )
117 -
118 -inherit eutils xdg-utils gnome2 pax-utils python-r1 udev unpacker versionator
119 -
120 -MAIN_PV="$(get_version_component_range 1-3)"
121 -if [[ ${PV} = *_beta* ]] || [[ ${PV} = *_rc* ]] ; then
122 - MY_PV="${MAIN_PV}_$(get_version_component_range 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="$(get_version_component_range 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 "${D}"/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 "${D}"/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 "${D}"/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 "${D}"${udevdir}/rules.d/10-virtualbox.rules || die
363 - # move udev scripts into ${udevdir} (bug #372491)
364 - mv "${D}"/opt/VirtualBox/VBoxCreateUSBNode.sh "${D}"${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 ad35d0a6dd2..1d6c7e0a759 100644
401 --- a/app-emulation/virtualbox-extpack-oracle/Manifest
402 +++ b/app-emulation/virtualbox-extpack-oracle/Manifest
403 @@ -1,5 +1,4 @@
404 DIST Oracle_VM_VirtualBox_Extension_Pack-5.1.36-122089.tar.gz 19605234 BLAKE2B 4b263b27b130e5b5d7917f15f0dc782f28f7708cc10e22028ee27b33be6541df5211c4fb36951a6b293d19b8933182097cd0575da8c1d00b6a96e747c1962762 SHA512 e11b294da83b4605c40132f2ea5f95f2820f901d2ed1d438c22c4cc9f779baa3112b9334036717d1593d5f9ec8374d7d7bc826012e2019ef0ba79bacb1deb7b8
405 DIST Oracle_VM_VirtualBox_Extension_Pack-5.1.38-122592.tar.gz 19717251 BLAKE2B 90dcaa58284c6dc9101dbc8eb9ceda55d16c4a48fd58fb43c4a6b7d3d5c582c31930f6e773397ae9379e75771c88b40aad276436bb1d56a71a8e744353e04ec9 SHA512 ba44d53e06adababd0ac7c8a68ea025e1e7afd39fe648079bbb879e81130d45f00b944795cfd37f7f05c16d5a7723b85c49a8435c8399180af627dd3b3de00bc
406 -DIST Oracle_VM_VirtualBox_Extension_Pack-5.2.12-122591.tar.gz 19590585 BLAKE2B 433ae630e55f2320d48c06d0fd5120528ee10c04f2e471da3a72fb98ae826b2909fa5fcd2a4ad7c875a1785d07c0a3dc9ec3001fa7d16903037731dbe1e24a75 SHA512 3e55cb2c8a5adfdac988b81804650aa35e66e052a946b371d61a92d459e5dbb83495f80423f22cfa2a4c2196cf94d1146ff5aed621985f27f2e5069c13f5daee
407 DIST Oracle_VM_VirtualBox_Extension_Pack-5.2.14-123301.tar.gz 19589209 BLAKE2B 385bdfb4cef67788a1dd3e758f52dab7a367f56ca8d286e465af9a7674ffe3bc0f6187a66d7d19bb8f2a8fc0e23e0ce7ef35ac2d46fd6971dc2df96e8a61ca11 SHA512 a47a7173685b72995e5012386fc8f6c55f9106049a28ecaea223f58f1bb40077e0929cf05102a2588e516fe90891428b8e569ec9351fcaf235eb9f8293e45b92
408 DIST Oracle_VM_VirtualBox_Extension_Pack-5.2.16-123759.tar.gz 19588810 BLAKE2B 51fb01ace72f6bc3f0e1ab6804c44ca44463ad24986af08b79c41bb06f43776c9f022d1766d07a4f9a47615119963636cad52d8f7d7bcc9f5e58f51c093f0bcd SHA512 8dfadb83111226a7bbc522d1caf16327051d76ee9382cb62281df5735f87d0e26994dd38a279027dae27c0371120bf95066d5260e79003c5a8982710579ecbce
409
410 diff --git a/app-emulation/virtualbox-extpack-oracle/virtualbox-extpack-oracle-5.2.12.122591.ebuild b/app-emulation/virtualbox-extpack-oracle/virtualbox-extpack-oracle-5.2.12.122591.ebuild
411 deleted file mode 100644
412 index 7d7d5d2ea35..00000000000
413 --- a/app-emulation/virtualbox-extpack-oracle/virtualbox-extpack-oracle-5.2.12.122591.ebuild
414 +++ /dev/null
415 @@ -1,42 +0,0 @@
416 -# Copyright 1999-2018 Gentoo Foundation
417 -# Distributed under the terms of the GNU General Public License v2
418 -
419 -EAPI=6
420 -
421 -inherit eutils multilib versionator
422 -
423 -MAIN_PV="$(get_version_component_range 1-3)"
424 -if [[ ${PV} = *_beta* ]] || [[ ${PV} = *_rc* ]] ; then
425 - MY_PV="${MAIN_PV}_$(get_version_component_range 5)"
426 - DEP_PV="${MY_PV}"
427 - MY_PV="${MY_PV/beta/BETA}"
428 - MY_PV="${MY_PV/rc/RC}"
429 -else
430 - MY_PV="${MAIN_PV}"
431 - DEP_PV="${MAIN_PV}"
432 -fi
433 -VBOX_BUILD_ID="$(get_version_component_range 4)"
434 -MY_PN="Oracle_VM_VirtualBox_Extension_Pack"
435 -MY_P="${MY_PN}-${MY_PV}-${VBOX_BUILD_ID}"
436 -
437 -DESCRIPTION="PUEL extensions for VirtualBox"
438 -HOMEPAGE="https://www.virtualbox.org/"
439 -SRC_URI="https://download.virtualbox.org/virtualbox/${MY_PV}/${MY_P}.vbox-extpack -> ${MY_P}.tar.gz"
440 -
441 -LICENSE="PUEL"
442 -SLOT="0"
443 -KEYWORDS="~amd64 ~x86"
444 -IUSE=""
445 -RESTRICT="mirror strip"
446 -
447 -RDEPEND="~app-emulation/virtualbox-${DEP_PV}"
448 -
449 -S="${WORKDIR}"
450 -
451 -QA_PREBUILT="/usr/lib*/virtualbox/ExtensionPacks/${MY_PN}/.*"
452 -
453 -src_install() {
454 - insinto /usr/$(get_libdir)/virtualbox/ExtensionPacks/${MY_PN}
455 - doins -r linux.${ARCH}
456 - doins ExtPack* PXE-Intel.rom
457 -}
458
459 diff --git a/app-emulation/virtualbox-guest-additions/Manifest b/app-emulation/virtualbox-guest-additions/Manifest
460 index 9dc9f504e48..429bbdfcaa2 100644
461 --- a/app-emulation/virtualbox-guest-additions/Manifest
462 +++ b/app-emulation/virtualbox-guest-additions/Manifest
463 @@ -1,9 +1,7 @@
464 DIST VirtualBox-5.1.36.tar.bz2 117244376 BLAKE2B 141048f4fcbb3ce63d236a4127b4bce377e87876c23dc3ff6437b2c0cca5b468bc6a5737899b308bc1ff3252d4e61f7d053ff7574c33c85b56fdd986c31f2af3 SHA512 d1a9322c97c68cc9c21247c3df8ce2084911aded66a63adf5510f9e0f4558b1304dfe924a0c44243adc1ae8f7c45c47782e882baac1bfe995ea6c0a1370fcbd1
465 DIST VirtualBox-5.1.38.tar.bz2 117345233 BLAKE2B 15ed86a1f6730c781a0b4b055dcccfb56ff9c829c90dc4d2aa96cc2bb5bcfa8e442bdd471a7c70c5520bef994592e8f1a5b46831df4039efb5358c2e0ab83413 SHA512 6cf8536c24aa3a6e889214ef6133eb18fdbe1e7c371323cad07aa63b0e1f4414ba13d5fa7b63c12dfefe60e2e544488ced107571f678a06eb094a3e19b377ea8
466 -DIST VirtualBox-5.2.12.tar.bz2 118612426 BLAKE2B 685c400ef82de14891d9cc42e94e8c0de270a57d6e69820d45cf7fda0ef32d78d4c2670b4a2b89003d58035ee50d648d7906e58d99a96d40c24ee2fa51a317c9 SHA512 083219501d0103d1060cd470cad5a29a348341abf92c1caccf10e7fcfcf0db163e95d6624614d327dda7500d638d3038634fa8a3c1c441a6ee8de9e4f51325d2
467 DIST VirtualBox-5.2.14.tar.bz2 118597539 BLAKE2B 5e0a8d92405378eb438cae375041609f7a0e1288b040d3a0bcc06157f16ddd48b3537f2f026aa12a71c5319bdef56d6f3907785ac51ebe05a8b7143e04f22d0a SHA512 b8202eccd83e9f2c92a77548d003082b6b3ff7838bb32ae48c3a25dcd622bfdc8ceca42cc49b855eeabf4439c55ad42df9b3959dd1bab77de154468e139c904e
468 DIST VirtualBox-5.2.16.tar.bz2 118678441 BLAKE2B 9d912a51ceb69eb117d9886adf34fe4900bd941637c0610e0e0febb650cf7817b6f2fa0db4b085c0cb28c56892e7f8678e3533d7384cd155e356fa4a0ec7c0fa SHA512 361607c43e3f7fb60da6db898951317c45a7f7b782c42808759f7c29502e3778ae28e5a54b5c49d1c5e46d94f85dbd1891d69f16d756767f0155bb48531b9519
469 -DIST virtualbox-5.1.30-patches-02.tar.xz 2608 BLAKE2B 08b05a26622a7acec455f6d0dc72858f5f2758488e50d219f83c3d12606419d48e9d99302cde5a275929fe79af900c1b3ea3957fe9dfdaa952aaa0da9933291a SHA512 8a490f7cc44e40262fc47819736251c177adb635256794e9500f52729197c85211d5b0c0d000268089953a4c185872a8ba03c5d42df6b80f05eac8b81335320a
470 DIST virtualbox-5.1.32-patches-01.tar.xz 2464 BLAKE2B 28f461634ac7f200b74d961e56f56aea486445bdb8d1490000bd34393b4873ee058d1dc9db6c32084921bd7d51a92be1e38b1b098385f443f41b9231c1489829 SHA512 08782c8eecc0cbb370f21fb3951af449ed1c8174a7184210de376a7d4ca5d64b14b2619d121aacef1c85982c8b485e545e260d3c0fc1f95769093efa23cd2cd2
471 DIST virtualbox-5.2.12-patches-01.tar.xz 2616 BLAKE2B 5731484d185414d83588ee227bbc1eef266451d1a3a710adf1b769cd6404ef1750dba7a60549f2ab9f3fb81ef15809db9ea0190127caefc72d7bc9bb8b741fb0 SHA512 712b55392a8e8357e95abb42ea4f8dac3391ecbf9cbecf27c7dbf674c40f42a1eb19d227a1b3adcf621384a9f64a6438d20fb43866c736189097fb5770c5c654
472 DIST virtualbox-5.2.16-patches-01.tar.xz 2948 BLAKE2B 1c797dacbf17229e1e053738773f3ffe8ba85cb591c73968f1f535ebf16d440a0547fac94e92da609b85b6511f31490e650d172f63c0992a7f0aec499156ec33 SHA512 0aa8903cd74f8816ce14b9164bd59421d14618afa0456d9b9edb808d47c815254252e1f3eba405641c7cadfd0306bd75d21a5d2fd0f3e2f3a88250f6f6c5542e
473
474 diff --git a/app-emulation/virtualbox-guest-additions/virtualbox-guest-additions-5.2.12.ebuild b/app-emulation/virtualbox-guest-additions/virtualbox-guest-additions-5.2.12.ebuild
475 deleted file mode 100644
476 index 9a895f357c2..00000000000
477 --- a/app-emulation/virtualbox-guest-additions/virtualbox-guest-additions-5.2.12.ebuild
478 +++ /dev/null
479 @@ -1,226 +0,0 @@
480 -# Copyright 1999-2018 Gentoo Foundation
481 -# Distributed under the terms of the GNU General Public License v2
482 -
483 -EAPI=6
484 -
485 -inherit eutils linux-mod systemd user toolchain-funcs
486 -
487 -MY_PV="${PV/beta/BETA}"
488 -MY_PV="${MY_PV/rc/RC}"
489 -MY_P=VirtualBox-${MY_PV}
490 -DESCRIPTION="VirtualBox kernel modules and user-space tools for Gentoo guests"
491 -HOMEPAGE="https://www.virtualbox.org/"
492 -SRC_URI="https://download.virtualbox.org/virtualbox/${MY_PV}/${MY_P}.tar.bz2
493 - https://dev.gentoo.org/~polynomial-c/virtualbox/patchsets/virtualbox-5.1.30-patches-02.tar.xz"
494 -
495 -LICENSE="GPL-2"
496 -SLOT="0"
497 -KEYWORDS="~amd64 ~x86"
498 -IUSE="X"
499 -
500 -RDEPEND="
501 - X? ( x11-apps/xrandr
502 - x11-apps/xrefresh
503 - x11-libs/libXmu
504 - x11-libs/libX11
505 - x11-libs/libXt
506 - x11-libs/libXext
507 - x11-libs/libXau
508 - x11-libs/libXdmcp
509 - x11-libs/libSM
510 - x11-libs/libICE )
511 - sys-apps/dbus
512 - !!x11-drivers/xf86-input-virtualbox
513 - !x11-drivers/xf86-video-virtualbox
514 -"
515 -DEPEND="
516 - ${RDEPEND}
517 - >=dev-util/kbuild-0.1.9998.3127
518 - >=dev-lang/yasm-0.6.2
519 - sys-devel/bin86
520 - sys-libs/pam
521 - sys-power/iasl
522 - x11-base/xorg-proto
523 -"
524 -PDEPEND="
525 - X? ( x11-drivers/xf86-video-vboxvideo )
526 -"
527 -BUILD_TARGETS="all"
528 -BUILD_TARGET_ARCH="${ARCH}"
529 -
530 -S="${WORKDIR}/${MY_P}"
531 -
532 -pkg_setup() {
533 - MODULE_NAMES="vboxguest(misc:${WORKDIR}/vboxguest:${WORKDIR}/vboxguest)
534 - vboxsf(misc:${WORKDIR}/vboxsf:${WORKDIR}/vboxsf)"
535 - use X && MODULE_NAMES+=" vboxvideo(misc:${WORKDIR}/vboxvideo::${WORKDIR}/vboxvideo)"
536 -
537 - linux-mod_pkg_setup
538 - BUILD_PARAMS="KERN_DIR=${KV_OUT_DIR} KERNOUT=${KV_OUT_DIR}"
539 - enewgroup vboxguest
540 - enewuser vboxguest -1 /bin/sh /dev/null vboxguest
541 - # automount Error: VBoxServiceAutoMountWorker: Group "vboxsf" does not exist
542 - enewgroup vboxsf
543 -}
544 -
545 -src_unpack() {
546 - unpack ${A}
547 -
548 - # Create and unpack a tarball with the sources of the Linux guest
549 - # kernel modules, to include all the needed files
550 - "${S}"/src/VBox/Additions/linux/export_modules.sh "${WORKDIR}/vbox-kmod.tar.gz"
551 - unpack ./vbox-kmod.tar.gz
552 -
553 - # Remove shipped binaries (kBuild,yasm), see bug #232775
554 - cd "${S}"
555 - rm -rf kBuild/bin tools
556 -}
557 -
558 -src_prepare() {
559 - # PaX fixes (see bug #298988)
560 - pushd "${WORKDIR}" &>/dev/null || die
561 - eapply "${FILESDIR}"/vboxguest-4.1.0-log-use-c99.patch
562 - popd &>/dev/null || die
563 -
564 - # Disable things unused or splitted into separate ebuilds
565 - cp "${FILESDIR}/${PN}-5-localconfig" LocalConfig.kmk || die
566 - use X || echo "VBOX_WITH_X11_ADDITIONS :=" >> LocalConfig.kmk
567 -
568 - # stupid new header references...
569 - for vboxheader in {product,revision,version}-generated.h ; do
570 - for mdir in vbox{guest,sf} ; do
571 - ln -sf "${S}"/out/linux.${ARCH}/release/${vboxheader} \
572 - "${WORKDIR}/${mdir}/${vboxheader}"
573 - done
574 - done
575 -
576 - # Remove pointless GCC version check
577 - sed -e '/^check_gcc$/d' -i configure || die
578 -
579 - rm "${WORKDIR}/patches/011_virtualbox-5.1.30-sysmacros.patch" || die
580 - eapply "${WORKDIR}/patches"
581 -
582 - eapply_user
583 -}
584 -
585 -src_configure() {
586 - # build the user-space tools, warnings are harmless
587 - local cmd=(
588 - ./configure
589 - --nofatal
590 - --disable-xpcom
591 - --disable-sdl-ttf
592 - --disable-pulse
593 - --disable-alsa
594 - --with-gcc="$(tc-getCC)"
595 - --with-g++="$(tc-getCXX)"
596 - --target-arch=${ARCH}
597 - --with-linux="${KV_OUT_DIR}"
598 - --build-headless
599 - )
600 - echo "${cmd[@]}"
601 - "${cmd[@]}" || die "configure failed"
602 - source ./env.sh
603 - export VBOX_GCC_OPT="${CFLAGS} ${CPPFLAGS}"
604 -}
605 -
606 -src_compile() {
607 - MAKE="kmk" \
608 - emake TOOL_YASM_AS=yasm \
609 - VBOX_ONLY_ADDITIONS=1 \
610 - KBUILD_VERBOSE=2
611 -
612 - # Now creating the kernel modules. We must do this _after_
613 - # we compiled the user-space tools as we need two of the
614 - # automatically generated header files. (>=3.2.0)
615 - linux-mod_src_compile
616 -}
617 -
618 -src_install() {
619 - linux-mod_src_install
620 -
621 - cd "${S}"/out/linux.${ARCH}/release/bin/additions || die
622 -
623 - insinto /sbin
624 - newins mount.vboxsf mount.vboxsf
625 - fperms 4755 /sbin/mount.vboxsf
626 -
627 - newinitd "${FILESDIR}"/${PN}-8.initd ${PN}
628 -
629 - insinto /usr/sbin/
630 - newins VBoxService vboxguest-service
631 - fperms 0755 /usr/sbin/vboxguest-service
632 -
633 - insinto /usr/bin
634 - doins VBoxControl
635 - fperms 0755 /usr/bin/VBoxControl
636 -
637 - # VBoxClient user service and xrandr wrapper
638 - if use X ; then
639 - doins VBoxClient
640 - fperms 0755 /usr/bin/VBoxClient
641 -
642 - pushd "${S}"/src/VBox/Additions/x11/Installer &>/dev/null \
643 - || die
644 - newins 98vboxadd-xclient VBoxClient-all
645 - fperms 0755 /usr/bin/VBoxClient-all
646 - popd &>/dev/null || die
647 - fi
648 -
649 - # udev rule for vboxdrv
650 - local udev_rules_dir="/lib/udev/rules.d"
651 - dodir ${udev_rules_dir}
652 - echo 'KERNEL=="vboxguest", OWNER="vboxguest", GROUP="vboxguest", MODE="0660"' \
653 - >> "${D}/${udev_rules_dir}/60-virtualbox-guest-additions.rules" \
654 - || die
655 - echo 'KERNEL=="vboxuser", OWNER="vboxguest", GROUP="vboxguest", MODE="0660"' \
656 - >> "${D}/${udev_rules_dir}/60-virtualbox-guest-additions.rules" \
657 - || die
658 -
659 - # VBoxClient autostart file
660 - insinto /etc/xdg/autostart
661 - doins "${FILESDIR}"/vboxclient.desktop
662 -
663 - # sample xorg.conf
664 - insinto /usr/share/doc/${PF}
665 - doins "${FILESDIR}"/xorg.conf.vbox
666 -
667 - systemd_dounit "${FILESDIR}/${PN}.service"
668 -}
669 -
670 -pkg_postinst() {
671 - linux-mod_pkg_postinst
672 - if ! use X ; then
673 - elog "use flag X is off, enable it to install the"
674 - elog "X Window System video driver."
675 - fi
676 - elog ""
677 - elog "Please add users to the \"vboxguest\" group so they can"
678 - elog "benefit from seamless mode, auto-resize and clipboard."
679 - elog ""
680 - elog "The vboxsf group has been added to make automount services work."
681 - elog "These services are part of the shared folders support."
682 - elog ""
683 - elog "Please add:"
684 - elog "/etc/init.d/${PN}"
685 - elog "to the default runlevel in order to start"
686 - elog "needed services."
687 - elog "To use the VirtualBox X driver, use the following"
688 - elog "file as your /etc/X11/xorg.conf:"
689 - elog " /usr/share/doc/${PF}/xorg.conf.vbox"
690 - elog ""
691 - elog "Also make sure you use the Mesa library for OpenGL:"
692 - elog " eselect opengl set xorg-x11"
693 - elog ""
694 - elog "An autostart .desktop file has been installed to start"
695 - elog "VBoxClient in desktop sessions."
696 - elog ""
697 - elog "You can mount shared folders with:"
698 - elog " mount -t vboxsf <shared_folder_name> <mount_point>"
699 - elog ""
700 - elog "Warning:"
701 - elog "this ebuild is only needed if you are running gentoo"
702 - elog "inside a VirtualBox Virtual Machine, you don't need"
703 - elog "it to run VirtualBox itself."
704 - elog ""
705 -}
706
707 diff --git a/app-emulation/virtualbox-modules/Manifest b/app-emulation/virtualbox-modules/Manifest
708 index 8b5f0a311c0..6175e78caec 100644
709 --- a/app-emulation/virtualbox-modules/Manifest
710 +++ b/app-emulation/virtualbox-modules/Manifest
711 @@ -1,5 +1,4 @@
712 DIST vbox-kernel-module-src-5.1.36.tar.xz 628368 BLAKE2B 49a3dfc4ff573f793eefcfd9b645af6fa6fc63b54475921064be146d3d4bf4db61f48d82f62d65811597fa12b88331153f7491890527fde76f41426355552abb SHA512 c69739c72a5555fc3bca90186129fa4eeb5bd930c4396b416a8a88e6f84bcd9e7498a9bbc9381da648cf87d601d98249feac2e4de6d93d8b7aba46b22d3ec40f
713 DIST vbox-kernel-module-src-5.1.38.tar.xz 628552 BLAKE2B 9faa4e837a48ac27be5c0183edcf2b39c08eeab210bd39811704a7a578a93b28f8b8ecf26a34483f2d135a8cb8817756120d7bef0b8de245c5a5e232cfebfff0 SHA512 36311c3ff947fa763db1fc0612c5a4c10ac3d586c3faab3a91e463723488510cedfc1a69696381158a167edfc86d7abf66c18b287ced75cbaba3f1797c4265a8
714 -DIST vbox-kernel-module-src-5.2.12.tar.xz 637292 BLAKE2B 31b54c8de560a30d228497f5a3f58f868ad09e18051f8fac2257200e324603c5fdfe127d530997f7dae728d13d93ced6321487f20571811352bfbbf1f9c6d646 SHA512 7408e8121bf278050728461d4f7ab4d4b6c502b24859573d4652a58d1058e9b12a4de4b582ce45f7d0b12bf369a7378107c2cab12a6e93b1b082a40d1f2e9712
715 DIST vbox-kernel-module-src-5.2.14.tar.xz 637352 BLAKE2B 7ccefbb13f25fe995e0f769192a93baa91358c09e7126d6a6c8bef7fceeab50082f78843140d23cf88c4931c561552c4131b17625e7a3821766571387d78d2a3 SHA512 920eca67fb10ed4d1eeab95b14e65c585dd96df82a4690c34c9d85366ec6dd9835f9a772eb4718a80e6ffb2637de2a698151a6bdfd7984fc2070cd0bade5c077
716 DIST vbox-kernel-module-src-5.2.16.tar.xz 638172 BLAKE2B 80a27100bb0be97796f03b368c589965d476e6d0c79424b94a5100561dc84bc2baf28b271a744b7b4ad53e015fb463faf2871d24596fafc83c80ccbe16087730 SHA512 35169a46ca9018f169b25359c0f4bf658622d71ea284768912bf0a8d2ac34ecec94f5dc774f77f0c02d1b83363faad53158baac7423f588deedfe8073a1e56a3
717
718 diff --git a/app-emulation/virtualbox-modules/virtualbox-modules-5.2.12.ebuild b/app-emulation/virtualbox-modules/virtualbox-modules-5.2.12.ebuild
719 deleted file mode 100644
720 index 0fd483ae195..00000000000
721 --- a/app-emulation/virtualbox-modules/virtualbox-modules-5.2.12.ebuild
722 +++ /dev/null
723 @@ -1,51 +0,0 @@
724 -# Copyright 1999-2018 Gentoo Foundation
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=6
731 -
732 -inherit eutils 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 f62911581ad..429bbdfcaa2 100644
778 --- a/app-emulation/virtualbox/Manifest
779 +++ b/app-emulation/virtualbox/Manifest
780 @@ -1,6 +1,5 @@
781 DIST VirtualBox-5.1.36.tar.bz2 117244376 BLAKE2B 141048f4fcbb3ce63d236a4127b4bce377e87876c23dc3ff6437b2c0cca5b468bc6a5737899b308bc1ff3252d4e61f7d053ff7574c33c85b56fdd986c31f2af3 SHA512 d1a9322c97c68cc9c21247c3df8ce2084911aded66a63adf5510f9e0f4558b1304dfe924a0c44243adc1ae8f7c45c47782e882baac1bfe995ea6c0a1370fcbd1
782 DIST VirtualBox-5.1.38.tar.bz2 117345233 BLAKE2B 15ed86a1f6730c781a0b4b055dcccfb56ff9c829c90dc4d2aa96cc2bb5bcfa8e442bdd471a7c70c5520bef994592e8f1a5b46831df4039efb5358c2e0ab83413 SHA512 6cf8536c24aa3a6e889214ef6133eb18fdbe1e7c371323cad07aa63b0e1f4414ba13d5fa7b63c12dfefe60e2e544488ced107571f678a06eb094a3e19b377ea8
783 -DIST VirtualBox-5.2.12.tar.bz2 118612426 BLAKE2B 685c400ef82de14891d9cc42e94e8c0de270a57d6e69820d45cf7fda0ef32d78d4c2670b4a2b89003d58035ee50d648d7906e58d99a96d40c24ee2fa51a317c9 SHA512 083219501d0103d1060cd470cad5a29a348341abf92c1caccf10e7fcfcf0db163e95d6624614d327dda7500d638d3038634fa8a3c1c441a6ee8de9e4f51325d2
784 DIST VirtualBox-5.2.14.tar.bz2 118597539 BLAKE2B 5e0a8d92405378eb438cae375041609f7a0e1288b040d3a0bcc06157f16ddd48b3537f2f026aa12a71c5319bdef56d6f3907785ac51ebe05a8b7143e04f22d0a SHA512 b8202eccd83e9f2c92a77548d003082b6b3ff7838bb32ae48c3a25dcd622bfdc8ceca42cc49b855eeabf4439c55ad42df9b3959dd1bab77de154468e139c904e
785 DIST VirtualBox-5.2.16.tar.bz2 118678441 BLAKE2B 9d912a51ceb69eb117d9886adf34fe4900bd941637c0610e0e0febb650cf7817b6f2fa0db4b085c0cb28c56892e7f8678e3533d7384cd155e356fa4a0ec7c0fa SHA512 361607c43e3f7fb60da6db898951317c45a7f7b782c42808759f7c29502e3778ae28e5a54b5c49d1c5e46d94f85dbd1891d69f16d756767f0155bb48531b9519
786 DIST virtualbox-5.1.32-patches-01.tar.xz 2464 BLAKE2B 28f461634ac7f200b74d961e56f56aea486445bdb8d1490000bd34393b4873ee058d1dc9db6c32084921bd7d51a92be1e38b1b098385f443f41b9231c1489829 SHA512 08782c8eecc0cbb370f21fb3951af449ed1c8174a7184210de376a7d4ca5d64b14b2619d121aacef1c85982c8b485e545e260d3c0fc1f95769093efa23cd2cd2
787
788 diff --git a/app-emulation/virtualbox/virtualbox-5.2.12.ebuild b/app-emulation/virtualbox/virtualbox-5.2.12.ebuild
789 deleted file mode 100644
790 index d0cd2a8076d..00000000000
791 --- a/app-emulation/virtualbox/virtualbox-5.2.12.ebuild
792 +++ /dev/null
793 @@ -1,470 +0,0 @@
794 -# Copyright 1999-2018 Gentoo Foundation
795 -# Distributed under the terms of the GNU General Public License v2
796 -
797 -EAPI=6
798 -
799 -PYTHON_COMPAT=( python2_7 )
800 -inherit flag-o-matic gnome2-utils java-pkg-opt-2 linux-info pax-utils python-single-r1 tmpfiles toolchain-funcs udev xdg-utils
801 -
802 -MY_PV="${PV/beta/BETA}"
803 -MY_PV="${MY_PV/rc/RC}"
804 -MY_P=VirtualBox-${MY_PV}
805 -
806 -DESCRIPTION="Family of powerful x86 virtualization products for enterprise and home use"
807 -HOMEPAGE="https://www.virtualbox.org/"
808 -SRC_URI="https://download.virtualbox.org/virtualbox/${MY_PV}/${MY_P}.tar.bz2
809 - https://dev.gentoo.org/~polynomial-c/${PN}/patchsets/${PN}-5.2.12-patches-01.tar.xz"
810 -
811 -LICENSE="GPL-2"
812 -SLOT="0"
813 -KEYWORDS="~amd64 ~x86"
814 -IUSE="alsa debug doc headless java libressl lvm pam pax_kernel pulseaudio +opengl python +qt5 +sdk +udev vboxwebsrv vnc"
815 -
816 -RDEPEND="!app-emulation/virtualbox-bin
817 - ~app-emulation/virtualbox-modules-${PV}
818 - dev-libs/libIDL
819 - >=dev-libs/libxslt-1.1.19
820 - net-misc/curl
821 - dev-libs/libxml2
822 - media-libs/libpng:0=
823 - media-libs/libvpx:0=
824 - sys-libs/zlib
825 - !headless? (
826 - media-libs/libsdl:0[X,video]
827 - x11-libs/libX11
828 - x11-libs/libXcursor
829 - x11-libs/libXext
830 - x11-libs/libXmu
831 - x11-libs/libXt
832 - opengl? ( virtual/opengl media-libs/freeglut )
833 - qt5? (
834 - dev-qt/qtcore:5
835 - dev-qt/qtgui:5
836 - dev-qt/qtprintsupport:5
837 - dev-qt/qtwidgets:5
838 - dev-qt/qtx11extras:5
839 - opengl? ( dev-qt/qtopengl:5 )
840 - x11-libs/libXinerama
841 - )
842 - )
843 - libressl? ( dev-libs/libressl:= )
844 - !libressl? ( dev-libs/openssl:0= )
845 - lvm? ( sys-fs/lvm2 )
846 - udev? ( >=virtual/udev-171 )
847 - vnc? ( >=net-libs/libvncserver-0.9.9 )"
848 -DEPEND="${RDEPEND}
849 - >=dev-util/kbuild-0.1.9998.3127
850 - >=dev-lang/yasm-0.6.2
851 - sys-devel/bin86
852 - sys-libs/libcap
853 - sys-power/iasl
854 - virtual/pkgconfig
855 - alsa? ( >=media-libs/alsa-lib-1.0.13 )
856 - doc? (
857 - app-text/docbook-sgml-dtd:4.4
858 - dev-texlive/texlive-basic
859 - dev-texlive/texlive-latex
860 - dev-texlive/texlive-latexrecommended
861 - dev-texlive/texlive-latexextra
862 - dev-texlive/texlive-fontsrecommended
863 - dev-texlive/texlive-fontsextra
864 - )
865 - !headless? ( x11-libs/libXinerama )
866 - java? ( >=virtual/jdk-1.6 )
867 - pam? ( sys-libs/pam )
868 - pax_kernel? ( sys-apps/elfix )
869 - pulseaudio? ( media-sound/pulseaudio )
870 - qt5? ( dev-qt/linguist-tools:5 )
871 - vboxwebsrv? ( net-libs/gsoap[-gnutls(-)] )
872 - ${PYTHON_DEPS}"
873 -RDEPEND="${RDEPEND}
874 - java? ( >=virtual/jre-1.6 )"
875 -
876 -QA_TEXTRELS_x86="usr/lib/virtualbox-ose/VBoxGuestPropSvc.so
877 - usr/lib/virtualbox/VBoxSDL.so
878 - usr/lib/virtualbox/VBoxSharedFolders.so
879 - usr/lib/virtualbox/VBoxDD2.so
880 - usr/lib/virtualbox/VBoxOGLrenderspu.so
881 - usr/lib/virtualbox/VBoxPython.so
882 - usr/lib/virtualbox/VBoxDD.so
883 - usr/lib/virtualbox/VBoxDDU.so
884 - usr/lib/virtualbox/VBoxREM64.so
885 - usr/lib/virtualbox/VBoxSharedClipboard.so
886 - usr/lib/virtualbox/VBoxHeadless.so
887 - usr/lib/virtualbox/VBoxRT.so
888 - usr/lib/virtualbox/VBoxREM.so
889 - usr/lib/virtualbox/VBoxSettings.so
890 - usr/lib/virtualbox/VBoxKeyboard.so
891 - usr/lib/virtualbox/VBoxSharedCrOpenGL.so
892 - usr/lib/virtualbox/VBoxVMM.so
893 - usr/lib/virtualbox/VirtualBox.so
894 - usr/lib/virtualbox/VBoxOGLhosterrorspu.so
895 - usr/lib/virtualbox/components/VBoxC.so
896 - usr/lib/virtualbox/components/VBoxSVCM.so
897 - usr/lib/virtualbox/components/VBoxDDU.so
898 - usr/lib/virtualbox/components/VBoxRT.so
899 - usr/lib/virtualbox/components/VBoxREM.so
900 - usr/lib/virtualbox/components/VBoxVMM.so
901 - usr/lib/virtualbox/VBoxREM32.so
902 - usr/lib/virtualbox/VBoxPython2_7.so
903 - usr/lib/virtualbox/VBoxXPCOMC.so
904 - usr/lib/virtualbox/VBoxOGLhostcrutil.so
905 - usr/lib/virtualbox/VBoxNetDHCP.so
906 - usr/lib/virtualbox/VBoxNetNAT.so"
907 -
908 -S="${WORKDIR}/${MY_P}"
909 -
910 -REQUIRED_USE="
911 - java? ( sdk )
912 - python? ( sdk )
913 - vboxwebsrv? ( java )
914 - ${PYTHON_REQUIRED_USE}
915 -"
916 -
917 -pkg_setup() {
918 - if ! use headless && ! use qt5 ; then
919 - einfo "No USE=\"qt5\" selected, this build will not include any Qt frontend."
920 - elif use headless && use qt5 ; then
921 - einfo "You selected USE=\"headless qt5\", defaulting to"
922 - einfo "USE=\"headless\", this build will not include any X11/Qt frontend."
923 - fi
924 -
925 - if ! use opengl ; then
926 - einfo "No USE=\"opengl\" selected, this build will lack"
927 - einfo "the OpenGL feature."
928 - fi
929 - if ! use python ; then
930 - einfo "You have disabled the \"python\" USE flag. This will only"
931 - einfo "disable the python bindings being installed."
932 - fi
933 - java-pkg-opt-2_pkg_setup
934 - python-single-r1_pkg_setup
935 -
936 - tc-ld-disable-gold #bug 488176
937 - tc-export CC CXX LD AR RANLIB
938 - export HOST_CC="$(tc-getBUILD_CC)"
939 -}
940 -
941 -src_prepare() {
942 - # Remove shipped binaries (kBuild,yasm), see bug #232775
943 - rm -r kBuild/bin tools || die
944 -
945 - # Replace pointless GCC version check with something less stupid.
946 - # This is needed for the qt5 version check.
947 - sed -e 's@^check_gcc$@cc_maj="$(gcc -dumpversion | cut -d. -f1)" ; cc_min="$(gcc -dumpversion | cut -d. -f2)"@' \
948 - -i configure || die
949 -
950 - # Don't use "echo -n"
951 - sed 's@ECHO_N="echo -n"@ECHO_N="printf"@' -i configure || die
952 -
953 - # Disable things unused or split into separate ebuilds
954 - sed -e "s@MY_LIBDIR@$(get_libdir)@" \
955 - "${FILESDIR}"/${PN}-5-localconfig > LocalConfig.kmk || die
956 -
957 - # Respect LDFLAGS
958 - sed -e "s@_LDFLAGS\.${ARCH}*.*=@& ${LDFLAGS}@g" \
959 - -i Config.kmk src/libs/xpcom18a4/Config.kmk || die
960 -
961 - # Do not use hard-coded ld (related to bug #488176)
962 - sed -e '/QUIET)ld /s@ld @$(LD) @' \
963 - -i src/VBox/Devices/PC/ipxe/Makefile.kmk || die
964 -
965 - # Use PAM only when pam USE flag is enbaled (bug #376531)
966 - if ! use pam ; then
967 - elog "Disabling PAM removes the possibility to use the VRDP features."
968 - sed -i 's@^.*VBOX_WITH_PAM@#VBOX_WITH_PAM@' Config.kmk || die
969 - sed -i 's@\(.*/auth/Makefile.kmk.*\)@#\1@' \
970 - src/VBox/HostServices/Makefile.kmk || die
971 - fi
972 -
973 - # add correct java path
974 - if use java ; then
975 - sed "s@/usr/lib/jvm/java-6-sun@$(java-config -O)@" \
976 - -i "${S}"/Config.kmk || die
977 - java-pkg-opt-2_src_prepare
978 - fi
979 -
980 - # Only add nopie patch when we're on hardened
981 - if gcc-specs-pie ; then
982 - eapply "${FILESDIR}/050_virtualbox-5.2.8-nopie.patch"
983 - fi
984 -
985 - # Only add paxmark patch when we're on pax_kernel
986 - if use pax_kernel ; then
987 - eapply "${FILESDIR}"/virtualbox-5.2.8-paxmark-bldprogs.patch
988 - fi
989 -
990 - eapply "${WORKDIR}/patches"
991 -
992 - eapply_user
993 -}
994 -
995 -src_configure() {
996 - local myconf=(
997 - --with-gcc="$(tc-getCC)"
998 - --with-g++="$(tc-getCXX)"
999 - --disable-dbus
1000 - --disable-kmods
1001 - $(usex alsa '' --disable-alsa)
1002 - $(usex debug --build-debug '')
1003 - $(usex doc '' --disable-docs)
1004 - $(usex java '' --disable-java)
1005 - $(usex lvm '' --disable-devmapper)
1006 - $(usex pulseaudio '' --disable-pulse)
1007 - $(usex python '' --disable-python)
1008 - $(usex vboxwebsrv --enable-webservice '')
1009 - $(usex vnc --enable-vnc '')
1010 - )
1011 - if ! use headless ; then
1012 - myconf+=(
1013 - $(usex opengl '' --disable-opengl)
1014 - $(usex qt5 '' --disable-qt)
1015 - )
1016 - else
1017 - myconf+=(
1018 - --build-headless
1019 - --disable-opengl
1020 - )
1021 - fi
1022 - if use amd64 && ! has_multilib_profile ; then
1023 - myconf+=( --disable-vmmraw )
1024 - fi
1025 - # not an autoconf script
1026 - ./configure ${myconf[@]} || die "configure failed"
1027 -}
1028 -
1029 -src_compile() {
1030 - source ./env.sh || die
1031 -
1032 - # Force kBuild to respect C[XX]FLAGS and MAKEOPTS (bug #178529)
1033 - MAKEJOBS=$(grep -Eo '(\-j|\-\-jobs)(=?|[[:space:]]*)[[:digit:]]+' <<< ${MAKEOPTS}) #'
1034 - MAKELOAD=$(grep -Eo '(\-l|\-\-load-average)(=?|[[:space:]]*)[[:digit:]]+' <<< ${MAKEOPTS}) #'
1035 - MAKEOPTS="${MAKEJOBS} ${MAKELOAD}"
1036 - MAKE="kmk" emake \
1037 - VBOX_BUILD_PUBLISHER=_Gentoo \
1038 - TOOL_GCC3_CC="$(tc-getCC)" TOOL_GCC3_CXX="$(tc-getCXX)" \
1039 - TOOL_GCC3_AS="$(tc-getCC)" TOOL_GCC3_AR="$(tc-getAR)" \
1040 - TOOL_GCC3_LD="$(tc-getCXX)" TOOL_GCC3_LD_SYSMOD="$(tc-getLD)" \
1041 - TOOL_GCC3_CFLAGS="${CFLAGS}" TOOL_GCC3_CXXFLAGS="${CXXFLAGS}" \
1042 - VBOX_GCC_OPT="${CXXFLAGS}" \
1043 - TOOL_YASM_AS=yasm KBUILD_VERBOSE=2 \
1044 - all
1045 -}
1046 -
1047 -src_install() {
1048 - local binpath="release"
1049 - use debug && binpath="debug"
1050 - cd "${S}"/out/linux.${ARCH}/${binpath}/bin || die
1051 -
1052 - local vbox_inst_path="/usr/$(get_libdir)/${PN}" each fwfile size ico icofile
1053 -
1054 - vbox_inst() {
1055 - local binary="${1}"
1056 - local perms="${2:-0750}"
1057 - local path="${3:-${vbox_inst_path}}"
1058 -
1059 - [[ -n "${binary}" ]] || die "vbox_inst: No binray given!"
1060 - [[ ${perms} =~ ^[[:digit:]]+{4}$ ]] || die "vbox_inst: perms must consist of four digits."
1061 -
1062 - insinto ${path}
1063 - doins ${binary}
1064 - fowners root:vboxusers ${path}/${binary}
1065 - fperms ${perms} ${path}/${binary}
1066 - }
1067 -
1068 - # Create configuration files
1069 - insinto /etc/vbox
1070 - newins "${FILESDIR}/${PN}-4-config" vbox.cfg
1071 -
1072 - # Set the correct libdir
1073 - sed \
1074 - -e "s@MY_LIBDIR@$(get_libdir)@" \
1075 - -i "${D}"/etc/vbox/vbox.cfg || die "vbox.cfg sed failed"
1076 -
1077 - # Install the wrapper script
1078 - exeinto ${vbox_inst_path}
1079 - newexe "${FILESDIR}/${PN}-ose-5-wrapper" "VBox"
1080 - fowners root:vboxusers ${vbox_inst_path}/VBox
1081 - fperms 0750 ${vbox_inst_path}/VBox
1082 -
1083 - # Install binaries and libraries
1084 - insinto ${vbox_inst_path}
1085 - doins -r components
1086 -
1087 - # *.rc files for x86_64 are only available on multilib systems
1088 - local rcfiles="*.rc"
1089 - if use amd64 && ! has_multilib_profile ; then
1090 - rcfiles=""
1091 - fi
1092 - for each in VBox{ExtPackHelperApp,Manage,SVC,Tunctl,XPCOMIPCD} *so *r0 ${rcfiles} ; do
1093 - vbox_inst ${each}
1094 - done
1095 -
1096 - # These binaries need to be suid root.
1097 - for each in VBox{Headless,Net{AdpCtl,DHCP,NAT}} ; do
1098 - vbox_inst ${each} 4750
1099 - done
1100 -
1101 - # Install EFI Firmware files (bug #320757)
1102 - pushd "${S}"/src/VBox/Devices/EFI/FirmwareBin &>/dev/null || die
1103 - for fwfile in VBoxEFI{32,64}.fd ; do
1104 - vbox_inst ${fwfile} 0644
1105 - done
1106 - popd &>/dev/null || die
1107 -
1108 - # VBoxSVC and VBoxManage need to be pax-marked (bug #403453)
1109 - # VBoxXPCOMIPCD (bug #524202)
1110 - for each in VBox{Headless,Manage,SVC,XPCOMIPCD} ; do
1111 - pax-mark -m "${D}"${vbox_inst_path}/${each}
1112 - done
1113 -
1114 - # Symlink binaries to the shipped wrapper
1115 - for each in vbox{headless,manage} VBox{Headless,Manage,VRDP} ; do
1116 - dosym ${vbox_inst_path}/VBox /usr/bin/${each}
1117 - done
1118 - dosym ${vbox_inst_path}/VBoxTunctl /usr/bin/VBoxTunctl
1119 -
1120 - if use pam ; then
1121 - # VRDPAuth only works with this (bug #351949)
1122 - dosym VBoxAuth.so ${vbox_inst_path}/VRDPAuth.so
1123 - fi
1124 -
1125 - # set an env-variable for 3rd party tools
1126 - echo -n "VBOX_APP_HOME=${vbox_inst_path}" > "${T}/90virtualbox"
1127 - doenvd "${T}/90virtualbox"
1128 -
1129 - if ! use headless ; then
1130 - vbox_inst VBoxSDL 4750
1131 - pax-mark -m "${D}"${vbox_inst_path}/VBoxSDL
1132 -
1133 - for each in vboxsdl VBoxSDL ; do
1134 - dosym ${vbox_inst_path}/VBox /usr/bin/${each}
1135 - done
1136 -
1137 - if use qt5 ; then
1138 - vbox_inst VirtualBox 4750
1139 - pax-mark -m "${D}"${vbox_inst_path}/VirtualBox
1140 -
1141 - if use opengl ; then
1142 - vbox_inst VBoxTestOGL
1143 - pax-mark -m "${D}"${vbox_inst_path}/VBoxTestOGL
1144 - fi
1145 -
1146 - for each in virtualbox VirtualBox ; do
1147 - dosym ${vbox_inst_path}/VBox /usr/bin/${each}
1148 - done
1149 -
1150 - insinto /usr/share/${PN}
1151 - doins -r nls
1152 -
1153 - newmenu "${FILESDIR}"/${PN}-ose.desktop-2 ${PN}.desktop
1154 - fi
1155 -
1156 - pushd "${S}"/src/VBox/Artwork/OSE &>/dev/null || die
1157 - for size in 16 32 48 64 128 ; do
1158 - newicon -s ${size} ${PN}-${size}px.png ${PN}.png
1159 - done
1160 - newicon ${PN}-48px.png ${PN}.png
1161 - doicon -s scalable ${PN}.svg
1162 - popd &>/dev/null || die
1163 - pushd "${S}"/src/VBox/Artwork/other &>/dev/null || die
1164 - for size in 16 24 32 48 64 72 96 128 256 512 ; do
1165 - for ico in hdd ova ovf vbox{,-extpack} vdi vdh vmdk ; do
1166 - icofile="${PN}-${ico}-${size}px.png"
1167 - if [[ -f "${icofile}" ]] ; then
1168 - newicon -s ${size} ${icofile} ${PN}-${ico}.png
1169 - fi
1170 - done
1171 - done
1172 - popd &>/dev/null || die
1173 - fi
1174 -
1175 - if use lvm ; then
1176 - vbox_inst VBoxVolInfo 4750
1177 - dosym ${vbox_inst_path}/VBoxVolInfo /usr/bin/VBoxVolInfo
1178 - fi
1179 -
1180 - if use sdk ; then
1181 - insinto ${vbox_inst_path}
1182 - doins -r sdk
1183 -
1184 - if use java ; then
1185 - java-pkg_regjar "${D}${vbox_inst_path}/sdk/bindings/xpcom/java/vboxjxpcom.jar"
1186 - java-pkg_regso "${D}${vbox_inst_path}/libvboxjxpcom.so"
1187 - fi
1188 - fi
1189 -
1190 - if use udev ; then
1191 - # New way of handling USB device nodes for VBox (bug #356215)
1192 - local udevdir="$(get_udevdir)"
1193 - insinto ${udevdir}
1194 - doins VBoxCreateUSBNode.sh
1195 - fowners root:vboxusers ${udevdir}/VBoxCreateUSBNode.sh
1196 - fperms 0750 ${udevdir}/VBoxCreateUSBNode.sh
1197 - insinto ${udevdir}/rules.d
1198 - sed "s@%UDEVDIR%@${udevdir}@" "${FILESDIR}"/10-virtualbox.rules \
1199 - > "${T}"/10-virtualbox.rules || die
1200 - doins "${T}"/10-virtualbox.rules
1201 - fi
1202 -
1203 - if use vboxwebsrv ; then
1204 - vbox_inst vboxwebsrv
1205 - dosym ${vbox_inst_path}/VBox /usr/bin/vboxwebsrv
1206 - newinitd "${FILESDIR}"/vboxwebsrv-initd vboxwebsrv
1207 - newconfd "${FILESDIR}"/vboxwebsrv-confd vboxwebsrv
1208 - fi
1209 -
1210 - if use doc ; then
1211 - dodoc UserManual.pdf
1212 - fi
1213 -
1214 - newtmpfiles "${FILESDIR}"/${PN}-vboxusb_tmpfilesd ${PN}-vboxusb.conf
1215 -}
1216 -
1217 -pkg_postinst() {
1218 - gnome2_icon_cache_update
1219 - xdg_desktop_database_update
1220 -
1221 - if use udev ; then
1222 - udevadm control --reload-rules \
1223 - && udevadm trigger --subsystem-match=usb
1224 - fi
1225 -
1226 - tmpfiles_process /usr/lib/tmpfiles.d/virtualbox-vboxusb.conf
1227 -
1228 - if ! use headless && use qt5 ; then
1229 - elog "To launch VirtualBox just type: \"virtualbox\"."
1230 - fi
1231 - elog "You must be in the vboxusers group to use VirtualBox."
1232 - elog ""
1233 - elog "The latest user manual is available for download at:"
1234 - elog "http://download.virtualbox.org/virtualbox/${PV}/UserManual.pdf"
1235 - elog ""
1236 - elog "For advanced networking setups you should emerge:"
1237 - elog "net-misc/bridge-utils and sys-apps/usermode-utilities"
1238 - elog ""
1239 - elog "Starting with version 4.0.0, ${PN} has USB-1 support."
1240 - elog "For USB-2 support, PXE-boot ability and VRDP support please emerge"
1241 - elog " app-emulation/virtualbox-extpack-oracle"
1242 - elog "package."
1243 - elog "Starting with version 5.0.0, ${PN} no longer has the \"additions\" and"
1244 - elog "the \"extension\" USE flag. For installation of the guest additions ISO"
1245 - elog "image, please emerge"
1246 - elog " app-emulation/virtualbox-additions"
1247 - elog "and for the USB2, USB3, VRDP and PXE boot ROM modules, please emerge"
1248 - elog " app-emulation/virtualbox-extpack-oracle"
1249 - if ! use udev ; then
1250 - elog ""
1251 - elog "WARNING!"
1252 - elog "Without USE=udev, USB devices will likely not work in ${PN}."
1253 - elif [ -e "${ROOT%/}/etc/udev/rules.d/10-virtualbox.rules" ] ; then
1254 - elog ""
1255 - elog "Please remove \"${ROOT%/}/etc/udev/rules.d/10-virtualbox.rules\""
1256 - elog "or else USB in ${PN} won't work."
1257 - fi
1258 -}
1259 -
1260 -pkg_postrm() {
1261 - gnome2_icon_cache_update
1262 - xdg_desktop_database_update
1263 -}