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