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: x11-drivers/xf86-video-virtualbox/, app-emulation/virtualbox-additions/, ...
Date: Tue, 17 Oct 2017 09:13:41
Message-Id: 1508231546.d7e5ba6b61d6464079306a454e84b49dc0386664.polynomial-c@gentoo
1 commit: d7e5ba6b61d6464079306a454e84b49dc0386664
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Tue Oct 17 09:12:26 2017 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Tue Oct 17 09:12:26 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d7e5ba6b
7
8 virtualbox packages: removed old.
9
10 Package-Manager: Portage-2.3.11, Repoman-2.3.3
11
12 app-emulation/virtualbox-additions/Manifest | 2 -
13 .../virtualbox-additions-5.0.16.ebuild | 35 --
14 .../virtualbox-additions-5.0.40.ebuild | 35 --
15 app-emulation/virtualbox-bin/Manifest | 8 -
16 .../virtualbox-bin-5.0.16.105871-r1.ebuild | 356 -----------------
17 .../virtualbox-bin-5.0.40.115130.ebuild | 287 --------------
18 app-emulation/virtualbox-extpack-oracle/Manifest | 1 -
19 .../virtualbox-extpack-oracle-5.0.40.115130.ebuild | 42 --
20 app-emulation/virtualbox-guest-additions/Manifest | 2 -
21 .../virtualbox-guest-additions-5.0.16.ebuild | 216 ----------
22 .../virtualbox-guest-additions-5.0.40.ebuild | 218 -----------
23 app-emulation/virtualbox-modules/Manifest | 2 -
24 .../virtualbox-modules-5.0.16.ebuild | 64 ---
25 .../virtualbox-modules-5.0.40.ebuild | 64 ---
26 app-emulation/virtualbox/Manifest | 4 -
27 .../virtualbox/virtualbox-5.0.16-r1.ebuild | 431 --------------------
28 app-emulation/virtualbox/virtualbox-5.0.40.ebuild | 435 ---------------------
29 x11-drivers/xf86-video-virtualbox/Manifest | 2 -
30 .../xf86-video-virtualbox-3-vboxvideo_drm.makefile | 240 ------------
31 ...ideo-virtualbox-5.1.4-Makefile.module.kms.patch | 11 -
32 .../xf86-video-virtualbox-5.0.16.ebuild | 181 ---------
33 .../xf86-video-virtualbox-5.0.40.ebuild | 190 ---------
34 22 files changed, 2826 deletions(-)
35
36 diff --git a/app-emulation/virtualbox-additions/Manifest b/app-emulation/virtualbox-additions/Manifest
37 index e1d62631780..b629024b778 100644
38 --- a/app-emulation/virtualbox-additions/Manifest
39 +++ b/app-emulation/virtualbox-additions/Manifest
40 @@ -1,5 +1,3 @@
41 -DIST VBoxGuestAdditions_5.0.16.iso 60063744 SHA256 8190f1e4031f8195971c2a97d2d3b1cf2d86fc83219f750d05cee9255c7dad85 SHA512 8a9d3fcb96a450163f357b92f8149f58700ec65c127fb872b103554417979fbe624a9e1bced3bb6cbf4b0bb6a5c3bbcae9581836cc5d3fde7a034d4032e519f9 WHIRLPOOL 89ed9064014a715a892388b5dbe3c4b577a5a813580be4fd2bd604672354f258b00a619980ba1369aeaceff6a77c6d370cc2b6bf3c17d2cd73a5c8fc9dcad1e8
42 -DIST VBoxGuestAdditions_5.0.40.iso 58466304 SHA256 df3a1849fe796b476b1095576fd72a27fd3f253d4770a2fb6bc792593ed9726b SHA512 f92dc50cfa0be3583c1b15e041d73948fba4d2a83dfd1a7a750feecede13a00e70b641da03533dd0f23f520cc5778cfeb824b3d8455042dcc85ee4f677f3d699 WHIRLPOOL 5e9d0a01bb1a065789b9a16416dde0156c9e3a0b28161f2944ad143e00905a2e328c93e2301f73ad518bac9c50dd5d3b946e1676fa3465a84f5c68bb52d56083
43 DIST VBoxGuestAdditions_5.1.26.iso 59496448 SHA256 6df8c8ab6e7ac3a70a5e29116f8a5dcdb7dfbd0b226ef849a5cd9502e956b06f SHA512 5329ce9bb787efed088a9f89412974cef3a982a351c0053b3daf15a9c95c55f99556e2b86cdcd39c168042503eb00eaa83fb99f8f5c4c97d177dd2b61bb33f5d WHIRLPOOL d8c2bd468673a0d9cee9b7f3630a6581c8124cd4b6bfe942b69ceff70cfa7096b7c1e947a86ed4fd00d7d4dac3eeae52b55bbed4bbb9c3268dd864fcd53068e9
44 DIST VBoxGuestAdditions_5.1.28.iso 59494400 SHA256 66824ee3a0373da62b15f6687a68e2305d7e62d700e538cf32705227bb38c46d SHA512 68a1bcaa658bff040d18c5d59fe20bb0e6155186bdaea5cf30d673d8356fa33087a23280f3d571742ca1c144caef421d0c32a080fee0cb05c6046f361fbe2785 WHIRLPOOL 539994c2fa2271e425ba6b517e69906684f8a3d730899433d5de8ad5722152889fc3390035e66dd64646a9f10c611074cf95f820294a17e398c581b094536cb0
45 DIST VBoxGuestAdditions_5.1.30.iso 59494400 SHA256 631ca8e8d513acf43a75de56a71a31aaffb5624864c57d10346ba657d991ec1e SHA512 3205444339a0c85a3b234ba462add21033b5b3eee18eecc15b150b21f5f9f1aadb92b7049bef6be1201e1acfd1edd6f2924c38d56a52770113c8401bcca9abcb WHIRLPOOL 1a42d9eb4656019dda446a396081d43e04512968a0c9c77858658a0af696d3ed93219609a0070c0b2708f9e6445ba676fb7c88f4f37d29d13c68331971a7434b
46
47 diff --git a/app-emulation/virtualbox-additions/virtualbox-additions-5.0.16.ebuild b/app-emulation/virtualbox-additions/virtualbox-additions-5.0.16.ebuild
48 deleted file mode 100644
49 index faae31d217c..00000000000
50 --- a/app-emulation/virtualbox-additions/virtualbox-additions-5.0.16.ebuild
51 +++ /dev/null
52 @@ -1,35 +0,0 @@
53 -# Copyright 1999-2016 Gentoo Foundation
54 -# Distributed under the terms of the GNU General Public License v2
55 -
56 -EAPI=6
57 -
58 -inherit eutils
59 -
60 -MY_PN=VBoxGuestAdditions
61 -MY_PV="${PV/beta/BETA}"
62 -MY_PV="${MY_PV/rc/RC}"
63 -MY_P=${MY_PN}_${MY_PV}
64 -
65 -DESCRIPTION="CD image containing guest additions for VirtualBox"
66 -HOMEPAGE="http://www.virtualbox.org/"
67 -SRC_URI="http://download.virtualbox.org/virtualbox/${MY_PV}/${MY_P}.iso"
68 -
69 -LICENSE="GPL-2+ LGPL-2.1+ MIT SGI-B-2.0 CDDL"
70 -SLOT="0"
71 -KEYWORDS="~amd64 ~x86"
72 -IUSE=""
73 -RESTRICT="mirror"
74 -
75 -RDEPEND="!app-emulation/virtualbox-bin
76 - !=app-emulation/virtualbox-9999"
77 -
78 -S="${WORKDIR}"
79 -
80 -src_unpack() {
81 - return 0
82 -}
83 -
84 -src_install() {
85 - insinto /usr/share/${PN/-additions}
86 - newins "${DISTDIR}"/${MY_P}.iso ${MY_PN}.iso
87 -}
88
89 diff --git a/app-emulation/virtualbox-additions/virtualbox-additions-5.0.40.ebuild b/app-emulation/virtualbox-additions/virtualbox-additions-5.0.40.ebuild
90 deleted file mode 100644
91 index 4fd01d14b29..00000000000
92 --- a/app-emulation/virtualbox-additions/virtualbox-additions-5.0.40.ebuild
93 +++ /dev/null
94 @@ -1,35 +0,0 @@
95 -# Copyright 1999-2017 Gentoo Foundation
96 -# Distributed under the terms of the GNU General Public License v2
97 -
98 -EAPI=6
99 -
100 -inherit eutils
101 -
102 -MY_PN=VBoxGuestAdditions
103 -MY_PV="${PV/beta/BETA}"
104 -MY_PV="${MY_PV/rc/RC}"
105 -MY_P=${MY_PN}_${MY_PV}
106 -
107 -DESCRIPTION="CD image containing guest additions for VirtualBox"
108 -HOMEPAGE="http://www.virtualbox.org/"
109 -SRC_URI="http://download.virtualbox.org/virtualbox/${MY_PV}/${MY_P}.iso"
110 -
111 -LICENSE="GPL-2+ LGPL-2.1+ MIT SGI-B-2.0 CDDL"
112 -SLOT="0"
113 -KEYWORDS="amd64 x86"
114 -IUSE=""
115 -RESTRICT="mirror"
116 -
117 -RDEPEND="!app-emulation/virtualbox-bin
118 - !=app-emulation/virtualbox-9999"
119 -
120 -S="${WORKDIR}"
121 -
122 -src_unpack() {
123 - return 0
124 -}
125 -
126 -src_install() {
127 - insinto /usr/share/${PN/-additions}
128 - newins "${DISTDIR}"/${MY_P}.iso ${MY_PN}.iso
129 -}
130
131 diff --git a/app-emulation/virtualbox-bin/Manifest b/app-emulation/virtualbox-bin/Manifest
132 index 4164764eff5..241a56a9ca3 100644
133 --- a/app-emulation/virtualbox-bin/Manifest
134 +++ b/app-emulation/virtualbox-bin/Manifest
135 @@ -1,20 +1,12 @@
136 -DIST Oracle_VM_VirtualBox_Extension_Pack-5.0.16-105871.tar.gz 16896587 SHA256 c234e158c49f4f92c38e41918c117d756a81236ff1030a896e44faf88284ecc7 SHA512 39a7c6726e57c89a970e771f80369617c95e154498174deed025ca953e85197981215dd1250317285213a8e9bf6b7140e06311bd6df464613bfe90a37ef1c3c8 WHIRLPOOL 8bdf4a499e8d2d463249fb98ea35ee3a91d81004418e171396c0a26d91f3de9eda6fe632a1d85df58e1de1c32c5c939a365277ad836c685f83600277bd7282bf
137 -DIST Oracle_VM_VirtualBox_Extension_Pack-5.0.40-115130.tar.gz 19050961 SHA256 ebb29de8962d60760a2f25c318833a1fe163368b824b6b26802b6b284af70585 SHA512 fb27a8efa376b2a51558e0a8dfcb87a7116e950783030c1aab996675c776c46cdf4d4ff35d111f925f6b2b4c6fd070ff80a971fd2f6ce77b857b17898950f5a3 WHIRLPOOL db1ba8492abf791f2244d12b7a62643c02c8c7999c607464e117cc42360c876d9ee83d36ea8860e18912b52171d12291d93fdcc3d3ff18ff05c2b3a4cea5373c
138 DIST Oracle_VM_VirtualBox_Extension_Pack-5.1.26-117224.tar.gz 19624237 SHA256 14f152228495a715f526eb74134d43c960919cc534d2bc67cfe34a63e6cf7721 SHA512 c6e31e8fb26b8ca32c423d14e85e15f6372a030ec40e9f06ce1e1234913d3586cc58d46819684c99cf3ced37f35d0a964339199cad5cf43580c88bf1afa63ef6 WHIRLPOOL 9b0ceb8ab21ce54a199ac312879ae4bf17b5bbf3bae6d28035436ae8dd8295ea6fa1d8bb3fc095867a017fdcc357b630436dca46d4875bcdd2aad1ce0cfd9d9f
139 DIST Oracle_VM_VirtualBox_Extension_Pack-5.1.28-117968.tar.gz 19626161 SHA256 1a2551b204bd53a252a75a4653b983427bb15d473bc77b14149c7870ce049871 SHA512 71c6ce267c14303bbd9e386ea849d37aeb569afff848054deced4c74fd6fffca83c96b392d066f684b7101a786cc7d24cf9308114c08cbb77b26bb07bf23fcf8 WHIRLPOOL c6fd42f422dca4db4165ff18da0054aff5c0d275850dec4002fb70e8e4248f8f5cffc87697b0802343ebff29cf62938f298df365f9ce19523092d418206deff9
140 DIST Oracle_VM_VirtualBox_Extension_Pack-5.1.30-118389.tar.gz 19624724 SHA256 2da095e32f85fe5a1fe943158e079bd5aecb2724691c4038bd619ddee967b288 SHA512 6b468879f0fb6d6f916c40fb60f418457c526c20ebb1a6253bfc38392e0ae965e3b54590173b0d974070ced1646db82035950fb7dd54b22e20f4ad29850d6cf4 WHIRLPOOL e66bcfae1f022119e58c819094a79acafe4534278a8cf7d242e0355b6bcd045e7b6697c07ecb0f2dd4924fadf2996d8a5e01fbf2d17e38ed74a120dbc578969c
141 -DIST VirtualBox-5.0.16-105871-Linux_amd64.run 85913042 SHA256 2fc30af485c67162a8f1fafb5a0d9c6cbab4dc17ec362e6d8d2487071b4daa47 SHA512 706159c25ad144a489d7519dcc5a9fa6ee47415bac8fc48bb56fbbe72953f5e65fcdf9d045fbe686520ea676dbf511a19208adfd81f199c804e1b632de581f6b WHIRLPOOL 298235fe47a08136232916b990675b4b26dbab7155fd00c82d2405170fd7d255cfa5f93c07a13a89cdc0a129662f3a14d3386be17e11c02bbd3a564de554bcf3
142 -DIST VirtualBox-5.0.16-105871-Linux_x86.run 84909518 SHA256 46421f6ebed4de2466d32193597fbcfe71c2a89c5fd5ac1493856b509d6259e1 SHA512 a16e5a9ee4c643985d48c6ac8e7224074dd2a775bf05b9ef712fff898962493a2126bb1ced20b5ec525ddd86d0ce6c42c06e286f03758aad5d39d58b87db51a8 WHIRLPOOL dbc4af908d3e2879388426defd733539f3bbff10a4f957858f42ae7c328a5cbd0480667b50777a69e860be475d8c66a392badb79503d9f22c267688edc6a1e4e
143 -DIST VirtualBox-5.0.40-115130-Linux_amd64.run 84571603 SHA256 f633e88b22470b36b4586fbc8a14e0ee99dad5e094cb1ed73a77016fdbc616c8 SHA512 51e23c3b5eed256e799f9cd6be950a00d0c4f57276d8554cad8c1beb6310ee8625b6eaa364d47dab54274ef0ebd37114d3c6a1312313dce748ca9c985e08b59c WHIRLPOOL 2d6f465cee91be4637c84d65655c0b3c667d6f88af85c3c4b577ad416136d99094ad0fa089314730f7dce89224ed99f5be4ad6fd35db8bc2c23d1e0826400e76
144 -DIST VirtualBox-5.0.40-115130-Linux_x86.run 83793358 SHA256 1371ae3ceec0f2af5e31e569eab1ffd405a75bbf6fb8889a836d07167806d6cd SHA512 98f249e6a461b40856231f31ceb0914093dd97e513ff01fbeb308cb9d0e5d1fee98e69a9f5c1f73c082676c3273517ff2a1f3c658e57035c5d8d6b0cc0627a6b WHIRLPOOL f659c4edd9fa16e532f1c1729a2044b3ebb3a56c9d087c2310c0443e95545d96640b31b9f06f55529c765f4d52b835e528c3914e3a09d58f5cc62aa5cc4b9864
145 DIST VirtualBox-5.1.26-117224-Linux_amd64.run 87981522 SHA256 be541c9ad60655b436bb27dc91c482e2e1485da4fc0e632ec92bfbed625a48ed SHA512 9b486fd52918469fdffaa39bbef234d22fad9d3b562fa04443bf6c1040e744db6dc9bd103ead299127b82c5d4bc96c1e05f677cacd623affa6569408c8d26df5 WHIRLPOOL 3c3c7b8254f85223f06cdfdea6cb0cb982222889b899018ea03a6e7807243f5e85ec37ef4a5f829dc09d1fa0123c1c28738b0d1826cd381d4b550360efd9a268
146 DIST VirtualBox-5.1.26-117224-Linux_x86.run 87090639 SHA256 05f82b704558efdda8a9c569b52fcf761793a54e8405d062fd20a4a56fffd5da SHA512 3aafad5374dc79c0fdd9bf1da6708ae4ce2f43d9fce3222326424bf03d6b73a7283ba5ebeb01a9ab6b24eeb8a8ec7c23af84e40f3edeb512c2101c329f4091e7 WHIRLPOOL 58c4ff741fed816f08c44af68eaae4fe0d206c59ea1300975d754781a44a8ab513054b5601cc23caefa7fbeb950bc41e8d544e6008e2de377e25661fadc9f9e1
147 DIST VirtualBox-5.1.28-117968-Linux_amd64.run 88391123 SHA256 c3cbc56f5df1ff45c68094066dfc677d4d4f51f5df627b33a4d253db00ce12e4 SHA512 e84f002ed4804533832dfcc65f12ad4e72d6693de5af62bf26b702d19d8f17511335415968eac44ee3d98e87d5137c0004afa213b0bf75b89699cbe3bc20097c WHIRLPOOL cc686f6ed52a081e178aad6748703cd56f09adeac690f8a0ef9bb9aa1e3db394ad9e1187826d3f7b0d3a52df0314df82efcddd1fec2e9e72d968ab49b6687be6
148 DIST VirtualBox-5.1.28-117968-Linux_x86.run 87582159 SHA256 8e9399547355eecc09b5866bc79813dcad9013172d09bca9e8f8aad01556f164 SHA512 96491961bfae60671b40f591151da26dab3135feaa3b9cf3838d7e74104cb4ae716eb5ff76ab75683c98ffba840cacaa045fa959f8e4eb4ab976801d38ebb917 WHIRLPOOL 287455f57191c8c567e34ba7047540cf443416fbdf4cb7e887d50582c15c9b31567871ee2112f782f513ae03584c95a3769596dc9ef5b8fe64030d71b41ab32a
149 DIST VirtualBox-5.1.30-118389-Linux_amd64.run 88186323 SHA256 8c6d8593cc1072f15330fa8a06d84ba134e2ca83fb870adb2ae294a0170cf4cc SHA512 b6312abbf5c0e4bf22aca50a81d297a0ed21d5b4b72242e21750ac088c56817dc90ac1ae068dd9006f4f736130510f26f55793b8c09999c590da09908e304280 WHIRLPOOL 9b2075ec937b207129bb3af49c0682f8b7ed7cb10381bc532dec4bc25efafeabecf0f38fbd591c233f4b57ba56a9fa245c55c78f128a2fa3d07c43740d2d2cc3
150 DIST VirtualBox-5.1.30-118389-Linux_x86.run 87397839 SHA256 2d9b7b5f7decf39c0efcbc23dd70ac2a800e3703bb8b74a14643dbf97c6f4fde SHA512 643ef90453e3a6a6d3fbb365176a72de1743230a58ee45f1cb22fd8bb57c9cfe6013ec1ffdb0076a248d1987a1e3fea13ca71ef9ca983cb8e6378d30c76451fb WHIRLPOOL 3ff698d84f18ddb986fcecdb779e07d7b9b1a52792e56f38d0686c97637c27a25b34e775b26bf94295da6192b93798db4cdbb4a47e52d28f1ce0c5bb132095a8
151 -DIST VirtualBoxSDK-5.0.16-105871.zip 9639569 SHA256 df1bd5ed7f7fe9c401555498a1abed6f1f98e001c0069f16d401ccf3afe3061b SHA512 f4e1af1d97a26818722124fbbaffa6d61369b1a5f3b350b749284afdde038802f4a0e93e9bbb4c9ab0f49aad1f4fa19bbc4b0bdb04aa172a433a77a538816e25 WHIRLPOOL 0598061b47e5d0ef775665300ab61ad7b94638d32fb358a9c189536b00b2456ce4c90dfbcc00bac86da736289253e84a3b586b8b7d1da4087db76e8845a8ca33
152 -DIST VirtualBoxSDK-5.0.40-115130.zip 9674379 SHA256 9c27d4963f0afd9e11c0105739720b63df919162dfb6c88c52bb1f0e4f68c8ea SHA512 fc02623b5a4d288e37d8895f936f1552c284be2523762688e62d2fb57d3b2e83a2edb7193d0775bc481282e93242d8a691c408e931c8a42e2945a6507625f5f3 WHIRLPOOL b84f02c03e2de1baa3eda5ebc1d4de82d8c16205a2e624a9ecc7985ed70ccdfa8bc5cf066bcc9066cd4e82722600a76972dc472665ef576e6ac41045f5fa8047
153 DIST VirtualBoxSDK-5.1.26-117224.zip 9860247 SHA256 fb3e7e3cc425bd7ec3555cd4b1db6a69c85ae1744fb7df8060e4884ad26f09e5 SHA512 d2bef837d61bfb35ba550f004345c2c412c2f62da23ffded6dff8aa33281fdce7c0a8f6b70c131b35e04c34ca0a4221bf97a78e65a470c657980572ebedb0774 WHIRLPOOL 098de72faec934092150abe5a75dff3712b8b0e160eaba3c435d0131e323c74f584841ecbb5a14fd5c29fa2495d7717ef29ddad609939de8ad15752a6111cbf9
154 DIST VirtualBoxSDK-5.1.28-117968.zip 9860778 SHA256 8eed55336c3c75bb925af14c720b880e2136cf2530f69ea0f087cd07081d13bf SHA512 d7e365c57a1179ccbba7e695b8b8fc4dcdf36b45fbb199000878ccb161b13208b14ad3fe963f99a9b680cba5a2c562e3d39cf9892acc16879919ddaa4d24c22b WHIRLPOOL 93fe7e6ce03f9be3d2b84c8d53c4632f8c01af5790d8d553fbd08ca45073725d3d961dcb26f4dd6c2c2007305f97a1c5753aaed27b3fb41687a87618887c24da
155 DIST VirtualBoxSDK-5.1.30-118389.zip 9861374 SHA256 294007c48f31c763d2e2427d121eb2beb5f5bcd651adf23263915b2d7ea50e85 SHA512 89d3407860f202329e5958e724b848884a9047f01000090d1000bce22005311b3650c1ef1fb1fc998c29cc77887af856b64a5ac76154408cae7b921860d8a9f1 WHIRLPOOL 6057fa017741153217fa9700247988fc8756e8ab704fe4c9a3da3512ab4704686615fb06291be31c17b4a3a4e52b4df56b88d4c2c02dd172d4c5c1b1e8bf5fd6
156
157 diff --git a/app-emulation/virtualbox-bin/virtualbox-bin-5.0.16.105871-r1.ebuild b/app-emulation/virtualbox-bin/virtualbox-bin-5.0.16.105871-r1.ebuild
158 deleted file mode 100644
159 index d2a692fc802..00000000000
160 --- a/app-emulation/virtualbox-bin/virtualbox-bin-5.0.16.105871-r1.ebuild
161 +++ /dev/null
162 @@ -1,356 +0,0 @@
163 -# Copyright 1999-2017 Gentoo Foundation
164 -# Distributed under the terms of the GNU General Public License v2
165 -
166 -EAPI=5
167 -
168 -PYTHON_COMPAT=( python2_7 )
169 -
170 -inherit eutils xdg-utils gnome2 pax-utils python-r1 udev unpacker versionator
171 -
172 -MAIN_PV="$(get_version_component_range 1-3)"
173 -if [[ ${PV} = *_beta* ]] || [[ ${PV} = *_rc* ]] ; then
174 - MY_PV="${MAIN_PV}_$(get_version_component_range 5)"
175 - MY_PV="${MY_PV/beta/BETA}"
176 - MY_PV="${MY_PV/rc/RC}"
177 -else
178 - MY_PV="${MAIN_PV}"
179 -fi
180 -VBOX_BUILD_ID="$(get_version_component_range 4)"
181 -VBOX_PV="${MY_PV}-${VBOX_BUILD_ID}"
182 -MY_P="VirtualBox-${VBOX_PV}-Linux"
183 -# needed as sometimes the extpack gets another build ID
184 -EXTP_PV="${VBOX_PV}"
185 -EXTP_PN="Oracle_VM_VirtualBox_Extension_Pack"
186 -EXTP_P="${EXTP_PN}-${EXTP_PV}"
187 -# needed as sometimes the SDK gets another build ID
188 -SDK_PV="${VBOX_PV}"
189 -SDK_P="VirtualBoxSDK-${SDK_PV}"
190 -
191 -DESCRIPTION="Family of powerful x86 virtualization products for enterprise and home use"
192 -HOMEPAGE="http://www.virtualbox.org/"
193 -SRC_URI="amd64? ( http://download.virtualbox.org/virtualbox/${MY_PV}/${MY_P}_amd64.run )
194 - x86? ( http://download.virtualbox.org/virtualbox/${MY_PV}/${MY_P}_x86.run )
195 - http://download.virtualbox.org/virtualbox/${MY_PV}/${EXTP_P}.vbox-extpack -> ${EXTP_P}.tar.gz"
196 -
197 -LICENSE="GPL-2 PUEL"
198 -SLOT="0"
199 -KEYWORDS="~amd64 ~x86"
200 -IUSE="+additions +chm headless python vboxwebsrv rdesktop-vrdp"
201 -RESTRICT="mirror"
202 -
203 -if [[ "${PV}" != *beta* ]] ; then
204 - SRC_URI+="
205 - sdk? ( http://download.virtualbox.org/virtualbox/${MY_PV}/${SDK_P}.zip )"
206 - IUSE+=" sdk"
207 -fi
208 -
209 -DEPEND="app-arch/unzip
210 - ${PYTHON_DEPS}"
211 -
212 -RDEPEND="!!app-emulation/virtualbox
213 - !app-emulation/virtualbox-additions
214 - ~app-emulation/virtualbox-modules-${MAIN_PV}
215 - !headless? (
216 - x11-libs/libXcursor
217 - media-libs/libsdl[X]
218 - x11-libs/libXrender
219 - x11-libs/libXfixes
220 - media-libs/libpng
221 - x11-libs/libXi
222 - x11-libs/libXrandr
223 - x11-libs/libXinerama
224 - x11-libs/libXft
225 - media-libs/freetype
226 - media-libs/fontconfig
227 - x11-libs/libXext
228 - dev-libs/glib
229 - chm? ( dev-libs/expat )
230 - )
231 - x11-libs/libXt
232 - dev-libs/libxml2
233 - x11-libs/libXau
234 - x11-libs/libX11
235 - x11-libs/libXmu
236 - x11-libs/libSM
237 - x11-libs/libICE
238 - x11-libs/libXdmcp
239 - ${PYTHON_DEPS}"
240 -
241 -REQUIRED_USE="${PYTHON_REQUIRED_USE}"
242 -S=${WORKDIR}
243 -
244 -QA_TEXTRELS_amd64="opt/VirtualBox/VBoxVMM.so"
245 -QA_TEXTRELS_x86="opt/VirtualBox/VBoxGuestPropSvc.so
246 - opt/VirtualBox/VBoxSDL.so
247 - opt/VirtualBox/VBoxDbg.so
248 - opt/VirtualBox/VBoxSharedFolders.so
249 - opt/VirtualBox/VBoxDD2.so
250 - opt/VirtualBox/VBoxOGLrenderspu.so
251 - opt/VirtualBox/VBoxPython.so
252 - opt/VirtualBox/VBoxPython2_7.so
253 - opt/VirtualBox/VBoxDD.so
254 - opt/VirtualBox/VBoxVRDP.so
255 - opt/VirtualBox/VBoxDDU.so
256 - opt/VirtualBox/VBoxREM64.so
257 - opt/VirtualBox/VBoxSharedClipboard.so
258 - opt/VirtualBox/VBoxHeadless.so
259 - opt/VirtualBox/VBoxRT.so
260 - opt/VirtualBox/VRDPAuth.so
261 - opt/VirtualBox/VBoxREM.so
262 - opt/VirtualBox/VBoxSettings.so
263 - opt/VirtualBox/VBoxKeyboard.so
264 - opt/VirtualBox/VBoxSharedCrOpenGL.so
265 - opt/VirtualBox/VBoxVMM.so
266 - opt/VirtualBox/VirtualBox.so
267 - opt/VirtualBox/VBoxOGLhosterrorspu.so
268 - opt/VirtualBox/components/VBoxC.so
269 - opt/VirtualBox/components/VBoxSVCM.so
270 - opt/VirtualBox/VBoxREM32.so
271 - opt/VirtualBox/VBoxXPCOMC.so
272 - opt/VirtualBox/VBoxOGLhostcrutil.so
273 - opt/VirtualBox/VBoxNetDHCP.so
274 - opt/VirtualBox/VBoxGuestControlSvc.so"
275 -QA_PRESTRIPPED="opt/VirtualBox/VBoxDD.so
276 - opt/VirtualBox/VBoxDD2.so
277 - opt/VirtualBox/VBoxDDU.so
278 - opt/VirtualBox/VBoxDbg.so
279 - opt/VirtualBox/VBoxGuestControlSvc.so
280 - opt/VirtualBox/VBoxGuestPropSvc.so
281 - opt/VirtualBox/VBoxHeadless
282 - opt/VirtualBox/VBoxHeadless.so
283 - opt/VirtualBox/VBoxKeyboard.so
284 - opt/VirtualBox/VBoxManage
285 - opt/VirtualBox/VBoxNetAdpCtl
286 - opt/VirtualBox/VBoxNetDHCP
287 - opt/VirtualBox/VBoxNetDHCP.so
288 - opt/VirtualBox/VBoxOGLhostcrutil.so
289 - opt/VirtualBox/VBoxOGLhosterrorspu.so
290 - opt/VirtualBox/VBoxOGLrenderspu.so
291 - opt/VirtualBox/VBoxPython.so
292 - opt/VirtualBox/VBoxPython2_7.so
293 - opt/VirtualBox/VBoxREM.so
294 - opt/VirtualBox/VBoxREM32.so
295 - opt/VirtualBox/VBoxREM64.so
296 - opt/VirtualBox/VBoxRT.so
297 - opt/VirtualBox/VBoxSDL
298 - opt/VirtualBox/VBoxSDL.so
299 - opt/VirtualBox/VBoxSVC
300 - opt/VirtualBox/VBoxSettings.so
301 - opt/VirtualBox/VBoxSharedClipboard.so
302 - opt/VirtualBox/VBoxSharedCrOpenGL.so
303 - opt/VirtualBox/VBoxSharedFolders.so
304 - opt/VirtualBox/VBoxTestOGL
305 - opt/VirtualBox/VBoxTunctl
306 - opt/VirtualBox/VBoxVMM.so
307 - opt/VirtualBox/VBoxVRDP.so
308 - opt/VirtualBox/VBoxXPCOM.so
309 - opt/VirtualBox/VBoxXPCOMC.so
310 - opt/VirtualBox/VBoxXPCOMIPCD
311 - opt/VirtualBox/VRDPAuth.so
312 - opt/VirtualBox/VirtualBox
313 - opt/VirtualBox/VirtualBox.so
314 - opt/VirtualBox/accessible/libqtaccessiblewidgets.so
315 - opt/VirtualBox/components/VBoxC.so
316 - opt/VirtualBox/components/VBoxSVCM.so
317 - opt/VirtualBox/components/VBoxXPCOMIPCC.so
318 - opt/VirtualBox/kchmviewer
319 - opt/VirtualBox/libQtCoreVBox.so.4
320 - opt/VirtualBox/libQtGuiVBox.so.4
321 - opt/VirtualBox/libQtNetworkVBox.so.4
322 - opt/VirtualBox/libQtOpenGLVBox.so.4
323 - opt/VirtualBox/vboxwebsrv"
324 -
325 -PYTHON_UPDATER_IGNORE="1"
326 -
327 -src_unpack() {
328 - unpack_makeself ${MY_P}_${ARCH}.run
329 - unpack ./VirtualBox.tar.bz2
330 -
331 - mkdir "${S}"/${EXTP_PN} || die
332 - pushd "${S}"/${EXTP_PN} &>/dev/null || die
333 - unpack ${EXTP_P}.tar.gz
334 - popd &>/dev/null || die
335 -
336 - if [[ "${PV}" != *beta* ]] && use sdk ; then
337 - unpack VirtualBoxSDK-${SDK_PV}.zip
338 - fi
339 -}
340 -
341 -src_configure() {
342 - :;
343 -}
344 -
345 -src_compile() {
346 - :;
347 -}
348 -
349 -src_install() {
350 - # create virtualbox configurations files
351 - insinto /etc/vbox
352 - newins "${FILESDIR}/${PN}-config" vbox.cfg
353 -
354 - if ! use headless ; then
355 - pushd "${S}"/icons &>/dev/null || die
356 - for size in * ; do
357 - if [ -f "${size}/virtualbox.png" ] ; then
358 - insinto "/usr/share/icons/hicolor/${size}/apps"
359 - newins "${size}/virtualbox.png" ${PN}.png
360 - fi
361 - done
362 - dodir /usr/share/pixmaps
363 - cp "48x48/virtualbox.png" "${D}/usr/share/pixmaps/${PN}.png" \
364 - || die
365 - popd &>/dev/null || die
366 -
367 - newmenu "${FILESDIR}"/${PN}.desktop-2 ${PN}.desktop
368 - fi
369 -
370 - pushd "${S}"/${EXTP_PN} &>/dev/null || die
371 - insinto /opt/VirtualBox/ExtensionPacks/${EXTP_PN}
372 - doins -r linux.${ARCH}
373 - doins ExtPack* PXE-Intel.rom
374 - popd &>/dev/null || die
375 - rm -rf "${S}"/${EXTP_PN}
376 -
377 - insinto /opt/VirtualBox
378 - dodir /opt/bin
379 -
380 - doins UserManual.pdf
381 -
382 - if [[ "${PV}" != *beta* ]] && use sdk ; then
383 - doins -r sdk
384 - fi
385 -
386 - if use additions; then
387 - doins -r additions
388 - fi
389 -
390 - if use vboxwebsrv; then
391 - doins vboxwebsrv
392 - fowners root:vboxusers /opt/VirtualBox/vboxwebsrv
393 - fperms 0750 /opt/VirtualBox/vboxwebsrv
394 - dosym ../../opt/VirtualBox/VBox.sh /opt/bin/vboxwebsrv
395 - newinitd "${FILESDIR}"/vboxwebsrv-initd vboxwebsrv
396 - newconfd "${FILESDIR}"/vboxwebsrv-confd vboxwebsrv
397 - fi
398 -
399 - if use rdesktop-vrdp; then
400 - doins rdesktop-vrdp
401 - doins -r rdesktop-vrdp-keymaps
402 - fperms 0750 /opt/VirtualBox/rdesktop-vrdp
403 - dosym ../../opt/VirtualBox/rdesktop-vrdp /opt/bin/rdesktop-vrdp
404 - fi
405 -
406 - if ! use headless && use chm; then
407 - doins kchmviewer VirtualBox.chm
408 - fowners root:vboxusers /opt/VirtualBox/kchmviewer
409 - fperms 0750 /opt/VirtualBox/kchmviewer
410 - fi
411 -
412 - # This ebuild / package supports only py2.7. Where py3 comes is unknown.
413 - # The compile phase makes VBoxPython2_[4-7].so.
414 - # py3 support would presumably require a binary pre-compiled by py3.
415 - use python && doins VBoxPython.so VBoxPython2_7.so
416 -
417 - rm -rf src rdesktop* deffiles install* routines.sh runlevel.sh \
418 - vboxdrv.sh VBox.sh VBox.png vboxnet.sh additions VirtualBox.desktop \
419 - VirtualBox.tar.bz2 LICENSE VBoxSysInfo.sh rdesktop* vboxwebsrv \
420 - webtest kchmviewer VirtualBox.chm vbox-create-usb-node.sh \
421 - 90-vbox-usb.fdi uninstall.sh vboxshell.py vboxdrv-pardus.py \
422 - VBoxPython?_*.so
423 -
424 - if use headless ; then
425 - rm -rf VBoxSDL VirtualBox VBoxKeyboard.so
426 - fi
427 -
428 - doins -r * || die
429 -
430 - # create symlinks for working around unsupported $ORIGIN/.. in VBoxC.so (setuid)
431 - dosym ../VBoxVMM.so /opt/VirtualBox/components/VBoxVMM.so
432 - dosym ../VBoxREM.so /opt/VirtualBox/components/VBoxREM.so
433 - dosym ../VBoxRT.so /opt/VirtualBox/components/VBoxRT.so
434 - dosym ../VBoxDDU.so /opt/VirtualBox/components/VBoxDDU.so
435 - dosym ../VBoxXPCOM.so /opt/VirtualBox/components/VBoxXPCOM.so
436 -
437 - local each
438 - for each in VBox{Manage,SVC,XPCOMIPCD,Tunctl,NetAdpCtl,NetDHCP,NetNAT,TestOGL,ExtPackHelperApp}; do
439 - fowners root:vboxusers /opt/VirtualBox/${each}
440 - fperms 0750 /opt/VirtualBox/${each}
441 - pax-mark -m "${D}"/opt/VirtualBox/${each}
442 - done
443 - # VBoxNetAdpCtl and VBoxNetDHCP binaries need to be suid root in any case..
444 - fperms 4750 /opt/VirtualBox/VBoxNetAdpCtl
445 - fperms 4750 /opt/VirtualBox/VBoxNetDHCP
446 - fperms 4750 /opt/VirtualBox/VBoxNetNAT
447 -
448 - if ! use headless ; then
449 - # Hardened build: Mark selected binaries set-user-ID-on-execution
450 - for each in VBox{SDL,Headless} VirtualBox; do
451 - fowners root:vboxusers /opt/VirtualBox/${each}
452 - fperms 4510 /opt/VirtualBox/${each}
453 - pax-mark -m "${D}"/opt/VirtualBox/${each}
454 - done
455 -
456 - dosym ../VirtualBox/VBox.sh /opt/bin/VirtualBox
457 - dosym ../VirtualBox/VBox.sh /opt/bin/VBoxSDL
458 - else
459 - # Hardened build: Mark selected binaries set-user-ID-on-execution
460 - fowners root:vboxusers /opt/VirtualBox/VBoxHeadless
461 - fperms 4510 /opt/VirtualBox/VBoxHeadless
462 - pax-mark -m "${D}"/opt/VirtualBox/VBoxHeadless
463 - fi
464 -
465 - exeinto /opt/VirtualBox
466 - newexe "${FILESDIR}/${PN}-3-wrapper" "VBox.sh"
467 - fowners root:vboxusers /opt/VirtualBox/VBox.sh
468 - fperms 0750 /opt/VirtualBox/VBox.sh
469 -
470 - dosym ../VirtualBox/VBox.sh /opt/bin/VBoxManage
471 - dosym ../VirtualBox/VBox.sh /opt/bin/VBoxVRDP
472 - dosym ../VirtualBox/VBox.sh /opt/bin/VBoxHeadless
473 - dosym ../VirtualBox/VBoxTunctl /opt/bin/VBoxTunctl
474 -
475 - # set an env-variable for 3rd party tools
476 - echo -n "VBOX_APP_HOME=/opt/VirtualBox" > "${T}/90virtualbox"
477 - doenvd "${T}/90virtualbox"
478 -
479 - local udevdir="$(get_udevdir)"
480 - insinto ${udevdir}/rules.d
481 - doins "${FILESDIR}"/10-virtualbox.rules
482 - sed "s@%UDEVDIR%@${udevdir}@" \
483 - -i "${D}"${udevdir}/rules.d/10-virtualbox.rules || die
484 - # move udev scripts into ${udevdir} (bug #372491)
485 - mv "${D}"/opt/VirtualBox/VBoxCreateUSBNode.sh "${D}"${udevdir} || die
486 - fperms 0750 ${udevdir}/VBoxCreateUSBNode.sh
487 -}
488 -
489 -pkg_postinst() {
490 - xdg_desktop_database_update
491 -
492 - gnome2_icon_cache_update
493 -
494 - udevadm control --reload-rules && udevadm trigger --subsystem-match=usb
495 -
496 - elog ""
497 - if ! use headless ; then
498 - elog "To launch VirtualBox just type: \"VirtualBox\""
499 - elog ""
500 - fi
501 - elog "You must be in the vboxusers group to use VirtualBox."
502 - elog ""
503 - elog "For advanced networking setups you should emerge:"
504 - elog "net-misc/bridge-utils and sys-apps/usermode-utilities"
505 - elog ""
506 - elog "Please visit http://www.virtualbox.org/wiki/Editions for"
507 - elog "an overview about the different features of ${PN}"
508 - elog "and virtualbox-ose"
509 - if [ -e "${ROOT}/etc/udev/rules.d/10-virtualbox.rules" ] ; then
510 - elog ""
511 - elog "Please remove \"${ROOT}/etc/udev/rules.d/10-virtualbox.rules\""
512 - elog "or else USB in ${PN} won't work."
513 - fi
514 -}
515 -
516 -pkg_postrm() {
517 - xdg_desktop_database_update
518 -}
519
520 diff --git a/app-emulation/virtualbox-bin/virtualbox-bin-5.0.40.115130.ebuild b/app-emulation/virtualbox-bin/virtualbox-bin-5.0.40.115130.ebuild
521 deleted file mode 100644
522 index 35395369f00..00000000000
523 --- a/app-emulation/virtualbox-bin/virtualbox-bin-5.0.40.115130.ebuild
524 +++ /dev/null
525 @@ -1,287 +0,0 @@
526 -# Copyright 1999-2017 Gentoo Foundation
527 -# Distributed under the terms of the GNU General Public License v2
528 -
529 -EAPI=5
530 -
531 -PYTHON_COMPAT=( python2_7 )
532 -
533 -inherit eutils xdg-utils gnome2 pax-utils python-r1 udev unpacker versionator
534 -
535 -MAIN_PV="$(get_version_component_range 1-3)"
536 -if [[ ${PV} = *_beta* ]] || [[ ${PV} = *_rc* ]] ; then
537 - MY_PV="${MAIN_PV}_$(get_version_component_range 5)"
538 - MY_PV="${MY_PV/beta/BETA}"
539 - MY_PV="${MY_PV/rc/RC}"
540 -else
541 - MY_PV="${MAIN_PV}"
542 -fi
543 -VBOX_BUILD_ID="$(get_version_component_range 4)"
544 -VBOX_PV="${MY_PV}-${VBOX_BUILD_ID}"
545 -MY_P="VirtualBox-${VBOX_PV}-Linux"
546 -# needed as sometimes the extpack gets another build ID
547 -EXTP_PV="${VBOX_PV}"
548 -EXTP_PN="Oracle_VM_VirtualBox_Extension_Pack"
549 -EXTP_P="${EXTP_PN}-${EXTP_PV}"
550 -# needed as sometimes the SDK gets another build ID
551 -SDK_PV="${VBOX_PV}"
552 -SDK_P="VirtualBoxSDK-${SDK_PV}"
553 -
554 -DESCRIPTION="Family of powerful x86 virtualization products for enterprise and home use"
555 -HOMEPAGE="http://www.virtualbox.org/"
556 -SRC_URI="amd64? ( http://download.virtualbox.org/virtualbox/${MY_PV}/${MY_P}_amd64.run )
557 - x86? ( http://download.virtualbox.org/virtualbox/${MY_PV}/${MY_P}_x86.run )
558 - http://download.virtualbox.org/virtualbox/${MY_PV}/${EXTP_P}.vbox-extpack -> ${EXTP_P}.tar.gz"
559 -
560 -LICENSE="GPL-2 PUEL"
561 -SLOT="0"
562 -KEYWORDS="amd64 x86"
563 -IUSE="+additions +chm headless python vboxwebsrv rdesktop-vrdp"
564 -RESTRICT="mirror"
565 -
566 -if [[ "${PV}" != *beta* ]] ; then
567 - SRC_URI+="
568 - sdk? ( http://download.virtualbox.org/virtualbox/${MY_PV}/${SDK_P}.zip )"
569 - IUSE+=" sdk"
570 -fi
571 -
572 -DEPEND="app-arch/unzip
573 - ${PYTHON_DEPS}"
574 -
575 -RDEPEND="!!app-emulation/virtualbox
576 - !app-emulation/virtualbox-additions
577 - ~app-emulation/virtualbox-modules-${MAIN_PV}
578 - !headless? (
579 - x11-libs/libXcursor
580 - media-libs/libsdl[X]
581 - x11-libs/libXrender
582 - x11-libs/libXfixes
583 - media-libs/libpng
584 - x11-libs/libXi
585 - x11-libs/libXrandr
586 - x11-libs/libXinerama
587 - x11-libs/libXft
588 - media-libs/freetype
589 - media-libs/fontconfig
590 - x11-libs/libXext
591 - dev-libs/glib
592 - chm? ( dev-libs/expat )
593 - )
594 - dev-libs/libxml2
595 - sys-fs/lvm2
596 - x11-libs/libXau
597 - x11-libs/libX11
598 - x11-libs/libXt
599 - x11-libs/libXmu
600 - x11-libs/libSM
601 - x11-libs/libICE
602 - x11-libs/libXdmcp
603 - ${PYTHON_DEPS}"
604 -
605 -REQUIRED_USE="${PYTHON_REQUIRED_USE}"
606 -S=${WORKDIR}
607 -
608 -QA_PREBUILT="opt/VirtualBox/*"
609 -
610 -PYTHON_UPDATER_IGNORE="1"
611 -
612 -src_unpack() {
613 - unpack_makeself ${MY_P}_${ARCH}.run
614 - unpack ./VirtualBox.tar.bz2
615 -
616 - mkdir "${S}"/${EXTP_PN} || die
617 - pushd "${S}"/${EXTP_PN} &>/dev/null || die
618 - unpack ${EXTP_P}.tar.gz
619 - popd &>/dev/null || die
620 -
621 - if [[ "${PV}" != *beta* ]] && use sdk ; then
622 - unpack VirtualBoxSDK-${SDK_PV}.zip
623 - fi
624 -}
625 -
626 -src_configure() {
627 - :;
628 -}
629 -
630 -src_compile() {
631 - :;
632 -}
633 -
634 -src_install() {
635 - # create virtualbox configurations files
636 - insinto /etc/vbox
637 - newins "${FILESDIR}/${PN}-config" vbox.cfg
638 -
639 - if ! use headless ; then
640 - newmenu "${FILESDIR}"/${PN}.desktop-2 ${PN}.desktop
641 -
642 - # set up symlinks (bug #572012)
643 - dosym ../../../../opt/VirtualBox/virtualbox.xml /usr/share/mime/packages/virtualbox.xml
644 -
645 - local size ico icofile
646 - for size in 16 24 32 48 64 72 96 128 256 ; do
647 - pushd "${S}"/icons/${size}x${size} &>/dev/null || die
648 - if [[ -f "virtualbox.png" ]] ; then
649 - doicon -s ${size} virtualbox.png
650 - fi
651 - for ico in hdd ova ovf vbox{,-extpack} vdi vdh vmdk ; do
652 - icofile="virtualbox-${ico}.png"
653 - if [[ -f "${icofile}" ]] ; then
654 - doicon -s ${size} ${icofile}
655 - fi
656 - done
657 - popd &>/dev/null || die
658 - done
659 - doicon -s scalable "${S}"/icons/scalable/virtualbox.svg
660 - insinto /usr/share/pixmaps
661 - newins "${S}"/icons/48x48/virtualbox.png ${PN}.png
662 - fi
663 -
664 - pushd "${S}"/${EXTP_PN} &>/dev/null || die
665 - insinto /opt/VirtualBox/ExtensionPacks/${EXTP_PN}
666 - doins -r linux.${ARCH}
667 - doins ExtPack* PXE-Intel.rom
668 - popd &>/dev/null || die
669 - rm -rf "${S}"/${EXTP_PN}
670 -
671 - insinto /opt/VirtualBox
672 - dodir /opt/bin
673 -
674 - doins UserManual.pdf
675 -
676 - if [[ "${PV}" != *beta* ]] && use sdk ; then
677 - doins -r sdk
678 - fi
679 -
680 - if use additions; then
681 - doins -r additions
682 - fi
683 -
684 - if use vboxwebsrv; then
685 - doins vboxwebsrv
686 - fowners root:vboxusers /opt/VirtualBox/vboxwebsrv
687 - fperms 0750 /opt/VirtualBox/vboxwebsrv
688 - dosym ../../opt/VirtualBox/VBox.sh /opt/bin/vboxwebsrv
689 - newinitd "${FILESDIR}"/vboxwebsrv-initd vboxwebsrv
690 - newconfd "${FILESDIR}"/vboxwebsrv-confd vboxwebsrv
691 - fi
692 -
693 - if use rdesktop-vrdp; then
694 - doins rdesktop-vrdp
695 - doins -r rdesktop-vrdp-keymaps
696 - fperms 0750 /opt/VirtualBox/rdesktop-vrdp
697 - dosym ../../opt/VirtualBox/rdesktop-vrdp /opt/bin/rdesktop-vrdp
698 - fi
699 -
700 - if ! use headless && use chm; then
701 - doins kchmviewer VirtualBox.chm
702 - fowners root:vboxusers /opt/VirtualBox/kchmviewer
703 - fperms 0750 /opt/VirtualBox/kchmviewer
704 - fi
705 -
706 - # This ebuild / package supports only py2.7. When py3 comes is unknown.
707 - # The compile phase makes VBoxPython2_7.so.
708 - # py3 support would presumably require a binary pre-compiled by py3.
709 - use python && doins VBoxPython.so VBoxPython2_7.so
710 -
711 - rm -rf src rdesktop* deffiles install* routines.sh runlevel.sh \
712 - vboxdrv.sh VBox.sh VBox.png vboxnet.sh additions VirtualBox.desktop \
713 - VirtualBox.tar.bz2 LICENSE VBoxSysInfo.sh rdesktop* vboxwebsrv \
714 - webtest kchmviewer VirtualBox.chm vbox-create-usb-node.sh \
715 - 90-vbox-usb.fdi uninstall.sh vboxshell.py vboxdrv-pardus.py \
716 - VBoxPython?_*.so
717 -
718 - if use headless ; then
719 - rm -rf VBoxSDL VirtualBox VBoxKeyboard.so
720 - fi
721 -
722 - doins -r * || die
723 -
724 - # create symlinks for working around unsupported $ORIGIN/.. in VBoxC.so (setuid)
725 - dosym ../VBoxVMM.so /opt/VirtualBox/components/VBoxVMM.so
726 - dosym ../VBoxREM.so /opt/VirtualBox/components/VBoxREM.so
727 - dosym ../VBoxRT.so /opt/VirtualBox/components/VBoxRT.so
728 - dosym ../VBoxDDU.so /opt/VirtualBox/components/VBoxDDU.so
729 - dosym ../VBoxXPCOM.so /opt/VirtualBox/components/VBoxXPCOM.so
730 -
731 - local each
732 - for each in VBox{Manage,SVC,XPCOMIPCD,Tunctl,NetAdpCtl,NetDHCP,NetNAT,TestOGL,ExtPackHelperApp}; do
733 - fowners root:vboxusers /opt/VirtualBox/${each}
734 - fperms 0750 /opt/VirtualBox/${each}
735 - pax-mark -m "${D}"/opt/VirtualBox/${each}
736 - done
737 - # VBoxNetAdpCtl and VBoxNetDHCP binaries need to be suid root in any case..
738 - fperms 4750 /opt/VirtualBox/VBoxNetAdpCtl
739 - fperms 4750 /opt/VirtualBox/VBoxNetDHCP
740 - fperms 4750 /opt/VirtualBox/VBoxNetNAT
741 -
742 - if ! use headless ; then
743 - # Hardened build: Mark selected binaries set-user-ID-on-execution
744 - for each in VBox{SDL,Headless} VirtualBox; do
745 - fowners root:vboxusers /opt/VirtualBox/${each}
746 - fperms 4510 /opt/VirtualBox/${each}
747 - pax-mark -m "${D}"/opt/VirtualBox/${each}
748 - done
749 -
750 - dosym ../VirtualBox/VBox.sh /opt/bin/VirtualBox
751 - dosym ../VirtualBox/VBox.sh /opt/bin/VBoxSDL
752 - else
753 - # Hardened build: Mark selected binaries set-user-ID-on-execution
754 - fowners root:vboxusers /opt/VirtualBox/VBoxHeadless
755 - fperms 4510 /opt/VirtualBox/VBoxHeadless
756 - pax-mark -m "${D}"/opt/VirtualBox/VBoxHeadless
757 - fi
758 -
759 - exeinto /opt/VirtualBox
760 - newexe "${FILESDIR}/${PN}-3-wrapper" "VBox.sh"
761 - fowners root:vboxusers /opt/VirtualBox/VBox.sh
762 - fperms 0750 /opt/VirtualBox/VBox.sh
763 -
764 - dosym ../VirtualBox/VBox.sh /opt/bin/VBoxManage
765 - dosym ../VirtualBox/VBox.sh /opt/bin/VBoxVRDP
766 - dosym ../VirtualBox/VBox.sh /opt/bin/VBoxHeadless
767 - dosym ../VirtualBox/VBoxTunctl /opt/bin/VBoxTunctl
768 -
769 - # set an env-variable for 3rd party tools
770 - echo -n "VBOX_APP_HOME=/opt/VirtualBox" > "${T}/90virtualbox"
771 - doenvd "${T}/90virtualbox"
772 -
773 - local udevdir="$(get_udevdir)"
774 - insinto ${udevdir}/rules.d
775 - doins "${FILESDIR}"/10-virtualbox.rules
776 - sed "s@%UDEVDIR%@${udevdir}@" \
777 - -i "${D}"${udevdir}/rules.d/10-virtualbox.rules || die
778 - # move udev scripts into ${udevdir} (bug #372491)
779 - mv "${D}"/opt/VirtualBox/VBoxCreateUSBNode.sh "${D}"${udevdir} || die
780 - fperms 0750 ${udevdir}/VBoxCreateUSBNode.sh
781 -}
782 -
783 -pkg_postinst() {
784 - xdg_desktop_database_update
785 -
786 - gnome2_icon_cache_update
787 -
788 - udevadm control --reload-rules && udevadm trigger --subsystem-match=usb
789 -
790 - elog ""
791 - if ! use headless ; then
792 - elog "To launch VirtualBox just type: \"VirtualBox\""
793 - elog ""
794 - fi
795 - elog "You must be in the vboxusers group to use VirtualBox."
796 - elog ""
797 - elog "For advanced networking setups you should emerge:"
798 - elog "net-misc/bridge-utils and sys-apps/usermode-utilities"
799 - elog ""
800 - elog "Please visit http://www.virtualbox.org/wiki/Editions for"
801 - elog "an overview about the different features of ${PN}"
802 - elog "and virtualbox-ose"
803 - if [ -e "${ROOT}/etc/udev/rules.d/10-virtualbox.rules" ] ; then
804 - elog ""
805 - elog "Please remove \"${ROOT}/etc/udev/rules.d/10-virtualbox.rules\""
806 - elog "or else USB in ${PN} won't work."
807 - fi
808 -}
809 -
810 -pkg_postrm() {
811 - xdg_desktop_database_update
812 -}
813
814 diff --git a/app-emulation/virtualbox-extpack-oracle/Manifest b/app-emulation/virtualbox-extpack-oracle/Manifest
815 index d940ec8f53c..e1c0ff51bac 100644
816 --- a/app-emulation/virtualbox-extpack-oracle/Manifest
817 +++ b/app-emulation/virtualbox-extpack-oracle/Manifest
818 @@ -1,4 +1,3 @@
819 -DIST Oracle_VM_VirtualBox_Extension_Pack-5.0.40-115130.tar.gz 19050961 SHA256 ebb29de8962d60760a2f25c318833a1fe163368b824b6b26802b6b284af70585 SHA512 fb27a8efa376b2a51558e0a8dfcb87a7116e950783030c1aab996675c776c46cdf4d4ff35d111f925f6b2b4c6fd070ff80a971fd2f6ce77b857b17898950f5a3 WHIRLPOOL db1ba8492abf791f2244d12b7a62643c02c8c7999c607464e117cc42360c876d9ee83d36ea8860e18912b52171d12291d93fdcc3d3ff18ff05c2b3a4cea5373c
820 DIST Oracle_VM_VirtualBox_Extension_Pack-5.1.26-117224.tar.gz 19624237 SHA256 14f152228495a715f526eb74134d43c960919cc534d2bc67cfe34a63e6cf7721 SHA512 c6e31e8fb26b8ca32c423d14e85e15f6372a030ec40e9f06ce1e1234913d3586cc58d46819684c99cf3ced37f35d0a964339199cad5cf43580c88bf1afa63ef6 WHIRLPOOL 9b0ceb8ab21ce54a199ac312879ae4bf17b5bbf3bae6d28035436ae8dd8295ea6fa1d8bb3fc095867a017fdcc357b630436dca46d4875bcdd2aad1ce0cfd9d9f
821 DIST Oracle_VM_VirtualBox_Extension_Pack-5.1.28-117968.tar.gz 19626161 SHA256 1a2551b204bd53a252a75a4653b983427bb15d473bc77b14149c7870ce049871 SHA512 71c6ce267c14303bbd9e386ea849d37aeb569afff848054deced4c74fd6fffca83c96b392d066f684b7101a786cc7d24cf9308114c08cbb77b26bb07bf23fcf8 WHIRLPOOL c6fd42f422dca4db4165ff18da0054aff5c0d275850dec4002fb70e8e4248f8f5cffc87697b0802343ebff29cf62938f298df365f9ce19523092d418206deff9
822 DIST Oracle_VM_VirtualBox_Extension_Pack-5.1.30-118389.tar.gz 19624724 SHA256 2da095e32f85fe5a1fe943158e079bd5aecb2724691c4038bd619ddee967b288 SHA512 6b468879f0fb6d6f916c40fb60f418457c526c20ebb1a6253bfc38392e0ae965e3b54590173b0d974070ced1646db82035950fb7dd54b22e20f4ad29850d6cf4 WHIRLPOOL e66bcfae1f022119e58c819094a79acafe4534278a8cf7d242e0355b6bcd045e7b6697c07ecb0f2dd4924fadf2996d8a5e01fbf2d17e38ed74a120dbc578969c
823
824 diff --git a/app-emulation/virtualbox-extpack-oracle/virtualbox-extpack-oracle-5.0.40.115130.ebuild b/app-emulation/virtualbox-extpack-oracle/virtualbox-extpack-oracle-5.0.40.115130.ebuild
825 deleted file mode 100644
826 index 3c6c739d35e..00000000000
827 --- a/app-emulation/virtualbox-extpack-oracle/virtualbox-extpack-oracle-5.0.40.115130.ebuild
828 +++ /dev/null
829 @@ -1,42 +0,0 @@
830 -# Copyright 1999-2017 Gentoo Foundation
831 -# Distributed under the terms of the GNU General Public License v2
832 -
833 -EAPI=6
834 -
835 -inherit eutils multilib versionator
836 -
837 -MAIN_PV="$(get_version_component_range 1-3)"
838 -if [[ ${PV} = *_beta* ]] || [[ ${PV} = *_rc* ]] ; then
839 - MY_PV="${MAIN_PV}_$(get_version_component_range 5)"
840 - DEP_PV="${MY_PV}"
841 - MY_PV="${MY_PV/beta/BETA}"
842 - MY_PV="${MY_PV/rc/RC}"
843 -else
844 - MY_PV="${MAIN_PV}"
845 - DEP_PV="${MAIN_PV}"
846 -fi
847 -VBOX_BUILD_ID="$(get_version_component_range 4)"
848 -MY_PN="Oracle_VM_VirtualBox_Extension_Pack"
849 -MY_P="${MY_PN}-${MY_PV}-${VBOX_BUILD_ID}"
850 -
851 -DESCRIPTION="PUEL extensions for VirtualBox"
852 -HOMEPAGE="http://www.virtualbox.org/"
853 -SRC_URI="http://download.virtualbox.org/virtualbox/${MY_PV}/${MY_P}.vbox-extpack -> ${MY_P}.tar.gz"
854 -
855 -LICENSE="PUEL"
856 -SLOT="0"
857 -KEYWORDS="amd64 x86"
858 -IUSE=""
859 -RESTRICT="mirror strip"
860 -
861 -RDEPEND="~app-emulation/virtualbox-${DEP_PV}"
862 -
863 -S="${WORKDIR}"
864 -
865 -QA_PREBUILT="/usr/lib*/virtualbox/ExtensionPacks/${MY_PN}/.*"
866 -
867 -src_install() {
868 - insinto /usr/$(get_libdir)/virtualbox/ExtensionPacks/${MY_PN}
869 - doins -r linux.${ARCH}
870 - doins ExtPack* PXE-Intel.rom
871 -}
872
873 diff --git a/app-emulation/virtualbox-guest-additions/Manifest b/app-emulation/virtualbox-guest-additions/Manifest
874 index 79d269824ac..78f0cebd016 100644
875 --- a/app-emulation/virtualbox-guest-additions/Manifest
876 +++ b/app-emulation/virtualbox-guest-additions/Manifest
877 @@ -1,5 +1,3 @@
878 -DIST VirtualBox-5.0.16.tar.bz2 111062984 SHA256 f5a44d33a1db911f445b2eb2d22d9293a96a535cba488b5a235577ef868fa63c SHA512 3da3a227360fb50d299e99770378f65e8cb99525377343fa8faff2360be66643d46f68323d6a8b8d4d26182082f171bb35ab2497167bf6df18827a5ea7742074 WHIRLPOOL ea709057c588f28820790c2b193decba9ee0c57e0f82aa4361ca87aef661315182e18b5ee29558e47ed92f6037eb91befa5390680661a7b9f2248c7819b4a85c
879 -DIST VirtualBox-5.0.40.tar.bz2 112997095 SHA256 e4275b7ada40b358e6e3bd1231b3a320aa06c72ae301283cac5adb42eaa8e4b5 SHA512 70cd4355591c5aed82148954bf55637a5dcdd1a5177dba78192e7c6eadfbf3f7023f352ba8f89d9eb3c3fc55b049f7c76af6bc94e04d1766d7fbe39e51a1393c WHIRLPOOL 9f471e63814c9d48063857f3b95410f5acdd4a3bd2716c525f2449f1eae95d0e91dbe5422374a49f31f8219daa155f716455f0259d131d93afb5cd9e13a7d467
880 DIST VirtualBox-5.1.26.tar.bz2 115915813 SHA256 b5715035e681a11ef1475f83f9503d34a00f0276b89c572eebec363dda80c8a9 SHA512 680e9646a51a0a5923b3ded10007ee1c1e2a41c6d8a961d2b2540db6578bed2847154f4cac87e3cfe1118a62595b47c7df99da854f6c340e173b9eb8cacf2add WHIRLPOOL 9d7950ec3ec2cd9b8aaa0ea319f9f5089eed7d2cd2879d313426b448a27570b5582235aa46c5ad5a0fd4d0b967f8d58a963f001549232136d6a8609262af71d0
881 DIST VirtualBox-5.1.28.tar.bz2 116427658 SHA256 ce7d4bf6535f70e3214abeb4866f7a8634aa3c7b6dedf8825e6ad80bd821398d SHA512 5c21fd535424d7fd9adbb51894ec6d37ecf00a63a850362bd7b61fedca5031e096641814130a97ad839c0bd7089dc3dc465509615aab2af3c5735ff71005670a WHIRLPOOL 2e3fbeb39083c2e69fb23200570781a8845780a6295553af48fa9155db132e37d0fc2fb26e8a45c52864f69f02e8a0d0cbd4c895e5fbb87ab9a51dd60c7c7904
882 DIST VirtualBox-5.1.30.tar.bz2 116510730 SHA256 6059b0986c9cdacc533177867634a76331ceccdcd46dddd111a50d1c42846d0b SHA512 6c44d9593f4815644a484b306e621fe7eca224002f85d89c00f2470300f2c78dbfe50ffda61d2c2465df14ca77c70a2ab86f1a05116feeee9f5833857eb18dee WHIRLPOOL dc1701211cc8247cb23800557cf7e2d34e5063806c5b22cd2c38454531ca390902fd6a764bfc17d14d33ec055de2d924853c9ed6c3ba29fb7998455f06109b6f
883
884 diff --git a/app-emulation/virtualbox-guest-additions/virtualbox-guest-additions-5.0.16.ebuild b/app-emulation/virtualbox-guest-additions/virtualbox-guest-additions-5.0.16.ebuild
885 deleted file mode 100644
886 index 8f9b4fb18a6..00000000000
887 --- a/app-emulation/virtualbox-guest-additions/virtualbox-guest-additions-5.0.16.ebuild
888 +++ /dev/null
889 @@ -1,216 +0,0 @@
890 -# Copyright 1999-2017 Gentoo Foundation
891 -# Distributed under the terms of the GNU General Public License v2
892 -
893 -EAPI=6
894 -
895 -inherit eutils linux-mod systemd user toolchain-funcs
896 -
897 -MY_PV="${PV/beta/BETA}"
898 -MY_PV="${MY_PV/rc/RC}"
899 -MY_P=VirtualBox-${MY_PV}
900 -DESCRIPTION="VirtualBox kernel modules and user-space tools for Gentoo guests"
901 -HOMEPAGE="http://www.virtualbox.org/"
902 -SRC_URI="http://download.virtualbox.org/virtualbox/${MY_PV}/${MY_P}.tar.bz2"
903 -
904 -LICENSE="GPL-2"
905 -SLOT="0"
906 -KEYWORDS="~amd64 ~x86"
907 -IUSE="X"
908 -
909 -RDEPEND="X? ( ~x11-drivers/xf86-video-virtualbox-${PV}
910 - x11-apps/xrandr
911 - x11-apps/xrefresh
912 - x11-libs/libXmu
913 - x11-libs/libX11
914 - x11-libs/libXt
915 - x11-libs/libXext
916 - x11-libs/libXau
917 - x11-libs/libXdmcp
918 - x11-libs/libSM
919 - x11-libs/libICE
920 - x11-proto/glproto )
921 - sys-apps/dbus
922 - !!x11-drivers/xf86-input-virtualbox"
923 -DEPEND="${RDEPEND}
924 - >=dev-util/kbuild-0.1.9998_pre20131130
925 - >=dev-lang/yasm-0.6.2
926 - sys-devel/bin86
927 - sys-libs/pam
928 - sys-power/iasl
929 - X? ( x11-proto/renderproto )
930 - !X? ( x11-proto/xproto )"
931 -
932 -BUILD_TARGETS="all"
933 -BUILD_TARGET_ARCH="${ARCH}"
934 -MODULE_NAMES="vboxguest(misc:${WORKDIR}/vboxguest:${WORKDIR}/vboxguest)
935 - vboxsf(misc:${WORKDIR}/vboxsf:${WORKDIR}/vboxsf)"
936 -
937 -S="${WORKDIR}/${MY_P}"
938 -
939 -pkg_setup() {
940 - linux-mod_pkg_setup
941 - BUILD_PARAMS="KERN_DIR=${KV_OUT_DIR} KERNOUT=${KV_OUT_DIR}"
942 - enewgroup vboxguest
943 - enewuser vboxguest -1 /bin/sh /dev/null vboxguest
944 - # automount Error: VBoxServiceAutoMountWorker: Group "vboxsf" does not exist
945 - enewgroup vboxsf
946 -}
947 -
948 -src_unpack() {
949 - unpack ${A}
950 -
951 - # Create and unpack a tarball with the sources of the Linux guest
952 - # kernel modules, to include all the needed files
953 - "${S}"/src/VBox/Additions/linux/export_modules "${WORKDIR}/vbox-kmod.tar.gz"
954 - unpack ./vbox-kmod.tar.gz
955 -
956 - # Remove shipped binaries (kBuild,yasm), see bug #232775
957 - cd "${S}"
958 - rm -rf kBuild/bin tools
959 -}
960 -
961 -src_prepare() {
962 - # PaX fixes (see bug #298988)
963 - pushd "${WORKDIR}" &>/dev/null || die
964 - eapply "${FILESDIR}"/vboxguest-4.1.0-log-use-c99.patch
965 - popd &>/dev/null || die
966 -
967 - # Disable things unused or splitted into separate ebuilds
968 - cp "${FILESDIR}/${PN}-5-localconfig" LocalConfig.kmk || die
969 - use X || echo "VBOX_WITH_X11_ADDITIONS :=" >> LocalConfig.kmk
970 -
971 - # stupid new header references...
972 - for vboxheader in {product,revision,version}-generated.h ; do
973 - for mdir in vbox{guest,sf} ; do
974 - ln -sf "${S}"/out/linux.${ARCH}/release/${vboxheader} \
975 - "${WORKDIR}/${mdir}/${vboxheader}"
976 - done
977 - done
978 -
979 - # Remove pointless GCC version check
980 - sed -e '/^check_gcc$/d' -i configure || die
981 -
982 - eapply_user
983 -}
984 -
985 -src_configure() {
986 - # build the user-space tools, warnings are harmless
987 - local cmd=(
988 - ./configure
989 - --nofatal
990 - --disable-xpcom
991 - --disable-sdl-ttf
992 - --disable-pulse
993 - --disable-alsa
994 - --with-gcc="$(tc-getCC)"
995 - --with-g++="$(tc-getCXX)"
996 - --target-arch=${ARCH}
997 - --with-linux="${KV_OUT_DIR}"
998 - --build-headless
999 - )
1000 - echo "${cmd[@]}"
1001 - "${cmd[@]}" || die "configure failed"
1002 - source ./env.sh
1003 - export VBOX_GCC_OPT="${CFLAGS} ${CPPFLAGS}"
1004 -}
1005 -
1006 -src_compile() {
1007 - MAKE="kmk" \
1008 - emake TOOL_YASM_AS=yasm \
1009 - VBOX_ONLY_ADDITIONS=1 \
1010 - KBUILD_VERBOSE=2
1011 -
1012 - # Now creating the kernel modules. We must do this _after_
1013 - # we compiled the user-space tools as we need two of the
1014 - # automatically generated header files. (>=3.2.0)
1015 - linux-mod_src_compile
1016 -}
1017 -
1018 -src_install() {
1019 - linux-mod_src_install
1020 -
1021 - cd "${S}"/out/linux.${ARCH}/release/bin/additions || die
1022 -
1023 - insinto /sbin
1024 - newins mount.vboxsf mount.vboxsf
1025 - fperms 4755 /sbin/mount.vboxsf
1026 -
1027 - newinitd "${FILESDIR}"/${PN}-8.initd ${PN}
1028 -
1029 - insinto /usr/sbin/
1030 - newins VBoxService vboxguest-service
1031 - fperms 0755 /usr/sbin/vboxguest-service
1032 -
1033 - insinto /usr/bin
1034 - doins VBoxControl
1035 - fperms 0755 /usr/bin/VBoxControl
1036 -
1037 - # VBoxClient user service and xrandr wrapper
1038 - if use X ; then
1039 - doins VBoxClient
1040 - fperms 0755 /usr/bin/VBoxClient
1041 -
1042 - pushd "${S}"/src/VBox/Additions/x11/Installer &>/dev/null \
1043 - || die
1044 - newins 98vboxadd-xclient VBoxClient-all
1045 - fperms 0755 /usr/bin/VBoxClient-all
1046 - popd &>/dev/null || die
1047 - fi
1048 -
1049 - # udev rule for vboxdrv
1050 - local udev_rules_dir="/lib/udev/rules.d"
1051 - dodir ${udev_rules_dir}
1052 - echo 'KERNEL=="vboxguest", OWNER="vboxguest", GROUP="vboxguest", MODE="0660"' \
1053 - >> "${D}/${udev_rules_dir}/60-virtualbox-guest-additions.rules" \
1054 - || die
1055 - echo 'KERNEL=="vboxuser", OWNER="vboxguest", GROUP="vboxguest", MODE="0660"' \
1056 - >> "${D}/${udev_rules_dir}/60-virtualbox-guest-additions.rules" \
1057 - || die
1058 -
1059 - # VBoxClient autostart file
1060 - insinto /etc/xdg/autostart
1061 - doins "${FILESDIR}"/vboxclient.desktop
1062 -
1063 - # sample xorg.conf
1064 - insinto /usr/share/doc/${PF}
1065 - doins "${FILESDIR}"/xorg.conf.vbox
1066 -
1067 - systemd_dounit "${FILESDIR}/${PN}.service"
1068 -}
1069 -
1070 -pkg_postinst() {
1071 - linux-mod_pkg_postinst
1072 - if ! use X ; then
1073 - elog "use flag X is off, enable it to install the"
1074 - elog "X Window System video driver."
1075 - fi
1076 - elog ""
1077 - elog "Please add users to the \"vboxguest\" group so they can"
1078 - elog "benefit from seamless mode, auto-resize and clipboard."
1079 - elog ""
1080 - elog "The vboxsf group has been added to make automount services work."
1081 - elog "These services are part of the shared folders support."
1082 - elog ""
1083 - elog "Please add:"
1084 - elog "/etc/init.d/${PN}"
1085 - elog "to the default runlevel in order to start"
1086 - elog "needed services."
1087 - elog "To use the VirtualBox X driver, use the following"
1088 - elog "file as your /etc/X11/xorg.conf:"
1089 - elog " /usr/share/doc/${PF}/xorg.conf.vbox"
1090 - elog ""
1091 - elog "Also make sure you use the Mesa library for OpenGL:"
1092 - elog " eselect opengl set xorg-x11"
1093 - elog ""
1094 - elog "An autostart .desktop file has been installed to start"
1095 - elog "VBoxClient in desktop sessions."
1096 - elog ""
1097 - elog "You can mount shared folders with:"
1098 - elog " mount -t vboxsf <shared_folder_name> <mount_point>"
1099 - elog ""
1100 - elog "Warning:"
1101 - elog "this ebuild is only needed if you are running gentoo"
1102 - elog "inside a VirtualBox Virtual Machine, you don't need"
1103 - elog "it to run VirtualBox itself."
1104 - elog ""
1105 -}
1106
1107 diff --git a/app-emulation/virtualbox-guest-additions/virtualbox-guest-additions-5.0.40.ebuild b/app-emulation/virtualbox-guest-additions/virtualbox-guest-additions-5.0.40.ebuild
1108 deleted file mode 100644
1109 index 6e24c6b0f08..00000000000
1110 --- a/app-emulation/virtualbox-guest-additions/virtualbox-guest-additions-5.0.40.ebuild
1111 +++ /dev/null
1112 @@ -1,218 +0,0 @@
1113 -# Copyright 1999-2017 Gentoo Foundation
1114 -# Distributed under the terms of the GNU General Public License v2
1115 -
1116 -EAPI=6
1117 -
1118 -inherit eutils linux-mod systemd user toolchain-funcs
1119 -
1120 -MY_PV="${PV/beta/BETA}"
1121 -MY_PV="${MY_PV/rc/RC}"
1122 -MY_P=VirtualBox-${MY_PV}
1123 -DESCRIPTION="VirtualBox kernel modules and user-space tools for Gentoo guests"
1124 -HOMEPAGE="http://www.virtualbox.org/"
1125 -SRC_URI="http://download.virtualbox.org/virtualbox/${MY_PV}/${MY_P}.tar.bz2"
1126 -
1127 -LICENSE="GPL-2"
1128 -SLOT="0"
1129 -KEYWORDS="amd64 x86"
1130 -IUSE="X"
1131 -
1132 -RDEPEND="X? ( x11-apps/xrandr
1133 - x11-apps/xrefresh
1134 - x11-libs/libXmu
1135 - x11-libs/libX11
1136 - x11-libs/libXt
1137 - x11-libs/libXext
1138 - x11-libs/libXau
1139 - x11-libs/libXdmcp
1140 - x11-libs/libSM
1141 - x11-libs/libICE
1142 - x11-proto/glproto )
1143 - sys-apps/dbus
1144 - !!x11-drivers/xf86-input-virtualbox"
1145 -DEPEND="${RDEPEND}
1146 - >=dev-util/kbuild-0.1.9998_pre20131130
1147 - >=dev-lang/yasm-0.6.2
1148 - sys-devel/bin86
1149 - sys-libs/pam
1150 - sys-power/iasl
1151 - X? ( x11-proto/renderproto )
1152 - !X? ( x11-proto/xproto )"
1153 -PDEPEND="X? ( ~x11-drivers/xf86-video-virtualbox-${PV} )"
1154 -
1155 -BUILD_TARGETS="all"
1156 -BUILD_TARGET_ARCH="${ARCH}"
1157 -
1158 -S="${WORKDIR}/${MY_P}"
1159 -
1160 -pkg_setup() {
1161 - MODULE_NAMES="vboxguest(misc:${WORKDIR}/vboxguest:${WORKDIR}/vboxguest)
1162 - vboxsf(misc:${WORKDIR}/vboxsf:${WORKDIR}/vboxsf)"
1163 - use X && MODULE_NAMES+=" vboxvideo(misc:${WORKDIR}/vboxvideo::${WORKDIR}/vboxvideo)"
1164 -
1165 - linux-mod_pkg_setup
1166 - BUILD_PARAMS="KERN_DIR=${KV_OUT_DIR} KERNOUT=${KV_OUT_DIR}"
1167 - enewgroup vboxguest
1168 - enewuser vboxguest -1 /bin/sh /dev/null vboxguest
1169 - # automount Error: VBoxServiceAutoMountWorker: Group "vboxsf" does not exist
1170 - enewgroup vboxsf
1171 -}
1172 -
1173 -src_unpack() {
1174 - unpack ${A}
1175 -
1176 - # Create and unpack a tarball with the sources of the Linux guest
1177 - # kernel modules, to include all the needed files
1178 - "${S}"/src/VBox/Additions/linux/export_modules "${WORKDIR}/vbox-kmod.tar.gz"
1179 - unpack ./vbox-kmod.tar.gz
1180 -
1181 - # Remove shipped binaries (kBuild,yasm), see bug #232775
1182 - cd "${S}"
1183 - rm -rf kBuild/bin tools
1184 -}
1185 -
1186 -src_prepare() {
1187 - # PaX fixes (see bug #298988)
1188 - pushd "${WORKDIR}" &>/dev/null || die
1189 - eapply "${FILESDIR}"/vboxguest-4.1.0-log-use-c99.patch
1190 - popd &>/dev/null || die
1191 -
1192 - # Disable things unused or splitted into separate ebuilds
1193 - cp "${FILESDIR}/${PN}-5-localconfig" LocalConfig.kmk || die
1194 - use X || echo "VBOX_WITH_X11_ADDITIONS :=" >> LocalConfig.kmk
1195 -
1196 - # stupid new header references...
1197 - for vboxheader in {product,revision,version}-generated.h ; do
1198 - for mdir in vbox{guest,sf} ; do
1199 - ln -sf "${S}"/out/linux.${ARCH}/release/${vboxheader} \
1200 - "${WORKDIR}/${mdir}/${vboxheader}"
1201 - done
1202 - done
1203 -
1204 - # Remove pointless GCC version check
1205 - sed -e '/^check_gcc$/d' -i configure || die
1206 -
1207 - eapply_user
1208 -}
1209 -
1210 -src_configure() {
1211 - # build the user-space tools, warnings are harmless
1212 - local cmd=(
1213 - ./configure
1214 - --nofatal
1215 - --disable-xpcom
1216 - --disable-sdl-ttf
1217 - --disable-pulse
1218 - --disable-alsa
1219 - --with-gcc="$(tc-getCC)"
1220 - --with-g++="$(tc-getCXX)"
1221 - --target-arch=${ARCH}
1222 - --with-linux="${KV_OUT_DIR}"
1223 - --build-headless
1224 - )
1225 - echo "${cmd[@]}"
1226 - "${cmd[@]}" || die "configure failed"
1227 - source ./env.sh
1228 - export VBOX_GCC_OPT="${CFLAGS} ${CPPFLAGS}"
1229 -}
1230 -
1231 -src_compile() {
1232 - MAKE="kmk" \
1233 - emake TOOL_YASM_AS=yasm \
1234 - VBOX_ONLY_ADDITIONS=1 \
1235 - KBUILD_VERBOSE=2
1236 -
1237 - # Now creating the kernel modules. We must do this _after_
1238 - # we compiled the user-space tools as we need two of the
1239 - # automatically generated header files. (>=3.2.0)
1240 - linux-mod_src_compile
1241 -}
1242 -
1243 -src_install() {
1244 - linux-mod_src_install
1245 -
1246 - cd "${S}"/out/linux.${ARCH}/release/bin/additions || die
1247 -
1248 - insinto /sbin
1249 - newins mount.vboxsf mount.vboxsf
1250 - fperms 4755 /sbin/mount.vboxsf
1251 -
1252 - newinitd "${FILESDIR}"/${PN}-8.initd ${PN}
1253 -
1254 - insinto /usr/sbin/
1255 - newins VBoxService vboxguest-service
1256 - fperms 0755 /usr/sbin/vboxguest-service
1257 -
1258 - insinto /usr/bin
1259 - doins VBoxControl
1260 - fperms 0755 /usr/bin/VBoxControl
1261 -
1262 - # VBoxClient user service and xrandr wrapper
1263 - if use X ; then
1264 - doins VBoxClient
1265 - fperms 0755 /usr/bin/VBoxClient
1266 -
1267 - pushd "${S}"/src/VBox/Additions/x11/Installer &>/dev/null \
1268 - || die
1269 - newins 98vboxadd-xclient VBoxClient-all
1270 - fperms 0755 /usr/bin/VBoxClient-all
1271 - popd &>/dev/null || die
1272 - fi
1273 -
1274 - # udev rule for vboxdrv
1275 - local udev_rules_dir="/lib/udev/rules.d"
1276 - dodir ${udev_rules_dir}
1277 - echo 'KERNEL=="vboxguest", OWNER="vboxguest", GROUP="vboxguest", MODE="0660"' \
1278 - >> "${D}/${udev_rules_dir}/60-virtualbox-guest-additions.rules" \
1279 - || die
1280 - echo 'KERNEL=="vboxuser", OWNER="vboxguest", GROUP="vboxguest", MODE="0660"' \
1281 - >> "${D}/${udev_rules_dir}/60-virtualbox-guest-additions.rules" \
1282 - || die
1283 -
1284 - # VBoxClient autostart file
1285 - insinto /etc/xdg/autostart
1286 - doins "${FILESDIR}"/vboxclient.desktop
1287 -
1288 - # sample xorg.conf
1289 - insinto /usr/share/doc/${PF}
1290 - doins "${FILESDIR}"/xorg.conf.vbox
1291 -
1292 - systemd_dounit "${FILESDIR}/${PN}.service"
1293 -}
1294 -
1295 -pkg_postinst() {
1296 - linux-mod_pkg_postinst
1297 - if ! use X ; then
1298 - elog "use flag X is off, enable it to install the"
1299 - elog "X Window System video driver."
1300 - fi
1301 - elog ""
1302 - elog "Please add users to the \"vboxguest\" group so they can"
1303 - elog "benefit from seamless mode, auto-resize and clipboard."
1304 - elog ""
1305 - elog "The vboxsf group has been added to make automount services work."
1306 - elog "These services are part of the shared folders support."
1307 - elog ""
1308 - elog "Please add:"
1309 - elog "/etc/init.d/${PN}"
1310 - elog "to the default runlevel in order to start"
1311 - elog "needed services."
1312 - elog "To use the VirtualBox X driver, use the following"
1313 - elog "file as your /etc/X11/xorg.conf:"
1314 - elog " /usr/share/doc/${PF}/xorg.conf.vbox"
1315 - elog ""
1316 - elog "Also make sure you use the Mesa library for OpenGL:"
1317 - elog " eselect opengl set xorg-x11"
1318 - elog ""
1319 - elog "An autostart .desktop file has been installed to start"
1320 - elog "VBoxClient in desktop sessions."
1321 - elog ""
1322 - elog "You can mount shared folders with:"
1323 - elog " mount -t vboxsf <shared_folder_name> <mount_point>"
1324 - elog ""
1325 - elog "Warning:"
1326 - elog "this ebuild is only needed if you are running gentoo"
1327 - elog "inside a VirtualBox Virtual Machine, you don't need"
1328 - elog "it to run VirtualBox itself."
1329 - elog ""
1330 -}
1331
1332 diff --git a/app-emulation/virtualbox-modules/Manifest b/app-emulation/virtualbox-modules/Manifest
1333 index 4fd374e77c8..3832b270b67 100644
1334 --- a/app-emulation/virtualbox-modules/Manifest
1335 +++ b/app-emulation/virtualbox-modules/Manifest
1336 @@ -1,5 +1,3 @@
1337 -DIST vbox-kernel-module-src-5.0.16.tar.xz 593944 SHA256 8905e174069a6caf0200808fda6726704a947ab56fc48c3b6ebbf8831dde4123 SHA512 5311f6cfd917c04bcb51182ad414c0930fb85a73a90d81156f08640cdb4e4d442ed46a10b62b5d07ed81aa1ad65430d5186e95cc64293502c9b84937a6470bb4 WHIRLPOOL daf741cd8465ce65ae0e3f304b7c49d55be828da5fc285ac3a2b8e6fc7e68865b184b738a79fa7fbf1e106d647200a40224902ef7041e4dd5ab2c9ef054e4199
1338 -DIST vbox-kernel-module-src-5.0.40.tar.xz 601604 SHA256 fb5dd2a62e1a53266f32c35523fa5ccc1d7928d4867c92637ef7368686acb70d SHA512 1236b16f2138872233a1a4f8933ec8803c7a15370cfadc148d338c803da572480d978d6be4b2512c3c80f7ee77cfef3d0a939b876ba9c53afbd267b24e2bfa65 WHIRLPOOL 59916e48536e1711cf0d98fecd3fe3ea0cce4b2eec622d34e5e52f20b05adb45dc627f4de5e55cfc92e2669b0fe71d4e1ba361d911d51da5bad3d80c42a66d24
1339 DIST vbox-kernel-module-src-5.1.26.tar.xz 625384 SHA256 5ba4f728c5b62c3d93828d99c5b54b8fb24a16bc8674e704714c4f71eb95ddc4 SHA512 c77e0d8dfade2abac95162e7e7a424be4875e44d43bcf2a13e0e50caa69f5fd0d21c77f03bb2cd4cbd5df4ab31e9fbd49ecd9220a49af8cd10081b960e014010 WHIRLPOOL 519246aeae6637cb8eb4b841552dc5e63f9a3d761fa6bcec43601c8a3194264457e4e78d200e975e31266af2944aa81f7487cf389f43d93db08f60a700a7758e
1340 DIST vbox-kernel-module-src-5.1.28.tar.xz 625464 SHA256 d6f3b7afa98d2b526d8da3c8906addc307eea069db371d012ebbffc1ccdf9dd2 SHA512 c8ae6c065ad42e57eee9a54f288ba60fd9b32efe18cb74c8a035d547b30e7d857c9091307485a8dfc77eec45de29d3217c6871140e167e2438759c314c47680a WHIRLPOOL c6508d63cacfcd3ac901f276cd793dc83c595bc73965518baa544b5cf5157ea52363b759f03586f743d6c2e0fda7252b98136c96cef28ecfb31f6915d4ce5709
1341 DIST vbox-kernel-module-src-5.1.30.tar.xz 625424 SHA256 879b1bc45b9f1a3fd929d2fd2e67dcaffe4074839f6364bf0e64618bfe2b3b2e SHA512 8e2113584e63e2ace71b708dc77428fd09167a1bded12b47312a5a8f85ef448e17f76b4300dba4c8ec99d7f8cb278cef039c6282c676e35b8f200bafb5c4770a WHIRLPOOL aa6fc3a0516514c2ca0c39ea28200559582fdd648e96084a5ca1daabfd1f478312199576ad27336eba124b443fbe122364efde2c60ca3386872cd1274333f4df
1342
1343 diff --git a/app-emulation/virtualbox-modules/virtualbox-modules-5.0.16.ebuild b/app-emulation/virtualbox-modules/virtualbox-modules-5.0.16.ebuild
1344 deleted file mode 100644
1345 index 8aab1453509..00000000000
1346 --- a/app-emulation/virtualbox-modules/virtualbox-modules-5.0.16.ebuild
1347 +++ /dev/null
1348 @@ -1,64 +0,0 @@
1349 -# Copyright 1999-2016 Gentoo Foundation
1350 -# Distributed under the terms of the GNU General Public License v2
1351 -
1352 -# XXX: the tarball here is just the kernel modules split out of the binary
1353 -# package that comes from virtualbox-bin
1354 -
1355 -EAPI=6
1356 -
1357 -inherit eutils linux-mod user
1358 -
1359 -MY_P=vbox-kernel-module-src-${PV}
1360 -DESCRIPTION="Kernel Modules for Virtualbox"
1361 -HOMEPAGE="http://www.virtualbox.org/"
1362 -SRC_URI="https://dev.gentoo.org/~polynomial-c/virtualbox/${MY_P}.tar.xz"
1363 -
1364 -LICENSE="GPL-2"
1365 -SLOT="0"
1366 -KEYWORDS="~amd64 ~x86"
1367 -IUSE="pax_kernel"
1368 -
1369 -RDEPEND="!=app-emulation/virtualbox-9999"
1370 -
1371 -S=${WORKDIR}
1372 -
1373 -BUILD_TARGETS="all"
1374 -BUILD_TARGET_ARCH="${ARCH}"
1375 -MODULE_NAMES="vboxdrv(misc:${S}) vboxnetflt(misc:${S}) vboxnetadp(misc:${S}) vboxpci(misc:${S})"
1376 -
1377 -pkg_setup() {
1378 - enewgroup vboxusers
1379 -
1380 - CONFIG_CHECK="!TRIM_UNUSED_KSYMS"
1381 - ERROR_TRIM_UNUSED_KSYMS="The kernel option CONFIG_TRIM_UNUSED_KSYMS removed kernel symbols that are needed by ${PN} to load correctly."
1382 -
1383 - linux-mod_pkg_setup
1384 -
1385 - BUILD_PARAMS="KERN_DIR=${KV_DIR} O=${KV_OUT_DIR} V=1 KBUILD_VERBOSE=1"
1386 -}
1387 -
1388 -src_prepare() {
1389 - if kernel_is -ge 2 6 33 ; then
1390 - # evil patch for new kernels - header moved
1391 - grep -lR linux/autoconf.h * | xargs sed -i -e 's:<linux/autoconf.h>:<generated/autoconf.h>:'
1392 - fi
1393 -
1394 - if use pax_kernel && kernel_is -ge 3 0 0 ; then
1395 - epatch "${FILESDIR}"/${PN}-4.1.4-pax-const.patch
1396 - fi
1397 -
1398 - default
1399 -}
1400 -
1401 -src_install() {
1402 - linux-mod_src_install
1403 - insinto /usr/lib/modules-load.d/
1404 - doins "${FILESDIR}"/virtualbox.conf
1405 -}
1406 -
1407 -pkg_postinst() {
1408 - linux-mod_pkg_postinst
1409 - elog "If you are using sys-apps/openrc, please add \"vboxdrv\", \"vboxnetflt\","
1410 - elog "\"vboxnetadp\" and \"vboxpci\" to:"
1411 - elog " /etc/conf.d/modules"
1412 -}
1413
1414 diff --git a/app-emulation/virtualbox-modules/virtualbox-modules-5.0.40.ebuild b/app-emulation/virtualbox-modules/virtualbox-modules-5.0.40.ebuild
1415 deleted file mode 100644
1416 index fc282ccbb37..00000000000
1417 --- a/app-emulation/virtualbox-modules/virtualbox-modules-5.0.40.ebuild
1418 +++ /dev/null
1419 @@ -1,64 +0,0 @@
1420 -# Copyright 1999-2017 Gentoo Foundation
1421 -# Distributed under the terms of the GNU General Public License v2
1422 -
1423 -# XXX: the tarball here is just the kernel modules split out of the binary
1424 -# package that comes from virtualbox-bin
1425 -
1426 -EAPI=6
1427 -
1428 -inherit eutils linux-mod user
1429 -
1430 -MY_P=vbox-kernel-module-src-${PV}
1431 -DESCRIPTION="Kernel Modules for Virtualbox"
1432 -HOMEPAGE="http://www.virtualbox.org/"
1433 -SRC_URI="https://dev.gentoo.org/~polynomial-c/virtualbox/${MY_P}.tar.xz"
1434 -
1435 -LICENSE="GPL-2"
1436 -SLOT="0"
1437 -KEYWORDS="amd64 x86"
1438 -IUSE="pax_kernel"
1439 -
1440 -RDEPEND="!=app-emulation/virtualbox-9999"
1441 -
1442 -S=${WORKDIR}
1443 -
1444 -BUILD_TARGETS="all"
1445 -BUILD_TARGET_ARCH="${ARCH}"
1446 -MODULE_NAMES="vboxdrv(misc:${S}) vboxnetflt(misc:${S}) vboxnetadp(misc:${S}) vboxpci(misc:${S})"
1447 -
1448 -pkg_setup() {
1449 - enewgroup vboxusers
1450 -
1451 - CONFIG_CHECK="!TRIM_UNUSED_KSYMS"
1452 - ERROR_TRIM_UNUSED_KSYMS="The kernel option CONFIG_TRIM_UNUSED_KSYMS removed kernel symbols that are needed by ${PN} to load correctly."
1453 -
1454 - linux-mod_pkg_setup
1455 -
1456 - BUILD_PARAMS="KERN_DIR=${KV_DIR} O=${KV_OUT_DIR} V=1 KBUILD_VERBOSE=1"
1457 -}
1458 -
1459 -src_prepare() {
1460 - if kernel_is -ge 2 6 33 ; then
1461 - # evil patch for new kernels - header moved
1462 - grep -lR linux/autoconf.h * | xargs sed -i -e 's:<linux/autoconf.h>:<generated/autoconf.h>:'
1463 - fi
1464 -
1465 - if use pax_kernel && kernel_is -ge 3 0 0 ; then
1466 - epatch "${FILESDIR}"/${PN}-4.1.4-pax-const.patch
1467 - fi
1468 -
1469 - default
1470 -}
1471 -
1472 -src_install() {
1473 - linux-mod_src_install
1474 - insinto /usr/lib/modules-load.d/
1475 - doins "${FILESDIR}"/virtualbox.conf
1476 -}
1477 -
1478 -pkg_postinst() {
1479 - linux-mod_pkg_postinst
1480 - elog "If you are using sys-apps/openrc, please add \"vboxdrv\", \"vboxnetflt\","
1481 - elog "\"vboxnetadp\" and \"vboxpci\" to:"
1482 - elog " /etc/conf.d/modules"
1483 -}
1484
1485 diff --git a/app-emulation/virtualbox/Manifest b/app-emulation/virtualbox/Manifest
1486 index 813ada0a13b..f4e858d95bc 100644
1487 --- a/app-emulation/virtualbox/Manifest
1488 +++ b/app-emulation/virtualbox/Manifest
1489 @@ -1,9 +1,5 @@
1490 -DIST VirtualBox-5.0.16.tar.bz2 111062984 SHA256 f5a44d33a1db911f445b2eb2d22d9293a96a535cba488b5a235577ef868fa63c SHA512 3da3a227360fb50d299e99770378f65e8cb99525377343fa8faff2360be66643d46f68323d6a8b8d4d26182082f171bb35ab2497167bf6df18827a5ea7742074 WHIRLPOOL ea709057c588f28820790c2b193decba9ee0c57e0f82aa4361ca87aef661315182e18b5ee29558e47ed92f6037eb91befa5390680661a7b9f2248c7819b4a85c
1491 -DIST VirtualBox-5.0.40.tar.bz2 112997095 SHA256 e4275b7ada40b358e6e3bd1231b3a320aa06c72ae301283cac5adb42eaa8e4b5 SHA512 70cd4355591c5aed82148954bf55637a5dcdd1a5177dba78192e7c6eadfbf3f7023f352ba8f89d9eb3c3fc55b049f7c76af6bc94e04d1766d7fbe39e51a1393c WHIRLPOOL 9f471e63814c9d48063857f3b95410f5acdd4a3bd2716c525f2449f1eae95d0e91dbe5422374a49f31f8219daa155f716455f0259d131d93afb5cd9e13a7d467
1492 DIST VirtualBox-5.1.26.tar.bz2 115915813 SHA256 b5715035e681a11ef1475f83f9503d34a00f0276b89c572eebec363dda80c8a9 SHA512 680e9646a51a0a5923b3ded10007ee1c1e2a41c6d8a961d2b2540db6578bed2847154f4cac87e3cfe1118a62595b47c7df99da854f6c340e173b9eb8cacf2add WHIRLPOOL 9d7950ec3ec2cd9b8aaa0ea319f9f5089eed7d2cd2879d313426b448a27570b5582235aa46c5ad5a0fd4d0b967f8d58a963f001549232136d6a8609262af71d0
1493 DIST VirtualBox-5.1.28.tar.bz2 116427658 SHA256 ce7d4bf6535f70e3214abeb4866f7a8634aa3c7b6dedf8825e6ad80bd821398d SHA512 5c21fd535424d7fd9adbb51894ec6d37ecf00a63a850362bd7b61fedca5031e096641814130a97ad839c0bd7089dc3dc465509615aab2af3c5735ff71005670a WHIRLPOOL 2e3fbeb39083c2e69fb23200570781a8845780a6295553af48fa9155db132e37d0fc2fb26e8a45c52864f69f02e8a0d0cbd4c895e5fbb87ab9a51dd60c7c7904
1494 DIST VirtualBox-5.1.30.tar.bz2 116510730 SHA256 6059b0986c9cdacc533177867634a76331ceccdcd46dddd111a50d1c42846d0b SHA512 6c44d9593f4815644a484b306e621fe7eca224002f85d89c00f2470300f2c78dbfe50ffda61d2c2465df14ca77c70a2ab86f1a05116feeee9f5833857eb18dee WHIRLPOOL dc1701211cc8247cb23800557cf7e2d34e5063806c5b22cd2c38454531ca390902fd6a764bfc17d14d33ec055de2d924853c9ed6c3ba29fb7998455f06109b6f
1495 -DIST virtualbox-5.0.16-patches-01.tar.xz 4024 SHA256 200eb980a12323a61d0fa6dbf61ed64ee1e2bb5e18e16eabdf8668d8fd8be3e4 SHA512 4eed117253754abee9088d4c320b4a6f0b3e1c8313b98f354cb727001156fe68d553a677073d40b921437f4cc073420866d1533aad4e61a79607d8360abbfd4a WHIRLPOOL ab40851873d55ae873ca8ff88670a17476c0d502116f4abda7b766064a2daa71929eb69b4b68c64c3d2d0762134fe85d07044bdedde4bf15924520a604972aaa
1496 -DIST virtualbox-5.0.32-patches-01.tar.xz 4400 SHA256 e5bf5b5b391b3402172b5a30952da50affacaeaf40a75df0430ad623fcd8ed6f SHA512 5df0ecb4f9190375edc62d231aacd381c36a1697cc33df48b2f2d68a05ca1c855d127e466eda62030736dbcee76f5c67a519a2f42b72eacaf7ed65a8cf991e8a WHIRLPOOL 4c11787951848aadacc0772df5a46ce8d54445e0120901be280f493d4cc6333e986d0376f33ac0217dbb23758240c025028ea1d21c360fc2840c8e3003a0ff62
1497 DIST virtualbox-5.1.24-patches-01.tar.xz 2708 SHA256 8ea5e08da07d555a4868abf6f4d689c2f6695bdb773010a01915fcc6c354f361 SHA512 0028e593818013f809831ac5a73eec63988c0aefb4b309fb3c928efbea8db8b8f46bd7c82f156396adc704f0567474df262dfe9bb6e09af0b2c23528fe2c6e2d WHIRLPOOL 5a1af78c2767608d2b1c2a4b262dbce038d2b6ed9d0499eb60ac1eb64fd6b832efdbafc2b85881ac67efd8794adcc3490fcbf61b74ad7ae576d52e8aff597b04
1498 DIST virtualbox-5.1.30-patches-01.tar.xz 2440 SHA256 9578c312de7d20e4b00bb2f9f2e538f3d64a094f651db736ae7bd6e55e4e5bd7 SHA512 cebe6798f3d5265b3119ebd75848481f5a22ff5eeeae063810f65a987d3559cb0d85dcefadbc71636169c16e8f95d6aa989d0809cf7508dd355c5259db16db5d WHIRLPOOL 8466859f5a8f1204e513374e492a8649c747aa09040d4b2dad5e6a2544d178fd69ad32b5c44b7ef6380dd151b808b8e7c8763fb4514daaaef11599a871fe6460
1499
1500 diff --git a/app-emulation/virtualbox/virtualbox-5.0.16-r1.ebuild b/app-emulation/virtualbox/virtualbox-5.0.16-r1.ebuild
1501 deleted file mode 100644
1502 index 86c074f5eb3..00000000000
1503 --- a/app-emulation/virtualbox/virtualbox-5.0.16-r1.ebuild
1504 +++ /dev/null
1505 @@ -1,431 +0,0 @@
1506 -# Copyright 1999-2017 Gentoo Foundation
1507 -# Distributed under the terms of the GNU General Public License v2
1508 -
1509 -EAPI=6
1510 -
1511 -PYTHON_COMPAT=( python2_7 )
1512 -inherit eutils fdo-mime flag-o-matic java-pkg-opt-2 linux-info multilib pax-utils python-single-r1 toolchain-funcs udev
1513 -
1514 -MY_PV="${PV/beta/BETA}"
1515 -MY_PV="${MY_PV/rc/RC}"
1516 -MY_P=VirtualBox-${MY_PV}
1517 -SRC_URI="http://download.virtualbox.org/virtualbox/${MY_PV}/${MY_P}.tar.bz2
1518 - https://dev.gentoo.org/~polynomial-c/${PN}/patchsets/${PN}-5.0.16-patches-01.tar.xz"
1519 -S="${WORKDIR}/${MY_P}"
1520 -
1521 -DESCRIPTION="Family of powerful x86 virtualization products for enterprise and home use"
1522 -HOMEPAGE="http://www.virtualbox.org/"
1523 -
1524 -LICENSE="GPL-2"
1525 -SLOT="0"
1526 -KEYWORDS="~amd64 ~x86"
1527 -IUSE="alsa doc headless java libressl lvm pam pulseaudio +opengl python +qt4 +sdk +udev vboxwebsrv vnc"
1528 -
1529 -RDEPEND="!app-emulation/virtualbox-bin
1530 - ~app-emulation/virtualbox-modules-${PV}
1531 - dev-libs/libIDL
1532 - >=dev-libs/libxslt-1.1.19
1533 - net-misc/curl
1534 - dev-libs/libxml2
1535 - media-libs/libpng:0=
1536 - media-libs/libvpx:0=
1537 - sys-libs/zlib
1538 - !headless? (
1539 - media-libs/libsdl:0[X,video]
1540 - x11-libs/libX11
1541 - x11-libs/libXcursor
1542 - x11-libs/libXext
1543 - x11-libs/libXmu
1544 - x11-libs/libXt
1545 - opengl? ( virtual/opengl media-libs/freeglut )
1546 - qt4? (
1547 - dev-qt/qtgui:4
1548 - dev-qt/qtcore:4
1549 - opengl? ( dev-qt/qtopengl:4 )
1550 - x11-libs/libXinerama
1551 - )
1552 - )
1553 - java? ( >=virtual/jre-1.6:= )
1554 - libressl? ( dev-libs/libressl:= )
1555 - !libressl? ( dev-libs/openssl:0= )
1556 - lvm? ( sys-fs/lvm2 )
1557 - udev? ( >=virtual/udev-171 )
1558 - vnc? ( >=net-libs/libvncserver-0.9.9 )"
1559 -DEPEND="${RDEPEND}
1560 - >=dev-util/kbuild-0.1.9998_pre20131130
1561 - >=dev-lang/yasm-0.6.2
1562 - sys-devel/bin86
1563 - sys-libs/libcap
1564 - sys-power/iasl
1565 - virtual/pkgconfig
1566 - alsa? ( >=media-libs/alsa-lib-1.0.13 )
1567 - doc? (
1568 - dev-texlive/texlive-basic
1569 - dev-texlive/texlive-latex
1570 - dev-texlive/texlive-latexrecommended
1571 - dev-texlive/texlive-latexextra
1572 - dev-texlive/texlive-fontsrecommended
1573 - dev-texlive/texlive-fontsextra
1574 - )
1575 - !headless? ( x11-libs/libXinerama )
1576 - java? ( >=virtual/jre-1.6:= )
1577 - pam? ( sys-libs/pam )
1578 - pulseaudio? ( media-sound/pulseaudio )
1579 - vboxwebsrv? ( net-libs/gsoap[-gnutls(-)] )
1580 - ${PYTHON_DEPS}"
1581 -
1582 -QA_TEXTRELS_x86="usr/lib/virtualbox-ose/VBoxGuestPropSvc.so
1583 - usr/lib/virtualbox/VBoxSDL.so
1584 - usr/lib/virtualbox/VBoxSharedFolders.so
1585 - usr/lib/virtualbox/VBoxDD2.so
1586 - usr/lib/virtualbox/VBoxOGLrenderspu.so
1587 - usr/lib/virtualbox/VBoxPython.so
1588 - usr/lib/virtualbox/VBoxDD.so
1589 - usr/lib/virtualbox/VBoxDDU.so
1590 - usr/lib/virtualbox/VBoxREM64.so
1591 - usr/lib/virtualbox/VBoxSharedClipboard.so
1592 - usr/lib/virtualbox/VBoxHeadless.so
1593 - usr/lib/virtualbox/VBoxRT.so
1594 - usr/lib/virtualbox/VBoxREM.so
1595 - usr/lib/virtualbox/VBoxSettings.so
1596 - usr/lib/virtualbox/VBoxKeyboard.so
1597 - usr/lib/virtualbox/VBoxSharedCrOpenGL.so
1598 - usr/lib/virtualbox/VBoxVMM.so
1599 - usr/lib/virtualbox/VirtualBox.so
1600 - usr/lib/virtualbox/VBoxOGLhosterrorspu.so
1601 - usr/lib/virtualbox/components/VBoxC.so
1602 - usr/lib/virtualbox/components/VBoxSVCM.so
1603 - usr/lib/virtualbox/components/VBoxDDU.so
1604 - usr/lib/virtualbox/components/VBoxRT.so
1605 - usr/lib/virtualbox/components/VBoxREM.so
1606 - usr/lib/virtualbox/components/VBoxVMM.so
1607 - usr/lib/virtualbox/VBoxREM32.so
1608 - usr/lib/virtualbox/VBoxPython2_7.so
1609 - usr/lib/virtualbox/VBoxXPCOMC.so
1610 - usr/lib/virtualbox/VBoxOGLhostcrutil.so
1611 - usr/lib/virtualbox/VBoxNetDHCP.so
1612 - usr/lib/virtualbox/VBoxNetNAT.so"
1613 -
1614 -REQUIRED_USE="
1615 - java? ( sdk )
1616 - python? ( sdk )
1617 - vboxwebsrv? ( java )
1618 - ${PYTHON_REQUIRED_USE}
1619 -"
1620 -
1621 -pkg_setup() {
1622 - if ! use headless && ! use qt4 ; then
1623 - einfo "No USE=\"qt4\" selected, this build will not include"
1624 - einfo "any Qt frontend."
1625 - elif use headless && use qt4 ; then
1626 - einfo "You selected USE=\"headless qt4\", defaulting to"
1627 - einfo "USE=\"headless\", this build will not include any X11/Qt frontend."
1628 - fi
1629 -
1630 - if ! use opengl ; then
1631 - einfo "No USE=\"opengl\" selected, this build will lack"
1632 - einfo "the OpenGL feature."
1633 - fi
1634 - if ! use python ; then
1635 - einfo "You have disabled the \"python\" USE flag. This will only"
1636 - einfo "disable the python bindings being installed."
1637 - fi
1638 - java-pkg-opt-2_pkg_setup
1639 - python-single-r1_pkg_setup
1640 -
1641 - tc-ld-disable-gold #bug 488176
1642 - tc-export CC CXX LD AR RANLIB
1643 - export HOST_CC="$(tc-getBUILD_CC)"
1644 -}
1645 -
1646 -src_prepare() {
1647 - # Remove shipped binaries (kBuild,yasm), see bug #232775
1648 - rm -r kBuild/bin tools || die
1649 -
1650 - # Remove pointless GCC version check
1651 - sed -e '/^check_gcc$/d' -i configure || die
1652 -
1653 - # Disable things unused or split into separate ebuilds
1654 - sed -e "s@MY_LIBDIR@$(get_libdir)@" \
1655 - "${FILESDIR}"/${PN}-5-localconfig > LocalConfig.kmk || die
1656 -
1657 - # Respect LDFLAGS
1658 - sed -e "s@_LDFLAGS\.${ARCH}*.*=@& ${LDFLAGS}@g" \
1659 - -i Config.kmk src/libs/xpcom18a4/Config.kmk || die
1660 -
1661 - # Do not use hard-coded ld (related to bug #488176)
1662 - sed -e '/QUIET)ld /s@ld @$(LD) @' \
1663 - -i src/VBox/Devices/PC/ipxe/Makefile.kmk || die
1664 -
1665 - # Use PAM only when pam USE flag is enbaled (bug #376531)
1666 - if ! use pam ; then
1667 - elog "Disabling PAM removes the possibility to use the VRDP features."
1668 - sed -i 's@^.*VBOX_WITH_PAM@#VBOX_WITH_PAM@' Config.kmk || die
1669 - sed -i 's@\(.*/auth/Makefile.kmk.*\)@#\1@' \
1670 - src/VBox/HostServices/Makefile.kmk || die
1671 - fi
1672 -
1673 - # add correct java path
1674 - if use java ; then
1675 - sed "s@/usr/lib/jvm/java-6-sun@$(java-config -O)@" \
1676 - -i "${S}"/Config.kmk || die
1677 - java-pkg-opt-2_src_prepare
1678 - fi
1679 -
1680 - if ! gcc-specs-pie ; then
1681 - rm "${WORKDIR}/patches/050_${PN}-5.0.2-nopie.patch" || die
1682 - fi
1683 -
1684 - eapply "${WORKDIR}/patches"
1685 -
1686 - eapply_user
1687 -}
1688 -
1689 -src_configure() {
1690 - local myconf
1691 - use alsa || myconf+=( --disable-alsa )
1692 - use doc || myconf+=( --disable-docs )
1693 - use java || myconf+=( --disable-java )
1694 - use lvm || myconf+=( --disable-devmapper )
1695 - use opengl || myconf+=( --disable-opengl )
1696 - use pulseaudio || myconf+=( --disable-pulse )
1697 - use python || myconf+=( --disable-python )
1698 - use vboxwebsrv && myconf+=( --enable-webservice )
1699 - use vnc && myconf+=( --enable-vnc )
1700 - if ! use headless ; then
1701 - use qt4 || myconf+=( --disable-qt4 )
1702 - else
1703 - myconf+=( --build-headless --disable-opengl )
1704 - fi
1705 - if use amd64 && ! has_multilib_profile ; then
1706 - myconf+=( --disable-vmmraw )
1707 - fi
1708 - # not an autoconf script
1709 - ./configure \
1710 - --with-gcc="$(tc-getCC)" \
1711 - --with-g++="$(tc-getCXX)" \
1712 - --disable-dbus \
1713 - --disable-kmods \
1714 - ${myconf[@]} \
1715 - || die "configure failed"
1716 -}
1717 -
1718 -src_compile() {
1719 - source ./env.sh || die
1720 -
1721 - # Force kBuild to respect C[XX]FLAGS and MAKEOPTS (bug #178529)
1722 - # and strip all flags
1723 - # strip-flags
1724 -
1725 - MAKEJOBS=$(echo ${MAKEOPTS} | egrep -o '(\-j|\-\-jobs)(=?|[[:space:]]*)[[:digit:]]+')
1726 - MAKELOAD=$(echo ${MAKEOPTS} | egrep -o '(\-l|\-\-load-average)(=?|[[:space:]]*)[[:digit:]]+') #'
1727 - MAKEOPTS="${MAKEJOBS} ${MAKELOAD}"
1728 - MAKE="kmk" emake \
1729 - VBOX_BUILD_PUBLISHER=_Gentoo \
1730 - TOOL_GCC3_CC="$(tc-getCC)" TOOL_GCC3_CXX="$(tc-getCXX)" \
1731 - TOOL_GCC3_AS="$(tc-getCC)" TOOL_GCC3_AR="$(tc-getAR)" \
1732 - TOOL_GCC3_LD="$(tc-getCXX)" TOOL_GCC3_LD_SYSMOD="$(tc-getLD)" \
1733 - TOOL_GCC3_CFLAGS="${CFLAGS}" TOOL_GCC3_CXXFLAGS="${CXXFLAGS}" \
1734 - VBOX_GCC_OPT="${CXXFLAGS}" \
1735 - TOOL_YASM_AS=yasm KBUILD_VERBOSE=2 \
1736 - all
1737 -}
1738 -
1739 -src_install() {
1740 - cd "${S}"/out/linux.${ARCH}/release/bin || die
1741 -
1742 - local vbox_inst_path="/usr/$(get_libdir)/${PN}" each fwfile
1743 -
1744 - vbox_inst() {
1745 - local binary="${1}"
1746 - local perms="${2:-0750}"
1747 - local path="${3:-${vbox_inst_path}}"
1748 -
1749 - [[ -n "${binary}" ]] || die "vbox_inst: No binray given!"
1750 - [[ ${perms} =~ ^[[:digit:]]+{4}$ ]] || die "vbox_inst: perms must consist of four digits."
1751 -
1752 - insinto ${path}
1753 - doins ${binary}
1754 - fowners root:vboxusers ${path}/${binary}
1755 - fperms ${perms} ${path}/${binary}
1756 - }
1757 -
1758 - # Create configuration files
1759 - insinto /etc/vbox
1760 - newins "${FILESDIR}/${PN}-4-config" vbox.cfg
1761 -
1762 - # Set the right libdir
1763 - sed -i \
1764 - -e "s@MY_LIBDIR@$(get_libdir)@" \
1765 - "${D}"/etc/vbox/vbox.cfg || die "vbox.cfg sed failed"
1766 -
1767 - # Install the wrapper script
1768 - exeinto ${vbox_inst_path}
1769 - newexe "${FILESDIR}/${PN}-ose-5-wrapper" "VBox"
1770 - fowners root:vboxusers ${vbox_inst_path}/VBox
1771 - fperms 0750 ${vbox_inst_path}/VBox
1772 -
1773 - # Install binaries and libraries
1774 - insinto ${vbox_inst_path}
1775 - doins -r components
1776 -
1777 - # *.rc files for x86_64 are only available on multilib systems
1778 - local rcfiles="*.rc"
1779 - if use amd64 && ! has_multilib_profile ; then
1780 - rcfiles=""
1781 - fi
1782 - for each in VBox{ExtPackHelperApp,Manage,SVC,Tunctl,XPCOMIPCD} *so *r0 ${rcfiles} ; do
1783 - vbox_inst ${each}
1784 - done
1785 -
1786 - # These binaries need to be suid root in any case.
1787 - for each in VBox{Headless,Net{AdpCtl,DHCP,NAT}} ; do
1788 - vbox_inst ${each} 4750
1789 - done
1790 -
1791 - # Install EFI Firmware files (bug #320757)
1792 - pushd "${S}"/src/VBox/Devices/EFI/FirmwareBin &>/dev/null || die
1793 - for fwfile in VBoxEFI{32,64}.fd ; do
1794 - vbox_inst ${fwfile} 0644
1795 - done
1796 - popd &>/dev/null || die
1797 -
1798 - # VBoxSVC and VBoxManage need to be pax-marked (bug #403453)
1799 - # VBoxXPCOMIPCD (bug #524202)
1800 - for each in VBox{Headless,Manage,SVC,XPCOMIPCD} ; do
1801 - pax-mark -m "${D}"${vbox_inst_path}/${each}
1802 - done
1803 -
1804 - # Symlink binaries to the shipped wrapper
1805 - for each in vbox{headless,manage} VBox{Headless,Manage,VRDP} ; do
1806 - dosym ${vbox_inst_path}/VBox /usr/bin/${each}
1807 - done
1808 - dosym ${vbox_inst_path}/VBoxTunctl /usr/bin/VBoxTunctl
1809 -
1810 - # VRDPAuth only works with this (bug #351949)
1811 - dosym VBoxAuth.so ${vbox_inst_path}/VRDPAuth.so
1812 -
1813 - # set an env-variable for 3rd party tools
1814 - echo -n "VBOX_APP_HOME=${vbox_inst_path}" > "${T}/90virtualbox"
1815 - doenvd "${T}/90virtualbox"
1816 -
1817 - if ! use headless ; then
1818 - vbox_inst VBoxSDL 4750
1819 - pax-mark -m "${D}"${vbox_inst_path}/VBoxSDL
1820 -
1821 - for each in vboxsdl VBoxSDL ; do
1822 - dosym ${vbox_inst_path}/VBox /usr/bin/${each}
1823 - done
1824 -
1825 - if use opengl && use qt4 ; then
1826 - vbox_inst VBoxTestOGL
1827 - pax-mark -m "${D}"${vbox_inst_path}/VBoxTestOGL
1828 - fi
1829 -
1830 - if use qt4 ; then
1831 - vbox_inst VirtualBox 4750
1832 - pax-mark -m "${D}"${vbox_inst_path}/VirtualBox
1833 -
1834 - for each in virtualbox VirtualBox ; do
1835 - dosym ${vbox_inst_path}/VBox /usr/bin/${each}
1836 - done
1837 -
1838 - insinto /usr/share/${PN}
1839 - doins -r nls
1840 -
1841 - newmenu "${FILESDIR}"/${PN}-ose.desktop-2 ${PN}.desktop
1842 - fi
1843 -
1844 - pushd "${S}"/src/VBox/Artwork/OSE &>/dev/null || die
1845 - for size in 16 32 48 64 128 ; do
1846 - newicon -s ${size} ${PN}-${size}px.png ${PN}.png
1847 - done
1848 - newicon ${PN}-48px.png ${PN}.png
1849 - doicon -s scalable ${PN}.svg
1850 - popd &>/dev/null || die
1851 - fi
1852 -
1853 - if use lvm ; then
1854 - vbox_inst VBoxVolInfo 4750
1855 - dosym ${vbox_inst_path}/VBoxVolInfo /usr/bin/VBoxVolInfo
1856 - fi
1857 -
1858 - if use sdk ; then
1859 - insinto ${vbox_inst_path}
1860 - doins -r sdk
1861 -
1862 - if use java ; then
1863 - java-pkg_regjar "${D}${vbox_inst_path}/sdk/bindings/xpcom/java/vboxjxpcom.jar"
1864 - java-pkg_regso "${D}${vbox_inst_path}/libvboxjxpcom.so"
1865 - fi
1866 - fi
1867 -
1868 - if use udev ; then
1869 - # New way of handling USB device nodes for VBox (bug #356215)
1870 - local udevdir="$(get_udevdir)"
1871 - insinto ${udevdir}
1872 - doins VBoxCreateUSBNode.sh
1873 - fowners root:vboxusers ${udevdir}/VBoxCreateUSBNode.sh
1874 - fperms 0750 ${udevdir}/VBoxCreateUSBNode.sh
1875 - insinto ${udevdir}/rules.d
1876 - sed "s@%UDEVDIR%@${udevdir}@" "${FILESDIR}"/10-virtualbox.rules \
1877 - > "${T}"/10-virtualbox.rules || die
1878 - doins "${T}"/10-virtualbox.rules
1879 - fi
1880 -
1881 - if use vboxwebsrv ; then
1882 - vbox_inst vboxwebsrv
1883 - dosym ${vbox_inst_path}/VBox /usr/bin/vboxwebsrv
1884 - newinitd "${FILESDIR}"/vboxwebsrv-initd vboxwebsrv
1885 - newconfd "${FILESDIR}"/vboxwebsrv-confd vboxwebsrv
1886 - fi
1887 -}
1888 -
1889 -pkg_postinst() {
1890 - fdo-mime_desktop_database_update
1891 -
1892 - if use udev ; then
1893 - udevadm control --reload-rules \
1894 - && udevadm trigger --subsystem-match=usb
1895 - fi
1896 -
1897 - if ! use headless && use qt4 ; then
1898 - elog "To launch VirtualBox just type: \"virtualbox\"."
1899 - fi
1900 - elog "You must be in the vboxusers group to use VirtualBox."
1901 - elog ""
1902 - elog "The latest user manual is available for download at:"
1903 - elog "http://download.virtualbox.org/virtualbox/${PV}/UserManual.pdf"
1904 - elog ""
1905 - elog "For advanced networking setups you should emerge:"
1906 - elog "net-misc/bridge-utils and sys-apps/usermode-utilities"
1907 - elog ""
1908 - elog "IMPORTANT!"
1909 - elog "If you upgrade from app-emulation/virtualbox-ose make sure to run"
1910 - elog "\"env-update\" as root and logout and relogin as the user you wish"
1911 - elog "to run ${PN} as."
1912 - elog ""
1913 - elog "Starting with version 4.0.0, ${PN} has USB-1 support."
1914 - elog "For USB-2 support, PXE-boot ability and VRDP support please emerge"
1915 - elog " app-emulation/virtualbox-extpack-oracle"
1916 - elog "package."
1917 - elog "Starting with version 5.0.0, ${PN} no longer has the \"additions\" and"
1918 - elog "the \"extension\" USE flag. For installation of the guest additions ISO"
1919 - elog "image, please emerge"
1920 - elog " app-emulation/virtualbox-additions"
1921 - elog "and for the USB2, USB3, VRDP and PXE boot ROM modules, please emerge"
1922 - elog " app-emulation/virtualbox-extpack-oracle"
1923 - if ! use udev ; then
1924 - elog ""
1925 - elog "WARNING!"
1926 - elog "Without USE=udev, USB devices will likely not work in ${PN}."
1927 - elif [ -e "${ROOT}/etc/udev/rules.d/10-virtualbox.rules" ] ; then
1928 - elog ""
1929 - elog "Please remove \"${ROOT}/etc/udev/rules.d/10-virtualbox.rules\""
1930 - elog "or else USB in ${PN} won't work."
1931 - fi
1932 -}
1933 -
1934 -pkg_postrm() {
1935 - fdo-mime_desktop_database_update
1936 -}
1937
1938 diff --git a/app-emulation/virtualbox/virtualbox-5.0.40.ebuild b/app-emulation/virtualbox/virtualbox-5.0.40.ebuild
1939 deleted file mode 100644
1940 index e691c0abfb1..00000000000
1941 --- a/app-emulation/virtualbox/virtualbox-5.0.40.ebuild
1942 +++ /dev/null
1943 @@ -1,435 +0,0 @@
1944 -# Copyright 1999-2017 Gentoo Foundation
1945 -# Distributed under the terms of the GNU General Public License v2
1946 -
1947 -EAPI=6
1948 -
1949 -PYTHON_COMPAT=( python2_7 )
1950 -inherit eutils fdo-mime flag-o-matic java-pkg-opt-2 linux-info multilib pax-utils python-single-r1 toolchain-funcs udev
1951 -
1952 -MY_PV="${PV/beta/BETA}"
1953 -MY_PV="${MY_PV/rc/RC}"
1954 -MY_P=VirtualBox-${MY_PV}
1955 -SRC_URI="http://download.virtualbox.org/virtualbox/${MY_PV}/${MY_P}.tar.bz2
1956 - https://dev.gentoo.org/~polynomial-c/${PN}/patchsets/${PN}-5.0.32-patches-01.tar.xz"
1957 -S="${WORKDIR}/${MY_P}"
1958 -
1959 -DESCRIPTION="Family of powerful x86 virtualization products for enterprise and home use"
1960 -HOMEPAGE="http://www.virtualbox.org/"
1961 -
1962 -LICENSE="GPL-2"
1963 -SLOT="0"
1964 -KEYWORDS="amd64 x86"
1965 -IUSE="alsa debug doc headless java libressl lvm pam pulseaudio +opengl python +qt4 +sdk +udev vboxwebsrv vnc"
1966 -
1967 -RDEPEND="!app-emulation/virtualbox-bin
1968 - ~app-emulation/virtualbox-modules-${PV}
1969 - dev-libs/libIDL
1970 - >=dev-libs/libxslt-1.1.19
1971 - net-misc/curl
1972 - dev-libs/libxml2
1973 - media-libs/libpng:0=
1974 - media-libs/libvpx:0=
1975 - sys-libs/zlib
1976 - !headless? (
1977 - media-libs/libsdl:0[X,video]
1978 - x11-libs/libX11
1979 - x11-libs/libXcursor
1980 - x11-libs/libXext
1981 - x11-libs/libXmu
1982 - x11-libs/libXt
1983 - opengl? ( virtual/opengl media-libs/freeglut )
1984 - qt4? (
1985 - dev-qt/qtgui:4
1986 - dev-qt/qtcore:4
1987 - opengl? ( dev-qt/qtopengl:4 )
1988 - x11-libs/libXinerama
1989 - )
1990 - )
1991 - java? ( >=virtual/jre-1.6:= )
1992 - libressl? ( dev-libs/libressl:= )
1993 - !libressl? ( dev-libs/openssl:0= )
1994 - lvm? ( sys-fs/lvm2 )
1995 - udev? ( >=virtual/udev-171 )
1996 - vnc? ( >=net-libs/libvncserver-0.9.9 )"
1997 -DEPEND="${RDEPEND}
1998 - >=dev-util/kbuild-0.1.9998_pre20131130
1999 - >=dev-lang/yasm-0.6.2
2000 - sys-devel/bin86
2001 - sys-libs/libcap
2002 - sys-power/iasl
2003 - virtual/pkgconfig
2004 - alsa? ( >=media-libs/alsa-lib-1.0.13 )
2005 - doc? (
2006 - app-text/docbook-sgml-dtd:4.4
2007 - dev-texlive/texlive-basic
2008 - dev-texlive/texlive-latex
2009 - dev-texlive/texlive-latexrecommended
2010 - dev-texlive/texlive-latexextra
2011 - dev-texlive/texlive-fontsrecommended
2012 - dev-texlive/texlive-fontsextra
2013 - )
2014 - !headless? ( x11-libs/libXinerama )
2015 - java? ( >=virtual/jre-1.6:= )
2016 - pam? ( sys-libs/pam )
2017 - pulseaudio? ( media-sound/pulseaudio )
2018 - vboxwebsrv? ( net-libs/gsoap[-gnutls(-)] )
2019 - ${PYTHON_DEPS}"
2020 -
2021 -QA_TEXTRELS_x86="usr/lib/virtualbox-ose/VBoxGuestPropSvc.so
2022 - usr/lib/virtualbox/VBoxSDL.so
2023 - usr/lib/virtualbox/VBoxSharedFolders.so
2024 - usr/lib/virtualbox/VBoxDD2.so
2025 - usr/lib/virtualbox/VBoxOGLrenderspu.so
2026 - usr/lib/virtualbox/VBoxPython.so
2027 - usr/lib/virtualbox/VBoxDD.so
2028 - usr/lib/virtualbox/VBoxDDU.so
2029 - usr/lib/virtualbox/VBoxREM64.so
2030 - usr/lib/virtualbox/VBoxSharedClipboard.so
2031 - usr/lib/virtualbox/VBoxHeadless.so
2032 - usr/lib/virtualbox/VBoxRT.so
2033 - usr/lib/virtualbox/VBoxREM.so
2034 - usr/lib/virtualbox/VBoxSettings.so
2035 - usr/lib/virtualbox/VBoxKeyboard.so
2036 - usr/lib/virtualbox/VBoxSharedCrOpenGL.so
2037 - usr/lib/virtualbox/VBoxVMM.so
2038 - usr/lib/virtualbox/VirtualBox.so
2039 - usr/lib/virtualbox/VBoxOGLhosterrorspu.so
2040 - usr/lib/virtualbox/components/VBoxC.so
2041 - usr/lib/virtualbox/components/VBoxSVCM.so
2042 - usr/lib/virtualbox/components/VBoxDDU.so
2043 - usr/lib/virtualbox/components/VBoxRT.so
2044 - usr/lib/virtualbox/components/VBoxREM.so
2045 - usr/lib/virtualbox/components/VBoxVMM.so
2046 - usr/lib/virtualbox/VBoxREM32.so
2047 - usr/lib/virtualbox/VBoxPython2_7.so
2048 - usr/lib/virtualbox/VBoxXPCOMC.so
2049 - usr/lib/virtualbox/VBoxOGLhostcrutil.so
2050 - usr/lib/virtualbox/VBoxNetDHCP.so
2051 - usr/lib/virtualbox/VBoxNetNAT.so"
2052 -
2053 -REQUIRED_USE="
2054 - java? ( sdk )
2055 - python? ( sdk )
2056 - vboxwebsrv? ( java )
2057 - ${PYTHON_REQUIRED_USE}
2058 -"
2059 -
2060 -pkg_setup() {
2061 - if ! use headless && ! use qt4 ; then
2062 - einfo "No USE=\"qt4\" selected, this build will not include"
2063 - einfo "any Qt frontend."
2064 - elif use headless && use qt4 ; then
2065 - einfo "You selected USE=\"headless qt4\", defaulting to"
2066 - einfo "USE=\"headless\", this build will not include any X11/Qt frontend."
2067 - fi
2068 -
2069 - if ! use opengl ; then
2070 - einfo "No USE=\"opengl\" selected, this build will lack"
2071 - einfo "the OpenGL feature."
2072 - fi
2073 - if ! use python ; then
2074 - einfo "You have disabled the \"python\" USE flag. This will only"
2075 - einfo "disable the python bindings being installed."
2076 - fi
2077 - java-pkg-opt-2_pkg_setup
2078 - python-single-r1_pkg_setup
2079 -
2080 - tc-ld-disable-gold #bug 488176
2081 - tc-export CC CXX LD AR RANLIB
2082 - export HOST_CC="$(tc-getBUILD_CC)"
2083 -}
2084 -
2085 -src_prepare() {
2086 - # Remove shipped binaries (kBuild,yasm), see bug #232775
2087 - rm -r kBuild/bin tools || die
2088 -
2089 - # Remove pointless GCC version check
2090 - sed -e '/^check_gcc$/d' -i configure || die
2091 -
2092 - # Disable things unused or split into separate ebuilds
2093 - sed -e "s@MY_LIBDIR@$(get_libdir)@" \
2094 - "${FILESDIR}"/${PN}-5-localconfig > LocalConfig.kmk || die
2095 -
2096 - # Respect LDFLAGS
2097 - sed -e "s@_LDFLAGS\.${ARCH}*.*=@& ${LDFLAGS}@g" \
2098 - -i Config.kmk src/libs/xpcom18a4/Config.kmk || die
2099 -
2100 - # Do not use hard-coded ld (related to bug #488176)
2101 - sed -e '/QUIET)ld /s@ld @$(LD) @' \
2102 - -i src/VBox/Devices/PC/ipxe/Makefile.kmk || die
2103 -
2104 - # Use PAM only when pam USE flag is enbaled (bug #376531)
2105 - if ! use pam ; then
2106 - elog "Disabling PAM removes the possibility to use the VRDP features."
2107 - sed -i 's@^.*VBOX_WITH_PAM@#VBOX_WITH_PAM@' Config.kmk || die
2108 - sed -i 's@\(.*/auth/Makefile.kmk.*\)@#\1@' \
2109 - src/VBox/HostServices/Makefile.kmk || die
2110 - fi
2111 -
2112 - # add correct java path
2113 - if use java ; then
2114 - sed "s@/usr/lib/jvm/java-6-sun@$(java-config -O)@" \
2115 - -i "${S}"/Config.kmk || die
2116 - java-pkg-opt-2_src_prepare
2117 - fi
2118 -
2119 - #if ! gcc-specs-pie ; then
2120 - rm "${WORKDIR}/patches/050_${PN}-5.0.2-nopie.patch" || die
2121 - #fi
2122 -
2123 - eapply "${WORKDIR}/patches"
2124 -
2125 - eapply_user
2126 -}
2127 -
2128 -src_configure() {
2129 - local myconf
2130 - use alsa || myconf+=( --disable-alsa )
2131 - use debug && myconf+=( --build-debug )
2132 - use doc || myconf+=( --disable-docs )
2133 - use java || myconf+=( --disable-java )
2134 - use lvm || myconf+=( --disable-devmapper )
2135 - use opengl || myconf+=( --disable-opengl )
2136 - use pulseaudio || myconf+=( --disable-pulse )
2137 - use python || myconf+=( --disable-python )
2138 - use vboxwebsrv && myconf+=( --enable-webservice )
2139 - use vnc && myconf+=( --enable-vnc )
2140 - if ! use headless ; then
2141 - use qt4 || myconf+=( --disable-qt4 )
2142 - else
2143 - myconf+=( --build-headless --disable-opengl )
2144 - fi
2145 - if use amd64 && ! has_multilib_profile ; then
2146 - myconf+=( --disable-vmmraw )
2147 - fi
2148 - # not an autoconf script
2149 - ./configure \
2150 - --with-gcc="$(tc-getCC)" \
2151 - --with-g++="$(tc-getCXX)" \
2152 - --disable-dbus \
2153 - --disable-kmods \
2154 - ${myconf[@]} \
2155 - || die "configure failed"
2156 -}
2157 -
2158 -src_compile() {
2159 - source ./env.sh || die
2160 -
2161 - MAKEJOBS=$(echo ${MAKEOPTS} | egrep -o '(\-j|\-\-jobs)(=?|[[:space:]]*)[[:digit:]]+')
2162 - MAKELOAD=$(echo ${MAKEOPTS} | egrep -o '(\-l|\-\-load-average)(=?|[[:space:]]*)[[:digit:]]+') #'
2163 - MAKEOPTS="${MAKEJOBS} ${MAKELOAD}"
2164 - MAKE="kmk" emake \
2165 - VBOX_BUILD_PUBLISHER=_Gentoo \
2166 - TOOL_GCC3_CC="$(tc-getCC)" TOOL_GCC3_CXX="$(tc-getCXX)" \
2167 - TOOL_GCC3_AS="$(tc-getCC)" TOOL_GCC3_AR="$(tc-getAR)" \
2168 - TOOL_GCC3_LD="$(tc-getCXX)" TOOL_GCC3_LD_SYSMOD="$(tc-getLD)" \
2169 - TOOL_GCC3_CFLAGS="${CFLAGS}" TOOL_GCC3_CXXFLAGS="${CXXFLAGS}" \
2170 - VBOX_GCC_OPT="${CXXFLAGS}" \
2171 - TOOL_YASM_AS=yasm KBUILD_VERBOSE=2 \
2172 - all
2173 -}
2174 -
2175 -src_install() {
2176 - local binpath="release"
2177 - use debug && binpath="debug"
2178 - cd "${S}"/out/linux.${ARCH}/${binpath}/bin || die
2179 -
2180 - local vbox_inst_path="/usr/$(get_libdir)/${PN}" each fwfile
2181 -
2182 - vbox_inst() {
2183 - local binary="${1}"
2184 - local perms="${2:-0750}"
2185 - local path="${3:-${vbox_inst_path}}"
2186 -
2187 - [[ -n "${binary}" ]] || die "vbox_inst: No binray given!"
2188 - [[ ${perms} =~ ^[[:digit:]]+{4}$ ]] || die "vbox_inst: perms must consist of four digits."
2189 -
2190 - insinto ${path}
2191 - doins ${binary}
2192 - fowners root:vboxusers ${path}/${binary}
2193 - fperms ${perms} ${path}/${binary}
2194 - }
2195 -
2196 - # Create configuration files
2197 - insinto /etc/vbox
2198 - newins "${FILESDIR}/${PN}-4-config" vbox.cfg
2199 -
2200 - # Set the right libdir
2201 - sed -i \
2202 - -e "s@MY_LIBDIR@$(get_libdir)@" \
2203 - "${D}"/etc/vbox/vbox.cfg || die "vbox.cfg sed failed"
2204 -
2205 - # Install the wrapper script
2206 - exeinto ${vbox_inst_path}
2207 - newexe "${FILESDIR}/${PN}-ose-5-wrapper" "VBox"
2208 - fowners root:vboxusers ${vbox_inst_path}/VBox
2209 - fperms 0750 ${vbox_inst_path}/VBox
2210 -
2211 - # Install binaries and libraries
2212 - insinto ${vbox_inst_path}
2213 - doins -r components
2214 -
2215 - # *.rc files for x86_64 are only available on multilib systems
2216 - local rcfiles="*.rc"
2217 - if use amd64 && ! has_multilib_profile ; then
2218 - rcfiles=""
2219 - fi
2220 - for each in VBox{ExtPackHelperApp,Manage,SVC,Tunctl,XPCOMIPCD} *so *r0 ${rcfiles} ; do
2221 - vbox_inst ${each}
2222 - done
2223 -
2224 - # These binaries need to be suid root in any case.
2225 - for each in VBox{Headless,Net{AdpCtl,DHCP,NAT}} ; do
2226 - vbox_inst ${each} 4750
2227 - done
2228 -
2229 - # Install EFI Firmware files (bug #320757)
2230 - pushd "${S}"/src/VBox/Devices/EFI/FirmwareBin &>/dev/null || die
2231 - for fwfile in VBoxEFI{32,64}.fd ; do
2232 - vbox_inst ${fwfile} 0644
2233 - done
2234 - popd &>/dev/null || die
2235 -
2236 - # VBoxSVC and VBoxManage need to be pax-marked (bug #403453)
2237 - # VBoxXPCOMIPCD (bug #524202)
2238 - for each in VBox{Headless,Manage,SVC,XPCOMIPCD} ; do
2239 - pax-mark -m "${D}"${vbox_inst_path}/${each}
2240 - done
2241 -
2242 - # Symlink binaries to the shipped wrapper
2243 - for each in vbox{headless,manage} VBox{Headless,Manage,VRDP} ; do
2244 - dosym ${vbox_inst_path}/VBox /usr/bin/${each}
2245 - done
2246 - dosym ${vbox_inst_path}/VBoxTunctl /usr/bin/VBoxTunctl
2247 -
2248 - # VRDPAuth only works with this (bug #351949)
2249 - dosym VBoxAuth.so ${vbox_inst_path}/VRDPAuth.so
2250 -
2251 - # set an env-variable for 3rd party tools
2252 - echo -n "VBOX_APP_HOME=${vbox_inst_path}" > "${T}/90virtualbox"
2253 - doenvd "${T}/90virtualbox"
2254 -
2255 - if ! use headless ; then
2256 - vbox_inst VBoxSDL 4750
2257 - pax-mark -m "${D}"${vbox_inst_path}/VBoxSDL
2258 -
2259 - for each in vboxsdl VBoxSDL ; do
2260 - dosym ${vbox_inst_path}/VBox /usr/bin/${each}
2261 - done
2262 -
2263 - if use opengl && use qt4 ; then
2264 - vbox_inst VBoxTestOGL
2265 - pax-mark -m "${D}"${vbox_inst_path}/VBoxTestOGL
2266 - fi
2267 -
2268 - if use qt4 ; then
2269 - vbox_inst VirtualBox 4750
2270 - pax-mark -m "${D}"${vbox_inst_path}/VirtualBox
2271 -
2272 - for each in virtualbox VirtualBox ; do
2273 - dosym ${vbox_inst_path}/VBox /usr/bin/${each}
2274 - done
2275 -
2276 - insinto /usr/share/${PN}
2277 - doins -r nls
2278 -
2279 - newmenu "${FILESDIR}"/${PN}-ose.desktop-2 ${PN}.desktop
2280 - fi
2281 -
2282 - pushd "${S}"/src/VBox/Artwork/OSE &>/dev/null || die
2283 - for size in 16 32 48 64 128 ; do
2284 - newicon -s ${size} ${PN}-${size}px.png ${PN}.png
2285 - done
2286 - newicon ${PN}-48px.png ${PN}.png
2287 - doicon -s scalable ${PN}.svg
2288 - popd &>/dev/null || die
2289 - fi
2290 -
2291 - if use lvm ; then
2292 - vbox_inst VBoxVolInfo 4750
2293 - dosym ${vbox_inst_path}/VBoxVolInfo /usr/bin/VBoxVolInfo
2294 - fi
2295 -
2296 - if use sdk ; then
2297 - insinto ${vbox_inst_path}
2298 - doins -r sdk
2299 -
2300 - if use java ; then
2301 - java-pkg_regjar "${D}${vbox_inst_path}/sdk/bindings/xpcom/java/vboxjxpcom.jar"
2302 - java-pkg_regso "${D}${vbox_inst_path}/libvboxjxpcom.so"
2303 - fi
2304 - fi
2305 -
2306 - if use udev ; then
2307 - # New way of handling USB device nodes for VBox (bug #356215)
2308 - local udevdir="$(get_udevdir)"
2309 - insinto ${udevdir}
2310 - doins VBoxCreateUSBNode.sh
2311 - fowners root:vboxusers ${udevdir}/VBoxCreateUSBNode.sh
2312 - fperms 0750 ${udevdir}/VBoxCreateUSBNode.sh
2313 - insinto ${udevdir}/rules.d
2314 - sed "s@%UDEVDIR%@${udevdir}@" "${FILESDIR}"/10-virtualbox.rules \
2315 - > "${T}"/10-virtualbox.rules || die
2316 - doins "${T}"/10-virtualbox.rules
2317 - fi
2318 -
2319 - if use vboxwebsrv ; then
2320 - vbox_inst vboxwebsrv
2321 - dosym ${vbox_inst_path}/VBox /usr/bin/vboxwebsrv
2322 - newinitd "${FILESDIR}"/vboxwebsrv-initd vboxwebsrv
2323 - newconfd "${FILESDIR}"/vboxwebsrv-confd vboxwebsrv
2324 - fi
2325 -
2326 - if use doc ; then
2327 - dodoc UserManual.pdf
2328 - fi
2329 -}
2330 -
2331 -pkg_postinst() {
2332 - fdo-mime_desktop_database_update
2333 -
2334 - if use udev ; then
2335 - udevadm control --reload-rules \
2336 - && udevadm trigger --subsystem-match=usb
2337 - fi
2338 -
2339 - if ! use headless && use qt4 ; then
2340 - elog "To launch VirtualBox just type: \"virtualbox\"."
2341 - fi
2342 - elog "You must be in the vboxusers group to use VirtualBox."
2343 - elog ""
2344 - elog "The latest user manual is available for download at:"
2345 - elog "http://download.virtualbox.org/virtualbox/${PV}/UserManual.pdf"
2346 - elog ""
2347 - elog "For advanced networking setups you should emerge:"
2348 - elog "net-misc/bridge-utils and sys-apps/usermode-utilities"
2349 - elog ""
2350 - elog "IMPORTANT!"
2351 - elog "If you upgrade from app-emulation/virtualbox-ose make sure to run"
2352 - elog "\"env-update\" as root and logout and relogin as the user you wish"
2353 - elog "to run ${PN} as."
2354 - elog ""
2355 - elog "Starting with version 4.0.0, ${PN} has USB-1 support."
2356 - elog "For USB-2 support, PXE-boot ability and VRDP support please emerge"
2357 - elog " app-emulation/virtualbox-extpack-oracle"
2358 - elog "package."
2359 - elog "Starting with version 5.0.0, ${PN} no longer has the \"additions\" and"
2360 - elog "the \"extension\" USE flag. For installation of the guest additions ISO"
2361 - elog "image, please emerge"
2362 - elog " app-emulation/virtualbox-additions"
2363 - elog "and for the USB2, USB3, VRDP and PXE boot ROM modules, please emerge"
2364 - elog " app-emulation/virtualbox-extpack-oracle"
2365 - if ! use udev ; then
2366 - elog ""
2367 - elog "WARNING!"
2368 - elog "Without USE=udev, USB devices will likely not work in ${PN}."
2369 - elif [ -e "${ROOT}/etc/udev/rules.d/10-virtualbox.rules" ] ; then
2370 - elog ""
2371 - elog "Please remove \"${ROOT}/etc/udev/rules.d/10-virtualbox.rules\""
2372 - elog "or else USB in ${PN} won't work."
2373 - fi
2374 -}
2375 -
2376 -pkg_postrm() {
2377 - fdo-mime_desktop_database_update
2378 -}
2379
2380 diff --git a/x11-drivers/xf86-video-virtualbox/Manifest b/x11-drivers/xf86-video-virtualbox/Manifest
2381 index a025d9ebc35..a290de74633 100644
2382 --- a/x11-drivers/xf86-video-virtualbox/Manifest
2383 +++ b/x11-drivers/xf86-video-virtualbox/Manifest
2384 @@ -1,5 +1,3 @@
2385 -DIST VirtualBox-5.0.16.tar.bz2 111062984 SHA256 f5a44d33a1db911f445b2eb2d22d9293a96a535cba488b5a235577ef868fa63c SHA512 3da3a227360fb50d299e99770378f65e8cb99525377343fa8faff2360be66643d46f68323d6a8b8d4d26182082f171bb35ab2497167bf6df18827a5ea7742074 WHIRLPOOL ea709057c588f28820790c2b193decba9ee0c57e0f82aa4361ca87aef661315182e18b5ee29558e47ed92f6037eb91befa5390680661a7b9f2248c7819b4a85c
2386 -DIST VirtualBox-5.0.40.tar.bz2 112997095 SHA256 e4275b7ada40b358e6e3bd1231b3a320aa06c72ae301283cac5adb42eaa8e4b5 SHA512 70cd4355591c5aed82148954bf55637a5dcdd1a5177dba78192e7c6eadfbf3f7023f352ba8f89d9eb3c3fc55b049f7c76af6bc94e04d1766d7fbe39e51a1393c WHIRLPOOL 9f471e63814c9d48063857f3b95410f5acdd4a3bd2716c525f2449f1eae95d0e91dbe5422374a49f31f8219daa155f716455f0259d131d93afb5cd9e13a7d467
2387 DIST VirtualBox-5.1.26.tar.bz2 115915813 SHA256 b5715035e681a11ef1475f83f9503d34a00f0276b89c572eebec363dda80c8a9 SHA512 680e9646a51a0a5923b3ded10007ee1c1e2a41c6d8a961d2b2540db6578bed2847154f4cac87e3cfe1118a62595b47c7df99da854f6c340e173b9eb8cacf2add WHIRLPOOL 9d7950ec3ec2cd9b8aaa0ea319f9f5089eed7d2cd2879d313426b448a27570b5582235aa46c5ad5a0fd4d0b967f8d58a963f001549232136d6a8609262af71d0
2388 DIST VirtualBox-5.1.28.tar.bz2 116427658 SHA256 ce7d4bf6535f70e3214abeb4866f7a8634aa3c7b6dedf8825e6ad80bd821398d SHA512 5c21fd535424d7fd9adbb51894ec6d37ecf00a63a850362bd7b61fedca5031e096641814130a97ad839c0bd7089dc3dc465509615aab2af3c5735ff71005670a WHIRLPOOL 2e3fbeb39083c2e69fb23200570781a8845780a6295553af48fa9155db132e37d0fc2fb26e8a45c52864f69f02e8a0d0cbd4c895e5fbb87ab9a51dd60c7c7904
2389 DIST VirtualBox-5.1.30.tar.bz2 116510730 SHA256 6059b0986c9cdacc533177867634a76331ceccdcd46dddd111a50d1c42846d0b SHA512 6c44d9593f4815644a484b306e621fe7eca224002f85d89c00f2470300f2c78dbfe50ffda61d2c2465df14ca77c70a2ab86f1a05116feeee9f5833857eb18dee WHIRLPOOL dc1701211cc8247cb23800557cf7e2d34e5063806c5b22cd2c38454531ca390902fd6a764bfc17d14d33ec055de2d924853c9ed6c3ba29fb7998455f06109b6f
2390
2391 diff --git a/x11-drivers/xf86-video-virtualbox/files/xf86-video-virtualbox-3-vboxvideo_drm.makefile b/x11-drivers/xf86-video-virtualbox/files/xf86-video-virtualbox-3-vboxvideo_drm.makefile
2392 deleted file mode 100644
2393 index a09e58c0075..00000000000
2394 --- a/x11-drivers/xf86-video-virtualbox/files/xf86-video-virtualbox-3-vboxvideo_drm.makefile
2395 +++ /dev/null
2396 @@ -1,240 +0,0 @@
2397 -#
2398 -# VirtualBox Guest Additions Module Makefile.
2399 -#
2400 -# (For 2.6.x this file must be 'Makefile'!)
2401 -#
2402 -# Copyright (C) 2006-2007 Sun Microsystems, Inc.
2403 -#
2404 -# This file is part of VirtualBox Open Source Edition (OSE), as
2405 -# available from http://www.virtualbox.org. This file is free software;
2406 -# you can redistribute it and/or modify it under the terms of the GNU
2407 -# General Public License (GPL) as published by the Free Software
2408 -# Foundation, in version 2 as it comes in the "COPYING" file of the
2409 -# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
2410 -# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
2411 -#
2412 -# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
2413 -# Clara, CA 95054 USA or visit http://www.sun.com if you need
2414 -# additional information or have any questions.
2415 -#
2416 -
2417 -## @todo We must make this into a common template *soon*.
2418 -
2419 -#
2420 -# First, figure out which architecture we're targeting and the build type.
2421 -# (We have to support basic cross building (ARCH=i386|x86_64).)
2422 -# While at it, warn about BUILD_* vars found to help with user problems.
2423 -#
2424 -ifeq ($(filter-out x86_64 amd64 AMD64,$(shell uname -m)),)
2425 - BUILD_TARGET_ARCH_DEF := amd64
2426 -else
2427 - BUILD_TARGET_ARCH_DEF := x86
2428 -endif
2429 -ifneq ($(filter-out amd64 x86,$(BUILD_TARGET_ARCH)),)
2430 - $(warning Ignoring unknown BUILD_TARGET_ARCH value '$(BUILD_TARGET_ARCH)'.)
2431 - BUILD_TARGET_ARCH :=
2432 -endif
2433 -ifeq ($(BUILD_TARGET_ARCH),)
2434 - ifeq ($(ARCH),x86_64)
2435 - BUILD_TARGET_ARCH := amd64
2436 - else
2437 - ifeq ($(ARCH),i386)
2438 - BUILD_TARGET_ARCH := x86
2439 - else
2440 - BUILD_TARGET_ARCH := $(BUILD_TARGET_ARCH_DEF)
2441 - endif
2442 - endif
2443 -else
2444 - ifneq ($(BUILD_TARGET_ARCH),$(BUILD_TARGET_ARCH_DEF))
2445 - $(warning Using BUILD_TARGET_ARCH='$(BUILD_TARGET_ARCH)' from the $(origin BUILD_TARGET_ARCH).)
2446 - endif
2447 -endif
2448 -
2449 -ifneq ($(filter-out release profile debug strict,$(BUILD_TYPE)),)
2450 - $(warning Ignoring unknown BUILD_TYPE value '$(BUILD_TYPE)'.)
2451 - BUILD_TYPE :=
2452 -endif
2453 -ifeq ($(BUILD_TYPE),)
2454 - BUILD_TYPE := release
2455 -else
2456 - ifneq ($(BUILD_TYPE),release)
2457 - $(warning Using BUILD_TYPE='$(BUILD_TYPE)' from the $(origin BUILD_TYPE).)
2458 - endif
2459 -endif
2460 -
2461 -EXTRA_CFLAGS = -fshort-wchar
2462 -
2463 -ifneq ($(MAKECMDGOALS),clean)
2464 -
2465 -ifeq ($(KERNELRELEASE),)
2466 -
2467 - #
2468 - # building from this directory
2469 - #
2470 -
2471 - # kernel base directory
2472 - ifndef KERN_DIR
2473 - KERN_DIR := /lib/modules/$(shell uname -r)/build
2474 - ifneq ($(shell if test -d $(KERN_DIR); then echo yes; fi),yes)
2475 - KERN_DIR := /usr/src/linux
2476 - ifneq ($(shell if test -d $(KERN_DIR); then echo yes; fi),yes)
2477 - $(error Error: unable to find the sources of your current Linux kernel. \
2478 - Specify KERN_DIR=<directory> and run Make again)
2479 - endif
2480 - $(warning Warning: using /usr/src/linux as the source directory of your \
2481 - Linux kernel. If this is not correct, specify \
2482 - KERN_DIR=<directory> and run Make again.)
2483 - endif
2484 - else
2485 - ifneq ($(shell if test -d $(KERN_DIR); then echo yes; fi),yes)
2486 - $(error Error: KERN_DIR does not point to a directory)
2487 - endif
2488 - endif
2489 -
2490 - # includes
2491 - ifndef KERN_INCL
2492 - KERN_INCL = $(KERN_DIR)/include
2493 - endif
2494 - ifneq ($(shell if test -d $(KERN_INCL); then echo yes; fi),yes)
2495 - $(error Error: unable to find the include directory for your current Linux \
2496 - kernel. Specify KERN_INCL=<directory> and run Make again)
2497 - endif
2498 -
2499 - # module install dir.
2500 - ifneq ($(filter install install_rpm,$(MAKECMDGOALS)),)
2501 - ifndef MODULE_DIR
2502 - MODULE_DIR_TST := /lib/modules/$(shell uname -r)
2503 - ifeq ($(shell if test -d $(MODULE_DIR_TST); then echo yes; fi),yes)
2504 - MODULE_DIR := $(MODULE_DIR_TST)/misc
2505 - else
2506 - $(error Unable to find the folder to install the DRM driver to)
2507 - endif
2508 - endif # MODULE_DIR unspecified
2509 - endif
2510 -
2511 - # guess kernel version (24 or 26)
2512 - ifeq ($(shell if grep '"2\.4\.' $(KERN_INCL)/linux/version.h > /dev/null; then echo yes; fi),yes)
2513 - KERN_VERSION := 24
2514 - else
2515 - KERN_VERSION := 26
2516 - endif
2517 -
2518 -else # neq($(KERNELRELEASE),)
2519 -
2520 - #
2521 - # building from kbuild (make -C <kernel_directory> M=`pwd`)
2522 - #
2523 -
2524 - # guess kernel version (24 or 26)
2525 - ifeq ($(shell if echo "$(VERSION).$(PATCHLEVEL)." | grep '2\.4\.' > /dev/null; then echo yes; fi),yes)
2526 - KERN_VERSION := 24
2527 - else
2528 - KERN_VERSION := 26
2529 - endif
2530 -
2531 -endif # neq($(KERNELRELEASE),)
2532 -
2533 -# debug - show guesses.
2534 -ifdef DEBUG
2535 -$(warning dbg: KERN_DIR = $(KERN_DIR))
2536 -$(warning dbg: KERN_INCL = $(KERN_INCL))
2537 -$(warning dbg: MODULE_DIR = $(MODULE_DIR))
2538 -$(warning dbg: KERN_VERSION = $(KERN_VERSION))
2539 -endif
2540 -
2541 -KBUILD_VERBOSE ?= 1
2542 -
2543 -#
2544 -# Compiler options
2545 -#
2546 -ifndef INCL
2547 - INCL := $(addprefix -I,$(KERN_INCL) $(EXTRA_INCL))
2548 - ifndef KBUILD_EXTMOD
2549 - KBUILD_EXTMOD := $(shell pwd)
2550 - endif
2551 - INCL += $(addprefix -I$(KBUILD_EXTMOD),/ /include /r0drv/linux)
2552 - export INCL
2553 -endif
2554 -KFLAGS := -D__KERNEL__ -DMODULE -DRT_OS_LINUX -DIN_RING0 -DIN_RT_R0 \
2555 - -DIN_SUP_R0 -DVBOX -DVBOX_WITH_HGCM -DLOG_TO_BACKDOOR -DIN_MODULE \
2556 - -DIN_GUEST_R0
2557 -ifeq ($(BUILD_TARGET_ARCH),amd64)
2558 - KFLAGS += -DRT_ARCH_AMD64 -DVBOX_WITH_64_BITS_GUESTS
2559 -else
2560 - KFLAGS += -DRT_ARCH_X86
2561 -endif
2562 -ifeq ($(BUILD_TYPE),debug)
2563 -KFLAGS += -DDEBUG
2564 -endif
2565 -
2566 -# override is required by the Debian guys
2567 -override MODULE = vboxvideo
2568 -OBJS = vboxvideo_drm.o
2569 -
2570 -ifeq ($(KERN_VERSION), 24)
2571 -#
2572 -# 2.4
2573 -#
2574 -
2575 -CFLAGS := -O2 -DVBOX_LINUX_2_4 $(INCL) $(KFLAGS) $(KDEBUG)
2576 -MODULE_EXT := o
2577 -
2578 -# 2.4 Module linking
2579 -$(MODULE).o: $(OBJS)
2580 - $(LD) -o $@ -r $(OBJS)
2581 -
2582 -.PHONY: $(MODULE)
2583 -all: $(MODULE)
2584 -$(MODULE): $(MODULE).o
2585 -
2586 -else
2587 -#
2588 -# 2.6 and later
2589 -#
2590 -
2591 -MODULE_EXT := ko
2592 -
2593 -$(MODULE)-y := $(OBJS)
2594 -
2595 -# special hack for Fedora Core 6 2.6.18 (fc6), rhel5 2.6.18 (el5),
2596 -# ClarkConnect 4.3 (cc4) and ClarkConnect 5 (v5)
2597 -ifeq ($(KERNELRELEASE),)
2598 - KFLAGS += $(foreach inc,$(KERN_INCL),\
2599 - $(if $(wildcard $(inc)/linux/utsrelease.h),\
2600 - $(if $(shell grep '"2.6.18.*fc6.*"' $(inc)/linux/utsrelease.h; \
2601 - grep '"2.6.18.*el5.*"' $(inc)/linux/utsrelease.h; \
2602 - grep '"2.6.18.*v5.*"' $(inc)/linux/utsrelease.h; \
2603 - grep '"2.6.18.*cc4.*"' $(inc)/linux/utsrelease.h),\
2604 - -DKERNEL_FC6,),))
2605 -else
2606 - KFLAGS += $(if $(shell echo "$(KERNELRELEASE)"|grep '2.6.18.*fc6.*';\
2607 - echo "$(KERNELRELEASE)"|grep '2.6.18.*el5.*';\
2608 - echo "$(KERNELRELEASE)"|grep '2.6.18.*v5.*';\
2609 - echo "$(KERNELRELEASE)"|grep '2.6.18.*cc4.*'),\
2610 - -DKERNEL_FC6,)
2611 -endif
2612 -
2613 -# build defs
2614 -EXTRA_CFLAGS += $(INCL) $(KFLAGS) $(KDEBUG)
2615 -
2616 -all: $(MODULE)
2617 -
2618 -obj-m += $(MODULE).o
2619 -
2620 -$(MODULE):
2621 - $(MAKE) KBUILD_VERBOSE=$(KBUILD_VERBOSE) -C $(KERN_DIR) SUBDIRS=$(CURDIR) SRCROOT=$(CURDIR) modules
2622 -
2623 -endif
2624 -
2625 -install: $(MODULE)
2626 - @mkdir -p $(MODULE_DIR); \
2627 - install -m 0664 -o root -g root $(MODULE).$(MODULE_EXT) $(MODULE_DIR); \
2628 - PATH="$(PATH):/bin:/sbin" depmod -ae;
2629 -
2630 -endif # eq($(MAKECMDGOALS),clean)
2631 -
2632 -# important: Don't remove Module.symvers! DKMS does 'make clean' before building ...
2633 -clean:
2634 - for f in . linux r0drv r0drv/linux; do rm -f $$f/*.o $$f/.*.cmd $$f/.*.flags; done
2635 - rm -rf .vboxvideo* .tmp_ver* vboxvideo.* Modules.symvers modules.order
2636 -
2637
2638 diff --git a/x11-drivers/xf86-video-virtualbox/files/xf86-video-virtualbox-5.1.4-Makefile.module.kms.patch b/x11-drivers/xf86-video-virtualbox/files/xf86-video-virtualbox-5.1.4-Makefile.module.kms.patch
2639 deleted file mode 100644
2640 index f34ac667d0e..00000000000
2641 --- a/x11-drivers/xf86-video-virtualbox/files/xf86-video-virtualbox-5.1.4-Makefile.module.kms.patch
2642 +++ /dev/null
2643 @@ -1,11 +0,0 @@
2644 ---- a/src/VBox/Additions/linux/drm/Makefile.module.kms
2645 -+++ b/src/VBox/Additions/linux/drm/Makefile.module.kms
2646 -@@ -43,7 +43,7 @@ else
2647 - MANGLING := $(KBUILD_EXTMOD)/include/VBox/VBoxGuestMangling.h
2648 - endif
2649 - MOD_CFLAGS = -Wno-declaration-after-statement -fshort-wchar -include $(MANGLING) -fno-pie
2650 --MOD_INCL = $(addprefix -I$(KBUILD_EXTMOD),/ /include)
2651 -+MOD_INCL = $(addprefix -I$(KBUILD_EXTMOD),/ /include /r0drv/linux)
2652 - # What on earth is this?
2653 - MOD_INCL += $(addprefix -I$(KBUILD_EXTMOD)/vboxvideo,/ /include)
2654 - MOD_INCL += -Iinclude/drm
2655
2656 diff --git a/x11-drivers/xf86-video-virtualbox/xf86-video-virtualbox-5.0.16.ebuild b/x11-drivers/xf86-video-virtualbox/xf86-video-virtualbox-5.0.16.ebuild
2657 deleted file mode 100644
2658 index 25dabb13925..00000000000
2659 --- a/x11-drivers/xf86-video-virtualbox/xf86-video-virtualbox-5.0.16.ebuild
2660 +++ /dev/null
2661 @@ -1,181 +0,0 @@
2662 -# Copyright 1999-2017 Gentoo Foundation
2663 -# Distributed under the terms of the GNU General Public License v2
2664 -
2665 -EAPI=6
2666 -
2667 -PYTHON_COMPAT=( python2_7 )
2668 -inherit eutils linux-mod multilib python-single-r1 versionator toolchain-funcs
2669 -
2670 -MY_PV="${PV/beta/BETA}"
2671 -MY_PV="${MY_PV/rc/RC}"
2672 -MY_P=VirtualBox-${MY_PV}
2673 -DESCRIPTION="VirtualBox video driver"
2674 -HOMEPAGE="http://www.virtualbox.org/"
2675 -SRC_URI="http://download.virtualbox.org/virtualbox/${MY_PV}/${MY_P}.tar.bz2"
2676 -
2677 -LICENSE="GPL-2"
2678 -SLOT="0"
2679 -KEYWORDS="~amd64 ~x86"
2680 -IUSE="dri"
2681 -REQUIRED_USE="${PYTHON_REQUIRED_USE}"
2682 -
2683 -RDEPEND="
2684 - <x11-base/xorg-server-1.19:=[-minimal]
2685 - x11-libs/libXcomposite
2686 - ${PYTHON_DEPS}"
2687 -DEPEND="${RDEPEND}
2688 - >=dev-util/kbuild-0.1.9998_pre20131130
2689 - >=dev-lang/yasm-0.6.2
2690 - >=sys-devel/gcc-4.9.0
2691 - sys-power/iasl
2692 - x11-proto/fontsproto
2693 - x11-proto/randrproto
2694 - x11-proto/renderproto
2695 - x11-proto/resourceproto
2696 - x11-proto/scrnsaverproto
2697 - x11-proto/xextproto
2698 - x11-proto/xineramaproto
2699 - x11-proto/xproto
2700 - x11-libs/libXdmcp
2701 - x11-libs/libXau
2702 - x11-libs/libX11
2703 - x11-libs/libXfixes
2704 - x11-libs/libXext
2705 - dri? ( x11-proto/xf86driproto
2706 - >=x11-libs/libdrm-2.4.5 )"
2707 -
2708 -BUILD_TARGETS="all"
2709 -BUILD_TARGET_ARCH="${ARCH}"
2710 -MODULE_NAMES="vboxvideo(misc:${WORKDIR}/vboxvideo_drm:${WORKDIR}/vboxvideo_drm)"
2711 -
2712 -PATCHES=(
2713 - # Ugly hack to build the opengl part of the video driver
2714 - "${FILESDIR}/${PN}-2.2.0-enable-opengl.patch"
2715 -
2716 - # unset useless/problematic checks in configure
2717 - "${FILESDIR}/${PN}-5.0.0_beta3-configure_checks.patch"
2718 -)
2719 -
2720 -S="${WORKDIR}/${MY_P}"
2721 -
2722 -QA_TEXTRELS_x86="usr/lib/VBoxOGL.so"
2723 -
2724 -pkg_setup() {
2725 - if [ "${MERGE_TYPE}" != "binary" ]; then
2726 - version_is_at_least 4.9 $(gcc-version) || die "Please set gcc 4.9 or higher as active in gcc-config to build ${PN}"
2727 - fi
2728 -
2729 - linux-mod_pkg_setup
2730 - BUILD_PARAMS="KERN_DIR=${KV_OUT_DIR} KERNOUT=${KV_OUT_DIR}"
2731 -
2732 - python-single-r1_pkg_setup
2733 -}
2734 -
2735 -src_prepare() {
2736 - # Prepare the vboxvideo_drm sources and Makefile in ${WORKDIR}
2737 - cp -a "${S}"/src/VBox/Additions/linux/drm "${WORKDIR}/vboxvideo_drm" \
2738 - || die "cannot copy vboxvideo_drm directory"
2739 - cp "${FILESDIR}/${PN}-3-vboxvideo_drm.makefile" \
2740 - "${WORKDIR}/vboxvideo_drm/Makefile" \
2741 - || die "cannot copy vboxvideo_drm Makefile"
2742 -
2743 - # stupid new header references...
2744 - for vboxheader in {product,version}-generated.h ; do
2745 - ln -sf "${S}"/out/linux.${ARCH}/release/${vboxheader} \
2746 - "${WORKDIR}/vboxvideo_drm/${vboxheader}"
2747 - done
2748 -
2749 - # Remove shipped binaries (kBuild,yasm), see bug #232775
2750 - rm -r kBuild/bin tools || die
2751 -
2752 - # Disable things unused or splitted into separate ebuilds
2753 - cp "${FILESDIR}/${PN}-5-localconfig" LocalConfig.kmk || die
2754 -
2755 - # Remove pointless GCC version check
2756 - sed -e '/^check_gcc$/d' -i configure || die
2757 -
2758 - default
2759 -
2760 - # link with lazy on hardened #394757
2761 - sed '/^TEMPLATE_VBOXR3EXE_LDFLAGS.linux/s/$/ -Wl,-z,lazy/' \
2762 - -i Config.kmk || die
2763 -}
2764 -
2765 -src_configure() {
2766 - # build the user-space tools, warnings are harmless
2767 - local cmd=(
2768 - ./configure
2769 - --nofatal
2770 - --disable-xpcom
2771 - --disable-sdl-ttf
2772 - --disable-pulse
2773 - --disable-alsa
2774 - --with-gcc="$(tc-getCC)"
2775 - --with-g++="$(tc-getCXX)"
2776 - --target-arch=${ARCH}
2777 - --with-linux="${KV_OUT_DIR}"
2778 - --build-headless
2779 - )
2780 - echo "${cmd[@]}"
2781 - "${cmd[@]}" || die "configure failed"
2782 - source ./env.sh
2783 - export VBOX_GCC_OPT="${CFLAGS} ${CPPFLAGS}"
2784 -}
2785 -
2786 -src_compile() {
2787 - for each in /src/VBox/{Runtime,Additions/common/VBoxGuestLib} \
2788 - /src/VBox/{GuestHost/OpenGL,Additions/x11/x11stubs,Additions/common/crOpenGL} \
2789 - /src/VBox/Additions/x11/vboxvideo ; do
2790 - cd "${S}"${each} || die
2791 - MAKE="kmk" \
2792 - emake TOOL_YASM_AS=yasm \
2793 - VBOX_USE_SYSTEM_XORG_HEADERS=1 \
2794 - KBUILD_PATH="${S}/kBuild" \
2795 - KBUILD_VERBOSE=2
2796 - done
2797 -
2798 - if use dri ; then
2799 - # Now creating the kernel modules. We must do this _after_
2800 - # we compiled the user-space tools as we need two of the
2801 - # automatically generated header files. (>=3.2.0)
2802 - linux-mod_src_compile
2803 - fi
2804 -}
2805 -
2806 -src_install() {
2807 - if use dri; then
2808 - linux-mod_src_install
2809 - fi
2810 -
2811 - cd "${S}/out/linux.${ARCH}/release/bin/additions"
2812 - insinto /usr/$(get_libdir)/xorg/modules/drivers
2813 - newins vboxvideo_drv_system.so vboxvideo_drv.so
2814 -
2815 - # Guest OpenGL driver
2816 - insinto /usr/$(get_libdir)
2817 - doins -r VBoxOGL*
2818 -
2819 - if use dri ; then
2820 - dosym /usr/$(get_libdir)/VBoxOGL.so \
2821 - /usr/$(get_libdir)/dri/vboxvideo_dri.so
2822 - fi
2823 -}
2824 -
2825 -pkg_postinst() {
2826 - elog "You need to edit the file /etc/X11/xorg.conf and set:"
2827 - elog ""
2828 - elog " Driver \"vboxvideo\""
2829 - elog ""
2830 - elog "in the Graphics device section (Section \"Device\")"
2831 - elog ""
2832 - if use dri; then
2833 - elog "To use the kernel drm video driver, please add:"
2834 - elog "\"vboxvideo\" to:"
2835 - if has_version sys-apps/openrc ; then
2836 - elog "/etc/conf.d/modules"
2837 - else
2838 - elog "/etc/modules.autoload.d/kernel-${KV_MAJOR}.${KV_MINOR}"
2839 - fi
2840 - elog ""
2841 - fi
2842 -}
2843
2844 diff --git a/x11-drivers/xf86-video-virtualbox/xf86-video-virtualbox-5.0.40.ebuild b/x11-drivers/xf86-video-virtualbox/xf86-video-virtualbox-5.0.40.ebuild
2845 deleted file mode 100644
2846 index b8937614e94..00000000000
2847 --- a/x11-drivers/xf86-video-virtualbox/xf86-video-virtualbox-5.0.40.ebuild
2848 +++ /dev/null
2849 @@ -1,190 +0,0 @@
2850 -# Copyright 1999-2017 Gentoo Foundation
2851 -# Distributed under the terms of the GNU General Public License v2
2852 -
2853 -EAPI=6
2854 -
2855 -PYTHON_COMPAT=( python2_7 )
2856 -inherit eutils multilib python-single-r1 versionator toolchain-funcs
2857 -
2858 -MY_PV="${PV/beta/BETA}"
2859 -MY_PV="${MY_PV/rc/RC}"
2860 -MY_P=VirtualBox-${MY_PV}
2861 -DESCRIPTION="VirtualBox X11 video driver for Gentoo guest"
2862 -HOMEPAGE="http://www.virtualbox.org/"
2863 -SRC_URI="http://download.virtualbox.org/virtualbox/${MY_PV}/${MY_P}.tar.bz2"
2864 -
2865 -LICENSE="GPL-2"
2866 -SLOT="0"
2867 -KEYWORDS="amd64 x86"
2868 -IUSE="dri"
2869 -REQUIRED_USE="${PYTHON_REQUIRED_USE}"
2870 -
2871 -RDEPEND="
2872 - <x11-base/xorg-server-1.19:=[-minimal]
2873 - x11-libs/libXcomposite
2874 - ${PYTHON_DEPS}"
2875 -DEPEND="${RDEPEND}
2876 - >=dev-lang/yasm-0.6.2
2877 - >=dev-util/kbuild-0.1.9998_pre20131130
2878 - >=sys-devel/gcc-4.9.0
2879 - sys-power/iasl
2880 - x11-proto/fontsproto
2881 - x11-proto/randrproto
2882 - x11-proto/renderproto
2883 - x11-proto/resourceproto
2884 - x11-proto/scrnsaverproto
2885 - x11-proto/xextproto
2886 - x11-proto/xineramaproto
2887 - x11-proto/xproto
2888 - x11-libs/libXdmcp
2889 - x11-libs/libXau
2890 - x11-libs/libX11
2891 - x11-libs/libXfixes
2892 - x11-libs/libXext
2893 - dri? ( x11-proto/xf86driproto
2894 - >=x11-libs/libdrm-2.4.5 )"
2895 -PDEPEND="dri? ( ~app-emulation/virtualbox-guest-additions-${PV} )"
2896 -
2897 -BUILD_TARGETS="all"
2898 -BUILD_TARGET_ARCH="${ARCH}"
2899 -S="${WORKDIR}/${MY_P}"
2900 -MODULES_SRC_DIR="${S}/src/VBox/Additions/linux/drm"
2901 -
2902 -PATCHES=(
2903 - # Ugly hack to build the opengl part of the video driver
2904 - "${FILESDIR}/${PN}-2.2.0-enable-opengl.patch"
2905 -
2906 - # unset useless/problematic checks in configure
2907 - "${FILESDIR}/${PN}-5.0.0_beta3-configure_checks.patch"
2908 -)
2909 -
2910 -QA_TEXTRELS_x86="usr/lib/VBoxOGL.so"
2911 -
2912 -pkg_setup() {
2913 - if [ "${MERGE_TYPE}" != "binary" ]; then
2914 - version_is_at_least 4.9 $(gcc-version) || die "Please set gcc 4.9 or higher as active in gcc-config to build ${PN}"
2915 - fi
2916 -
2917 - python-single-r1_pkg_setup
2918 -}
2919 -
2920 -src_prepare() {
2921 - # Prepare the vboxvideo_drm Makefiles and build dir
2922 - eapply "${FILESDIR}"/${PN}-5.1.4-Makefile.module.kms.patch
2923 -
2924 - # Remove shipped binaries (kBuild,yasm), see bug #232775
2925 - rm -r kBuild/bin tools || die
2926 -
2927 - # Disable things unused or splitted into separate ebuilds
2928 - cp "${FILESDIR}/${PN}-5-localconfig" LocalConfig.kmk || die
2929 -
2930 - # Remove pointless GCC version check
2931 - sed -e '/^check_gcc$/d' -i configure || die
2932 -
2933 - default
2934 -
2935 - # link with lazy on hardened #394757
2936 - sed '/^TEMPLATE_VBOXR3EXE_LDFLAGS.linux/s/$/ -Wl,-z,lazy/' \
2937 - -i Config.kmk || die
2938 -}
2939 -
2940 -src_configure() {
2941 - # build the user-space tools, warnings are harmless
2942 - local cmd=(
2943 - ./configure
2944 - --nofatal
2945 - --disable-xpcom
2946 - --disable-sdl-ttf
2947 - --disable-pulse
2948 - --disable-alsa
2949 - --with-gcc="$(tc-getCC)"
2950 - --with-g++="$(tc-getCXX)"
2951 - --target-arch=${ARCH}
2952 - --with-linux="${KV_OUT_DIR}"
2953 - --build-headless
2954 - )
2955 - echo "${cmd[@]}"
2956 - "${cmd[@]}" || die "configure failed"
2957 - source ./env.sh
2958 - export VBOX_GCC_OPT="${CFLAGS} ${CPPFLAGS}"
2959 -}
2960 -
2961 -src_compile() {
2962 - local each targets=(
2963 - Runtime
2964 - Additions/common/VBoxGuestLib
2965 - GuestHost/OpenGL
2966 - Additions/x11/x11stubs
2967 - Additions/common/crOpenGL
2968 - Additions/x11/vboxvideo
2969 - )
2970 -
2971 - # need to use the upstream build system to create necessary objects properly
2972 - use dri && targets+=( Additions/linux/drm )
2973 -
2974 - for each in ${targets[@]} ; do
2975 - pushd "${S}"/src/VBox/${each} &>/dev/null || die
2976 - MAKE="kmk" \
2977 - emake TOOL_YASM_AS=yasm \
2978 - VBOX_USE_SYSTEM_XORG_HEADERS=1 \
2979 - KBUILD_PATH="${S}/kBuild" \
2980 - KBUILD_VERBOSE=2
2981 - popd &>/dev/null || die
2982 - done
2983 -
2984 - if use dri; then
2985 - local objdir="out/linux.${ARCH}/release/obj/vboxvideo_drm"
2986 - # We need a Makefile, so use Makefile.module.kms
2987 - ln -s Makefile.module.kms "${MODULES_SRC_DIR}"/Makefile || die
2988 - # All of these are expected to be in $(KBUILD_EXTMOD)/ so symlink them into place
2989 - targets=(
2990 - include
2991 - src/VBox/Runtime/r0drv
2992 - src/VBox/Installer/linux/Makefile.include.{head,foot}er
2993 - out/linux.${ARCH}/release/{product,version,revision}-generated.h
2994 - )
2995 - for each in ${targets[@]} ; do
2996 - ln -s "${S}"/${each} \
2997 - "${MODULES_SRC_DIR}"/${each##*/} || die
2998 - done
2999 - # see the vboxvideo_drm_SOURCES list in Makefile.kmk for the below,
3000 - # and replace '..' with 'dt'
3001 - targets=(
3002 - dt/dt/common/VBoxVideo/HGSMIBase.o
3003 - dt/dt/common/VBoxVideo/Modesetting.o
3004 - dt/dt/common/VBoxVideo/VBVABase.o
3005 - dt/dt/dt/GuestHost/HGSMI/HGSMICommon.o
3006 - dt/dt/dt/GuestHost/HGSMI/HGSMIMemAlloc.o
3007 - dt/dt/dt/Runtime/common/alloc/heapoffset.o
3008 - )
3009 - for each in ${targets[@]} ; do
3010 - ln -s "${S}"/${objdir}/${each} \
3011 - "${MODULES_SRC_DIR}" || die
3012 - ln -s "${S}"/${objdir}/${each}.dep \
3013 - "${MODULES_SRC_DIR}" || die
3014 - done
3015 - fi
3016 -}
3017 -
3018 -src_install() {
3019 - cd "${S}/out/linux.${ARCH}/release/bin/additions" || die
3020 - insinto /usr/$(get_libdir)/xorg/modules/drivers
3021 - newins vboxvideo_drv_system.so vboxvideo_drv.so
3022 -
3023 - # Guest OpenGL driver
3024 - insinto /usr/$(get_libdir)
3025 - doins -r VBoxOGL*
3026 -
3027 - if use dri ; then
3028 - dosym /usr/$(get_libdir)/VBoxOGL.so \
3029 - /usr/$(get_libdir)/dri/vboxvideo_dri.so
3030 - fi
3031 -}
3032 -
3033 -pkg_postinst() {
3034 - elog "You need to edit the file /etc/X11/xorg.conf and set:"
3035 - elog ""
3036 - elog " Driver \"vboxvideo\""
3037 - elog ""
3038 - elog "in the Graphics device section (Section \"Device\")"
3039 -}