Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-emulation/virtualbox-bin/, app-emulation/virtualbox-additions/, ...
Date: Tue, 03 Jul 2018 08:33:35
Message-Id: 1530606805.b18fd6351128e68bf260a39b95ae046b1719a90d.polynomial-c@gentoo
1 commit: b18fd6351128e68bf260a39b95ae046b1719a90d
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jul 3 08:33:08 2018 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Tue Jul 3 08:33:25 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b18fd635
7
8 virtualbox packages: Removed old.
9
10 Package-Manager: Portage-2.3.41, Repoman-2.3.9
11
12 app-emulation/virtualbox-additions/Manifest | 1 -
13 .../virtualbox-additions-5.2.10-r1.ebuild | 35 --
14 app-emulation/virtualbox-bin/Manifest | 4 -
15 .../virtualbox-bin-5.2.10.122088.ebuild | 287 -------------
16 app-emulation/virtualbox-extpack-oracle/Manifest | 1 -
17 .../virtualbox-extpack-oracle-5.2.10.122088.ebuild | 42 --
18 app-emulation/virtualbox-guest-additions/Manifest | 1 -
19 .../virtualbox-guest-additions-5.2.10.ebuild | 226 ----------
20 app-emulation/virtualbox-modules/Manifest | 1 -
21 .../virtualbox-modules-5.2.10.ebuild | 51 ---
22 app-emulation/virtualbox/Manifest | 2 -
23 app-emulation/virtualbox/virtualbox-5.2.10.ebuild | 468 ---------------------
24 12 files changed, 1119 deletions(-)
25
26 diff --git a/app-emulation/virtualbox-additions/Manifest b/app-emulation/virtualbox-additions/Manifest
27 index fa41c5be37e..22230d5423e 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.10.iso 57974784 BLAKE2B 3e56448d46cfdbb264a6c606d548a0db86d40cac1428263de7d7f6e35602dc485138ac3574eab6bba78cccabb7ccd65f8c67ed78938524bc408d9d305949154d SHA512 fd84d41b5953c379b1a14380cb4ec67a8edd42caa4ce11a39f4dc0af77b3bbceeb717d9b9b9d25fd8b2446c2b1aa3bd4393e4a5c661c20bd07059f561d17ad8d
34 DIST VBoxGuestAdditions_5.2.12.iso 57976832 BLAKE2B 3b1485da265a9d7bd659e846ceb9e3e8f3463816f2f8157654704875e9b7a91d6f610cfa6285d9d54b06e87ca4f3e5d4600b26ac622b592c90c42bde0cc0f2ee SHA512 276b6348942bb82f68dacdc957590130281c5b3818d47c60238e00e1015682b5a44f28091163297ea052d327f916ed2e79bc32820f39f8b8e5dab5bd0fccbe77
35 DIST VBoxGuestAdditions_5.2.14.iso 57978880 BLAKE2B de5cb3c5b7e2f3ee018588308573389fd973820e87d5b2e6640499c96dc21db95e71eb4e5e2469455febba8b2ccb4a7c6014176e784613218fa7eccabefe9e53 SHA512 1fd878f9e7fc1687907ac8dff6827bfd7aefe3ed48012b0dbbaf42ced21695ce52be6fe146128a6d1c67c7a0c5c39c9ef24e8ee562271fda117d13cca81427cb
36
37 diff --git a/app-emulation/virtualbox-additions/virtualbox-additions-5.2.10-r1.ebuild b/app-emulation/virtualbox-additions/virtualbox-additions-5.2.10-r1.ebuild
38 deleted file mode 100644
39 index a28d6005cb4..00000000000
40 --- a/app-emulation/virtualbox-additions/virtualbox-additions-5.2.10-r1.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 9b421f7c14b..a0a28f37eed 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.10-122088.tar.gz 19482093 BLAKE2B ca02e9226b774340ecd31688f296304d7c963f20177d523058a1a2997cc287c59fc6e4df8bcc5024ec55cc7b79b1319f61bc9f3697cdb9c4c36423a77221cb82 SHA512 90e9d1c0235d14df9a305fa48102528b839c266abe18f97dcb945729cb9a0136cbf0686b69b82fcc76508cf7674c5b5dcb6563319af9ca0c294218802eaa9173
87 DIST Oracle_VM_VirtualBox_Extension_Pack-5.2.12-122591.tar.gz 19590585 BLAKE2B 433ae630e55f2320d48c06d0fd5120528ee10c04f2e471da3a72fb98ae826b2909fa5fcd2a4ad7c875a1785d07c0a3dc9ec3001fa7d16903037731dbe1e24a75 SHA512 3e55cb2c8a5adfdac988b81804650aa35e66e052a946b371d61a92d459e5dbb83495f80423f22cfa2a4c2196cf94d1146ff5aed621985f27f2e5069c13f5daee
88 DIST Oracle_VM_VirtualBox_Extension_Pack-5.2.14-123301.tar.gz 19589209 BLAKE2B 385bdfb4cef67788a1dd3e758f52dab7a367f56ca8d286e465af9a7674ffe3bc0f6187a66d7d19bb8f2a8fc0e23e0ce7ef35ac2d46fd6971dc2df96e8a61ca11 SHA512 a47a7173685b72995e5012386fc8f6c55f9106049a28ecaea223f58f1bb40077e0929cf05102a2588e516fe90891428b8e569ec9351fcaf235eb9f8293e45b92
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.10-122088-Linux_amd64.run 88544723 BLAKE2B b460f2eb04854773a2cc908eed3e01bf3245f0273c94bb4a7a69b11b2e1506a8a4db81649e13ce94fa3771540cadf597f3c2d957fc873213ef734e6b4e1d932d SHA512 244dcb2c875d4d0bf37552a478074b052268973954e4ba81e2a82ebc8ffe40da74de484032a37f21291574a997ee67dd4057f75eef4d7ac77c4e0f0d7cfa12ce
94 -DIST VirtualBox-5.2.10-122088-Linux_x86.run 87684559 BLAKE2B 840efab030b66d561ada6bf999c076bdce0d064399e904f8ad0fffd3fbb72be1ed7131b77a4a79f56643d22e2029e9005b7e0d80ffdf941b4df2fee375ee3e81 SHA512 738b2d6810f056c0c6b7828e3f14746e2ed64d7169e7959f9022857a451476637ebcf628b5f6b3d4ab86ce9834fe87bf8f8c92dcb3fdd80a703ff5ec93adfc77
95 DIST VirtualBox-5.2.12-122591-Linux_amd64.run 88677843 BLAKE2B 3fd56527c106193ea0bb46ad51968c59d1bb6453282ddfc84b08227e0f5ed4af941bc11030edb3a0c2d0845d602c036e033a48af020b80ba225d626a3514d321 SHA512 682e42ef3bb65f0e31e08fda2c2a9ce8b555ae8978692b22e9855c1725e5fd3e3db126501df37849b546a5022480a319db12470d1fed44463f2e49144a6383ac
96 DIST VirtualBox-5.2.12-122591-Linux_x86.run 87827919 BLAKE2B 7efc88298b8e96f0d45cfac3d4fd3b24ffc725f14e1ae822dace092abf6a460cbad4349b907c08998dcdacdfdb915a2de6e8ae8db4edb1842c29941faa6acdd8 SHA512 e6f6890baddef29db0c103569d5abe7bdfb597840e8c9b023ba041b85a7c3ba7bf45f983826266722b43fcca95b2e93bfdc944c25ffcf6f0e386794f22eb5e8a
97 DIST VirtualBox-5.2.14-123301-Linux_amd64.run 88749523 BLAKE2B 5a2791a1258adcdc82f8776fb0d5502d525faa0083b808f1875f0c61b848aa371fa0b6b73ca024c244b36dfb074a8839747ad27a87cb8dfbaad09096a0cec887 SHA512 8c4633ef0e3a9f7f26603009a23244696a6f91baffa9777a0daf8f09abd80b4aca944dabfd2a10acddf4759e64ec719948d73ecaaf187a60a15e097467060ea9
98 DIST VirtualBox-5.2.14-123301-Linux_x86.run 87776718 BLAKE2B 609c24ad2ba5b005f7cb619fbe2c2a82f026a7ae4ef74cda800c526c8c3552a2a1ed1af5a2a2b3d9c56f0dfbcdda493c2cc92b58156cbf41ebfb1d43bfee8aca SHA512 820c2b6c97a48c125b69e1f749a3b1473d5fe672726ae2cec30f20a6652186a28b3900d4aeffca701415275229232925d1c8c347aefa7a86840a2c5bf13f21a7
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.10-122088.zip 10152815 BLAKE2B af856ffaeca244b2bfd14ef89ca10b4d607386c77aad3e8e0ce7a40291f6a74dfd12f3b33671d07a151e4bc75bbb05699a9845a3ae5ca7c16f4e1d3c49edcf9d SHA512 0e153b7b05fdc4ce18cf4dc7c110b0b9f05536df17f92b61417af9b497cdec5c2ad3ecd341bbdc43969d811b28f12dcdaaecd72bc5c33842cc1fdde25376c725
102 DIST VirtualBoxSDK-5.2.12-122591.zip 10153856 BLAKE2B ea4fdc39744e5fcc2edcdcf521c795b2669344cec4be2b7d9f08d1e0917c24b5c06721d76d81966c611ee41d220095aeb6bbab211a0e1b52e6479e0c9595d97a SHA512 6d7e3968c9edb00b88aa5118ec9c74ae85e04d788f49741b68506b07307c4dd2c8cb7bb307c76f9d2908bc47c7683257f39395008b0a03eff72a1e77567f0e77
103 DIST VirtualBoxSDK-5.2.14-123301.zip 10154044 BLAKE2B 273219029c59ffd685fffb7e14fff914a5397acc0676c8b4ccaee9cecee51e90880e68d883125e061d6c02e09b53235821ff89a265e937c9b4e67365452a97d2 SHA512 c69e6f537af611b9a4bcbab3e014fa25c6593f754940c6596e451cf895cb088186d037ac4816a3bae793213c774befd54ffa86d43948fa546f753a37fcdabd51
104
105 diff --git a/app-emulation/virtualbox-bin/virtualbox-bin-5.2.10.122088.ebuild b/app-emulation/virtualbox-bin/virtualbox-bin-5.2.10.122088.ebuild
106 deleted file mode 100644
107 index 94de7dd7a10..00000000000
108 --- a/app-emulation/virtualbox-bin/virtualbox-bin-5.2.10.122088.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 e160de9ecbc..c0de3afec22 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.10-122088.tar.gz 19482093 BLAKE2B ca02e9226b774340ecd31688f296304d7c963f20177d523058a1a2997cc287c59fc6e4df8bcc5024ec55cc7b79b1319f61bc9f3697cdb9c4c36423a77221cb82 SHA512 90e9d1c0235d14df9a305fa48102528b839c266abe18f97dcb945729cb9a0136cbf0686b69b82fcc76508cf7674c5b5dcb6563319af9ca0c294218802eaa9173
407 DIST Oracle_VM_VirtualBox_Extension_Pack-5.2.12-122591.tar.gz 19590585 BLAKE2B 433ae630e55f2320d48c06d0fd5120528ee10c04f2e471da3a72fb98ae826b2909fa5fcd2a4ad7c875a1785d07c0a3dc9ec3001fa7d16903037731dbe1e24a75 SHA512 3e55cb2c8a5adfdac988b81804650aa35e66e052a946b371d61a92d459e5dbb83495f80423f22cfa2a4c2196cf94d1146ff5aed621985f27f2e5069c13f5daee
408 DIST Oracle_VM_VirtualBox_Extension_Pack-5.2.14-123301.tar.gz 19589209 BLAKE2B 385bdfb4cef67788a1dd3e758f52dab7a367f56ca8d286e465af9a7674ffe3bc0f6187a66d7d19bb8f2a8fc0e23e0ce7ef35ac2d46fd6971dc2df96e8a61ca11 SHA512 a47a7173685b72995e5012386fc8f6c55f9106049a28ecaea223f58f1bb40077e0929cf05102a2588e516fe90891428b8e569ec9351fcaf235eb9f8293e45b92
409
410 diff --git a/app-emulation/virtualbox-extpack-oracle/virtualbox-extpack-oracle-5.2.10.122088.ebuild b/app-emulation/virtualbox-extpack-oracle/virtualbox-extpack-oracle-5.2.10.122088.ebuild
411 deleted file mode 100644
412 index 7d7d5d2ea35..00000000000
413 --- a/app-emulation/virtualbox-extpack-oracle/virtualbox-extpack-oracle-5.2.10.122088.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 63406c21be6..65155d34037 100644
461 --- a/app-emulation/virtualbox-guest-additions/Manifest
462 +++ b/app-emulation/virtualbox-guest-additions/Manifest
463 @@ -1,6 +1,5 @@
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.10.tar.bz2 118575607 BLAKE2B 46360d63cf6d1b8744016cbb2c1eee1d57ebafc45f8b32782c7216fc547f24af4c7205b4e7c34d24cd7faf7e8ce4ea8373ad4a310040a6ef9b043a8ce2300f94 SHA512 1e6d5e5c6ce45d9a3864860819f6301c192c83be154c674cfb37c98506db88a8f70526ec05d115c53e40c4c91d243513f0a3196261c7dee244a18091b2e5717e
467 DIST VirtualBox-5.2.12.tar.bz2 118612426 BLAKE2B 685c400ef82de14891d9cc42e94e8c0de270a57d6e69820d45cf7fda0ef32d78d4c2670b4a2b89003d58035ee50d648d7906e58d99a96d40c24ee2fa51a317c9 SHA512 083219501d0103d1060cd470cad5a29a348341abf92c1caccf10e7fcfcf0db163e95d6624614d327dda7500d638d3038634fa8a3c1c441a6ee8de9e4f51325d2
468 DIST VirtualBox-5.2.14.tar.bz2 118597539 BLAKE2B 5e0a8d92405378eb438cae375041609f7a0e1288b040d3a0bcc06157f16ddd48b3537f2f026aa12a71c5319bdef56d6f3907785ac51ebe05a8b7143e04f22d0a SHA512 b8202eccd83e9f2c92a77548d003082b6b3ff7838bb32ae48c3a25dcd622bfdc8ceca42cc49b855eeabf4439c55ad42df9b3959dd1bab77de154468e139c904e
469 DIST virtualbox-5.1.30-patches-02.tar.xz 2608 BLAKE2B 08b05a26622a7acec455f6d0dc72858f5f2758488e50d219f83c3d12606419d48e9d99302cde5a275929fe79af900c1b3ea3957fe9dfdaa952aaa0da9933291a SHA512 8a490f7cc44e40262fc47819736251c177adb635256794e9500f52729197c85211d5b0c0d000268089953a4c185872a8ba03c5d42df6b80f05eac8b81335320a
470
471 diff --git a/app-emulation/virtualbox-guest-additions/virtualbox-guest-additions-5.2.10.ebuild b/app-emulation/virtualbox-guest-additions/virtualbox-guest-additions-5.2.10.ebuild
472 deleted file mode 100644
473 index 9a895f357c2..00000000000
474 --- a/app-emulation/virtualbox-guest-additions/virtualbox-guest-additions-5.2.10.ebuild
475 +++ /dev/null
476 @@ -1,226 +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 eutils 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.1.30-patches-02.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 - rm "${WORKDIR}/patches/011_virtualbox-5.1.30-sysmacros.patch" || die
577 - eapply "${WORKDIR}/patches"
578 -
579 - eapply_user
580 -}
581 -
582 -src_configure() {
583 - # build the user-space tools, warnings are harmless
584 - local cmd=(
585 - ./configure
586 - --nofatal
587 - --disable-xpcom
588 - --disable-sdl-ttf
589 - --disable-pulse
590 - --disable-alsa
591 - --with-gcc="$(tc-getCC)"
592 - --with-g++="$(tc-getCXX)"
593 - --target-arch=${ARCH}
594 - --with-linux="${KV_OUT_DIR}"
595 - --build-headless
596 - )
597 - echo "${cmd[@]}"
598 - "${cmd[@]}" || die "configure failed"
599 - source ./env.sh
600 - export VBOX_GCC_OPT="${CFLAGS} ${CPPFLAGS}"
601 -}
602 -
603 -src_compile() {
604 - MAKE="kmk" \
605 - emake TOOL_YASM_AS=yasm \
606 - VBOX_ONLY_ADDITIONS=1 \
607 - KBUILD_VERBOSE=2
608 -
609 - # Now creating the kernel modules. We must do this _after_
610 - # we compiled the user-space tools as we need two of the
611 - # automatically generated header files. (>=3.2.0)
612 - linux-mod_src_compile
613 -}
614 -
615 -src_install() {
616 - linux-mod_src_install
617 -
618 - cd "${S}"/out/linux.${ARCH}/release/bin/additions || die
619 -
620 - insinto /sbin
621 - newins mount.vboxsf mount.vboxsf
622 - fperms 4755 /sbin/mount.vboxsf
623 -
624 - newinitd "${FILESDIR}"/${PN}-8.initd ${PN}
625 -
626 - insinto /usr/sbin/
627 - newins VBoxService vboxguest-service
628 - fperms 0755 /usr/sbin/vboxguest-service
629 -
630 - insinto /usr/bin
631 - doins VBoxControl
632 - fperms 0755 /usr/bin/VBoxControl
633 -
634 - # VBoxClient user service and xrandr wrapper
635 - if use X ; then
636 - doins VBoxClient
637 - fperms 0755 /usr/bin/VBoxClient
638 -
639 - pushd "${S}"/src/VBox/Additions/x11/Installer &>/dev/null \
640 - || die
641 - newins 98vboxadd-xclient VBoxClient-all
642 - fperms 0755 /usr/bin/VBoxClient-all
643 - popd &>/dev/null || die
644 - fi
645 -
646 - # udev rule for vboxdrv
647 - local udev_rules_dir="/lib/udev/rules.d"
648 - dodir ${udev_rules_dir}
649 - echo 'KERNEL=="vboxguest", OWNER="vboxguest", GROUP="vboxguest", MODE="0660"' \
650 - >> "${D}/${udev_rules_dir}/60-virtualbox-guest-additions.rules" \
651 - || die
652 - echo 'KERNEL=="vboxuser", OWNER="vboxguest", GROUP="vboxguest", MODE="0660"' \
653 - >> "${D}/${udev_rules_dir}/60-virtualbox-guest-additions.rules" \
654 - || die
655 -
656 - # VBoxClient autostart file
657 - insinto /etc/xdg/autostart
658 - doins "${FILESDIR}"/vboxclient.desktop
659 -
660 - # sample xorg.conf
661 - insinto /usr/share/doc/${PF}
662 - doins "${FILESDIR}"/xorg.conf.vbox
663 -
664 - systemd_dounit "${FILESDIR}/${PN}.service"
665 -}
666 -
667 -pkg_postinst() {
668 - linux-mod_pkg_postinst
669 - if ! use X ; then
670 - elog "use flag X is off, enable it to install the"
671 - elog "X Window System video driver."
672 - fi
673 - elog ""
674 - elog "Please add users to the \"vboxguest\" group so they can"
675 - elog "benefit from seamless mode, auto-resize and clipboard."
676 - elog ""
677 - elog "The vboxsf group has been added to make automount services work."
678 - elog "These services are part of the shared folders support."
679 - elog ""
680 - elog "Please add:"
681 - elog "/etc/init.d/${PN}"
682 - elog "to the default runlevel in order to start"
683 - elog "needed services."
684 - elog "To use the VirtualBox X driver, use the following"
685 - elog "file as your /etc/X11/xorg.conf:"
686 - elog " /usr/share/doc/${PF}/xorg.conf.vbox"
687 - elog ""
688 - elog "Also make sure you use the Mesa library for OpenGL:"
689 - elog " eselect opengl set xorg-x11"
690 - elog ""
691 - elog "An autostart .desktop file has been installed to start"
692 - elog "VBoxClient in desktop sessions."
693 - elog ""
694 - elog "You can mount shared folders with:"
695 - elog " mount -t vboxsf <shared_folder_name> <mount_point>"
696 - elog ""
697 - elog "Warning:"
698 - elog "this ebuild is only needed if you are running gentoo"
699 - elog "inside a VirtualBox Virtual Machine, you don't need"
700 - elog "it to run VirtualBox itself."
701 - elog ""
702 -}
703
704 diff --git a/app-emulation/virtualbox-modules/Manifest b/app-emulation/virtualbox-modules/Manifest
705 index 88a7ecbfd67..5fb5532955b 100644
706 --- a/app-emulation/virtualbox-modules/Manifest
707 +++ b/app-emulation/virtualbox-modules/Manifest
708 @@ -1,5 +1,4 @@
709 DIST vbox-kernel-module-src-5.1.36.tar.xz 628368 BLAKE2B 49a3dfc4ff573f793eefcfd9b645af6fa6fc63b54475921064be146d3d4bf4db61f48d82f62d65811597fa12b88331153f7491890527fde76f41426355552abb SHA512 c69739c72a5555fc3bca90186129fa4eeb5bd930c4396b416a8a88e6f84bcd9e7498a9bbc9381da648cf87d601d98249feac2e4de6d93d8b7aba46b22d3ec40f
710 DIST vbox-kernel-module-src-5.1.38.tar.xz 628552 BLAKE2B 9faa4e837a48ac27be5c0183edcf2b39c08eeab210bd39811704a7a578a93b28f8b8ecf26a34483f2d135a8cb8817756120d7bef0b8de245c5a5e232cfebfff0 SHA512 36311c3ff947fa763db1fc0612c5a4c10ac3d586c3faab3a91e463723488510cedfc1a69696381158a167edfc86d7abf66c18b287ced75cbaba3f1797c4265a8
711 -DIST vbox-kernel-module-src-5.2.10.tar.xz 637080 BLAKE2B 303fd6191247df0560f161b12665b95f372de1a18755b937f7af8fecab6669337ccaf22f635219080953795cb9bc4c80bc21a8273e28b5cf8ba3ba9cf930e2cd SHA512 56e837f19a63856dbd57379dd78bf46b90ddeb3a60df9d18a46a6480c7021040b7674599fd0b48a9c3db241756539bfaa88becf6e42acf8725e2bc89e3879773
712 DIST vbox-kernel-module-src-5.2.12.tar.xz 637292 BLAKE2B 31b54c8de560a30d228497f5a3f58f868ad09e18051f8fac2257200e324603c5fdfe127d530997f7dae728d13d93ced6321487f20571811352bfbbf1f9c6d646 SHA512 7408e8121bf278050728461d4f7ab4d4b6c502b24859573d4652a58d1058e9b12a4de4b582ce45f7d0b12bf369a7378107c2cab12a6e93b1b082a40d1f2e9712
713 DIST vbox-kernel-module-src-5.2.14.tar.xz 637352 BLAKE2B 7ccefbb13f25fe995e0f769192a93baa91358c09e7126d6a6c8bef7fceeab50082f78843140d23cf88c4931c561552c4131b17625e7a3821766571387d78d2a3 SHA512 920eca67fb10ed4d1eeab95b14e65c585dd96df82a4690c34c9d85366ec6dd9835f9a772eb4718a80e6ffb2637de2a698151a6bdfd7984fc2070cd0bade5c077
714
715 diff --git a/app-emulation/virtualbox-modules/virtualbox-modules-5.2.10.ebuild b/app-emulation/virtualbox-modules/virtualbox-modules-5.2.10.ebuild
716 deleted file mode 100644
717 index 0fd483ae195..00000000000
718 --- a/app-emulation/virtualbox-modules/virtualbox-modules-5.2.10.ebuild
719 +++ /dev/null
720 @@ -1,51 +0,0 @@
721 -# Copyright 1999-2018 Gentoo Foundation
722 -# Distributed under the terms of the GNU General Public License v2
723 -
724 -# XXX: the tarball here is just the kernel modules split out of the binary
725 -# package that comes from virtualbox-bin
726 -
727 -EAPI=6
728 -
729 -inherit eutils linux-mod user
730 -
731 -MY_P=vbox-kernel-module-src-${PV}
732 -DESCRIPTION="Kernel Modules for Virtualbox"
733 -HOMEPAGE="https://www.virtualbox.org/"
734 -SRC_URI="https://dev.gentoo.org/~polynomial-c/virtualbox/${MY_P}.tar.xz"
735 -
736 -LICENSE="GPL-2"
737 -SLOT="0"
738 -KEYWORDS="~amd64 ~x86"
739 -IUSE="pax_kernel"
740 -
741 -RDEPEND="!=app-emulation/virtualbox-9999"
742 -
743 -S=${WORKDIR}
744 -
745 -BUILD_TARGETS="all"
746 -BUILD_TARGET_ARCH="${ARCH}"
747 -MODULE_NAMES="vboxdrv(misc:${S}) vboxnetflt(misc:${S}) vboxnetadp(misc:${S}) vboxpci(misc:${S})"
748 -
749 -pkg_setup() {
750 - enewgroup vboxusers
751 - linux-mod_pkg_setup
752 - BUILD_PARAMS="CC=$(tc-getBUILD_CC) KERN_DIR=${KV_DIR} KERN_VER=${KV_FULL} O=${KV_OUT_DIR} V=1 KBUILD_VERBOSE=1"
753 -}
754 -
755 -src_prepare() {
756 - if use pax_kernel && kernel_is -ge 3 0 0 ; then
757 - eapply -p0 "${FILESDIR}"/${PN}-5.2.8-pax-const.patch
758 - fi
759 -
760 - default
761 -}
762 -
763 -src_install() {
764 - linux-mod_src_install
765 - insinto /usr/lib/modules-load.d/
766 - doins "${FILESDIR}"/virtualbox.conf
767 -}
768 -
769 -pkg_postinst() {
770 - linux-mod_pkg_postinst
771 -}
772
773 diff --git a/app-emulation/virtualbox/Manifest b/app-emulation/virtualbox/Manifest
774 index 1d261f5bb3b..fabd1dfca46 100644
775 --- a/app-emulation/virtualbox/Manifest
776 +++ b/app-emulation/virtualbox/Manifest
777 @@ -1,8 +1,6 @@
778 DIST VirtualBox-5.1.36.tar.bz2 117244376 BLAKE2B 141048f4fcbb3ce63d236a4127b4bce377e87876c23dc3ff6437b2c0cca5b468bc6a5737899b308bc1ff3252d4e61f7d053ff7574c33c85b56fdd986c31f2af3 SHA512 d1a9322c97c68cc9c21247c3df8ce2084911aded66a63adf5510f9e0f4558b1304dfe924a0c44243adc1ae8f7c45c47782e882baac1bfe995ea6c0a1370fcbd1
779 DIST VirtualBox-5.1.38.tar.bz2 117345233 BLAKE2B 15ed86a1f6730c781a0b4b055dcccfb56ff9c829c90dc4d2aa96cc2bb5bcfa8e442bdd471a7c70c5520bef994592e8f1a5b46831df4039efb5358c2e0ab83413 SHA512 6cf8536c24aa3a6e889214ef6133eb18fdbe1e7c371323cad07aa63b0e1f4414ba13d5fa7b63c12dfefe60e2e544488ced107571f678a06eb094a3e19b377ea8
780 -DIST VirtualBox-5.2.10.tar.bz2 118575607 BLAKE2B 46360d63cf6d1b8744016cbb2c1eee1d57ebafc45f8b32782c7216fc547f24af4c7205b4e7c34d24cd7faf7e8ce4ea8373ad4a310040a6ef9b043a8ce2300f94 SHA512 1e6d5e5c6ce45d9a3864860819f6301c192c83be154c674cfb37c98506db88a8f70526ec05d115c53e40c4c91d243513f0a3196261c7dee244a18091b2e5717e
781 DIST VirtualBox-5.2.12.tar.bz2 118612426 BLAKE2B 685c400ef82de14891d9cc42e94e8c0de270a57d6e69820d45cf7fda0ef32d78d4c2670b4a2b89003d58035ee50d648d7906e58d99a96d40c24ee2fa51a317c9 SHA512 083219501d0103d1060cd470cad5a29a348341abf92c1caccf10e7fcfcf0db163e95d6624614d327dda7500d638d3038634fa8a3c1c441a6ee8de9e4f51325d2
782 DIST VirtualBox-5.2.14.tar.bz2 118597539 BLAKE2B 5e0a8d92405378eb438cae375041609f7a0e1288b040d3a0bcc06157f16ddd48b3537f2f026aa12a71c5319bdef56d6f3907785ac51ebe05a8b7143e04f22d0a SHA512 b8202eccd83e9f2c92a77548d003082b6b3ff7838bb32ae48c3a25dcd622bfdc8ceca42cc49b855eeabf4439c55ad42df9b3959dd1bab77de154468e139c904e
783 DIST virtualbox-5.1.32-patches-01.tar.xz 2464 BLAKE2B 28f461634ac7f200b74d961e56f56aea486445bdb8d1490000bd34393b4873ee058d1dc9db6c32084921bd7d51a92be1e38b1b098385f443f41b9231c1489829 SHA512 08782c8eecc0cbb370f21fb3951af449ed1c8174a7184210de376a7d4ca5d64b14b2619d121aacef1c85982c8b485e545e260d3c0fc1f95769093efa23cd2cd2
784 -DIST virtualbox-5.2.0-patches-01.tar.xz 2460 BLAKE2B d3f973dc7ee0557c360f801c3bf84065a7e7bc9960984398b8f86d71fab32c59774e970c6cf873be07bcb9666af168570e8a78705a5999b1fc5d863dbbc6e538 SHA512 b91278dd81a50e412f5a281c72949f591a1c53303080549b74b28763cab9e3948948afb0256e0453d17736683cca3372a8e9c6d63f02f3eff3ef92c2a1ea332b
785 DIST virtualbox-5.2.12-patches-01.tar.xz 2616 BLAKE2B 5731484d185414d83588ee227bbc1eef266451d1a3a710adf1b769cd6404ef1750dba7a60549f2ab9f3fb81ef15809db9ea0190127caefc72d7bc9bb8b741fb0 SHA512 712b55392a8e8357e95abb42ea4f8dac3391ecbf9cbecf27c7dbf674c40f42a1eb19d227a1b3adcf621384a9f64a6438d20fb43866c736189097fb5770c5c654
786
787 diff --git a/app-emulation/virtualbox/virtualbox-5.2.10.ebuild b/app-emulation/virtualbox/virtualbox-5.2.10.ebuild
788 deleted file mode 100644
789 index 9286de0063a..00000000000
790 --- a/app-emulation/virtualbox/virtualbox-5.2.10.ebuild
791 +++ /dev/null
792 @@ -1,468 +0,0 @@
793 -# Copyright 1999-2018 Gentoo Foundation
794 -# Distributed under the terms of the GNU General Public License v2
795 -
796 -EAPI=6
797 -
798 -PYTHON_COMPAT=( python2_7 )
799 -inherit flag-o-matic java-pkg-opt-2 linux-info multilib pax-utils python-single-r1 tmpfiles toolchain-funcs udev xdg-utils
800 -
801 -MY_PV="${PV/beta/BETA}"
802 -MY_PV="${MY_PV/rc/RC}"
803 -MY_P=VirtualBox-${MY_PV}
804 -
805 -DESCRIPTION="Family of powerful x86 virtualization products for enterprise and home use"
806 -HOMEPAGE="https://www.virtualbox.org/"
807 -SRC_URI="https://download.virtualbox.org/virtualbox/${MY_PV}/${MY_P}.tar.bz2
808 - https://dev.gentoo.org/~polynomial-c/${PN}/patchsets/${PN}-5.2.0-patches-01.tar.xz"
809 -
810 -LICENSE="GPL-2"
811 -SLOT="0"
812 -KEYWORDS="~amd64 ~x86"
813 -IUSE="alsa debug doc headless java libressl lvm pam pax_kernel pulseaudio +opengl python +qt5 +sdk +udev vboxwebsrv vnc"
814 -
815 -RDEPEND="!app-emulation/virtualbox-bin
816 - ~app-emulation/virtualbox-modules-${PV}
817 - dev-libs/libIDL
818 - >=dev-libs/libxslt-1.1.19
819 - net-misc/curl
820 - dev-libs/libxml2
821 - media-libs/libpng:0=
822 - media-libs/libvpx:0=
823 - sys-libs/zlib
824 - !headless? (
825 - media-libs/libsdl:0[X,video]
826 - x11-libs/libX11
827 - x11-libs/libXcursor
828 - x11-libs/libXext
829 - x11-libs/libXmu
830 - x11-libs/libXt
831 - opengl? ( virtual/opengl media-libs/freeglut )
832 - qt5? (
833 - dev-qt/qtcore:5
834 - dev-qt/qtgui:5
835 - dev-qt/qtprintsupport:5
836 - dev-qt/qtwidgets:5
837 - dev-qt/qtx11extras:5
838 - opengl? ( dev-qt/qtopengl:5 )
839 - x11-libs/libXinerama
840 - )
841 - )
842 - libressl? ( dev-libs/libressl:= )
843 - !libressl? ( dev-libs/openssl:0= )
844 - lvm? ( sys-fs/lvm2 )
845 - udev? ( >=virtual/udev-171 )
846 - vnc? ( >=net-libs/libvncserver-0.9.9 )"
847 -DEPEND="${RDEPEND}
848 - >=dev-util/kbuild-0.1.9998.3127
849 - >=dev-lang/yasm-0.6.2
850 - sys-devel/bin86
851 - sys-libs/libcap
852 - sys-power/iasl
853 - virtual/pkgconfig
854 - alsa? ( >=media-libs/alsa-lib-1.0.13 )
855 - doc? (
856 - app-text/docbook-sgml-dtd:4.4
857 - dev-texlive/texlive-basic
858 - dev-texlive/texlive-latex
859 - dev-texlive/texlive-latexrecommended
860 - dev-texlive/texlive-latexextra
861 - dev-texlive/texlive-fontsrecommended
862 - dev-texlive/texlive-fontsextra
863 - )
864 - !headless? ( x11-libs/libXinerama )
865 - java? ( >=virtual/jdk-1.6 )
866 - pam? ( sys-libs/pam )
867 - pax_kernel? ( sys-apps/elfix )
868 - pulseaudio? ( media-sound/pulseaudio )
869 - qt5? ( dev-qt/linguist-tools:5 )
870 - vboxwebsrv? ( net-libs/gsoap[-gnutls(-)] )
871 - ${PYTHON_DEPS}"
872 -RDEPEND="${RDEPEND}
873 - java? ( >=virtual/jre-1.6 )"
874 -
875 -QA_TEXTRELS_x86="usr/lib/virtualbox-ose/VBoxGuestPropSvc.so
876 - usr/lib/virtualbox/VBoxSDL.so
877 - usr/lib/virtualbox/VBoxSharedFolders.so
878 - usr/lib/virtualbox/VBoxDD2.so
879 - usr/lib/virtualbox/VBoxOGLrenderspu.so
880 - usr/lib/virtualbox/VBoxPython.so
881 - usr/lib/virtualbox/VBoxDD.so
882 - usr/lib/virtualbox/VBoxDDU.so
883 - usr/lib/virtualbox/VBoxREM64.so
884 - usr/lib/virtualbox/VBoxSharedClipboard.so
885 - usr/lib/virtualbox/VBoxHeadless.so
886 - usr/lib/virtualbox/VBoxRT.so
887 - usr/lib/virtualbox/VBoxREM.so
888 - usr/lib/virtualbox/VBoxSettings.so
889 - usr/lib/virtualbox/VBoxKeyboard.so
890 - usr/lib/virtualbox/VBoxSharedCrOpenGL.so
891 - usr/lib/virtualbox/VBoxVMM.so
892 - usr/lib/virtualbox/VirtualBox.so
893 - usr/lib/virtualbox/VBoxOGLhosterrorspu.so
894 - usr/lib/virtualbox/components/VBoxC.so
895 - usr/lib/virtualbox/components/VBoxSVCM.so
896 - usr/lib/virtualbox/components/VBoxDDU.so
897 - usr/lib/virtualbox/components/VBoxRT.so
898 - usr/lib/virtualbox/components/VBoxREM.so
899 - usr/lib/virtualbox/components/VBoxVMM.so
900 - usr/lib/virtualbox/VBoxREM32.so
901 - usr/lib/virtualbox/VBoxPython2_7.so
902 - usr/lib/virtualbox/VBoxXPCOMC.so
903 - usr/lib/virtualbox/VBoxOGLhostcrutil.so
904 - usr/lib/virtualbox/VBoxNetDHCP.so
905 - usr/lib/virtualbox/VBoxNetNAT.so"
906 -
907 -S="${WORKDIR}/${MY_P}"
908 -
909 -REQUIRED_USE="
910 - java? ( sdk )
911 - python? ( sdk )
912 - vboxwebsrv? ( java )
913 - ${PYTHON_REQUIRED_USE}
914 -"
915 -
916 -pkg_setup() {
917 - if ! use headless && ! use qt5 ; then
918 - einfo "No USE=\"qt5\" selected, this build will not include any Qt frontend."
919 - elif use headless && use qt5 ; then
920 - einfo "You selected USE=\"headless qt5\", defaulting to"
921 - einfo "USE=\"headless\", this build will not include any X11/Qt frontend."
922 - fi
923 -
924 - if ! use opengl ; then
925 - einfo "No USE=\"opengl\" selected, this build will lack"
926 - einfo "the OpenGL feature."
927 - fi
928 - if ! use python ; then
929 - einfo "You have disabled the \"python\" USE flag. This will only"
930 - einfo "disable the python bindings being installed."
931 - fi
932 - java-pkg-opt-2_pkg_setup
933 - python-single-r1_pkg_setup
934 -
935 - tc-ld-disable-gold #bug 488176
936 - tc-export CC CXX LD AR RANLIB
937 - export HOST_CC="$(tc-getBUILD_CC)"
938 -}
939 -
940 -src_prepare() {
941 - # Remove shipped binaries (kBuild,yasm), see bug #232775
942 - rm -r kBuild/bin tools || die
943 -
944 - # Replace pointless GCC version check with something less stupid.
945 - # This is needed for the qt5 version check.
946 - sed -e 's@^check_gcc$@cc_maj="$(gcc -dumpversion | cut -d. -f1)" ; cc_min="$(gcc -dumpversion | cut -d. -f2)"@' \
947 - -i configure || die
948 -
949 - # Don't use "echo -n"
950 - sed 's@ECHO_N="echo -n"@ECHO_N="printf"@' -i configure || die
951 -
952 - # Disable things unused or split into separate ebuilds
953 - sed -e "s@MY_LIBDIR@$(get_libdir)@" \
954 - "${FILESDIR}"/${PN}-5-localconfig > LocalConfig.kmk || die
955 -
956 - # Respect LDFLAGS
957 - sed -e "s@_LDFLAGS\.${ARCH}*.*=@& ${LDFLAGS}@g" \
958 - -i Config.kmk src/libs/xpcom18a4/Config.kmk || die
959 -
960 - # Do not use hard-coded ld (related to bug #488176)
961 - sed -e '/QUIET)ld /s@ld @$(LD) @' \
962 - -i src/VBox/Devices/PC/ipxe/Makefile.kmk || die
963 -
964 - # Use PAM only when pam USE flag is enbaled (bug #376531)
965 - if ! use pam ; then
966 - elog "Disabling PAM removes the possibility to use the VRDP features."
967 - sed -i 's@^.*VBOX_WITH_PAM@#VBOX_WITH_PAM@' Config.kmk || die
968 - sed -i 's@\(.*/auth/Makefile.kmk.*\)@#\1@' \
969 - src/VBox/HostServices/Makefile.kmk || die
970 - fi
971 -
972 - # add correct java path
973 - if use java ; then
974 - sed "s@/usr/lib/jvm/java-6-sun@$(java-config -O)@" \
975 - -i "${S}"/Config.kmk || die
976 - java-pkg-opt-2_src_prepare
977 - fi
978 -
979 - # Only add nopie patch when we're on hardened
980 - if gcc-specs-pie ; then
981 - eapply "${FILESDIR}/050_virtualbox-5.2.8-nopie.patch"
982 - fi
983 -
984 - # Only add paxmark patch when we're on pax_kernel
985 - if use pax_kernel ; then
986 - eapply "${FILESDIR}"/virtualbox-5.2.8-paxmark-bldprogs.patch
987 - fi
988 -
989 - eapply "${WORKDIR}/patches"
990 -
991 - eapply_user
992 -}
993 -
994 -src_configure() {
995 - local myconf=(
996 - --with-gcc="$(tc-getCC)"
997 - --with-g++="$(tc-getCXX)"
998 - --disable-dbus
999 - --disable-kmods
1000 - $(usex alsa '' --disable-alsa)
1001 - $(usex debug --build-debug '')
1002 - $(usex doc '' --disable-docs)
1003 - $(usex java '' --disable-java)
1004 - $(usex lvm '' --disable-devmapper)
1005 - $(usex pulseaudio '' --disable-pulse)
1006 - $(usex python '' --disable-python)
1007 - $(usex vboxwebsrv --enable-webservice '')
1008 - $(usex vnc --enable-vnc '')
1009 - )
1010 - if ! use headless ; then
1011 - myconf+=(
1012 - $(usex opengl '' --disable-opengl)
1013 - $(usex qt5 '' --disable-qt)
1014 - )
1015 - else
1016 - myconf+=(
1017 - --build-headless
1018 - --disable-opengl
1019 - )
1020 - fi
1021 - if use amd64 && ! has_multilib_profile ; then
1022 - myconf+=( --disable-vmmraw )
1023 - fi
1024 - # not an autoconf script
1025 - ./configure ${myconf[@]} || die "configure failed"
1026 -}
1027 -
1028 -src_compile() {
1029 - source ./env.sh || die
1030 -
1031 - # Force kBuild to respect C[XX]FLAGS and MAKEOPTS (bug #178529)
1032 - MAKEJOBS=$(grep -Eo '(\-j|\-\-jobs)(=?|[[:space:]]*)[[:digit:]]+' <<< ${MAKEOPTS}) #'
1033 - MAKELOAD=$(grep -Eo '(\-l|\-\-load-average)(=?|[[:space:]]*)[[:digit:]]+' <<< ${MAKEOPTS}) #'
1034 - MAKEOPTS="${MAKEJOBS} ${MAKELOAD}"
1035 - MAKE="kmk" emake \
1036 - VBOX_BUILD_PUBLISHER=_Gentoo \
1037 - TOOL_GCC3_CC="$(tc-getCC)" TOOL_GCC3_CXX="$(tc-getCXX)" \
1038 - TOOL_GCC3_AS="$(tc-getCC)" TOOL_GCC3_AR="$(tc-getAR)" \
1039 - TOOL_GCC3_LD="$(tc-getCXX)" TOOL_GCC3_LD_SYSMOD="$(tc-getLD)" \
1040 - TOOL_GCC3_CFLAGS="${CFLAGS}" TOOL_GCC3_CXXFLAGS="${CXXFLAGS}" \
1041 - VBOX_GCC_OPT="${CXXFLAGS}" \
1042 - TOOL_YASM_AS=yasm KBUILD_VERBOSE=2 \
1043 - all
1044 -}
1045 -
1046 -src_install() {
1047 - local binpath="release"
1048 - use debug && binpath="debug"
1049 - cd "${S}"/out/linux.${ARCH}/${binpath}/bin || die
1050 -
1051 - local vbox_inst_path="/usr/$(get_libdir)/${PN}" each fwfile size ico icofile
1052 -
1053 - vbox_inst() {
1054 - local binary="${1}"
1055 - local perms="${2:-0750}"
1056 - local path="${3:-${vbox_inst_path}}"
1057 -
1058 - [[ -n "${binary}" ]] || die "vbox_inst: No binray given!"
1059 - [[ ${perms} =~ ^[[:digit:]]+{4}$ ]] || die "vbox_inst: perms must consist of four digits."
1060 -
1061 - insinto ${path}
1062 - doins ${binary}
1063 - fowners root:vboxusers ${path}/${binary}
1064 - fperms ${perms} ${path}/${binary}
1065 - }
1066 -
1067 - # Create configuration files
1068 - insinto /etc/vbox
1069 - newins "${FILESDIR}/${PN}-4-config" vbox.cfg
1070 -
1071 - # Set the correct libdir
1072 - sed \
1073 - -e "s@MY_LIBDIR@$(get_libdir)@" \
1074 - -i "${D}"/etc/vbox/vbox.cfg || die "vbox.cfg sed failed"
1075 -
1076 - # Install the wrapper script
1077 - exeinto ${vbox_inst_path}
1078 - newexe "${FILESDIR}/${PN}-ose-5-wrapper" "VBox"
1079 - fowners root:vboxusers ${vbox_inst_path}/VBox
1080 - fperms 0750 ${vbox_inst_path}/VBox
1081 -
1082 - # Install binaries and libraries
1083 - insinto ${vbox_inst_path}
1084 - doins -r components
1085 -
1086 - # *.rc files for x86_64 are only available on multilib systems
1087 - local rcfiles="*.rc"
1088 - if use amd64 && ! has_multilib_profile ; then
1089 - rcfiles=""
1090 - fi
1091 - for each in VBox{ExtPackHelperApp,Manage,SVC,Tunctl,XPCOMIPCD} *so *r0 ${rcfiles} ; do
1092 - vbox_inst ${each}
1093 - done
1094 -
1095 - # These binaries need to be suid root.
1096 - for each in VBox{Headless,Net{AdpCtl,DHCP,NAT}} ; do
1097 - vbox_inst ${each} 4750
1098 - done
1099 -
1100 - # Install EFI Firmware files (bug #320757)
1101 - pushd "${S}"/src/VBox/Devices/EFI/FirmwareBin &>/dev/null || die
1102 - for fwfile in VBoxEFI{32,64}.fd ; do
1103 - vbox_inst ${fwfile} 0644
1104 - done
1105 - popd &>/dev/null || die
1106 -
1107 - # VBoxSVC and VBoxManage need to be pax-marked (bug #403453)
1108 - # VBoxXPCOMIPCD (bug #524202)
1109 - for each in VBox{Headless,Manage,SVC,XPCOMIPCD} ; do
1110 - pax-mark -m "${D}"${vbox_inst_path}/${each}
1111 - done
1112 -
1113 - # Symlink binaries to the shipped wrapper
1114 - for each in vbox{headless,manage} VBox{Headless,Manage,VRDP} ; do
1115 - dosym ${vbox_inst_path}/VBox /usr/bin/${each}
1116 - done
1117 - dosym ${vbox_inst_path}/VBoxTunctl /usr/bin/VBoxTunctl
1118 -
1119 - if use pam ; then
1120 - # VRDPAuth only works with this (bug #351949)
1121 - dosym VBoxAuth.so ${vbox_inst_path}/VRDPAuth.so
1122 - fi
1123 -
1124 - # set an env-variable for 3rd party tools
1125 - echo -n "VBOX_APP_HOME=${vbox_inst_path}" > "${T}/90virtualbox"
1126 - doenvd "${T}/90virtualbox"
1127 -
1128 - if ! use headless ; then
1129 - vbox_inst VBoxSDL 4750
1130 - pax-mark -m "${D}"${vbox_inst_path}/VBoxSDL
1131 -
1132 - for each in vboxsdl VBoxSDL ; do
1133 - dosym ${vbox_inst_path}/VBox /usr/bin/${each}
1134 - done
1135 -
1136 - if use qt5 ; then
1137 - vbox_inst VirtualBox 4750
1138 - pax-mark -m "${D}"${vbox_inst_path}/VirtualBox
1139 -
1140 - if use opengl ; then
1141 - vbox_inst VBoxTestOGL
1142 - pax-mark -m "${D}"${vbox_inst_path}/VBoxTestOGL
1143 - fi
1144 -
1145 - for each in virtualbox VirtualBox ; do
1146 - dosym ${vbox_inst_path}/VBox /usr/bin/${each}
1147 - done
1148 -
1149 - insinto /usr/share/${PN}
1150 - doins -r nls
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 "${D}${vbox_inst_path}/sdk/bindings/xpcom/java/vboxjxpcom.jar"
1185 - java-pkg_regso "${D}${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 - xdg_desktop_database_update
1218 -
1219 - if use udev ; then
1220 - udevadm control --reload-rules \
1221 - && udevadm trigger --subsystem-match=usb
1222 - fi
1223 -
1224 - tmpfiles_process /usr/lib/tmpfiles.d/virtualbox-vboxusb.conf
1225 -
1226 - if ! use headless && use qt5 ; then
1227 - elog "To launch VirtualBox just type: \"virtualbox\"."
1228 - fi
1229 - elog "You must be in the vboxusers group to use VirtualBox."
1230 - elog ""
1231 - elog "The latest user manual is available for download at:"
1232 - elog "http://download.virtualbox.org/virtualbox/${PV}/UserManual.pdf"
1233 - elog ""
1234 - elog "For advanced networking setups you should emerge:"
1235 - elog "net-misc/bridge-utils and sys-apps/usermode-utilities"
1236 - elog ""
1237 - elog "Starting with version 4.0.0, ${PN} has USB-1 support."
1238 - elog "For USB-2 support, PXE-boot ability and VRDP support please emerge"
1239 - elog " app-emulation/virtualbox-extpack-oracle"
1240 - elog "package."
1241 - elog "Starting with version 5.0.0, ${PN} no longer has the \"additions\" and"
1242 - elog "the \"extension\" USE flag. For installation of the guest additions ISO"
1243 - elog "image, please emerge"
1244 - elog " app-emulation/virtualbox-additions"
1245 - elog "and for the USB2, USB3, VRDP and PXE boot ROM modules, please emerge"
1246 - elog " app-emulation/virtualbox-extpack-oracle"
1247 - if ! use udev ; then
1248 - elog ""
1249 - elog "WARNING!"
1250 - elog "Without USE=udev, USB devices will likely not work in ${PN}."
1251 - elif [ -e "${ROOT%/}/etc/udev/rules.d/10-virtualbox.rules" ] ; then
1252 - elog ""
1253 - elog "Please remove \"${ROOT%/}/etc/udev/rules.d/10-virtualbox.rules\""
1254 - elog "or else USB in ${PN} won't work."
1255 - fi
1256 -}
1257 -
1258 -pkg_postrm() {
1259 - xdg_desktop_database_update
1260 -}