Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-emulation/virtualbox-guest-additions/, app-emulation/virtualbox-additions/, ...
Date: Thu, 10 May 2018 18:58:36
Message-Id: 1525978698.114e29ad58b3811641cb933ecb6c9e71f0df2be5.polynomial-c@gentoo
1 commit: 114e29ad58b3811641cb933ecb6c9e71f0df2be5
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Thu May 10 18:48:48 2018 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Thu May 10 18:58:18 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=114e29ad
7
8 virtualbox packages: Bump to versions 5.1.38 and 5.2.12
9
10 Package-Manager: Portage-2.3.36, Repoman-2.3.9
11
12 app-emulation/virtualbox-additions/Manifest | 2 +
13 .../virtualbox-additions-5.1.38.ebuild | 35 ++
14 .../virtualbox-additions-5.2.12.ebuild | 35 ++
15 app-emulation/virtualbox-bin/Manifest | 8 +
16 .../virtualbox-bin-5.1.38.122592.ebuild | 287 +++++++++++++
17 .../virtualbox-bin-5.2.12.122591.ebuild | 287 +++++++++++++
18 app-emulation/virtualbox-extpack-oracle/Manifest | 2 +
19 .../virtualbox-extpack-oracle-5.1.38.122592.ebuild | 42 ++
20 .../virtualbox-extpack-oracle-5.2.12.122591.ebuild | 42 ++
21 app-emulation/virtualbox-guest-additions/Manifest | 2 +
22 .../virtualbox-guest-additions-5.1.38.ebuild | 219 ++++++++++
23 .../virtualbox-guest-additions-5.2.12.ebuild | 226 ++++++++++
24 app-emulation/virtualbox-modules/Manifest | 2 +
25 .../virtualbox-modules-5.1.38.ebuild | 56 +++
26 .../virtualbox-modules-5.2.12.ebuild | 51 +++
27 app-emulation/virtualbox/Manifest | 2 +
28 app-emulation/virtualbox/virtualbox-5.1.38.ebuild | 468 +++++++++++++++++++++
29 app-emulation/virtualbox/virtualbox-5.2.12.ebuild | 468 +++++++++++++++++++++
30 x11-drivers/xf86-video-virtualbox/Manifest | 1 +
31 .../xf86-video-virtualbox-5.1.38.ebuild | 192 +++++++++
32 20 files changed, 2427 insertions(+)
33
34 diff --git a/app-emulation/virtualbox-additions/Manifest b/app-emulation/virtualbox-additions/Manifest
35 index 4b88a900f11..50748f58f6c 100644
36 --- a/app-emulation/virtualbox-additions/Manifest
37 +++ b/app-emulation/virtualbox-additions/Manifest
38 @@ -1,5 +1,7 @@
39 DIST VBoxGuestAdditions_5.1.32.iso 59512832 BLAKE2B 73fcbb3d1db1056970a86e9c1c1efe1f8ddc3566c327df5bb8e14b22b827fc603dcba580a6db60c75f3dff00f268313ac196d49355e184395793363c6d16df68 SHA512 073b103308f7cab18ca096bbb863d8cdea8efd8aa4896b2ab2a6326f549f1cf6afb70ccb55baa1dab85485879e522584a9f91adb4434c5f8bd649e73dae65900
40 DIST VBoxGuestAdditions_5.1.34.iso 59619328 BLAKE2B e8e7786a82785c4d58c2206c3ede4119c435c2884eba470128cd12ad968077eea7a7850fb05c20ef18ec01fb27919ae29a706d4b059203a7a55dba94f7680564 SHA512 e8c376a558991d603fbb6554969d27c510621bfd8f53542126f57c3604d68f6da7f7732361369b6144794575f40c22e0df0a9b2b4190d3462d80c035b7f0451f
41 DIST VBoxGuestAdditions_5.1.36.iso 59596800 BLAKE2B c735a88f534b27f1f2f29d125d0fdf881285f64f7ea3f49a0bc9211af4f562562cc321983c222e6106459f3be14af94a3514765607d1cd8edf6e6352398cfe8c SHA512 08049007589f6bf56c84355b908355289f37eac8cb01d970e46ebe3b44b43ff406c37d0ddad245dd007447a00927a2d2312524e3ac99f8b6bad8695b403ca846
42 +DIST VBoxGuestAdditions_5.1.38.iso 59611136 BLAKE2B cde4ceb59159827304c99ab00fac4cd3598600c252e7b5a410a5be6ea50866ed2efae4ead9e5c4c1a1462b1cd6db973bd4b35b56d426934e80898837c536e778 SHA512 e082e6363e1e6fa8a7b6b6b4847e9f2ed17655b0ac143467553150f910d71e4dfff55686c38464dc60f77c57292610d13dc25ee5423877173467a86cfe232a3b
43 DIST VBoxGuestAdditions_5.2.10.iso 57974784 BLAKE2B 3e56448d46cfdbb264a6c606d548a0db86d40cac1428263de7d7f6e35602dc485138ac3574eab6bba78cccabb7ccd65f8c67ed78938524bc408d9d305949154d SHA512 fd84d41b5953c379b1a14380cb4ec67a8edd42caa4ce11a39f4dc0af77b3bbceeb717d9b9b9d25fd8b2446c2b1aa3bd4393e4a5c661c20bd07059f561d17ad8d
44 +DIST VBoxGuestAdditions_5.2.12.iso 57976832 BLAKE2B 3b1485da265a9d7bd659e846ceb9e3e8f3463816f2f8157654704875e9b7a91d6f610cfa6285d9d54b06e87ca4f3e5d4600b26ac622b592c90c42bde0cc0f2ee SHA512 276b6348942bb82f68dacdc957590130281c5b3818d47c60238e00e1015682b5a44f28091163297ea052d327f916ed2e79bc32820f39f8b8e5dab5bd0fccbe77
45 DIST VBoxGuestAdditions_5.2.8.iso 57972736 BLAKE2B 4f78b5faa8379777f88be98af1c6e023863395004d5326a698801141ed939edbb04f5109967179e8777bdfae39a77ffa724c9f08f54a14a8898a074512318816 SHA512 29d1bd00e6f5f5ceb7fa50719dde6e05b17111583a0ada16f47cd1e38e9302a3d5d4d7708cef9c8c3f9c4eb2d5ccc276c792700e0733cec2dc611ba1e5bed098
46
47 diff --git a/app-emulation/virtualbox-additions/virtualbox-additions-5.1.38.ebuild b/app-emulation/virtualbox-additions/virtualbox-additions-5.1.38.ebuild
48 new file mode 100644
49 index 00000000000..a28d6005cb4
50 --- /dev/null
51 +++ b/app-emulation/virtualbox-additions/virtualbox-additions-5.1.38.ebuild
52 @@ -0,0 +1,35 @@
53 +# Copyright 1999-2018 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="https://www.virtualbox.org/"
67 +SRC_URI="https://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.2.12.ebuild b/app-emulation/virtualbox-additions/virtualbox-additions-5.2.12.ebuild
90 new file mode 100644
91 index 00000000000..a28d6005cb4
92 --- /dev/null
93 +++ b/app-emulation/virtualbox-additions/virtualbox-additions-5.2.12.ebuild
94 @@ -0,0 +1,35 @@
95 +# Copyright 1999-2018 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="https://www.virtualbox.org/"
109 +SRC_URI="https://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 6c784b4b15e..9b0baf5889b 100644
133 --- a/app-emulation/virtualbox-bin/Manifest
134 +++ b/app-emulation/virtualbox-bin/Manifest
135 @@ -1,7 +1,9 @@
136 DIST Oracle_VM_VirtualBox_Extension_Pack-5.1.32-120294.tar.gz 19589163 BLAKE2B b35d9bb90216a77706fe5f0de624affaff4177d4b6e561f7c76003efd1a386a1f5b5f6b1c6b559cddde6ffb55ab5f7eba3e4c9b2135f31c09313b473ba6579e5 SHA512 c1e13fc59b9556f980bec02bb2860e717f752d42c3d810f70267e5c07898bb1aba9d3f3403fa5aa388478aa609397da49dcf10311836d68093101715a6ae200d
137 DIST Oracle_VM_VirtualBox_Extension_Pack-5.1.34-121010.tar.gz 19591849 BLAKE2B 573afe3624a3eace4272a067f472e32dbe344755814aefaa8d6685da0ff31e04faa7f6a22a58974938067fce3a0ea3d66a0c5d02db999105029cc7c5c8fea24b SHA512 4f05bc7abe989fbc0928aba259ad60b09f5b085859c0ddc3e24c052fdb4becb055795c8f0038fc4dd95be7b9954a3034afd499798bb58fe16522602cfe91e7fa
138 DIST Oracle_VM_VirtualBox_Extension_Pack-5.1.36-122089.tar.gz 19605234 BLAKE2B 4b263b27b130e5b5d7917f15f0dc782f28f7708cc10e22028ee27b33be6541df5211c4fb36951a6b293d19b8933182097cd0575da8c1d00b6a96e747c1962762 SHA512 e11b294da83b4605c40132f2ea5f95f2820f901d2ed1d438c22c4cc9f779baa3112b9334036717d1593d5f9ec8374d7d7bc826012e2019ef0ba79bacb1deb7b8
139 +DIST Oracle_VM_VirtualBox_Extension_Pack-5.1.38-122592.tar.gz 19717251 BLAKE2B 90dcaa58284c6dc9101dbc8eb9ceda55d16c4a48fd58fb43c4a6b7d3d5c582c31930f6e773397ae9379e75771c88b40aad276436bb1d56a71a8e744353e04ec9 SHA512 ba44d53e06adababd0ac7c8a68ea025e1e7afd39fe648079bbb879e81130d45f00b944795cfd37f7f05c16d5a7723b85c49a8435c8399180af627dd3b3de00bc
140 DIST Oracle_VM_VirtualBox_Extension_Pack-5.2.10-122088.tar.gz 19482093 BLAKE2B ca02e9226b774340ecd31688f296304d7c963f20177d523058a1a2997cc287c59fc6e4df8bcc5024ec55cc7b79b1319f61bc9f3697cdb9c4c36423a77221cb82 SHA512 90e9d1c0235d14df9a305fa48102528b839c266abe18f97dcb945729cb9a0136cbf0686b69b82fcc76508cf7674c5b5dcb6563319af9ca0c294218802eaa9173
141 +DIST Oracle_VM_VirtualBox_Extension_Pack-5.2.12-122591.tar.gz 19590585 BLAKE2B 433ae630e55f2320d48c06d0fd5120528ee10c04f2e471da3a72fb98ae826b2909fa5fcd2a4ad7c875a1785d07c0a3dc9ec3001fa7d16903037731dbe1e24a75 SHA512 3e55cb2c8a5adfdac988b81804650aa35e66e052a946b371d61a92d459e5dbb83495f80423f22cfa2a4c2196cf94d1146ff5aed621985f27f2e5069c13f5daee
142 DIST Oracle_VM_VirtualBox_Extension_Pack-5.2.8-121009.tar.gz 19469421 BLAKE2B 81651876802ad767339f3984a26375118f01e4b99b4247398e0cea8d749905431b40945f8a72d0c7802b2743080f01d3044aafd21600c4927773994c5a114a1f SHA512 2b69e2acab91ce95e9807006c79862fc0d1d10fdd269bd9cdf8f11b6704821823b103c7a4a76ad99c10e0868bd397ffe0e72b2eb2aa4fc2bd81ff968c71c2280
143 DIST VirtualBox-5.1.32-120294-Linux_amd64.run 88360402 BLAKE2B f548855260467be536f2e5ff95ae110636b1fa824a78058cf9318b21592d9643bd780691984ff803c7b0ec998f8e1720d81731fb26df42718cfe3c7b56ad09e4 SHA512 3b7e722ee231ad087b4d2419406e46b6b33a7947d6dcc8ecc0456f04925fb551810c5f27a54d9c99b0d729c1bb0d5d79d17bb8720291c8210ab88c15215244ec
144 DIST VirtualBox-5.1.32-120294-Linux_x86.run 87387598 BLAKE2B 657842740d52f046c969196ca776e5572e3bfde55587575bdcc2a957863bb890a40954c9fa014e9184ee77e1e5a81388eadbc5fcfcd22a21c0485e25074bb900 SHA512 38cb01d89edb1fcb44940bdd94c69af824577ebc9fa30a5a2c7c837142fc70848326325b9ee131ad878a9dce71e10b9762854ef0aa66c9060c159abc40c89241
145 @@ -9,12 +11,18 @@ DIST VirtualBox-5.1.34-121010-Linux_amd64.run 88309202 BLAKE2B 77b906e52f54926a3
146 DIST VirtualBox-5.1.34-121010-Linux_x86.run 87377358 BLAKE2B 48a0011a8fe80604a660eeb833b5b406f19827d9e22a0ae1f7a1394951b554a3d141d2150640107ebbb3d381b783084b7f7a2c4265302727524b98ced947c756 SHA512 7866f35f315ad9207fe85e0cfdbff7e5fb19f55ec1bff07606cadf68a9f7f965169b7c95713599952db4c9ba346f0813169f944e0d69702c4f2c43f35ff6c61f
147 DIST VirtualBox-5.1.36-122089-Linux_amd64.run 88329683 BLAKE2B 96e0296243056ebaecde4435fe68f82dacfc66a0d23b70365c7495112672b60be7682ef794851b68198d0d0f01ec84cb314f06b434726e5f75e47751771cbd3b SHA512 6c62c642da78561ec5130e18ebac24d52871b4c518ce507f1deb0a279c58dfc1b87c4afecf63236e7274da65d5d784575779ad39e17a4f8b1f05c29a3ca95d55
148 DIST VirtualBox-5.1.36-122089-Linux_x86.run 87449039 BLAKE2B 826071838fdb7567ec7064eb6db216d9d695f3504b0c37b2db637df5757ece58b8c1c0b430cef1c1e6657bd9dc556c074891732cd4481243af72051f66ec6bec SHA512 c593483949a5389cddbe47fb3d07e7acc55868671d72ccd696e1c039ace24e7b88be9cf088c32b419c5f4ba76ceada6e388b63dbeac6376b13627543c472afe8
149 +DIST VirtualBox-5.1.38-122592-Linux_amd64.run 88329683 BLAKE2B 124b1a3d45b0aa213a63ccc225570158faa11adf51a9bc503c014a302ba6a9739e9b50780c93ca6b8704e4666f809b97d1548db74817020301f560252bf71182 SHA512 963ed0b5555bcc43a72dbf49d3d6d9a1a2b1118808ea601765ce102ce72a05439903247680d0b49df4d15cdca68b40a8c5a26df9340c24ed681c3353f2f8e072
150 +DIST VirtualBox-5.1.38-122592-Linux_x86.run 87449039 BLAKE2B a591a64422cd6e7bb292aaa0f35e5ed9a722b3d835800b2ce09814f2756f088e3a7adc0fc483f2a6ec36e265aeddf6ecfe1aa1bf60a78675696859bff1d0afb9 SHA512 41f9aebbb7c4ad6192cfef57ca956c5ec4b96c8547380abc3b56629c821094ccb28bac69645042e0ac22664db6c59aeff49ccc80d88e1eae5ffb95f55a467a07
151 DIST VirtualBox-5.2.10-122088-Linux_amd64.run 88544723 BLAKE2B b460f2eb04854773a2cc908eed3e01bf3245f0273c94bb4a7a69b11b2e1506a8a4db81649e13ce94fa3771540cadf597f3c2d957fc873213ef734e6b4e1d932d SHA512 244dcb2c875d4d0bf37552a478074b052268973954e4ba81e2a82ebc8ffe40da74de484032a37f21291574a997ee67dd4057f75eef4d7ac77c4e0f0d7cfa12ce
152 DIST VirtualBox-5.2.10-122088-Linux_x86.run 87684559 BLAKE2B 840efab030b66d561ada6bf999c076bdce0d064399e904f8ad0fffd3fbb72be1ed7131b77a4a79f56643d22e2029e9005b7e0d80ffdf941b4df2fee375ee3e81 SHA512 738b2d6810f056c0c6b7828e3f14746e2ed64d7169e7959f9022857a451476637ebcf628b5f6b3d4ab86ce9834fe87bf8f8c92dcb3fdd80a703ff5ec93adfc77
153 +DIST VirtualBox-5.2.12-122591-Linux_amd64.run 88677843 BLAKE2B 3fd56527c106193ea0bb46ad51968c59d1bb6453282ddfc84b08227e0f5ed4af941bc11030edb3a0c2d0845d602c036e033a48af020b80ba225d626a3514d321 SHA512 682e42ef3bb65f0e31e08fda2c2a9ce8b555ae8978692b22e9855c1725e5fd3e3db126501df37849b546a5022480a319db12470d1fed44463f2e49144a6383ac
154 +DIST VirtualBox-5.2.12-122591-Linux_x86.run 87827919 BLAKE2B 7efc88298b8e96f0d45cfac3d4fd3b24ffc725f14e1ae822dace092abf6a460cbad4349b907c08998dcdacdfdb915a2de6e8ae8db4edb1842c29941faa6acdd8 SHA512 e6f6890baddef29db0c103569d5abe7bdfb597840e8c9b023ba041b85a7c3ba7bf45f983826266722b43fcca95b2e93bfdc944c25ffcf6f0e386794f22eb5e8a
155 DIST VirtualBox-5.2.8-121009-Linux_amd64.run 88493520 BLAKE2B 2986918bb2eda12447468fb642d3760d999d3af3e5595bf7260e94572f15a811655cd3f1348e1cf23a827011b1eebf84f07f13185f4eab3c353a957c58c105d4 SHA512 211f94910ef50a00b178482c0600be48ecddb48086846515b7705b111a36f81346efd4cbeb39255d85f3a0e778509e0dd7676e4c9bcbea49014988be8635910f
156 DIST VirtualBox-5.2.8-121009-Linux_x86.run 87705037 BLAKE2B 8d6774d0be3a3e12cd258bb6799e6f3eb84a3cff670277c0b910671879014b513d1e2958ebf60f5aaa1ee4ef56be52cc0908b3cb5fa25fa78db77023fbbb3660 SHA512 ee75f64332a8d1df61b60a28661d7b7ef760c789dabca61b749f5cf33ffbe5ef09d64bde6da4255e659b1bf86d947eca8d18d697738e4de9f6b0b423ea647e9b
157 DIST VirtualBoxSDK-5.1.32-120294.zip 9860157 BLAKE2B c9222bc865bdd70cc2ac516b27d1a1c91e0c05b04129a0c9793701ca8080c184ae2d8157bf687995c074aa03b8242e931164b03c5942e4d57589def16aa21b57 SHA512 aa2f0b647e177f95543c41beca64546a5d9b68f2081365ceb9a4494e500747de55fc71e899f31d65b96a9b5a1c8bfeaf8518ddb45791fb25e0ad992776c4c186
158 DIST VirtualBoxSDK-5.1.34-121010.zip 9863604 BLAKE2B 63c7a28d509a910d4b63e7784a85a2cb125c6d5f6b6bf311c971235c706c4279266f40853f4c735ad41b483fd4febbf36bf9f07477e73675d39846b20e9105d7 SHA512 8a3931132e4eaffbcd82d64e9b34d6c2cce0c2971731b10af97f4e79e926baecd3ba3ead4b454512115e59c3f186d466ddbc9b13c83230f2b80743f5e0d0578c
159 DIST VirtualBoxSDK-5.1.36-122089.zip 9864160 BLAKE2B 0db3d44c44f93a80607791f2ff5cbdf6aed2b324c207bb9bbc808b5cc836f01ade9c48ed3474c4f174a43b29969fe632b5ccd2b3ad0af197894d63887144bf0c SHA512 98f6e59a5e344bf23f6af6c0e791f28920940de907721981c99b66b8e7c20cb06a7e1211b2029a1279e583fb4ed456019005c2bf3a91b3d8b3fbd61e6e44c914
160 +DIST VirtualBoxSDK-5.1.38-122592.zip 9867112 BLAKE2B d3deeda2adafcb675370c7228f49a209e5f76986fc4c9ac5aa8ff2e809912f458c9cfc2d8f011404fb4bd7b45b80f0ff857dd85dd597d622971a2556c6b17bbf SHA512 e03fab6573e61f59fc4e017d8c6cfde08e734939efe6c2f8edc5e6e9da5a1d616012cae06d630a3e2a2b1d72775eb8f0a05eb230fa81321ec33ba1975ec34ce9
161 DIST VirtualBoxSDK-5.2.10-122088.zip 10152815 BLAKE2B af856ffaeca244b2bfd14ef89ca10b4d607386c77aad3e8e0ce7a40291f6a74dfd12f3b33671d07a151e4bc75bbb05699a9845a3ae5ca7c16f4e1d3c49edcf9d SHA512 0e153b7b05fdc4ce18cf4dc7c110b0b9f05536df17f92b61417af9b497cdec5c2ad3ecd341bbdc43969d811b28f12dcdaaecd72bc5c33842cc1fdde25376c725
162 +DIST VirtualBoxSDK-5.2.12-122591.zip 10153856 BLAKE2B ea4fdc39744e5fcc2edcdcf521c795b2669344cec4be2b7d9f08d1e0917c24b5c06721d76d81966c611ee41d220095aeb6bbab211a0e1b52e6479e0c9595d97a SHA512 6d7e3968c9edb00b88aa5118ec9c74ae85e04d788f49741b68506b07307c4dd2c8cb7bb307c76f9d2908bc47c7683257f39395008b0a03eff72a1e77567f0e77
163 DIST VirtualBoxSDK-5.2.8-121009.zip 10153749 BLAKE2B 0534f568f83d73f70f4192389e0f602bc4184d45a4a1aa82983692bf4e35fac0589eef21f5aa561c88c736aaa398986de0077dcdf3aa211df655788f5592b423 SHA512 386e38ee6e584ff8b0444b9285a67d259bb93f53d6e6b6e082cefd4121578da91ea56e2eb329b6848ff5476a14ad3055287b806cd25a21155aa6f708c58244a5
164
165 diff --git a/app-emulation/virtualbox-bin/virtualbox-bin-5.1.38.122592.ebuild b/app-emulation/virtualbox-bin/virtualbox-bin-5.1.38.122592.ebuild
166 new file mode 100644
167 index 00000000000..94de7dd7a10
168 --- /dev/null
169 +++ b/app-emulation/virtualbox-bin/virtualbox-bin-5.1.38.122592.ebuild
170 @@ -0,0 +1,287 @@
171 +# Copyright 1999-2018 Gentoo Foundation
172 +# Distributed under the terms of the GNU General Public License v2
173 +
174 +EAPI=5
175 +
176 +PYTHON_COMPAT=( python2_7 )
177 +
178 +inherit eutils xdg-utils gnome2 pax-utils python-r1 udev unpacker versionator
179 +
180 +MAIN_PV="$(get_version_component_range 1-3)"
181 +if [[ ${PV} = *_beta* ]] || [[ ${PV} = *_rc* ]] ; then
182 + MY_PV="${MAIN_PV}_$(get_version_component_range 5)"
183 + MY_PV="${MY_PV/beta/BETA}"
184 + MY_PV="${MY_PV/rc/RC}"
185 +else
186 + MY_PV="${MAIN_PV}"
187 +fi
188 +VBOX_BUILD_ID="$(get_version_component_range 4)"
189 +VBOX_PV="${MY_PV}-${VBOX_BUILD_ID}"
190 +MY_P="VirtualBox-${VBOX_PV}-Linux"
191 +# needed as sometimes the extpack gets another build ID
192 +EXTP_PV="${VBOX_PV}"
193 +EXTP_PN="Oracle_VM_VirtualBox_Extension_Pack"
194 +EXTP_P="${EXTP_PN}-${EXTP_PV}"
195 +# needed as sometimes the SDK gets another build ID
196 +SDK_PV="${VBOX_PV}"
197 +SDK_P="VirtualBoxSDK-${SDK_PV}"
198 +
199 +DESCRIPTION="Family of powerful x86 virtualization products for enterprise and home use"
200 +HOMEPAGE="https://www.virtualbox.org/"
201 +SRC_URI="amd64? ( https://download.virtualbox.org/virtualbox/${MY_PV}/${MY_P}_amd64.run )
202 + x86? ( https://download.virtualbox.org/virtualbox/${MY_PV}/${MY_P}_x86.run )
203 + https://download.virtualbox.org/virtualbox/${MY_PV}/${EXTP_P}.vbox-extpack -> ${EXTP_P}.tar.gz"
204 +
205 +LICENSE="GPL-2 PUEL"
206 +SLOT="0"
207 +KEYWORDS="~amd64 ~x86"
208 +IUSE="+additions +chm headless python vboxwebsrv rdesktop-vrdp"
209 +RESTRICT="mirror"
210 +
211 +if [[ "${PV}" != *beta* ]] ; then
212 + SRC_URI+="
213 + sdk? ( https://download.virtualbox.org/virtualbox/${MY_PV}/${SDK_P}.zip )"
214 + IUSE+=" sdk"
215 +fi
216 +
217 +DEPEND="app-arch/unzip
218 + ${PYTHON_DEPS}"
219 +
220 +RDEPEND="!!app-emulation/virtualbox
221 + !app-emulation/virtualbox-additions
222 + ~app-emulation/virtualbox-modules-${MAIN_PV}
223 + !headless? (
224 + dev-libs/glib
225 + media-libs/fontconfig
226 + media-libs/freetype
227 + media-libs/libpng
228 + media-libs/libsdl[X]
229 + x11-libs/libXcursor
230 + x11-libs/libXext
231 + x11-libs/libXfixes
232 + x11-libs/libXft
233 + x11-libs/libXi
234 + x11-libs/libXinerama
235 + x11-libs/libXrandr
236 + x11-libs/libXrender
237 + chm? ( dev-libs/expat )
238 + )
239 + dev-libs/libxml2
240 + sys-fs/lvm2
241 + x11-libs/libXau
242 + x11-libs/libX11
243 + x11-libs/libXt
244 + x11-libs/libXmu
245 + x11-libs/libSM
246 + x11-libs/libICE
247 + x11-libs/libXdmcp
248 + ${PYTHON_DEPS}"
249 +
250 +REQUIRED_USE="${PYTHON_REQUIRED_USE}"
251 +S="${WORKDIR}"
252 +
253 +QA_PREBUILT="opt/VirtualBox/*"
254 +
255 +PYTHON_UPDATER_IGNORE="1"
256 +
257 +src_unpack() {
258 + unpack_makeself ${MY_P}_${ARCH}.run
259 + unpack ./VirtualBox.tar.bz2
260 +
261 + mkdir "${S}"/${EXTP_PN} || die
262 + pushd "${S}"/${EXTP_PN} &>/dev/null || die
263 + unpack ${EXTP_P}.tar.gz
264 + popd &>/dev/null || die
265 +
266 + if [[ "${PV}" != *beta* ]] && use sdk ; then
267 + unpack VirtualBoxSDK-${SDK_PV}.zip
268 + fi
269 +}
270 +
271 +src_configure() {
272 + :;
273 +}
274 +
275 +src_compile() {
276 + :;
277 +}
278 +
279 +src_install() {
280 + # create virtualbox configurations files
281 + insinto /etc/vbox
282 + newins "${FILESDIR}/${PN}-config" vbox.cfg
283 +
284 + if ! use headless ; then
285 + newmenu "${FILESDIR}"/${PN}.desktop-2 ${PN}.desktop
286 +
287 + # set up symlinks (bug #572012)
288 + dosym ../../../../opt/VirtualBox/virtualbox.xml /usr/share/mime/packages/virtualbox.xml
289 +
290 + local size ico icofile
291 + for size in 16 24 32 48 64 72 96 128 256 ; do
292 + pushd "${S}"/icons/${size}x${size} &>/dev/null || die
293 + if [[ -f "virtualbox.png" ]] ; then
294 + doicon -s ${size} virtualbox.png
295 + fi
296 + for ico in hdd ova ovf vbox{,-extpack} vdi vdh vmdk ; do
297 + icofile="virtualbox-${ico}.png"
298 + if [[ -f "${icofile}" ]] ; then
299 + doicon -s ${size} ${icofile}
300 + fi
301 + done
302 + popd &>/dev/null || die
303 + done
304 + doicon -s scalable "${S}"/icons/scalable/virtualbox.svg
305 + insinto /usr/share/pixmaps
306 + newins "${S}"/icons/48x48/virtualbox.png ${PN}.png
307 + fi
308 +
309 + pushd "${S}"/${EXTP_PN} &>/dev/null || die
310 + insinto /opt/VirtualBox/ExtensionPacks/${EXTP_PN}
311 + doins -r linux.${ARCH}
312 + doins ExtPack* PXE-Intel.rom
313 + popd &>/dev/null || die
314 + rm -rf "${S}"/${EXTP_PN}
315 +
316 + insinto /opt/VirtualBox
317 + dodir /opt/bin
318 +
319 + doins UserManual.pdf
320 +
321 + if [[ "${PV}" != *beta* ]] && use sdk ; then
322 + doins -r sdk
323 + fi
324 +
325 + if use additions; then
326 + doins -r additions
327 + fi
328 +
329 + if use vboxwebsrv; then
330 + doins vboxwebsrv
331 + fowners root:vboxusers /opt/VirtualBox/vboxwebsrv
332 + fperms 0750 /opt/VirtualBox/vboxwebsrv
333 + dosym ../../opt/VirtualBox/VBox.sh /opt/bin/vboxwebsrv
334 + newinitd "${FILESDIR}"/vboxwebsrv-initd vboxwebsrv
335 + newconfd "${FILESDIR}"/vboxwebsrv-confd vboxwebsrv
336 + fi
337 +
338 + if use rdesktop-vrdp; then
339 + doins rdesktop-vrdp
340 + doins -r rdesktop-vrdp-keymaps
341 + fperms 0750 /opt/VirtualBox/rdesktop-vrdp
342 + dosym ../../opt/VirtualBox/rdesktop-vrdp /opt/bin/rdesktop-vrdp
343 + fi
344 +
345 + if ! use headless && use chm; then
346 + doins kchmviewer VirtualBox.chm
347 + fowners root:vboxusers /opt/VirtualBox/kchmviewer
348 + fperms 0750 /opt/VirtualBox/kchmviewer
349 + fi
350 +
351 + # This ebuild / package supports only py2.7. When py3 comes is unknown.
352 + # The compile phase makes VBoxPython2_7.so.
353 + # py3 support would presumably require a binary pre-compiled by py3.
354 + use python && doins VBoxPython.so VBoxPython2_7.so
355 +
356 + rm -rf src rdesktop* deffiles install* routines.sh runlevel.sh \
357 + vboxdrv.sh VBox.sh VBox.png vboxnet.sh additions VirtualBox.desktop \
358 + VirtualBox.tar.bz2 LICENSE VBoxSysInfo.sh rdesktop* vboxwebsrv \
359 + webtest kchmviewer VirtualBox.chm vbox-create-usb-node.sh \
360 + 90-vbox-usb.fdi uninstall.sh vboxshell.py vboxdrv-pardus.py \
361 + VBoxPython?_*.so
362 +
363 + if use headless ; then
364 + rm -rf VBoxSDL VirtualBox VBoxKeyboard.so
365 + fi
366 +
367 + doins -r * || die
368 +
369 + # create symlinks for working around unsupported $ORIGIN/.. in VBoxC.so (setuid)
370 + dosym ../VBoxVMM.so /opt/VirtualBox/components/VBoxVMM.so
371 + dosym ../VBoxREM.so /opt/VirtualBox/components/VBoxREM.so
372 + dosym ../VBoxRT.so /opt/VirtualBox/components/VBoxRT.so
373 + dosym ../VBoxDDU.so /opt/VirtualBox/components/VBoxDDU.so
374 + dosym ../VBoxXPCOM.so /opt/VirtualBox/components/VBoxXPCOM.so
375 +
376 + local each
377 + for each in VBox{Manage,SVC,XPCOMIPCD,Tunctl,NetAdpCtl,NetDHCP,NetNAT,TestOGL,ExtPackHelperApp}; do
378 + fowners root:vboxusers /opt/VirtualBox/${each}
379 + fperms 0750 /opt/VirtualBox/${each}
380 + pax-mark -m "${D}"/opt/VirtualBox/${each}
381 + done
382 + # VBoxNetAdpCtl and VBoxNetDHCP binaries need to be suid root in any case..
383 + fperms 4750 /opt/VirtualBox/VBoxNetAdpCtl
384 + fperms 4750 /opt/VirtualBox/VBoxNetDHCP
385 + fperms 4750 /opt/VirtualBox/VBoxNetNAT
386 +
387 + if ! use headless ; then
388 + # Hardened build: Mark selected binaries set-user-ID-on-execution
389 + for each in VBox{SDL,Headless} VirtualBox; do
390 + fowners root:vboxusers /opt/VirtualBox/${each}
391 + fperms 4510 /opt/VirtualBox/${each}
392 + pax-mark -m "${D}"/opt/VirtualBox/${each}
393 + done
394 +
395 + dosym ../VirtualBox/VBox.sh /opt/bin/VirtualBox
396 + dosym ../VirtualBox/VBox.sh /opt/bin/VBoxSDL
397 + else
398 + # Hardened build: Mark selected binaries set-user-ID-on-execution
399 + fowners root:vboxusers /opt/VirtualBox/VBoxHeadless
400 + fperms 4510 /opt/VirtualBox/VBoxHeadless
401 + pax-mark -m "${D}"/opt/VirtualBox/VBoxHeadless
402 + fi
403 +
404 + exeinto /opt/VirtualBox
405 + newexe "${FILESDIR}/${PN}-3-wrapper" "VBox.sh"
406 + fowners root:vboxusers /opt/VirtualBox/VBox.sh
407 + fperms 0750 /opt/VirtualBox/VBox.sh
408 +
409 + dosym ../VirtualBox/VBox.sh /opt/bin/VBoxManage
410 + dosym ../VirtualBox/VBox.sh /opt/bin/VBoxVRDP
411 + dosym ../VirtualBox/VBox.sh /opt/bin/VBoxHeadless
412 + dosym ../VirtualBox/VBoxTunctl /opt/bin/VBoxTunctl
413 +
414 + # set an env-variable for 3rd party tools
415 + echo -n "VBOX_APP_HOME=/opt/VirtualBox" > "${T}/90virtualbox"
416 + doenvd "${T}/90virtualbox"
417 +
418 + local udevdir="$(get_udevdir)"
419 + insinto ${udevdir}/rules.d
420 + doins "${FILESDIR}"/10-virtualbox.rules
421 + sed "s@%UDEVDIR%@${udevdir}@" \
422 + -i "${D}"${udevdir}/rules.d/10-virtualbox.rules || die
423 + # move udev scripts into ${udevdir} (bug #372491)
424 + mv "${D}"/opt/VirtualBox/VBoxCreateUSBNode.sh "${D}"${udevdir} || die
425 + fperms 0750 ${udevdir}/VBoxCreateUSBNode.sh
426 +}
427 +
428 +pkg_postinst() {
429 + xdg_desktop_database_update
430 +
431 + gnome2_icon_cache_update
432 +
433 + udevadm control --reload-rules && udevadm trigger --subsystem-match=usb
434 +
435 + elog ""
436 + if ! use headless ; then
437 + elog "To launch VirtualBox just type: \"VirtualBox\""
438 + elog ""
439 + fi
440 + elog "You must be in the vboxusers group to use VirtualBox."
441 + elog ""
442 + elog "For advanced networking setups you should emerge:"
443 + elog "net-misc/bridge-utils and sys-apps/usermode-utilities"
444 + elog ""
445 + elog "Please visit http://www.virtualbox.org/wiki/Editions for"
446 + elog "an overview about the different features of ${PN}"
447 + elog "and virtualbox-ose"
448 + if [ -e "${ROOT}/etc/udev/rules.d/10-virtualbox.rules" ] ; then
449 + elog ""
450 + elog "Please remove \"${ROOT}/etc/udev/rules.d/10-virtualbox.rules\""
451 + elog "or else USB in ${PN} won't work."
452 + fi
453 +}
454 +
455 +pkg_postrm() {
456 + xdg_desktop_database_update
457 +}
458
459 diff --git a/app-emulation/virtualbox-bin/virtualbox-bin-5.2.12.122591.ebuild b/app-emulation/virtualbox-bin/virtualbox-bin-5.2.12.122591.ebuild
460 new file mode 100644
461 index 00000000000..94de7dd7a10
462 --- /dev/null
463 +++ b/app-emulation/virtualbox-bin/virtualbox-bin-5.2.12.122591.ebuild
464 @@ -0,0 +1,287 @@
465 +# Copyright 1999-2018 Gentoo Foundation
466 +# Distributed under the terms of the GNU General Public License v2
467 +
468 +EAPI=5
469 +
470 +PYTHON_COMPAT=( python2_7 )
471 +
472 +inherit eutils xdg-utils gnome2 pax-utils python-r1 udev unpacker versionator
473 +
474 +MAIN_PV="$(get_version_component_range 1-3)"
475 +if [[ ${PV} = *_beta* ]] || [[ ${PV} = *_rc* ]] ; then
476 + MY_PV="${MAIN_PV}_$(get_version_component_range 5)"
477 + MY_PV="${MY_PV/beta/BETA}"
478 + MY_PV="${MY_PV/rc/RC}"
479 +else
480 + MY_PV="${MAIN_PV}"
481 +fi
482 +VBOX_BUILD_ID="$(get_version_component_range 4)"
483 +VBOX_PV="${MY_PV}-${VBOX_BUILD_ID}"
484 +MY_P="VirtualBox-${VBOX_PV}-Linux"
485 +# needed as sometimes the extpack gets another build ID
486 +EXTP_PV="${VBOX_PV}"
487 +EXTP_PN="Oracle_VM_VirtualBox_Extension_Pack"
488 +EXTP_P="${EXTP_PN}-${EXTP_PV}"
489 +# needed as sometimes the SDK gets another build ID
490 +SDK_PV="${VBOX_PV}"
491 +SDK_P="VirtualBoxSDK-${SDK_PV}"
492 +
493 +DESCRIPTION="Family of powerful x86 virtualization products for enterprise and home use"
494 +HOMEPAGE="https://www.virtualbox.org/"
495 +SRC_URI="amd64? ( https://download.virtualbox.org/virtualbox/${MY_PV}/${MY_P}_amd64.run )
496 + x86? ( https://download.virtualbox.org/virtualbox/${MY_PV}/${MY_P}_x86.run )
497 + https://download.virtualbox.org/virtualbox/${MY_PV}/${EXTP_P}.vbox-extpack -> ${EXTP_P}.tar.gz"
498 +
499 +LICENSE="GPL-2 PUEL"
500 +SLOT="0"
501 +KEYWORDS="~amd64 ~x86"
502 +IUSE="+additions +chm headless python vboxwebsrv rdesktop-vrdp"
503 +RESTRICT="mirror"
504 +
505 +if [[ "${PV}" != *beta* ]] ; then
506 + SRC_URI+="
507 + sdk? ( https://download.virtualbox.org/virtualbox/${MY_PV}/${SDK_P}.zip )"
508 + IUSE+=" sdk"
509 +fi
510 +
511 +DEPEND="app-arch/unzip
512 + ${PYTHON_DEPS}"
513 +
514 +RDEPEND="!!app-emulation/virtualbox
515 + !app-emulation/virtualbox-additions
516 + ~app-emulation/virtualbox-modules-${MAIN_PV}
517 + !headless? (
518 + dev-libs/glib
519 + media-libs/fontconfig
520 + media-libs/freetype
521 + media-libs/libpng
522 + media-libs/libsdl[X]
523 + x11-libs/libXcursor
524 + x11-libs/libXext
525 + x11-libs/libXfixes
526 + x11-libs/libXft
527 + x11-libs/libXi
528 + x11-libs/libXinerama
529 + x11-libs/libXrandr
530 + x11-libs/libXrender
531 + chm? ( dev-libs/expat )
532 + )
533 + dev-libs/libxml2
534 + sys-fs/lvm2
535 + x11-libs/libXau
536 + x11-libs/libX11
537 + x11-libs/libXt
538 + x11-libs/libXmu
539 + x11-libs/libSM
540 + x11-libs/libICE
541 + x11-libs/libXdmcp
542 + ${PYTHON_DEPS}"
543 +
544 +REQUIRED_USE="${PYTHON_REQUIRED_USE}"
545 +S="${WORKDIR}"
546 +
547 +QA_PREBUILT="opt/VirtualBox/*"
548 +
549 +PYTHON_UPDATER_IGNORE="1"
550 +
551 +src_unpack() {
552 + unpack_makeself ${MY_P}_${ARCH}.run
553 + unpack ./VirtualBox.tar.bz2
554 +
555 + mkdir "${S}"/${EXTP_PN} || die
556 + pushd "${S}"/${EXTP_PN} &>/dev/null || die
557 + unpack ${EXTP_P}.tar.gz
558 + popd &>/dev/null || die
559 +
560 + if [[ "${PV}" != *beta* ]] && use sdk ; then
561 + unpack VirtualBoxSDK-${SDK_PV}.zip
562 + fi
563 +}
564 +
565 +src_configure() {
566 + :;
567 +}
568 +
569 +src_compile() {
570 + :;
571 +}
572 +
573 +src_install() {
574 + # create virtualbox configurations files
575 + insinto /etc/vbox
576 + newins "${FILESDIR}/${PN}-config" vbox.cfg
577 +
578 + if ! use headless ; then
579 + newmenu "${FILESDIR}"/${PN}.desktop-2 ${PN}.desktop
580 +
581 + # set up symlinks (bug #572012)
582 + dosym ../../../../opt/VirtualBox/virtualbox.xml /usr/share/mime/packages/virtualbox.xml
583 +
584 + local size ico icofile
585 + for size in 16 24 32 48 64 72 96 128 256 ; do
586 + pushd "${S}"/icons/${size}x${size} &>/dev/null || die
587 + if [[ -f "virtualbox.png" ]] ; then
588 + doicon -s ${size} virtualbox.png
589 + fi
590 + for ico in hdd ova ovf vbox{,-extpack} vdi vdh vmdk ; do
591 + icofile="virtualbox-${ico}.png"
592 + if [[ -f "${icofile}" ]] ; then
593 + doicon -s ${size} ${icofile}
594 + fi
595 + done
596 + popd &>/dev/null || die
597 + done
598 + doicon -s scalable "${S}"/icons/scalable/virtualbox.svg
599 + insinto /usr/share/pixmaps
600 + newins "${S}"/icons/48x48/virtualbox.png ${PN}.png
601 + fi
602 +
603 + pushd "${S}"/${EXTP_PN} &>/dev/null || die
604 + insinto /opt/VirtualBox/ExtensionPacks/${EXTP_PN}
605 + doins -r linux.${ARCH}
606 + doins ExtPack* PXE-Intel.rom
607 + popd &>/dev/null || die
608 + rm -rf "${S}"/${EXTP_PN}
609 +
610 + insinto /opt/VirtualBox
611 + dodir /opt/bin
612 +
613 + doins UserManual.pdf
614 +
615 + if [[ "${PV}" != *beta* ]] && use sdk ; then
616 + doins -r sdk
617 + fi
618 +
619 + if use additions; then
620 + doins -r additions
621 + fi
622 +
623 + if use vboxwebsrv; then
624 + doins vboxwebsrv
625 + fowners root:vboxusers /opt/VirtualBox/vboxwebsrv
626 + fperms 0750 /opt/VirtualBox/vboxwebsrv
627 + dosym ../../opt/VirtualBox/VBox.sh /opt/bin/vboxwebsrv
628 + newinitd "${FILESDIR}"/vboxwebsrv-initd vboxwebsrv
629 + newconfd "${FILESDIR}"/vboxwebsrv-confd vboxwebsrv
630 + fi
631 +
632 + if use rdesktop-vrdp; then
633 + doins rdesktop-vrdp
634 + doins -r rdesktop-vrdp-keymaps
635 + fperms 0750 /opt/VirtualBox/rdesktop-vrdp
636 + dosym ../../opt/VirtualBox/rdesktop-vrdp /opt/bin/rdesktop-vrdp
637 + fi
638 +
639 + if ! use headless && use chm; then
640 + doins kchmviewer VirtualBox.chm
641 + fowners root:vboxusers /opt/VirtualBox/kchmviewer
642 + fperms 0750 /opt/VirtualBox/kchmviewer
643 + fi
644 +
645 + # This ebuild / package supports only py2.7. When py3 comes is unknown.
646 + # The compile phase makes VBoxPython2_7.so.
647 + # py3 support would presumably require a binary pre-compiled by py3.
648 + use python && doins VBoxPython.so VBoxPython2_7.so
649 +
650 + rm -rf src rdesktop* deffiles install* routines.sh runlevel.sh \
651 + vboxdrv.sh VBox.sh VBox.png vboxnet.sh additions VirtualBox.desktop \
652 + VirtualBox.tar.bz2 LICENSE VBoxSysInfo.sh rdesktop* vboxwebsrv \
653 + webtest kchmviewer VirtualBox.chm vbox-create-usb-node.sh \
654 + 90-vbox-usb.fdi uninstall.sh vboxshell.py vboxdrv-pardus.py \
655 + VBoxPython?_*.so
656 +
657 + if use headless ; then
658 + rm -rf VBoxSDL VirtualBox VBoxKeyboard.so
659 + fi
660 +
661 + doins -r * || die
662 +
663 + # create symlinks for working around unsupported $ORIGIN/.. in VBoxC.so (setuid)
664 + dosym ../VBoxVMM.so /opt/VirtualBox/components/VBoxVMM.so
665 + dosym ../VBoxREM.so /opt/VirtualBox/components/VBoxREM.so
666 + dosym ../VBoxRT.so /opt/VirtualBox/components/VBoxRT.so
667 + dosym ../VBoxDDU.so /opt/VirtualBox/components/VBoxDDU.so
668 + dosym ../VBoxXPCOM.so /opt/VirtualBox/components/VBoxXPCOM.so
669 +
670 + local each
671 + for each in VBox{Manage,SVC,XPCOMIPCD,Tunctl,NetAdpCtl,NetDHCP,NetNAT,TestOGL,ExtPackHelperApp}; do
672 + fowners root:vboxusers /opt/VirtualBox/${each}
673 + fperms 0750 /opt/VirtualBox/${each}
674 + pax-mark -m "${D}"/opt/VirtualBox/${each}
675 + done
676 + # VBoxNetAdpCtl and VBoxNetDHCP binaries need to be suid root in any case..
677 + fperms 4750 /opt/VirtualBox/VBoxNetAdpCtl
678 + fperms 4750 /opt/VirtualBox/VBoxNetDHCP
679 + fperms 4750 /opt/VirtualBox/VBoxNetNAT
680 +
681 + if ! use headless ; then
682 + # Hardened build: Mark selected binaries set-user-ID-on-execution
683 + for each in VBox{SDL,Headless} VirtualBox; do
684 + fowners root:vboxusers /opt/VirtualBox/${each}
685 + fperms 4510 /opt/VirtualBox/${each}
686 + pax-mark -m "${D}"/opt/VirtualBox/${each}
687 + done
688 +
689 + dosym ../VirtualBox/VBox.sh /opt/bin/VirtualBox
690 + dosym ../VirtualBox/VBox.sh /opt/bin/VBoxSDL
691 + else
692 + # Hardened build: Mark selected binaries set-user-ID-on-execution
693 + fowners root:vboxusers /opt/VirtualBox/VBoxHeadless
694 + fperms 4510 /opt/VirtualBox/VBoxHeadless
695 + pax-mark -m "${D}"/opt/VirtualBox/VBoxHeadless
696 + fi
697 +
698 + exeinto /opt/VirtualBox
699 + newexe "${FILESDIR}/${PN}-3-wrapper" "VBox.sh"
700 + fowners root:vboxusers /opt/VirtualBox/VBox.sh
701 + fperms 0750 /opt/VirtualBox/VBox.sh
702 +
703 + dosym ../VirtualBox/VBox.sh /opt/bin/VBoxManage
704 + dosym ../VirtualBox/VBox.sh /opt/bin/VBoxVRDP
705 + dosym ../VirtualBox/VBox.sh /opt/bin/VBoxHeadless
706 + dosym ../VirtualBox/VBoxTunctl /opt/bin/VBoxTunctl
707 +
708 + # set an env-variable for 3rd party tools
709 + echo -n "VBOX_APP_HOME=/opt/VirtualBox" > "${T}/90virtualbox"
710 + doenvd "${T}/90virtualbox"
711 +
712 + local udevdir="$(get_udevdir)"
713 + insinto ${udevdir}/rules.d
714 + doins "${FILESDIR}"/10-virtualbox.rules
715 + sed "s@%UDEVDIR%@${udevdir}@" \
716 + -i "${D}"${udevdir}/rules.d/10-virtualbox.rules || die
717 + # move udev scripts into ${udevdir} (bug #372491)
718 + mv "${D}"/opt/VirtualBox/VBoxCreateUSBNode.sh "${D}"${udevdir} || die
719 + fperms 0750 ${udevdir}/VBoxCreateUSBNode.sh
720 +}
721 +
722 +pkg_postinst() {
723 + xdg_desktop_database_update
724 +
725 + gnome2_icon_cache_update
726 +
727 + udevadm control --reload-rules && udevadm trigger --subsystem-match=usb
728 +
729 + elog ""
730 + if ! use headless ; then
731 + elog "To launch VirtualBox just type: \"VirtualBox\""
732 + elog ""
733 + fi
734 + elog "You must be in the vboxusers group to use VirtualBox."
735 + elog ""
736 + elog "For advanced networking setups you should emerge:"
737 + elog "net-misc/bridge-utils and sys-apps/usermode-utilities"
738 + elog ""
739 + elog "Please visit http://www.virtualbox.org/wiki/Editions for"
740 + elog "an overview about the different features of ${PN}"
741 + elog "and virtualbox-ose"
742 + if [ -e "${ROOT}/etc/udev/rules.d/10-virtualbox.rules" ] ; then
743 + elog ""
744 + elog "Please remove \"${ROOT}/etc/udev/rules.d/10-virtualbox.rules\""
745 + elog "or else USB in ${PN} won't work."
746 + fi
747 +}
748 +
749 +pkg_postrm() {
750 + xdg_desktop_database_update
751 +}
752
753 diff --git a/app-emulation/virtualbox-extpack-oracle/Manifest b/app-emulation/virtualbox-extpack-oracle/Manifest
754 index 307a7b53b3a..178ad9e4fab 100644
755 --- a/app-emulation/virtualbox-extpack-oracle/Manifest
756 +++ b/app-emulation/virtualbox-extpack-oracle/Manifest
757 @@ -1,5 +1,7 @@
758 DIST Oracle_VM_VirtualBox_Extension_Pack-5.1.32-120294.tar.gz 19589163 BLAKE2B b35d9bb90216a77706fe5f0de624affaff4177d4b6e561f7c76003efd1a386a1f5b5f6b1c6b559cddde6ffb55ab5f7eba3e4c9b2135f31c09313b473ba6579e5 SHA512 c1e13fc59b9556f980bec02bb2860e717f752d42c3d810f70267e5c07898bb1aba9d3f3403fa5aa388478aa609397da49dcf10311836d68093101715a6ae200d
759 DIST Oracle_VM_VirtualBox_Extension_Pack-5.1.34-121010.tar.gz 19591849 BLAKE2B 573afe3624a3eace4272a067f472e32dbe344755814aefaa8d6685da0ff31e04faa7f6a22a58974938067fce3a0ea3d66a0c5d02db999105029cc7c5c8fea24b SHA512 4f05bc7abe989fbc0928aba259ad60b09f5b085859c0ddc3e24c052fdb4becb055795c8f0038fc4dd95be7b9954a3034afd499798bb58fe16522602cfe91e7fa
760 DIST Oracle_VM_VirtualBox_Extension_Pack-5.1.36-122089.tar.gz 19605234 BLAKE2B 4b263b27b130e5b5d7917f15f0dc782f28f7708cc10e22028ee27b33be6541df5211c4fb36951a6b293d19b8933182097cd0575da8c1d00b6a96e747c1962762 SHA512 e11b294da83b4605c40132f2ea5f95f2820f901d2ed1d438c22c4cc9f779baa3112b9334036717d1593d5f9ec8374d7d7bc826012e2019ef0ba79bacb1deb7b8
761 +DIST Oracle_VM_VirtualBox_Extension_Pack-5.1.38-122592.tar.gz 19717251 BLAKE2B 90dcaa58284c6dc9101dbc8eb9ceda55d16c4a48fd58fb43c4a6b7d3d5c582c31930f6e773397ae9379e75771c88b40aad276436bb1d56a71a8e744353e04ec9 SHA512 ba44d53e06adababd0ac7c8a68ea025e1e7afd39fe648079bbb879e81130d45f00b944795cfd37f7f05c16d5a7723b85c49a8435c8399180af627dd3b3de00bc
762 DIST Oracle_VM_VirtualBox_Extension_Pack-5.2.10-122088.tar.gz 19482093 BLAKE2B ca02e9226b774340ecd31688f296304d7c963f20177d523058a1a2997cc287c59fc6e4df8bcc5024ec55cc7b79b1319f61bc9f3697cdb9c4c36423a77221cb82 SHA512 90e9d1c0235d14df9a305fa48102528b839c266abe18f97dcb945729cb9a0136cbf0686b69b82fcc76508cf7674c5b5dcb6563319af9ca0c294218802eaa9173
763 +DIST Oracle_VM_VirtualBox_Extension_Pack-5.2.12-122591.tar.gz 19590585 BLAKE2B 433ae630e55f2320d48c06d0fd5120528ee10c04f2e471da3a72fb98ae826b2909fa5fcd2a4ad7c875a1785d07c0a3dc9ec3001fa7d16903037731dbe1e24a75 SHA512 3e55cb2c8a5adfdac988b81804650aa35e66e052a946b371d61a92d459e5dbb83495f80423f22cfa2a4c2196cf94d1146ff5aed621985f27f2e5069c13f5daee
764 DIST Oracle_VM_VirtualBox_Extension_Pack-5.2.8-121009.tar.gz 19469421 BLAKE2B 81651876802ad767339f3984a26375118f01e4b99b4247398e0cea8d749905431b40945f8a72d0c7802b2743080f01d3044aafd21600c4927773994c5a114a1f SHA512 2b69e2acab91ce95e9807006c79862fc0d1d10fdd269bd9cdf8f11b6704821823b103c7a4a76ad99c10e0868bd397ffe0e72b2eb2aa4fc2bd81ff968c71c2280
765
766 diff --git a/app-emulation/virtualbox-extpack-oracle/virtualbox-extpack-oracle-5.1.38.122592.ebuild b/app-emulation/virtualbox-extpack-oracle/virtualbox-extpack-oracle-5.1.38.122592.ebuild
767 new file mode 100644
768 index 00000000000..7d7d5d2ea35
769 --- /dev/null
770 +++ b/app-emulation/virtualbox-extpack-oracle/virtualbox-extpack-oracle-5.1.38.122592.ebuild
771 @@ -0,0 +1,42 @@
772 +# Copyright 1999-2018 Gentoo Foundation
773 +# Distributed under the terms of the GNU General Public License v2
774 +
775 +EAPI=6
776 +
777 +inherit eutils multilib versionator
778 +
779 +MAIN_PV="$(get_version_component_range 1-3)"
780 +if [[ ${PV} = *_beta* ]] || [[ ${PV} = *_rc* ]] ; then
781 + MY_PV="${MAIN_PV}_$(get_version_component_range 5)"
782 + DEP_PV="${MY_PV}"
783 + MY_PV="${MY_PV/beta/BETA}"
784 + MY_PV="${MY_PV/rc/RC}"
785 +else
786 + MY_PV="${MAIN_PV}"
787 + DEP_PV="${MAIN_PV}"
788 +fi
789 +VBOX_BUILD_ID="$(get_version_component_range 4)"
790 +MY_PN="Oracle_VM_VirtualBox_Extension_Pack"
791 +MY_P="${MY_PN}-${MY_PV}-${VBOX_BUILD_ID}"
792 +
793 +DESCRIPTION="PUEL extensions for VirtualBox"
794 +HOMEPAGE="https://www.virtualbox.org/"
795 +SRC_URI="https://download.virtualbox.org/virtualbox/${MY_PV}/${MY_P}.vbox-extpack -> ${MY_P}.tar.gz"
796 +
797 +LICENSE="PUEL"
798 +SLOT="0"
799 +KEYWORDS="~amd64 ~x86"
800 +IUSE=""
801 +RESTRICT="mirror strip"
802 +
803 +RDEPEND="~app-emulation/virtualbox-${DEP_PV}"
804 +
805 +S="${WORKDIR}"
806 +
807 +QA_PREBUILT="/usr/lib*/virtualbox/ExtensionPacks/${MY_PN}/.*"
808 +
809 +src_install() {
810 + insinto /usr/$(get_libdir)/virtualbox/ExtensionPacks/${MY_PN}
811 + doins -r linux.${ARCH}
812 + doins ExtPack* PXE-Intel.rom
813 +}
814
815 diff --git a/app-emulation/virtualbox-extpack-oracle/virtualbox-extpack-oracle-5.2.12.122591.ebuild b/app-emulation/virtualbox-extpack-oracle/virtualbox-extpack-oracle-5.2.12.122591.ebuild
816 new file mode 100644
817 index 00000000000..7d7d5d2ea35
818 --- /dev/null
819 +++ b/app-emulation/virtualbox-extpack-oracle/virtualbox-extpack-oracle-5.2.12.122591.ebuild
820 @@ -0,0 +1,42 @@
821 +# Copyright 1999-2018 Gentoo Foundation
822 +# Distributed under the terms of the GNU General Public License v2
823 +
824 +EAPI=6
825 +
826 +inherit eutils multilib versionator
827 +
828 +MAIN_PV="$(get_version_component_range 1-3)"
829 +if [[ ${PV} = *_beta* ]] || [[ ${PV} = *_rc* ]] ; then
830 + MY_PV="${MAIN_PV}_$(get_version_component_range 5)"
831 + DEP_PV="${MY_PV}"
832 + MY_PV="${MY_PV/beta/BETA}"
833 + MY_PV="${MY_PV/rc/RC}"
834 +else
835 + MY_PV="${MAIN_PV}"
836 + DEP_PV="${MAIN_PV}"
837 +fi
838 +VBOX_BUILD_ID="$(get_version_component_range 4)"
839 +MY_PN="Oracle_VM_VirtualBox_Extension_Pack"
840 +MY_P="${MY_PN}-${MY_PV}-${VBOX_BUILD_ID}"
841 +
842 +DESCRIPTION="PUEL extensions for VirtualBox"
843 +HOMEPAGE="https://www.virtualbox.org/"
844 +SRC_URI="https://download.virtualbox.org/virtualbox/${MY_PV}/${MY_P}.vbox-extpack -> ${MY_P}.tar.gz"
845 +
846 +LICENSE="PUEL"
847 +SLOT="0"
848 +KEYWORDS="~amd64 ~x86"
849 +IUSE=""
850 +RESTRICT="mirror strip"
851 +
852 +RDEPEND="~app-emulation/virtualbox-${DEP_PV}"
853 +
854 +S="${WORKDIR}"
855 +
856 +QA_PREBUILT="/usr/lib*/virtualbox/ExtensionPacks/${MY_PN}/.*"
857 +
858 +src_install() {
859 + insinto /usr/$(get_libdir)/virtualbox/ExtensionPacks/${MY_PN}
860 + doins -r linux.${ARCH}
861 + doins ExtPack* PXE-Intel.rom
862 +}
863
864 diff --git a/app-emulation/virtualbox-guest-additions/Manifest b/app-emulation/virtualbox-guest-additions/Manifest
865 index ec7c61b37c9..9d3b3edb078 100644
866 --- a/app-emulation/virtualbox-guest-additions/Manifest
867 +++ b/app-emulation/virtualbox-guest-additions/Manifest
868 @@ -1,7 +1,9 @@
869 DIST VirtualBox-5.1.32.tar.bz2 117268301 BLAKE2B 336df054e3407d7e701d6719258cfcba9beec1439cbe94f137570cfcbdea02df3e34374ac36d3b4387c47ebafd17a0f05c2fb710eb4f140d8200117b505aba98 SHA512 052ac1672515a36c4138e2d52672a466d4c768f219f52eefe98e747a292ebebe04e7de35547eae6803654be5dc937b8e6f4d358a65fd4f49a8333eac8862d138
870 DIST VirtualBox-5.1.34.tar.bz2 117291269 BLAKE2B 0eb9b3f778f2d677ac3635fa59dfa6861d0fec3c0331582e5961b78ab55b5ab26bbf286de05a3e87e8a64e2b54861613a8d2c93f70736a07c551dca834786abd SHA512 0f828e58d68678a0a94a39c12313425105f9255ca207d40dd04065d0072857cdc4fc886f944b852c3fb63fed04d70a3449aecd2aab9e27af7f13b506143a4b6f
871 DIST VirtualBox-5.1.36.tar.bz2 117244376 BLAKE2B 141048f4fcbb3ce63d236a4127b4bce377e87876c23dc3ff6437b2c0cca5b468bc6a5737899b308bc1ff3252d4e61f7d053ff7574c33c85b56fdd986c31f2af3 SHA512 d1a9322c97c68cc9c21247c3df8ce2084911aded66a63adf5510f9e0f4558b1304dfe924a0c44243adc1ae8f7c45c47782e882baac1bfe995ea6c0a1370fcbd1
872 +DIST VirtualBox-5.1.38.tar.bz2 117345233 BLAKE2B 15ed86a1f6730c781a0b4b055dcccfb56ff9c829c90dc4d2aa96cc2bb5bcfa8e442bdd471a7c70c5520bef994592e8f1a5b46831df4039efb5358c2e0ab83413 SHA512 6cf8536c24aa3a6e889214ef6133eb18fdbe1e7c371323cad07aa63b0e1f4414ba13d5fa7b63c12dfefe60e2e544488ced107571f678a06eb094a3e19b377ea8
873 DIST VirtualBox-5.2.10.tar.bz2 118575607 BLAKE2B 46360d63cf6d1b8744016cbb2c1eee1d57ebafc45f8b32782c7216fc547f24af4c7205b4e7c34d24cd7faf7e8ce4ea8373ad4a310040a6ef9b043a8ce2300f94 SHA512 1e6d5e5c6ce45d9a3864860819f6301c192c83be154c674cfb37c98506db88a8f70526ec05d115c53e40c4c91d243513f0a3196261c7dee244a18091b2e5717e
874 +DIST VirtualBox-5.2.12.tar.bz2 118612426 BLAKE2B 685c400ef82de14891d9cc42e94e8c0de270a57d6e69820d45cf7fda0ef32d78d4c2670b4a2b89003d58035ee50d648d7906e58d99a96d40c24ee2fa51a317c9 SHA512 083219501d0103d1060cd470cad5a29a348341abf92c1caccf10e7fcfcf0db163e95d6624614d327dda7500d638d3038634fa8a3c1c441a6ee8de9e4f51325d2
875 DIST VirtualBox-5.2.8.tar.bz2 118500065 BLAKE2B 64d0cc0f928d224332f59e7966ee1bed8adcf097d27c577b6ecea5cbf203e170e38acca9f2371d6d7aa11f63b73e705b43a0516ccbe5993171f928406b8a3876 SHA512 49a3bd1c60d2c4cbd3799ece5fbfe15d9b6a00c5af9692478a1365a8eb4975228410e17dba24a388c0cf5387cb79fb7492feb4e6b2f531bc17322c3d61de7887
876 DIST virtualbox-5.1.30-patches-02.tar.xz 2608 BLAKE2B 08b05a26622a7acec455f6d0dc72858f5f2758488e50d219f83c3d12606419d48e9d99302cde5a275929fe79af900c1b3ea3957fe9dfdaa952aaa0da9933291a SHA512 8a490f7cc44e40262fc47819736251c177adb635256794e9500f52729197c85211d5b0c0d000268089953a4c185872a8ba03c5d42df6b80f05eac8b81335320a
877 DIST virtualbox-5.1.32-patches-01.tar.xz 2464 BLAKE2B 28f461634ac7f200b74d961e56f56aea486445bdb8d1490000bd34393b4873ee058d1dc9db6c32084921bd7d51a92be1e38b1b098385f443f41b9231c1489829 SHA512 08782c8eecc0cbb370f21fb3951af449ed1c8174a7184210de376a7d4ca5d64b14b2619d121aacef1c85982c8b485e545e260d3c0fc1f95769093efa23cd2cd2
878
879 diff --git a/app-emulation/virtualbox-guest-additions/virtualbox-guest-additions-5.1.38.ebuild b/app-emulation/virtualbox-guest-additions/virtualbox-guest-additions-5.1.38.ebuild
880 new file mode 100644
881 index 00000000000..97d4f9402e9
882 --- /dev/null
883 +++ b/app-emulation/virtualbox-guest-additions/virtualbox-guest-additions-5.1.38.ebuild
884 @@ -0,0 +1,219 @@
885 +# Copyright 1999-2018 Gentoo Foundation
886 +# Distributed under the terms of the GNU General Public License v2
887 +
888 +EAPI=6
889 +
890 +inherit eutils linux-mod systemd user toolchain-funcs
891 +
892 +MY_PV="${PV/beta/BETA}"
893 +MY_PV="${MY_PV/rc/RC}"
894 +MY_P=VirtualBox-${MY_PV}
895 +DESCRIPTION="VirtualBox kernel modules and user-space tools for Gentoo guests"
896 +HOMEPAGE="https://www.virtualbox.org/"
897 +SRC_URI="https://download.virtualbox.org/virtualbox/${MY_PV}/${MY_P}.tar.bz2
898 + https://dev.gentoo.org/~polynomial-c/virtualbox/patchsets/virtualbox-5.1.32-patches-01.tar.xz"
899 +
900 +LICENSE="GPL-2"
901 +SLOT="0"
902 +KEYWORDS="~amd64 ~x86"
903 +IUSE="X"
904 +
905 +RDEPEND="X? ( x11-apps/xrandr
906 + x11-apps/xrefresh
907 + x11-libs/libXmu
908 + x11-libs/libX11
909 + x11-libs/libXt
910 + x11-libs/libXext
911 + x11-libs/libXau
912 + x11-libs/libXdmcp
913 + x11-libs/libSM
914 + x11-libs/libICE )
915 + sys-apps/dbus
916 + !!x11-drivers/xf86-input-virtualbox"
917 +DEPEND="${RDEPEND}
918 + >=dev-util/kbuild-0.1.9998_pre20131130
919 + >=dev-lang/yasm-0.6.2
920 + sys-devel/bin86
921 + sys-libs/pam
922 + sys-power/iasl
923 + x11-base/xorg-proto"
924 +PDEPEND="X? ( ~x11-drivers/xf86-video-virtualbox-${PV} )"
925 +
926 +BUILD_TARGETS="all"
927 +BUILD_TARGET_ARCH="${ARCH}"
928 +
929 +S="${WORKDIR}/${MY_P}"
930 +
931 +pkg_setup() {
932 + MODULE_NAMES="vboxguest(misc:${WORKDIR}/vboxguest:${WORKDIR}/vboxguest)
933 + vboxsf(misc:${WORKDIR}/vboxsf:${WORKDIR}/vboxsf)"
934 + use X && MODULE_NAMES+=" vboxvideo(misc:${WORKDIR}/vboxvideo::${WORKDIR}/vboxvideo)"
935 +
936 + linux-mod_pkg_setup
937 + BUILD_PARAMS="KERN_DIR=${KV_OUT_DIR} KERNOUT=${KV_OUT_DIR}"
938 + enewgroup vboxguest
939 + enewuser vboxguest -1 /bin/sh /dev/null vboxguest
940 + # automount Error: VBoxServiceAutoMountWorker: Group "vboxsf" does not exist
941 + enewgroup vboxsf
942 +}
943 +
944 +src_unpack() {
945 + unpack ${A}
946 +
947 + # Create and unpack a tarball with the sources of the Linux guest
948 + # kernel modules, to include all the needed files
949 + "${S}"/src/VBox/Additions/linux/export_modules "${WORKDIR}/vbox-kmod.tar.gz"
950 + unpack ./vbox-kmod.tar.gz
951 +
952 + # Remove shipped binaries (kBuild,yasm), see bug #232775
953 + cd "${S}"
954 + rm -rf kBuild/bin tools
955 +}
956 +
957 +src_prepare() {
958 + # PaX fixes (see bug #298988)
959 + pushd "${WORKDIR}" &>/dev/null || die
960 + eapply "${FILESDIR}"/vboxguest-4.1.0-log-use-c99.patch
961 + popd &>/dev/null || die
962 +
963 + # Disable things unused or splitted into separate ebuilds
964 + cp "${FILESDIR}/${PN}-5-localconfig" LocalConfig.kmk || die
965 + use X || echo "VBOX_WITH_X11_ADDITIONS :=" >> LocalConfig.kmk
966 +
967 + # stupid new header references...
968 + for vboxheader in {product,revision,version}-generated.h ; do
969 + for mdir in vbox{guest,sf} ; do
970 + ln -sf "${S}"/out/linux.${ARCH}/release/${vboxheader} \
971 + "${WORKDIR}/${mdir}/${vboxheader}"
972 + done
973 + done
974 +
975 + # Remove pointless GCC version check
976 + sed -e '/^check_gcc$/d' -i configure || die
977 +
978 + eapply "${WORKDIR}/patches"
979 +
980 + eapply_user
981 +}
982 +
983 +src_configure() {
984 + # build the user-space tools, warnings are harmless
985 + local cmd=(
986 + ./configure
987 + --nofatal
988 + --disable-xpcom
989 + --disable-sdl-ttf
990 + --disable-pulse
991 + --disable-alsa
992 + --with-gcc="$(tc-getCC)"
993 + --with-g++="$(tc-getCXX)"
994 + --target-arch=${ARCH}
995 + --with-linux="${KV_OUT_DIR}"
996 + --build-headless
997 + )
998 + echo "${cmd[@]}"
999 + "${cmd[@]}" || die "configure failed"
1000 + source ./env.sh
1001 + export VBOX_GCC_OPT="${CFLAGS} ${CPPFLAGS}"
1002 +}
1003 +
1004 +src_compile() {
1005 + MAKE="kmk" \
1006 + emake TOOL_YASM_AS=yasm \
1007 + VBOX_ONLY_ADDITIONS=1 \
1008 + KBUILD_VERBOSE=2
1009 +
1010 + # Now creating the kernel modules. We must do this _after_
1011 + # we compiled the user-space tools as we need two of the
1012 + # automatically generated header files. (>=3.2.0)
1013 + linux-mod_src_compile
1014 +}
1015 +
1016 +src_install() {
1017 + linux-mod_src_install
1018 +
1019 + cd "${S}"/out/linux.${ARCH}/release/bin/additions || die
1020 +
1021 + insinto /sbin
1022 + newins mount.vboxsf mount.vboxsf
1023 + fperms 4755 /sbin/mount.vboxsf
1024 +
1025 + newinitd "${FILESDIR}"/${PN}-8.initd ${PN}
1026 +
1027 + insinto /usr/sbin/
1028 + newins VBoxService vboxguest-service
1029 + fperms 0755 /usr/sbin/vboxguest-service
1030 +
1031 + insinto /usr/bin
1032 + doins VBoxControl
1033 + fperms 0755 /usr/bin/VBoxControl
1034 +
1035 + # VBoxClient user service and xrandr wrapper
1036 + if use X ; then
1037 + doins VBoxClient
1038 + fperms 0755 /usr/bin/VBoxClient
1039 +
1040 + pushd "${S}"/src/VBox/Additions/x11/Installer &>/dev/null \
1041 + || die
1042 + newins 98vboxadd-xclient VBoxClient-all
1043 + fperms 0755 /usr/bin/VBoxClient-all
1044 + popd &>/dev/null || die
1045 + fi
1046 +
1047 + # udev rule for vboxdrv
1048 + local udev_rules_dir="/lib/udev/rules.d"
1049 + dodir ${udev_rules_dir}
1050 + echo 'KERNEL=="vboxguest", OWNER="vboxguest", GROUP="vboxguest", MODE="0660"' \
1051 + >> "${D}/${udev_rules_dir}/60-virtualbox-guest-additions.rules" \
1052 + || die
1053 + echo 'KERNEL=="vboxuser", OWNER="vboxguest", GROUP="vboxguest", MODE="0660"' \
1054 + >> "${D}/${udev_rules_dir}/60-virtualbox-guest-additions.rules" \
1055 + || die
1056 +
1057 + # VBoxClient autostart file
1058 + insinto /etc/xdg/autostart
1059 + doins "${FILESDIR}"/vboxclient.desktop
1060 +
1061 + # sample xorg.conf
1062 + insinto /usr/share/doc/${PF}
1063 + doins "${FILESDIR}"/xorg.conf.vbox
1064 +
1065 + systemd_dounit "${FILESDIR}/${PN}.service"
1066 +}
1067 +
1068 +pkg_postinst() {
1069 + linux-mod_pkg_postinst
1070 + if ! use X ; then
1071 + elog "use flag X is off, enable it to install the"
1072 + elog "X Window System video driver."
1073 + fi
1074 + elog ""
1075 + elog "Please add users to the \"vboxguest\" group so they can"
1076 + elog "benefit from seamless mode, auto-resize and clipboard."
1077 + elog ""
1078 + elog "The vboxsf group has been added to make automount services work."
1079 + elog "These services are part of the shared folders support."
1080 + elog ""
1081 + elog "Please add:"
1082 + elog "/etc/init.d/${PN}"
1083 + elog "to the default runlevel in order to start"
1084 + elog "needed services."
1085 + elog "To use the VirtualBox X driver, use the following"
1086 + elog "file as your /etc/X11/xorg.conf:"
1087 + elog " /usr/share/doc/${PF}/xorg.conf.vbox"
1088 + elog ""
1089 + elog "Also make sure you use the Mesa library for OpenGL:"
1090 + elog " eselect opengl set xorg-x11"
1091 + elog ""
1092 + elog "An autostart .desktop file has been installed to start"
1093 + elog "VBoxClient in desktop sessions."
1094 + elog ""
1095 + elog "You can mount shared folders with:"
1096 + elog " mount -t vboxsf <shared_folder_name> <mount_point>"
1097 + elog ""
1098 + elog "Warning:"
1099 + elog "this ebuild is only needed if you are running gentoo"
1100 + elog "inside a VirtualBox Virtual Machine, you don't need"
1101 + elog "it to run VirtualBox itself."
1102 + elog ""
1103 +}
1104
1105 diff --git a/app-emulation/virtualbox-guest-additions/virtualbox-guest-additions-5.2.12.ebuild b/app-emulation/virtualbox-guest-additions/virtualbox-guest-additions-5.2.12.ebuild
1106 new file mode 100644
1107 index 00000000000..9a895f357c2
1108 --- /dev/null
1109 +++ b/app-emulation/virtualbox-guest-additions/virtualbox-guest-additions-5.2.12.ebuild
1110 @@ -0,0 +1,226 @@
1111 +# Copyright 1999-2018 Gentoo Foundation
1112 +# Distributed under the terms of the GNU General Public License v2
1113 +
1114 +EAPI=6
1115 +
1116 +inherit eutils linux-mod systemd user toolchain-funcs
1117 +
1118 +MY_PV="${PV/beta/BETA}"
1119 +MY_PV="${MY_PV/rc/RC}"
1120 +MY_P=VirtualBox-${MY_PV}
1121 +DESCRIPTION="VirtualBox kernel modules and user-space tools for Gentoo guests"
1122 +HOMEPAGE="https://www.virtualbox.org/"
1123 +SRC_URI="https://download.virtualbox.org/virtualbox/${MY_PV}/${MY_P}.tar.bz2
1124 + https://dev.gentoo.org/~polynomial-c/virtualbox/patchsets/virtualbox-5.1.30-patches-02.tar.xz"
1125 +
1126 +LICENSE="GPL-2"
1127 +SLOT="0"
1128 +KEYWORDS="~amd64 ~x86"
1129 +IUSE="X"
1130 +
1131 +RDEPEND="
1132 + 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 + sys-apps/dbus
1143 + !!x11-drivers/xf86-input-virtualbox
1144 + !x11-drivers/xf86-video-virtualbox
1145 +"
1146 +DEPEND="
1147 + ${RDEPEND}
1148 + >=dev-util/kbuild-0.1.9998.3127
1149 + >=dev-lang/yasm-0.6.2
1150 + sys-devel/bin86
1151 + sys-libs/pam
1152 + sys-power/iasl
1153 + x11-base/xorg-proto
1154 +"
1155 +PDEPEND="
1156 + X? ( x11-drivers/xf86-video-vboxvideo )
1157 +"
1158 +BUILD_TARGETS="all"
1159 +BUILD_TARGET_ARCH="${ARCH}"
1160 +
1161 +S="${WORKDIR}/${MY_P}"
1162 +
1163 +pkg_setup() {
1164 + MODULE_NAMES="vboxguest(misc:${WORKDIR}/vboxguest:${WORKDIR}/vboxguest)
1165 + vboxsf(misc:${WORKDIR}/vboxsf:${WORKDIR}/vboxsf)"
1166 + use X && MODULE_NAMES+=" vboxvideo(misc:${WORKDIR}/vboxvideo::${WORKDIR}/vboxvideo)"
1167 +
1168 + linux-mod_pkg_setup
1169 + BUILD_PARAMS="KERN_DIR=${KV_OUT_DIR} KERNOUT=${KV_OUT_DIR}"
1170 + enewgroup vboxguest
1171 + enewuser vboxguest -1 /bin/sh /dev/null vboxguest
1172 + # automount Error: VBoxServiceAutoMountWorker: Group "vboxsf" does not exist
1173 + enewgroup vboxsf
1174 +}
1175 +
1176 +src_unpack() {
1177 + unpack ${A}
1178 +
1179 + # Create and unpack a tarball with the sources of the Linux guest
1180 + # kernel modules, to include all the needed files
1181 + "${S}"/src/VBox/Additions/linux/export_modules.sh "${WORKDIR}/vbox-kmod.tar.gz"
1182 + unpack ./vbox-kmod.tar.gz
1183 +
1184 + # Remove shipped binaries (kBuild,yasm), see bug #232775
1185 + cd "${S}"
1186 + rm -rf kBuild/bin tools
1187 +}
1188 +
1189 +src_prepare() {
1190 + # PaX fixes (see bug #298988)
1191 + pushd "${WORKDIR}" &>/dev/null || die
1192 + eapply "${FILESDIR}"/vboxguest-4.1.0-log-use-c99.patch
1193 + popd &>/dev/null || die
1194 +
1195 + # Disable things unused or splitted into separate ebuilds
1196 + cp "${FILESDIR}/${PN}-5-localconfig" LocalConfig.kmk || die
1197 + use X || echo "VBOX_WITH_X11_ADDITIONS :=" >> LocalConfig.kmk
1198 +
1199 + # stupid new header references...
1200 + for vboxheader in {product,revision,version}-generated.h ; do
1201 + for mdir in vbox{guest,sf} ; do
1202 + ln -sf "${S}"/out/linux.${ARCH}/release/${vboxheader} \
1203 + "${WORKDIR}/${mdir}/${vboxheader}"
1204 + done
1205 + done
1206 +
1207 + # Remove pointless GCC version check
1208 + sed -e '/^check_gcc$/d' -i configure || die
1209 +
1210 + rm "${WORKDIR}/patches/011_virtualbox-5.1.30-sysmacros.patch" || die
1211 + eapply "${WORKDIR}/patches"
1212 +
1213 + eapply_user
1214 +}
1215 +
1216 +src_configure() {
1217 + # build the user-space tools, warnings are harmless
1218 + local cmd=(
1219 + ./configure
1220 + --nofatal
1221 + --disable-xpcom
1222 + --disable-sdl-ttf
1223 + --disable-pulse
1224 + --disable-alsa
1225 + --with-gcc="$(tc-getCC)"
1226 + --with-g++="$(tc-getCXX)"
1227 + --target-arch=${ARCH}
1228 + --with-linux="${KV_OUT_DIR}"
1229 + --build-headless
1230 + )
1231 + echo "${cmd[@]}"
1232 + "${cmd[@]}" || die "configure failed"
1233 + source ./env.sh
1234 + export VBOX_GCC_OPT="${CFLAGS} ${CPPFLAGS}"
1235 +}
1236 +
1237 +src_compile() {
1238 + MAKE="kmk" \
1239 + emake TOOL_YASM_AS=yasm \
1240 + VBOX_ONLY_ADDITIONS=1 \
1241 + KBUILD_VERBOSE=2
1242 +
1243 + # Now creating the kernel modules. We must do this _after_
1244 + # we compiled the user-space tools as we need two of the
1245 + # automatically generated header files. (>=3.2.0)
1246 + linux-mod_src_compile
1247 +}
1248 +
1249 +src_install() {
1250 + linux-mod_src_install
1251 +
1252 + cd "${S}"/out/linux.${ARCH}/release/bin/additions || die
1253 +
1254 + insinto /sbin
1255 + newins mount.vboxsf mount.vboxsf
1256 + fperms 4755 /sbin/mount.vboxsf
1257 +
1258 + newinitd "${FILESDIR}"/${PN}-8.initd ${PN}
1259 +
1260 + insinto /usr/sbin/
1261 + newins VBoxService vboxguest-service
1262 + fperms 0755 /usr/sbin/vboxguest-service
1263 +
1264 + insinto /usr/bin
1265 + doins VBoxControl
1266 + fperms 0755 /usr/bin/VBoxControl
1267 +
1268 + # VBoxClient user service and xrandr wrapper
1269 + if use X ; then
1270 + doins VBoxClient
1271 + fperms 0755 /usr/bin/VBoxClient
1272 +
1273 + pushd "${S}"/src/VBox/Additions/x11/Installer &>/dev/null \
1274 + || die
1275 + newins 98vboxadd-xclient VBoxClient-all
1276 + fperms 0755 /usr/bin/VBoxClient-all
1277 + popd &>/dev/null || die
1278 + fi
1279 +
1280 + # udev rule for vboxdrv
1281 + local udev_rules_dir="/lib/udev/rules.d"
1282 + dodir ${udev_rules_dir}
1283 + echo 'KERNEL=="vboxguest", OWNER="vboxguest", GROUP="vboxguest", MODE="0660"' \
1284 + >> "${D}/${udev_rules_dir}/60-virtualbox-guest-additions.rules" \
1285 + || die
1286 + echo 'KERNEL=="vboxuser", OWNER="vboxguest", GROUP="vboxguest", MODE="0660"' \
1287 + >> "${D}/${udev_rules_dir}/60-virtualbox-guest-additions.rules" \
1288 + || die
1289 +
1290 + # VBoxClient autostart file
1291 + insinto /etc/xdg/autostart
1292 + doins "${FILESDIR}"/vboxclient.desktop
1293 +
1294 + # sample xorg.conf
1295 + insinto /usr/share/doc/${PF}
1296 + doins "${FILESDIR}"/xorg.conf.vbox
1297 +
1298 + systemd_dounit "${FILESDIR}/${PN}.service"
1299 +}
1300 +
1301 +pkg_postinst() {
1302 + linux-mod_pkg_postinst
1303 + if ! use X ; then
1304 + elog "use flag X is off, enable it to install the"
1305 + elog "X Window System video driver."
1306 + fi
1307 + elog ""
1308 + elog "Please add users to the \"vboxguest\" group so they can"
1309 + elog "benefit from seamless mode, auto-resize and clipboard."
1310 + elog ""
1311 + elog "The vboxsf group has been added to make automount services work."
1312 + elog "These services are part of the shared folders support."
1313 + elog ""
1314 + elog "Please add:"
1315 + elog "/etc/init.d/${PN}"
1316 + elog "to the default runlevel in order to start"
1317 + elog "needed services."
1318 + elog "To use the VirtualBox X driver, use the following"
1319 + elog "file as your /etc/X11/xorg.conf:"
1320 + elog " /usr/share/doc/${PF}/xorg.conf.vbox"
1321 + elog ""
1322 + elog "Also make sure you use the Mesa library for OpenGL:"
1323 + elog " eselect opengl set xorg-x11"
1324 + elog ""
1325 + elog "An autostart .desktop file has been installed to start"
1326 + elog "VBoxClient in desktop sessions."
1327 + elog ""
1328 + elog "You can mount shared folders with:"
1329 + elog " mount -t vboxsf <shared_folder_name> <mount_point>"
1330 + elog ""
1331 + elog "Warning:"
1332 + elog "this ebuild is only needed if you are running gentoo"
1333 + elog "inside a VirtualBox Virtual Machine, you don't need"
1334 + elog "it to run VirtualBox itself."
1335 + elog ""
1336 +}
1337
1338 diff --git a/app-emulation/virtualbox-modules/Manifest b/app-emulation/virtualbox-modules/Manifest
1339 index 262745281da..196ef7e8d70 100644
1340 --- a/app-emulation/virtualbox-modules/Manifest
1341 +++ b/app-emulation/virtualbox-modules/Manifest
1342 @@ -1,5 +1,7 @@
1343 DIST vbox-kernel-module-src-5.1.32.tar.xz 626600 BLAKE2B eb3243d62d1a22f41f5ea2307b13a3f5ce17a19edcecb0340f94d34995e557b016195443a53edc9d68a313d064008e5af04c7fff28540ec513c6e9a5955e02e0 SHA512 10ead68e53ae6bd72e39b31d536fc36e0999fe506a6d7fd6a6f9e462d539213ad65deb56e2b926baa5cc4b16fb4071d89e105889e873fda0e4a1f20387a7cd39
1344 DIST vbox-kernel-module-src-5.1.34.tar.xz 627576 BLAKE2B c1bd2af511824e5a74c3b85b73b7bc1664dd3651db3c17bbcba06b5ef8d9ba11c1a5c92bf28f443fb17aee1d057310f20a62c1a4608ce84eb087de61cbe67c25 SHA512 6176036a22d316e15c6560c124cfce9e93c6508a78e189bbe8e431ccf006b74d5f34ea747c9ca307bbd90e0c6fa414056ae0b56a5aa8124c2263de3d0dbf97d1
1345 DIST vbox-kernel-module-src-5.1.36.tar.xz 628368 BLAKE2B 49a3dfc4ff573f793eefcfd9b645af6fa6fc63b54475921064be146d3d4bf4db61f48d82f62d65811597fa12b88331153f7491890527fde76f41426355552abb SHA512 c69739c72a5555fc3bca90186129fa4eeb5bd930c4396b416a8a88e6f84bcd9e7498a9bbc9381da648cf87d601d98249feac2e4de6d93d8b7aba46b22d3ec40f
1346 +DIST vbox-kernel-module-src-5.1.38.tar.xz 628552 BLAKE2B 9faa4e837a48ac27be5c0183edcf2b39c08eeab210bd39811704a7a578a93b28f8b8ecf26a34483f2d135a8cb8817756120d7bef0b8de245c5a5e232cfebfff0 SHA512 36311c3ff947fa763db1fc0612c5a4c10ac3d586c3faab3a91e463723488510cedfc1a69696381158a167edfc86d7abf66c18b287ced75cbaba3f1797c4265a8
1347 DIST vbox-kernel-module-src-5.2.10.tar.xz 637080 BLAKE2B 303fd6191247df0560f161b12665b95f372de1a18755b937f7af8fecab6669337ccaf22f635219080953795cb9bc4c80bc21a8273e28b5cf8ba3ba9cf930e2cd SHA512 56e837f19a63856dbd57379dd78bf46b90ddeb3a60df9d18a46a6480c7021040b7674599fd0b48a9c3db241756539bfaa88becf6e42acf8725e2bc89e3879773
1348 +DIST vbox-kernel-module-src-5.2.12.tar.xz 637292 BLAKE2B 31b54c8de560a30d228497f5a3f58f868ad09e18051f8fac2257200e324603c5fdfe127d530997f7dae728d13d93ced6321487f20571811352bfbbf1f9c6d646 SHA512 7408e8121bf278050728461d4f7ab4d4b6c502b24859573d4652a58d1058e9b12a4de4b582ce45f7d0b12bf369a7378107c2cab12a6e93b1b082a40d1f2e9712
1349 DIST vbox-kernel-module-src-5.2.8.tar.xz 636172 BLAKE2B 0a0be16ee830dbf60e9bd8e0aa977ad020374d65c4ea19689bd20f7399da87633ac9ef57e2297963937e4d5eb82173a50beacd8ddd1b54943fe8d24fe723e3f4 SHA512 8875048d827ebbedec37864e219033305a228903b01d7ca22b371b02de9b23099d3bc76ddef4887b633f1215e73daa5db6e35c8d2e21f90200f439b15792d05f
1350
1351 diff --git a/app-emulation/virtualbox-modules/virtualbox-modules-5.1.38.ebuild b/app-emulation/virtualbox-modules/virtualbox-modules-5.1.38.ebuild
1352 new file mode 100644
1353 index 00000000000..027b2333e33
1354 --- /dev/null
1355 +++ b/app-emulation/virtualbox-modules/virtualbox-modules-5.1.38.ebuild
1356 @@ -0,0 +1,56 @@
1357 +# Copyright 1999-2018 Gentoo Foundation
1358 +# Distributed under the terms of the GNU General Public License v2
1359 +
1360 +# XXX: the tarball here is just the kernel modules split out of the binary
1361 +# package that comes from virtualbox-bin
1362 +
1363 +EAPI=6
1364 +
1365 +inherit eutils linux-mod user
1366 +
1367 +MY_P=vbox-kernel-module-src-${PV}
1368 +DESCRIPTION="Kernel Modules for Virtualbox"
1369 +HOMEPAGE="https://www.virtualbox.org/"
1370 +SRC_URI="https://dev.gentoo.org/~polynomial-c/virtualbox/${MY_P}.tar.xz"
1371 +
1372 +LICENSE="GPL-2"
1373 +SLOT="0"
1374 +KEYWORDS="~amd64 ~x86"
1375 +IUSE="pax_kernel"
1376 +
1377 +RDEPEND="!=app-emulation/virtualbox-9999"
1378 +
1379 +S=${WORKDIR}
1380 +
1381 +BUILD_TARGETS="all"
1382 +BUILD_TARGET_ARCH="${ARCH}"
1383 +MODULE_NAMES="vboxdrv(misc:${S}) vboxnetflt(misc:${S}) vboxnetadp(misc:${S}) vboxpci(misc:${S})"
1384 +
1385 +pkg_setup() {
1386 + enewgroup vboxusers
1387 + linux-mod_pkg_setup
1388 + BUILD_PARAMS="CC=$(tc-getBUILD_CC) KERN_DIR=${KV_DIR} O=${KV_OUT_DIR} V=1 KBUILD_VERBOSE=1"
1389 +}
1390 +
1391 +src_prepare() {
1392 + if kernel_is -ge 2 6 33 ; then
1393 + # evil patch for new kernels - header moved
1394 + grep -lR linux/autoconf.h * | xargs sed -i -e 's:<linux/autoconf.h>:<generated/autoconf.h>:'
1395 + fi
1396 +
1397 + if use pax_kernel && kernel_is -ge 3 0 0 ; then
1398 + eapply "${FILESDIR}"/${PN}-4.1.4-pax-const.patch
1399 + fi
1400 +
1401 + default
1402 +}
1403 +
1404 +src_install() {
1405 + linux-mod_src_install
1406 + insinto /usr/lib/modules-load.d/
1407 + doins "${FILESDIR}"/virtualbox.conf
1408 +}
1409 +
1410 +pkg_postinst() {
1411 + linux-mod_pkg_postinst
1412 +}
1413
1414 diff --git a/app-emulation/virtualbox-modules/virtualbox-modules-5.2.12.ebuild b/app-emulation/virtualbox-modules/virtualbox-modules-5.2.12.ebuild
1415 new file mode 100644
1416 index 00000000000..0fd483ae195
1417 --- /dev/null
1418 +++ b/app-emulation/virtualbox-modules/virtualbox-modules-5.2.12.ebuild
1419 @@ -0,0 +1,51 @@
1420 +# Copyright 1999-2018 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="https://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 + linux-mod_pkg_setup
1451 + BUILD_PARAMS="CC=$(tc-getBUILD_CC) KERN_DIR=${KV_DIR} KERN_VER=${KV_FULL} O=${KV_OUT_DIR} V=1 KBUILD_VERBOSE=1"
1452 +}
1453 +
1454 +src_prepare() {
1455 + if use pax_kernel && kernel_is -ge 3 0 0 ; then
1456 + eapply -p0 "${FILESDIR}"/${PN}-5.2.8-pax-const.patch
1457 + fi
1458 +
1459 + default
1460 +}
1461 +
1462 +src_install() {
1463 + linux-mod_src_install
1464 + insinto /usr/lib/modules-load.d/
1465 + doins "${FILESDIR}"/virtualbox.conf
1466 +}
1467 +
1468 +pkg_postinst() {
1469 + linux-mod_pkg_postinst
1470 +}
1471
1472 diff --git a/app-emulation/virtualbox/Manifest b/app-emulation/virtualbox/Manifest
1473 index 33d22634338..f057d5b6d42 100644
1474 --- a/app-emulation/virtualbox/Manifest
1475 +++ b/app-emulation/virtualbox/Manifest
1476 @@ -1,7 +1,9 @@
1477 DIST VirtualBox-5.1.32.tar.bz2 117268301 BLAKE2B 336df054e3407d7e701d6719258cfcba9beec1439cbe94f137570cfcbdea02df3e34374ac36d3b4387c47ebafd17a0f05c2fb710eb4f140d8200117b505aba98 SHA512 052ac1672515a36c4138e2d52672a466d4c768f219f52eefe98e747a292ebebe04e7de35547eae6803654be5dc937b8e6f4d358a65fd4f49a8333eac8862d138
1478 DIST VirtualBox-5.1.34.tar.bz2 117291269 BLAKE2B 0eb9b3f778f2d677ac3635fa59dfa6861d0fec3c0331582e5961b78ab55b5ab26bbf286de05a3e87e8a64e2b54861613a8d2c93f70736a07c551dca834786abd SHA512 0f828e58d68678a0a94a39c12313425105f9255ca207d40dd04065d0072857cdc4fc886f944b852c3fb63fed04d70a3449aecd2aab9e27af7f13b506143a4b6f
1479 DIST VirtualBox-5.1.36.tar.bz2 117244376 BLAKE2B 141048f4fcbb3ce63d236a4127b4bce377e87876c23dc3ff6437b2c0cca5b468bc6a5737899b308bc1ff3252d4e61f7d053ff7574c33c85b56fdd986c31f2af3 SHA512 d1a9322c97c68cc9c21247c3df8ce2084911aded66a63adf5510f9e0f4558b1304dfe924a0c44243adc1ae8f7c45c47782e882baac1bfe995ea6c0a1370fcbd1
1480 +DIST VirtualBox-5.1.38.tar.bz2 117345233 BLAKE2B 15ed86a1f6730c781a0b4b055dcccfb56ff9c829c90dc4d2aa96cc2bb5bcfa8e442bdd471a7c70c5520bef994592e8f1a5b46831df4039efb5358c2e0ab83413 SHA512 6cf8536c24aa3a6e889214ef6133eb18fdbe1e7c371323cad07aa63b0e1f4414ba13d5fa7b63c12dfefe60e2e544488ced107571f678a06eb094a3e19b377ea8
1481 DIST VirtualBox-5.2.10.tar.bz2 118575607 BLAKE2B 46360d63cf6d1b8744016cbb2c1eee1d57ebafc45f8b32782c7216fc547f24af4c7205b4e7c34d24cd7faf7e8ce4ea8373ad4a310040a6ef9b043a8ce2300f94 SHA512 1e6d5e5c6ce45d9a3864860819f6301c192c83be154c674cfb37c98506db88a8f70526ec05d115c53e40c4c91d243513f0a3196261c7dee244a18091b2e5717e
1482 +DIST VirtualBox-5.2.12.tar.bz2 118612426 BLAKE2B 685c400ef82de14891d9cc42e94e8c0de270a57d6e69820d45cf7fda0ef32d78d4c2670b4a2b89003d58035ee50d648d7906e58d99a96d40c24ee2fa51a317c9 SHA512 083219501d0103d1060cd470cad5a29a348341abf92c1caccf10e7fcfcf0db163e95d6624614d327dda7500d638d3038634fa8a3c1c441a6ee8de9e4f51325d2
1483 DIST VirtualBox-5.2.8.tar.bz2 118500065 BLAKE2B 64d0cc0f928d224332f59e7966ee1bed8adcf097d27c577b6ecea5cbf203e170e38acca9f2371d6d7aa11f63b73e705b43a0516ccbe5993171f928406b8a3876 SHA512 49a3bd1c60d2c4cbd3799ece5fbfe15d9b6a00c5af9692478a1365a8eb4975228410e17dba24a388c0cf5387cb79fb7492feb4e6b2f531bc17322c3d61de7887
1484 DIST virtualbox-5.1.32-patches-01.tar.xz 2464 BLAKE2B 28f461634ac7f200b74d961e56f56aea486445bdb8d1490000bd34393b4873ee058d1dc9db6c32084921bd7d51a92be1e38b1b098385f443f41b9231c1489829 SHA512 08782c8eecc0cbb370f21fb3951af449ed1c8174a7184210de376a7d4ca5d64b14b2619d121aacef1c85982c8b485e545e260d3c0fc1f95769093efa23cd2cd2
1485 DIST virtualbox-5.2.0-patches-01.tar.xz 2460 BLAKE2B d3f973dc7ee0557c360f801c3bf84065a7e7bc9960984398b8f86d71fab32c59774e970c6cf873be07bcb9666af168570e8a78705a5999b1fc5d863dbbc6e538 SHA512 b91278dd81a50e412f5a281c72949f591a1c53303080549b74b28763cab9e3948948afb0256e0453d17736683cca3372a8e9c6d63f02f3eff3ef92c2a1ea332b
1486
1487 diff --git a/app-emulation/virtualbox/virtualbox-5.1.38.ebuild b/app-emulation/virtualbox/virtualbox-5.1.38.ebuild
1488 new file mode 100644
1489 index 00000000000..73a8fc1d578
1490 --- /dev/null
1491 +++ b/app-emulation/virtualbox/virtualbox-5.1.38.ebuild
1492 @@ -0,0 +1,468 @@
1493 +# Copyright 1999-2018 Gentoo Foundation
1494 +# Distributed under the terms of the GNU General Public License v2
1495 +
1496 +EAPI=6
1497 +
1498 +PYTHON_COMPAT=( python2_7 )
1499 +inherit flag-o-matic java-pkg-opt-2 linux-info multilib pax-utils python-single-r1 tmpfiles toolchain-funcs udev xdg-utils
1500 +
1501 +MY_PV="${PV/beta/BETA}"
1502 +MY_PV="${MY_PV/rc/RC}"
1503 +MY_P=VirtualBox-${MY_PV}
1504 +
1505 +DESCRIPTION="Family of powerful x86 virtualization products for enterprise and home use"
1506 +HOMEPAGE="https://www.virtualbox.org/"
1507 +SRC_URI="https://download.virtualbox.org/virtualbox/${MY_PV}/${MY_P}.tar.bz2
1508 + https://dev.gentoo.org/~polynomial-c/${PN}/patchsets/${PN}-5.1.32-patches-01.tar.xz"
1509 +
1510 +LICENSE="GPL-2"
1511 +SLOT="0"
1512 +KEYWORDS="~amd64 ~x86"
1513 +IUSE="alsa debug doc headless java libressl lvm pam pax_kernel pulseaudio +opengl python +qt5 +sdk +udev vboxwebsrv vnc"
1514 +
1515 +RDEPEND="!app-emulation/virtualbox-bin
1516 + ~app-emulation/virtualbox-modules-${PV}
1517 + dev-libs/libIDL
1518 + >=dev-libs/libxslt-1.1.19
1519 + net-misc/curl
1520 + dev-libs/libxml2
1521 + media-libs/libpng:0=
1522 + media-libs/libvpx:0=
1523 + sys-libs/zlib
1524 + !headless? (
1525 + media-libs/libsdl:0[X,video]
1526 + x11-libs/libX11
1527 + x11-libs/libXcursor
1528 + x11-libs/libXext
1529 + x11-libs/libXmu
1530 + x11-libs/libXt
1531 + opengl? ( virtual/opengl media-libs/freeglut )
1532 + qt5? (
1533 + dev-qt/qtcore:5
1534 + dev-qt/qtgui:5
1535 + dev-qt/qtprintsupport:5
1536 + dev-qt/qtwidgets:5
1537 + dev-qt/qtx11extras:5
1538 + opengl? ( dev-qt/qtopengl:5 )
1539 + x11-libs/libXinerama
1540 + )
1541 + )
1542 + libressl? ( dev-libs/libressl:= )
1543 + !libressl? ( dev-libs/openssl:0= )
1544 + lvm? ( sys-fs/lvm2 )
1545 + udev? ( >=virtual/udev-171 )
1546 + vnc? ( >=net-libs/libvncserver-0.9.9 )"
1547 +DEPEND="${RDEPEND}
1548 + >=dev-util/kbuild-0.1.9998_pre20131130-r1
1549 + >=dev-lang/yasm-0.6.2
1550 + sys-devel/bin86
1551 + sys-libs/libcap
1552 + sys-power/iasl
1553 + virtual/pkgconfig
1554 + alsa? ( >=media-libs/alsa-lib-1.0.13 )
1555 + doc? (
1556 + app-text/docbook-sgml-dtd:4.4
1557 + dev-texlive/texlive-basic
1558 + dev-texlive/texlive-latex
1559 + dev-texlive/texlive-latexrecommended
1560 + dev-texlive/texlive-latexextra
1561 + dev-texlive/texlive-fontsrecommended
1562 + dev-texlive/texlive-fontsextra
1563 + )
1564 + !headless? ( x11-libs/libXinerama )
1565 + java? ( >=virtual/jdk-1.6 )
1566 + pam? ( sys-libs/pam )
1567 + pax_kernel? ( sys-apps/elfix )
1568 + pulseaudio? ( media-sound/pulseaudio )
1569 + qt5? ( dev-qt/linguist-tools:5 )
1570 + vboxwebsrv? ( net-libs/gsoap[-gnutls(-)] )
1571 + ${PYTHON_DEPS}"
1572 +RDEPEND="${RDEPEND}
1573 + java? ( >=virtual/jre-1.6 )"
1574 +
1575 +QA_TEXTRELS_x86="usr/lib/virtualbox-ose/VBoxGuestPropSvc.so
1576 + usr/lib/virtualbox/VBoxSDL.so
1577 + usr/lib/virtualbox/VBoxSharedFolders.so
1578 + usr/lib/virtualbox/VBoxDD2.so
1579 + usr/lib/virtualbox/VBoxOGLrenderspu.so
1580 + usr/lib/virtualbox/VBoxPython.so
1581 + usr/lib/virtualbox/VBoxDD.so
1582 + usr/lib/virtualbox/VBoxDDU.so
1583 + usr/lib/virtualbox/VBoxREM64.so
1584 + usr/lib/virtualbox/VBoxSharedClipboard.so
1585 + usr/lib/virtualbox/VBoxHeadless.so
1586 + usr/lib/virtualbox/VBoxRT.so
1587 + usr/lib/virtualbox/VBoxREM.so
1588 + usr/lib/virtualbox/VBoxSettings.so
1589 + usr/lib/virtualbox/VBoxKeyboard.so
1590 + usr/lib/virtualbox/VBoxSharedCrOpenGL.so
1591 + usr/lib/virtualbox/VBoxVMM.so
1592 + usr/lib/virtualbox/VirtualBox.so
1593 + usr/lib/virtualbox/VBoxOGLhosterrorspu.so
1594 + usr/lib/virtualbox/components/VBoxC.so
1595 + usr/lib/virtualbox/components/VBoxSVCM.so
1596 + usr/lib/virtualbox/components/VBoxDDU.so
1597 + usr/lib/virtualbox/components/VBoxRT.so
1598 + usr/lib/virtualbox/components/VBoxREM.so
1599 + usr/lib/virtualbox/components/VBoxVMM.so
1600 + usr/lib/virtualbox/VBoxREM32.so
1601 + usr/lib/virtualbox/VBoxPython2_7.so
1602 + usr/lib/virtualbox/VBoxXPCOMC.so
1603 + usr/lib/virtualbox/VBoxOGLhostcrutil.so
1604 + usr/lib/virtualbox/VBoxNetDHCP.so
1605 + usr/lib/virtualbox/VBoxNetNAT.so"
1606 +
1607 +S="${WORKDIR}/${MY_P}"
1608 +
1609 +REQUIRED_USE="
1610 + java? ( sdk )
1611 + python? ( sdk )
1612 + vboxwebsrv? ( java )
1613 + ${PYTHON_REQUIRED_USE}
1614 +"
1615 +
1616 +pkg_setup() {
1617 + if ! use headless && ! use qt5 ; then
1618 + einfo "No USE=\"qt5\" selected, this build will not include any Qt frontend."
1619 + elif use headless && use qt5 ; then
1620 + einfo "You selected USE=\"headless qt5\", defaulting to"
1621 + einfo "USE=\"headless\", this build will not include any X11/Qt frontend."
1622 + fi
1623 +
1624 + if ! use opengl ; then
1625 + einfo "No USE=\"opengl\" selected, this build will lack"
1626 + einfo "the OpenGL feature."
1627 + fi
1628 + if ! use python ; then
1629 + einfo "You have disabled the \"python\" USE flag. This will only"
1630 + einfo "disable the python bindings being installed."
1631 + fi
1632 + java-pkg-opt-2_pkg_setup
1633 + python-single-r1_pkg_setup
1634 +
1635 + tc-ld-disable-gold #bug 488176
1636 + tc-export CC CXX LD AR RANLIB
1637 + export HOST_CC="$(tc-getBUILD_CC)"
1638 +}
1639 +
1640 +src_prepare() {
1641 + # Remove shipped binaries (kBuild,yasm), see bug #232775
1642 + rm -r kBuild/bin tools || die
1643 +
1644 + # Replace pointless GCC version check with something less stupid.
1645 + # This is needed for the qt5 version check.
1646 + sed -e 's@^check_gcc$@cc_maj="$(gcc -dumpversion | cut -d. -f1)" ; cc_min="$(gcc -dumpversion | cut -d. -f2)"@' \
1647 + -i configure || die
1648 +
1649 + # Don't use "echo -n"
1650 + sed 's@ECHO_N="echo -n"@ECHO_N="printf"@' -i configure || die
1651 +
1652 + # Disable things unused or split into separate ebuilds
1653 + sed -e "s@MY_LIBDIR@$(get_libdir)@" \
1654 + "${FILESDIR}"/${PN}-5-localconfig > LocalConfig.kmk || die
1655 +
1656 + # Respect LDFLAGS
1657 + sed -e "s@_LDFLAGS\.${ARCH}*.*=@& ${LDFLAGS}@g" \
1658 + -i Config.kmk src/libs/xpcom18a4/Config.kmk || die
1659 +
1660 + # Do not use hard-coded ld (related to bug #488176)
1661 + sed -e '/QUIET)ld /s@ld @$(LD) @' \
1662 + -i src/VBox/Devices/PC/ipxe/Makefile.kmk || die
1663 +
1664 + # Use PAM only when pam USE flag is enbaled (bug #376531)
1665 + if ! use pam ; then
1666 + elog "Disabling PAM removes the possibility to use the VRDP features."
1667 + sed -i 's@^.*VBOX_WITH_PAM@#VBOX_WITH_PAM@' Config.kmk || die
1668 + sed -i 's@\(.*/auth/Makefile.kmk.*\)@#\1@' \
1669 + src/VBox/HostServices/Makefile.kmk || die
1670 + fi
1671 +
1672 + # add correct java path
1673 + if use java ; then
1674 + sed "s@/usr/lib/jvm/java-6-sun@$(java-config -O)@" \
1675 + -i "${S}"/Config.kmk || die
1676 + java-pkg-opt-2_src_prepare
1677 + fi
1678 +
1679 + # Only add nopie patch when we're on hardened
1680 + if gcc-specs-pie ; then
1681 + eapply "${FILESDIR}/050_virtualbox-5.1.24-nopie.patch"
1682 + fi
1683 +
1684 + # Only add paxmark patch when we're on pax_kernel
1685 + if use pax_kernel ; then
1686 + eapply "${FILESDIR}"/virtualbox-5.1.4-paxmark-bldprogs.patch
1687 + fi
1688 +
1689 + eapply "${WORKDIR}/patches"
1690 +
1691 + eapply_user
1692 +}
1693 +
1694 +src_configure() {
1695 + local myconf=(
1696 + --with-gcc="$(tc-getCC)"
1697 + --with-g++="$(tc-getCXX)"
1698 + --disable-dbus
1699 + --disable-kmods
1700 + $(usex alsa '' --disable-alsa)
1701 + $(usex debug --build-debug '')
1702 + $(usex doc '' --disable-docs)
1703 + $(usex java '' --disable-java)
1704 + $(usex lvm '' --disable-devmapper)
1705 + $(usex pulseaudio '' --disable-pulse)
1706 + $(usex python '' --disable-python)
1707 + $(usex vboxwebsrv --enable-webservice '')
1708 + $(usex vnc --enable-vnc '')
1709 + )
1710 + if ! use headless ; then
1711 + myconf+=(
1712 + $(usex opengl '' --disable-opengl)
1713 + $(usex qt5 '' --disable-qt)
1714 + )
1715 + else
1716 + myconf+=(
1717 + --build-headless
1718 + --disable-opengl
1719 + )
1720 + fi
1721 + if use amd64 && ! has_multilib_profile ; then
1722 + myconf+=( --disable-vmmraw )
1723 + fi
1724 + # not an autoconf script
1725 + ./configure ${myconf[@]} || die "configure failed"
1726 +}
1727 +
1728 +src_compile() {
1729 + source ./env.sh || die
1730 +
1731 + # Force kBuild to respect C[XX]FLAGS and MAKEOPTS (bug #178529)
1732 + MAKEJOBS=$(grep -Eo '(\-j|\-\-jobs)(=?|[[:space:]]*)[[:digit:]]+' <<< ${MAKEOPTS}) #'
1733 + MAKELOAD=$(grep -Eo '(\-l|\-\-load-average)(=?|[[:space:]]*)[[:digit:]]+' <<< ${MAKEOPTS}) #'
1734 + MAKEOPTS="${MAKEJOBS} ${MAKELOAD}"
1735 + MAKE="kmk" emake \
1736 + VBOX_BUILD_PUBLISHER=_Gentoo \
1737 + TOOL_GCC3_CC="$(tc-getCC)" TOOL_GCC3_CXX="$(tc-getCXX)" \
1738 + TOOL_GCC3_AS="$(tc-getCC)" TOOL_GCC3_AR="$(tc-getAR)" \
1739 + TOOL_GCC3_LD="$(tc-getCXX)" TOOL_GCC3_LD_SYSMOD="$(tc-getLD)" \
1740 + TOOL_GCC3_CFLAGS="${CFLAGS}" TOOL_GCC3_CXXFLAGS="${CXXFLAGS}" \
1741 + VBOX_GCC_OPT="${CXXFLAGS}" \
1742 + TOOL_YASM_AS=yasm KBUILD_VERBOSE=2 \
1743 + all
1744 +}
1745 +
1746 +src_install() {
1747 + local binpath="release"
1748 + use debug && binpath="debug"
1749 + cd "${S}"/out/linux.${ARCH}/${binpath}/bin || die
1750 +
1751 + local vbox_inst_path="/usr/$(get_libdir)/${PN}" each fwfile size ico icofile
1752 +
1753 + vbox_inst() {
1754 + local binary="${1}"
1755 + local perms="${2:-0750}"
1756 + local path="${3:-${vbox_inst_path}}"
1757 +
1758 + [[ -n "${binary}" ]] || die "vbox_inst: No binray given!"
1759 + [[ ${perms} =~ ^[[:digit:]]+{4}$ ]] || die "vbox_inst: perms must consist of four digits."
1760 +
1761 + insinto ${path}
1762 + doins ${binary}
1763 + fowners root:vboxusers ${path}/${binary}
1764 + fperms ${perms} ${path}/${binary}
1765 + }
1766 +
1767 + # Create configuration files
1768 + insinto /etc/vbox
1769 + newins "${FILESDIR}/${PN}-4-config" vbox.cfg
1770 +
1771 + # Set the correct libdir
1772 + sed \
1773 + -e "s@MY_LIBDIR@$(get_libdir)@" \
1774 + -i "${D}"/etc/vbox/vbox.cfg || die "vbox.cfg sed failed"
1775 +
1776 + # Install the wrapper script
1777 + exeinto ${vbox_inst_path}
1778 + newexe "${FILESDIR}/${PN}-ose-5-wrapper" "VBox"
1779 + fowners root:vboxusers ${vbox_inst_path}/VBox
1780 + fperms 0750 ${vbox_inst_path}/VBox
1781 +
1782 + # Install binaries and libraries
1783 + insinto ${vbox_inst_path}
1784 + doins -r components
1785 +
1786 + # *.rc files for x86_64 are only available on multilib systems
1787 + local rcfiles="*.rc"
1788 + if use amd64 && ! has_multilib_profile ; then
1789 + rcfiles=""
1790 + fi
1791 + for each in VBox{ExtPackHelperApp,Manage,SVC,Tunctl,XPCOMIPCD} *so *r0 ${rcfiles} ; do
1792 + vbox_inst ${each}
1793 + done
1794 +
1795 + # These binaries need to be suid root.
1796 + for each in VBox{Headless,Net{AdpCtl,DHCP,NAT}} ; do
1797 + vbox_inst ${each} 4750
1798 + done
1799 +
1800 + # Install EFI Firmware files (bug #320757)
1801 + pushd "${S}"/src/VBox/Devices/EFI/FirmwareBin &>/dev/null || die
1802 + for fwfile in VBoxEFI{32,64}.fd ; do
1803 + vbox_inst ${fwfile} 0644
1804 + done
1805 + popd &>/dev/null || die
1806 +
1807 + # VBoxSVC and VBoxManage need to be pax-marked (bug #403453)
1808 + # VBoxXPCOMIPCD (bug #524202)
1809 + for each in VBox{Headless,Manage,SVC,XPCOMIPCD} ; do
1810 + pax-mark -m "${D}"${vbox_inst_path}/${each}
1811 + done
1812 +
1813 + # Symlink binaries to the shipped wrapper
1814 + for each in vbox{headless,manage} VBox{Headless,Manage,VRDP} ; do
1815 + dosym ${vbox_inst_path}/VBox /usr/bin/${each}
1816 + done
1817 + dosym ${vbox_inst_path}/VBoxTunctl /usr/bin/VBoxTunctl
1818 +
1819 + if use pam ; then
1820 + # VRDPAuth only works with this (bug #351949)
1821 + dosym VBoxAuth.so ${vbox_inst_path}/VRDPAuth.so
1822 + fi
1823 +
1824 + # set an env-variable for 3rd party tools
1825 + echo -n "VBOX_APP_HOME=${vbox_inst_path}" > "${T}/90virtualbox"
1826 + doenvd "${T}/90virtualbox"
1827 +
1828 + if ! use headless ; then
1829 + vbox_inst VBoxSDL 4750
1830 + pax-mark -m "${D}"${vbox_inst_path}/VBoxSDL
1831 +
1832 + for each in vboxsdl VBoxSDL ; do
1833 + dosym ${vbox_inst_path}/VBox /usr/bin/${each}
1834 + done
1835 +
1836 + if use qt5 ; then
1837 + vbox_inst VirtualBox 4750
1838 + pax-mark -m "${D}"${vbox_inst_path}/VirtualBox
1839 +
1840 + if use opengl ; then
1841 + vbox_inst VBoxTestOGL
1842 + pax-mark -m "${D}"${vbox_inst_path}/VBoxTestOGL
1843 + fi
1844 +
1845 + for each in virtualbox VirtualBox ; do
1846 + dosym ${vbox_inst_path}/VBox /usr/bin/${each}
1847 + done
1848 +
1849 + insinto /usr/share/${PN}
1850 + doins -r nls
1851 +
1852 + newmenu "${FILESDIR}"/${PN}-ose.desktop-2 ${PN}.desktop
1853 + fi
1854 +
1855 + pushd "${S}"/src/VBox/Artwork/OSE &>/dev/null || die
1856 + for size in 16 32 48 64 128 ; do
1857 + newicon -s ${size} ${PN}-${size}px.png ${PN}.png
1858 + done
1859 + newicon ${PN}-48px.png ${PN}.png
1860 + doicon -s scalable ${PN}.svg
1861 + popd &>/dev/null || die
1862 + pushd "${S}"/src/VBox/Artwork/other &>/dev/null || die
1863 + for size in 16 24 32 48 64 72 96 128 256 512 ; do
1864 + for ico in hdd ova ovf vbox{,-extpack} vdi vdh vmdk ; do
1865 + icofile="${PN}-${ico}-${size}px.png"
1866 + if [[ -f "${icofile}" ]] ; then
1867 + newicon -s ${size} ${icofile} ${PN}-${ico}.png
1868 + fi
1869 + done
1870 + done
1871 + popd &>/dev/null || die
1872 + fi
1873 +
1874 + if use lvm ; then
1875 + vbox_inst VBoxVolInfo 4750
1876 + dosym ${vbox_inst_path}/VBoxVolInfo /usr/bin/VBoxVolInfo
1877 + fi
1878 +
1879 + if use sdk ; then
1880 + insinto ${vbox_inst_path}
1881 + doins -r sdk
1882 +
1883 + if use java ; then
1884 + java-pkg_regjar "${D}${vbox_inst_path}/sdk/bindings/xpcom/java/vboxjxpcom.jar"
1885 + java-pkg_regso "${D}${vbox_inst_path}/libvboxjxpcom.so"
1886 + fi
1887 + fi
1888 +
1889 + if use udev ; then
1890 + # New way of handling USB device nodes for VBox (bug #356215)
1891 + local udevdir="$(get_udevdir)"
1892 + insinto ${udevdir}
1893 + doins VBoxCreateUSBNode.sh
1894 + fowners root:vboxusers ${udevdir}/VBoxCreateUSBNode.sh
1895 + fperms 0750 ${udevdir}/VBoxCreateUSBNode.sh
1896 + insinto ${udevdir}/rules.d
1897 + sed "s@%UDEVDIR%@${udevdir}@" "${FILESDIR}"/10-virtualbox.rules \
1898 + > "${T}"/10-virtualbox.rules || die
1899 + doins "${T}"/10-virtualbox.rules
1900 + fi
1901 +
1902 + if use vboxwebsrv ; then
1903 + vbox_inst vboxwebsrv
1904 + dosym ${vbox_inst_path}/VBox /usr/bin/vboxwebsrv
1905 + newinitd "${FILESDIR}"/vboxwebsrv-initd vboxwebsrv
1906 + newconfd "${FILESDIR}"/vboxwebsrv-confd vboxwebsrv
1907 + fi
1908 +
1909 + if use doc ; then
1910 + dodoc UserManual.pdf
1911 + fi
1912 +
1913 + newtmpfiles "${FILESDIR}"/${PN}-vboxusb_tmpfilesd ${PN}-vboxusb.conf
1914 +}
1915 +
1916 +pkg_postinst() {
1917 + xdg_desktop_database_update
1918 +
1919 + if use udev ; then
1920 + udevadm control --reload-rules \
1921 + && udevadm trigger --subsystem-match=usb
1922 + fi
1923 +
1924 + tmpfiles_process /usr/lib/tmpfiles.d/virtualbox-vboxusb.conf
1925 +
1926 + if ! use headless && use qt5 ; then
1927 + elog "To launch VirtualBox just type: \"virtualbox\"."
1928 + fi
1929 + elog "You must be in the vboxusers group to use VirtualBox."
1930 + elog ""
1931 + elog "The latest user manual is available for download at:"
1932 + elog "http://download.virtualbox.org/virtualbox/${PV}/UserManual.pdf"
1933 + elog ""
1934 + elog "For advanced networking setups you should emerge:"
1935 + elog "net-misc/bridge-utils and sys-apps/usermode-utilities"
1936 + elog ""
1937 + elog "Starting with version 4.0.0, ${PN} has USB-1 support."
1938 + elog "For USB-2 support, PXE-boot ability and VRDP support please emerge"
1939 + elog " app-emulation/virtualbox-extpack-oracle"
1940 + elog "package."
1941 + elog "Starting with version 5.0.0, ${PN} no longer has the \"additions\" and"
1942 + elog "the \"extension\" USE flag. For installation of the guest additions ISO"
1943 + elog "image, please emerge"
1944 + elog " app-emulation/virtualbox-additions"
1945 + elog "and for the USB2, USB3, VRDP and PXE boot ROM modules, please emerge"
1946 + elog " app-emulation/virtualbox-extpack-oracle"
1947 + if ! use udev ; then
1948 + elog ""
1949 + elog "WARNING!"
1950 + elog "Without USE=udev, USB devices will likely not work in ${PN}."
1951 + elif [ -e "${ROOT%/}/etc/udev/rules.d/10-virtualbox.rules" ] ; then
1952 + elog ""
1953 + elog "Please remove \"${ROOT%/}/etc/udev/rules.d/10-virtualbox.rules\""
1954 + elog "or else USB in ${PN} won't work."
1955 + fi
1956 +}
1957 +
1958 +pkg_postrm() {
1959 + xdg_desktop_database_update
1960 +}
1961
1962 diff --git a/app-emulation/virtualbox/virtualbox-5.2.12.ebuild b/app-emulation/virtualbox/virtualbox-5.2.12.ebuild
1963 new file mode 100644
1964 index 00000000000..9286de0063a
1965 --- /dev/null
1966 +++ b/app-emulation/virtualbox/virtualbox-5.2.12.ebuild
1967 @@ -0,0 +1,468 @@
1968 +# Copyright 1999-2018 Gentoo Foundation
1969 +# Distributed under the terms of the GNU General Public License v2
1970 +
1971 +EAPI=6
1972 +
1973 +PYTHON_COMPAT=( python2_7 )
1974 +inherit flag-o-matic java-pkg-opt-2 linux-info multilib pax-utils python-single-r1 tmpfiles toolchain-funcs udev xdg-utils
1975 +
1976 +MY_PV="${PV/beta/BETA}"
1977 +MY_PV="${MY_PV/rc/RC}"
1978 +MY_P=VirtualBox-${MY_PV}
1979 +
1980 +DESCRIPTION="Family of powerful x86 virtualization products for enterprise and home use"
1981 +HOMEPAGE="https://www.virtualbox.org/"
1982 +SRC_URI="https://download.virtualbox.org/virtualbox/${MY_PV}/${MY_P}.tar.bz2
1983 + https://dev.gentoo.org/~polynomial-c/${PN}/patchsets/${PN}-5.2.0-patches-01.tar.xz"
1984 +
1985 +LICENSE="GPL-2"
1986 +SLOT="0"
1987 +KEYWORDS="~amd64 ~x86"
1988 +IUSE="alsa debug doc headless java libressl lvm pam pax_kernel pulseaudio +opengl python +qt5 +sdk +udev vboxwebsrv vnc"
1989 +
1990 +RDEPEND="!app-emulation/virtualbox-bin
1991 + ~app-emulation/virtualbox-modules-${PV}
1992 + dev-libs/libIDL
1993 + >=dev-libs/libxslt-1.1.19
1994 + net-misc/curl
1995 + dev-libs/libxml2
1996 + media-libs/libpng:0=
1997 + media-libs/libvpx:0=
1998 + sys-libs/zlib
1999 + !headless? (
2000 + media-libs/libsdl:0[X,video]
2001 + x11-libs/libX11
2002 + x11-libs/libXcursor
2003 + x11-libs/libXext
2004 + x11-libs/libXmu
2005 + x11-libs/libXt
2006 + opengl? ( virtual/opengl media-libs/freeglut )
2007 + qt5? (
2008 + dev-qt/qtcore:5
2009 + dev-qt/qtgui:5
2010 + dev-qt/qtprintsupport:5
2011 + dev-qt/qtwidgets:5
2012 + dev-qt/qtx11extras:5
2013 + opengl? ( dev-qt/qtopengl:5 )
2014 + x11-libs/libXinerama
2015 + )
2016 + )
2017 + libressl? ( dev-libs/libressl:= )
2018 + !libressl? ( dev-libs/openssl:0= )
2019 + lvm? ( sys-fs/lvm2 )
2020 + udev? ( >=virtual/udev-171 )
2021 + vnc? ( >=net-libs/libvncserver-0.9.9 )"
2022 +DEPEND="${RDEPEND}
2023 + >=dev-util/kbuild-0.1.9998.3127
2024 + >=dev-lang/yasm-0.6.2
2025 + sys-devel/bin86
2026 + sys-libs/libcap
2027 + sys-power/iasl
2028 + virtual/pkgconfig
2029 + alsa? ( >=media-libs/alsa-lib-1.0.13 )
2030 + doc? (
2031 + app-text/docbook-sgml-dtd:4.4
2032 + dev-texlive/texlive-basic
2033 + dev-texlive/texlive-latex
2034 + dev-texlive/texlive-latexrecommended
2035 + dev-texlive/texlive-latexextra
2036 + dev-texlive/texlive-fontsrecommended
2037 + dev-texlive/texlive-fontsextra
2038 + )
2039 + !headless? ( x11-libs/libXinerama )
2040 + java? ( >=virtual/jdk-1.6 )
2041 + pam? ( sys-libs/pam )
2042 + pax_kernel? ( sys-apps/elfix )
2043 + pulseaudio? ( media-sound/pulseaudio )
2044 + qt5? ( dev-qt/linguist-tools:5 )
2045 + vboxwebsrv? ( net-libs/gsoap[-gnutls(-)] )
2046 + ${PYTHON_DEPS}"
2047 +RDEPEND="${RDEPEND}
2048 + java? ( >=virtual/jre-1.6 )"
2049 +
2050 +QA_TEXTRELS_x86="usr/lib/virtualbox-ose/VBoxGuestPropSvc.so
2051 + usr/lib/virtualbox/VBoxSDL.so
2052 + usr/lib/virtualbox/VBoxSharedFolders.so
2053 + usr/lib/virtualbox/VBoxDD2.so
2054 + usr/lib/virtualbox/VBoxOGLrenderspu.so
2055 + usr/lib/virtualbox/VBoxPython.so
2056 + usr/lib/virtualbox/VBoxDD.so
2057 + usr/lib/virtualbox/VBoxDDU.so
2058 + usr/lib/virtualbox/VBoxREM64.so
2059 + usr/lib/virtualbox/VBoxSharedClipboard.so
2060 + usr/lib/virtualbox/VBoxHeadless.so
2061 + usr/lib/virtualbox/VBoxRT.so
2062 + usr/lib/virtualbox/VBoxREM.so
2063 + usr/lib/virtualbox/VBoxSettings.so
2064 + usr/lib/virtualbox/VBoxKeyboard.so
2065 + usr/lib/virtualbox/VBoxSharedCrOpenGL.so
2066 + usr/lib/virtualbox/VBoxVMM.so
2067 + usr/lib/virtualbox/VirtualBox.so
2068 + usr/lib/virtualbox/VBoxOGLhosterrorspu.so
2069 + usr/lib/virtualbox/components/VBoxC.so
2070 + usr/lib/virtualbox/components/VBoxSVCM.so
2071 + usr/lib/virtualbox/components/VBoxDDU.so
2072 + usr/lib/virtualbox/components/VBoxRT.so
2073 + usr/lib/virtualbox/components/VBoxREM.so
2074 + usr/lib/virtualbox/components/VBoxVMM.so
2075 + usr/lib/virtualbox/VBoxREM32.so
2076 + usr/lib/virtualbox/VBoxPython2_7.so
2077 + usr/lib/virtualbox/VBoxXPCOMC.so
2078 + usr/lib/virtualbox/VBoxOGLhostcrutil.so
2079 + usr/lib/virtualbox/VBoxNetDHCP.so
2080 + usr/lib/virtualbox/VBoxNetNAT.so"
2081 +
2082 +S="${WORKDIR}/${MY_P}"
2083 +
2084 +REQUIRED_USE="
2085 + java? ( sdk )
2086 + python? ( sdk )
2087 + vboxwebsrv? ( java )
2088 + ${PYTHON_REQUIRED_USE}
2089 +"
2090 +
2091 +pkg_setup() {
2092 + if ! use headless && ! use qt5 ; then
2093 + einfo "No USE=\"qt5\" selected, this build will not include any Qt frontend."
2094 + elif use headless && use qt5 ; then
2095 + einfo "You selected USE=\"headless qt5\", defaulting to"
2096 + einfo "USE=\"headless\", this build will not include any X11/Qt frontend."
2097 + fi
2098 +
2099 + if ! use opengl ; then
2100 + einfo "No USE=\"opengl\" selected, this build will lack"
2101 + einfo "the OpenGL feature."
2102 + fi
2103 + if ! use python ; then
2104 + einfo "You have disabled the \"python\" USE flag. This will only"
2105 + einfo "disable the python bindings being installed."
2106 + fi
2107 + java-pkg-opt-2_pkg_setup
2108 + python-single-r1_pkg_setup
2109 +
2110 + tc-ld-disable-gold #bug 488176
2111 + tc-export CC CXX LD AR RANLIB
2112 + export HOST_CC="$(tc-getBUILD_CC)"
2113 +}
2114 +
2115 +src_prepare() {
2116 + # Remove shipped binaries (kBuild,yasm), see bug #232775
2117 + rm -r kBuild/bin tools || die
2118 +
2119 + # Replace pointless GCC version check with something less stupid.
2120 + # This is needed for the qt5 version check.
2121 + sed -e 's@^check_gcc$@cc_maj="$(gcc -dumpversion | cut -d. -f1)" ; cc_min="$(gcc -dumpversion | cut -d. -f2)"@' \
2122 + -i configure || die
2123 +
2124 + # Don't use "echo -n"
2125 + sed 's@ECHO_N="echo -n"@ECHO_N="printf"@' -i configure || die
2126 +
2127 + # Disable things unused or split into separate ebuilds
2128 + sed -e "s@MY_LIBDIR@$(get_libdir)@" \
2129 + "${FILESDIR}"/${PN}-5-localconfig > LocalConfig.kmk || die
2130 +
2131 + # Respect LDFLAGS
2132 + sed -e "s@_LDFLAGS\.${ARCH}*.*=@& ${LDFLAGS}@g" \
2133 + -i Config.kmk src/libs/xpcom18a4/Config.kmk || die
2134 +
2135 + # Do not use hard-coded ld (related to bug #488176)
2136 + sed -e '/QUIET)ld /s@ld @$(LD) @' \
2137 + -i src/VBox/Devices/PC/ipxe/Makefile.kmk || die
2138 +
2139 + # Use PAM only when pam USE flag is enbaled (bug #376531)
2140 + if ! use pam ; then
2141 + elog "Disabling PAM removes the possibility to use the VRDP features."
2142 + sed -i 's@^.*VBOX_WITH_PAM@#VBOX_WITH_PAM@' Config.kmk || die
2143 + sed -i 's@\(.*/auth/Makefile.kmk.*\)@#\1@' \
2144 + src/VBox/HostServices/Makefile.kmk || die
2145 + fi
2146 +
2147 + # add correct java path
2148 + if use java ; then
2149 + sed "s@/usr/lib/jvm/java-6-sun@$(java-config -O)@" \
2150 + -i "${S}"/Config.kmk || die
2151 + java-pkg-opt-2_src_prepare
2152 + fi
2153 +
2154 + # Only add nopie patch when we're on hardened
2155 + if gcc-specs-pie ; then
2156 + eapply "${FILESDIR}/050_virtualbox-5.2.8-nopie.patch"
2157 + fi
2158 +
2159 + # Only add paxmark patch when we're on pax_kernel
2160 + if use pax_kernel ; then
2161 + eapply "${FILESDIR}"/virtualbox-5.2.8-paxmark-bldprogs.patch
2162 + fi
2163 +
2164 + eapply "${WORKDIR}/patches"
2165 +
2166 + eapply_user
2167 +}
2168 +
2169 +src_configure() {
2170 + local myconf=(
2171 + --with-gcc="$(tc-getCC)"
2172 + --with-g++="$(tc-getCXX)"
2173 + --disable-dbus
2174 + --disable-kmods
2175 + $(usex alsa '' --disable-alsa)
2176 + $(usex debug --build-debug '')
2177 + $(usex doc '' --disable-docs)
2178 + $(usex java '' --disable-java)
2179 + $(usex lvm '' --disable-devmapper)
2180 + $(usex pulseaudio '' --disable-pulse)
2181 + $(usex python '' --disable-python)
2182 + $(usex vboxwebsrv --enable-webservice '')
2183 + $(usex vnc --enable-vnc '')
2184 + )
2185 + if ! use headless ; then
2186 + myconf+=(
2187 + $(usex opengl '' --disable-opengl)
2188 + $(usex qt5 '' --disable-qt)
2189 + )
2190 + else
2191 + myconf+=(
2192 + --build-headless
2193 + --disable-opengl
2194 + )
2195 + fi
2196 + if use amd64 && ! has_multilib_profile ; then
2197 + myconf+=( --disable-vmmraw )
2198 + fi
2199 + # not an autoconf script
2200 + ./configure ${myconf[@]} || die "configure failed"
2201 +}
2202 +
2203 +src_compile() {
2204 + source ./env.sh || die
2205 +
2206 + # Force kBuild to respect C[XX]FLAGS and MAKEOPTS (bug #178529)
2207 + MAKEJOBS=$(grep -Eo '(\-j|\-\-jobs)(=?|[[:space:]]*)[[:digit:]]+' <<< ${MAKEOPTS}) #'
2208 + MAKELOAD=$(grep -Eo '(\-l|\-\-load-average)(=?|[[:space:]]*)[[:digit:]]+' <<< ${MAKEOPTS}) #'
2209 + MAKEOPTS="${MAKEJOBS} ${MAKELOAD}"
2210 + MAKE="kmk" emake \
2211 + VBOX_BUILD_PUBLISHER=_Gentoo \
2212 + TOOL_GCC3_CC="$(tc-getCC)" TOOL_GCC3_CXX="$(tc-getCXX)" \
2213 + TOOL_GCC3_AS="$(tc-getCC)" TOOL_GCC3_AR="$(tc-getAR)" \
2214 + TOOL_GCC3_LD="$(tc-getCXX)" TOOL_GCC3_LD_SYSMOD="$(tc-getLD)" \
2215 + TOOL_GCC3_CFLAGS="${CFLAGS}" TOOL_GCC3_CXXFLAGS="${CXXFLAGS}" \
2216 + VBOX_GCC_OPT="${CXXFLAGS}" \
2217 + TOOL_YASM_AS=yasm KBUILD_VERBOSE=2 \
2218 + all
2219 +}
2220 +
2221 +src_install() {
2222 + local binpath="release"
2223 + use debug && binpath="debug"
2224 + cd "${S}"/out/linux.${ARCH}/${binpath}/bin || die
2225 +
2226 + local vbox_inst_path="/usr/$(get_libdir)/${PN}" each fwfile size ico icofile
2227 +
2228 + vbox_inst() {
2229 + local binary="${1}"
2230 + local perms="${2:-0750}"
2231 + local path="${3:-${vbox_inst_path}}"
2232 +
2233 + [[ -n "${binary}" ]] || die "vbox_inst: No binray given!"
2234 + [[ ${perms} =~ ^[[:digit:]]+{4}$ ]] || die "vbox_inst: perms must consist of four digits."
2235 +
2236 + insinto ${path}
2237 + doins ${binary}
2238 + fowners root:vboxusers ${path}/${binary}
2239 + fperms ${perms} ${path}/${binary}
2240 + }
2241 +
2242 + # Create configuration files
2243 + insinto /etc/vbox
2244 + newins "${FILESDIR}/${PN}-4-config" vbox.cfg
2245 +
2246 + # Set the correct libdir
2247 + sed \
2248 + -e "s@MY_LIBDIR@$(get_libdir)@" \
2249 + -i "${D}"/etc/vbox/vbox.cfg || die "vbox.cfg sed failed"
2250 +
2251 + # Install the wrapper script
2252 + exeinto ${vbox_inst_path}
2253 + newexe "${FILESDIR}/${PN}-ose-5-wrapper" "VBox"
2254 + fowners root:vboxusers ${vbox_inst_path}/VBox
2255 + fperms 0750 ${vbox_inst_path}/VBox
2256 +
2257 + # Install binaries and libraries
2258 + insinto ${vbox_inst_path}
2259 + doins -r components
2260 +
2261 + # *.rc files for x86_64 are only available on multilib systems
2262 + local rcfiles="*.rc"
2263 + if use amd64 && ! has_multilib_profile ; then
2264 + rcfiles=""
2265 + fi
2266 + for each in VBox{ExtPackHelperApp,Manage,SVC,Tunctl,XPCOMIPCD} *so *r0 ${rcfiles} ; do
2267 + vbox_inst ${each}
2268 + done
2269 +
2270 + # These binaries need to be suid root.
2271 + for each in VBox{Headless,Net{AdpCtl,DHCP,NAT}} ; do
2272 + vbox_inst ${each} 4750
2273 + done
2274 +
2275 + # Install EFI Firmware files (bug #320757)
2276 + pushd "${S}"/src/VBox/Devices/EFI/FirmwareBin &>/dev/null || die
2277 + for fwfile in VBoxEFI{32,64}.fd ; do
2278 + vbox_inst ${fwfile} 0644
2279 + done
2280 + popd &>/dev/null || die
2281 +
2282 + # VBoxSVC and VBoxManage need to be pax-marked (bug #403453)
2283 + # VBoxXPCOMIPCD (bug #524202)
2284 + for each in VBox{Headless,Manage,SVC,XPCOMIPCD} ; do
2285 + pax-mark -m "${D}"${vbox_inst_path}/${each}
2286 + done
2287 +
2288 + # Symlink binaries to the shipped wrapper
2289 + for each in vbox{headless,manage} VBox{Headless,Manage,VRDP} ; do
2290 + dosym ${vbox_inst_path}/VBox /usr/bin/${each}
2291 + done
2292 + dosym ${vbox_inst_path}/VBoxTunctl /usr/bin/VBoxTunctl
2293 +
2294 + if use pam ; then
2295 + # VRDPAuth only works with this (bug #351949)
2296 + dosym VBoxAuth.so ${vbox_inst_path}/VRDPAuth.so
2297 + fi
2298 +
2299 + # set an env-variable for 3rd party tools
2300 + echo -n "VBOX_APP_HOME=${vbox_inst_path}" > "${T}/90virtualbox"
2301 + doenvd "${T}/90virtualbox"
2302 +
2303 + if ! use headless ; then
2304 + vbox_inst VBoxSDL 4750
2305 + pax-mark -m "${D}"${vbox_inst_path}/VBoxSDL
2306 +
2307 + for each in vboxsdl VBoxSDL ; do
2308 + dosym ${vbox_inst_path}/VBox /usr/bin/${each}
2309 + done
2310 +
2311 + if use qt5 ; then
2312 + vbox_inst VirtualBox 4750
2313 + pax-mark -m "${D}"${vbox_inst_path}/VirtualBox
2314 +
2315 + if use opengl ; then
2316 + vbox_inst VBoxTestOGL
2317 + pax-mark -m "${D}"${vbox_inst_path}/VBoxTestOGL
2318 + fi
2319 +
2320 + for each in virtualbox VirtualBox ; do
2321 + dosym ${vbox_inst_path}/VBox /usr/bin/${each}
2322 + done
2323 +
2324 + insinto /usr/share/${PN}
2325 + doins -r nls
2326 +
2327 + newmenu "${FILESDIR}"/${PN}-ose.desktop-2 ${PN}.desktop
2328 + fi
2329 +
2330 + pushd "${S}"/src/VBox/Artwork/OSE &>/dev/null || die
2331 + for size in 16 32 48 64 128 ; do
2332 + newicon -s ${size} ${PN}-${size}px.png ${PN}.png
2333 + done
2334 + newicon ${PN}-48px.png ${PN}.png
2335 + doicon -s scalable ${PN}.svg
2336 + popd &>/dev/null || die
2337 + pushd "${S}"/src/VBox/Artwork/other &>/dev/null || die
2338 + for size in 16 24 32 48 64 72 96 128 256 512 ; do
2339 + for ico in hdd ova ovf vbox{,-extpack} vdi vdh vmdk ; do
2340 + icofile="${PN}-${ico}-${size}px.png"
2341 + if [[ -f "${icofile}" ]] ; then
2342 + newicon -s ${size} ${icofile} ${PN}-${ico}.png
2343 + fi
2344 + done
2345 + done
2346 + popd &>/dev/null || die
2347 + fi
2348 +
2349 + if use lvm ; then
2350 + vbox_inst VBoxVolInfo 4750
2351 + dosym ${vbox_inst_path}/VBoxVolInfo /usr/bin/VBoxVolInfo
2352 + fi
2353 +
2354 + if use sdk ; then
2355 + insinto ${vbox_inst_path}
2356 + doins -r sdk
2357 +
2358 + if use java ; then
2359 + java-pkg_regjar "${D}${vbox_inst_path}/sdk/bindings/xpcom/java/vboxjxpcom.jar"
2360 + java-pkg_regso "${D}${vbox_inst_path}/libvboxjxpcom.so"
2361 + fi
2362 + fi
2363 +
2364 + if use udev ; then
2365 + # New way of handling USB device nodes for VBox (bug #356215)
2366 + local udevdir="$(get_udevdir)"
2367 + insinto ${udevdir}
2368 + doins VBoxCreateUSBNode.sh
2369 + fowners root:vboxusers ${udevdir}/VBoxCreateUSBNode.sh
2370 + fperms 0750 ${udevdir}/VBoxCreateUSBNode.sh
2371 + insinto ${udevdir}/rules.d
2372 + sed "s@%UDEVDIR%@${udevdir}@" "${FILESDIR}"/10-virtualbox.rules \
2373 + > "${T}"/10-virtualbox.rules || die
2374 + doins "${T}"/10-virtualbox.rules
2375 + fi
2376 +
2377 + if use vboxwebsrv ; then
2378 + vbox_inst vboxwebsrv
2379 + dosym ${vbox_inst_path}/VBox /usr/bin/vboxwebsrv
2380 + newinitd "${FILESDIR}"/vboxwebsrv-initd vboxwebsrv
2381 + newconfd "${FILESDIR}"/vboxwebsrv-confd vboxwebsrv
2382 + fi
2383 +
2384 + if use doc ; then
2385 + dodoc UserManual.pdf
2386 + fi
2387 +
2388 + newtmpfiles "${FILESDIR}"/${PN}-vboxusb_tmpfilesd ${PN}-vboxusb.conf
2389 +}
2390 +
2391 +pkg_postinst() {
2392 + xdg_desktop_database_update
2393 +
2394 + if use udev ; then
2395 + udevadm control --reload-rules \
2396 + && udevadm trigger --subsystem-match=usb
2397 + fi
2398 +
2399 + tmpfiles_process /usr/lib/tmpfiles.d/virtualbox-vboxusb.conf
2400 +
2401 + if ! use headless && use qt5 ; then
2402 + elog "To launch VirtualBox just type: \"virtualbox\"."
2403 + fi
2404 + elog "You must be in the vboxusers group to use VirtualBox."
2405 + elog ""
2406 + elog "The latest user manual is available for download at:"
2407 + elog "http://download.virtualbox.org/virtualbox/${PV}/UserManual.pdf"
2408 + elog ""
2409 + elog "For advanced networking setups you should emerge:"
2410 + elog "net-misc/bridge-utils and sys-apps/usermode-utilities"
2411 + elog ""
2412 + elog "Starting with version 4.0.0, ${PN} has USB-1 support."
2413 + elog "For USB-2 support, PXE-boot ability and VRDP support please emerge"
2414 + elog " app-emulation/virtualbox-extpack-oracle"
2415 + elog "package."
2416 + elog "Starting with version 5.0.0, ${PN} no longer has the \"additions\" and"
2417 + elog "the \"extension\" USE flag. For installation of the guest additions ISO"
2418 + elog "image, please emerge"
2419 + elog " app-emulation/virtualbox-additions"
2420 + elog "and for the USB2, USB3, VRDP and PXE boot ROM modules, please emerge"
2421 + elog " app-emulation/virtualbox-extpack-oracle"
2422 + if ! use udev ; then
2423 + elog ""
2424 + elog "WARNING!"
2425 + elog "Without USE=udev, USB devices will likely not work in ${PN}."
2426 + elif [ -e "${ROOT%/}/etc/udev/rules.d/10-virtualbox.rules" ] ; then
2427 + elog ""
2428 + elog "Please remove \"${ROOT%/}/etc/udev/rules.d/10-virtualbox.rules\""
2429 + elog "or else USB in ${PN} won't work."
2430 + fi
2431 +}
2432 +
2433 +pkg_postrm() {
2434 + xdg_desktop_database_update
2435 +}
2436
2437 diff --git a/x11-drivers/xf86-video-virtualbox/Manifest b/x11-drivers/xf86-video-virtualbox/Manifest
2438 index 5337088a8bb..652a0023a3d 100644
2439 --- a/x11-drivers/xf86-video-virtualbox/Manifest
2440 +++ b/x11-drivers/xf86-video-virtualbox/Manifest
2441 @@ -1,3 +1,4 @@
2442 DIST VirtualBox-5.1.32.tar.bz2 117268301 BLAKE2B 336df054e3407d7e701d6719258cfcba9beec1439cbe94f137570cfcbdea02df3e34374ac36d3b4387c47ebafd17a0f05c2fb710eb4f140d8200117b505aba98 SHA512 052ac1672515a36c4138e2d52672a466d4c768f219f52eefe98e747a292ebebe04e7de35547eae6803654be5dc937b8e6f4d358a65fd4f49a8333eac8862d138
2443 DIST VirtualBox-5.1.34.tar.bz2 117291269 BLAKE2B 0eb9b3f778f2d677ac3635fa59dfa6861d0fec3c0331582e5961b78ab55b5ab26bbf286de05a3e87e8a64e2b54861613a8d2c93f70736a07c551dca834786abd SHA512 0f828e58d68678a0a94a39c12313425105f9255ca207d40dd04065d0072857cdc4fc886f944b852c3fb63fed04d70a3449aecd2aab9e27af7f13b506143a4b6f
2444 DIST VirtualBox-5.1.36.tar.bz2 117244376 BLAKE2B 141048f4fcbb3ce63d236a4127b4bce377e87876c23dc3ff6437b2c0cca5b468bc6a5737899b308bc1ff3252d4e61f7d053ff7574c33c85b56fdd986c31f2af3 SHA512 d1a9322c97c68cc9c21247c3df8ce2084911aded66a63adf5510f9e0f4558b1304dfe924a0c44243adc1ae8f7c45c47782e882baac1bfe995ea6c0a1370fcbd1
2445 +DIST VirtualBox-5.1.38.tar.bz2 117345233 BLAKE2B 15ed86a1f6730c781a0b4b055dcccfb56ff9c829c90dc4d2aa96cc2bb5bcfa8e442bdd471a7c70c5520bef994592e8f1a5b46831df4039efb5358c2e0ab83413 SHA512 6cf8536c24aa3a6e889214ef6133eb18fdbe1e7c371323cad07aa63b0e1f4414ba13d5fa7b63c12dfefe60e2e544488ced107571f678a06eb094a3e19b377ea8
2446
2447 diff --git a/x11-drivers/xf86-video-virtualbox/xf86-video-virtualbox-5.1.38.ebuild b/x11-drivers/xf86-video-virtualbox/xf86-video-virtualbox-5.1.38.ebuild
2448 new file mode 100644
2449 index 00000000000..932d9378fad
2450 --- /dev/null
2451 +++ b/x11-drivers/xf86-video-virtualbox/xf86-video-virtualbox-5.1.38.ebuild
2452 @@ -0,0 +1,192 @@
2453 +# Copyright 1999-2018 Gentoo Foundation
2454 +# Distributed under the terms of the GNU General Public License v2
2455 +
2456 +EAPI=6
2457 +
2458 +PYTHON_COMPAT=( python2_7 )
2459 +inherit eutils multilib python-single-r1 versionator toolchain-funcs
2460 +
2461 +MY_PV="${PV/beta/BETA}"
2462 +MY_PV="${MY_PV/rc/RC}"
2463 +MY_P=VirtualBox-${MY_PV}
2464 +DESCRIPTION="VirtualBox X11 video driver for Gentoo guest"
2465 +HOMEPAGE="https://www.virtualbox.org/"
2466 +SRC_URI="https://download.virtualbox.org/virtualbox/${MY_PV}/${MY_P}.tar.bz2"
2467 +
2468 +LICENSE="GPL-2"
2469 +SLOT="0"
2470 +KEYWORDS="~amd64 ~x86"
2471 +IUSE="dri"
2472 +REQUIRED_USE="${PYTHON_REQUIRED_USE}"
2473 +
2474 +RDEPEND="
2475 + >=x11-base/xorg-server-1.7:=[-minimal]
2476 + x11-libs/libXcomposite
2477 + ${PYTHON_DEPS}"
2478 +DEPEND="${RDEPEND}
2479 + >=dev-lang/yasm-0.6.2
2480 + >=dev-util/kbuild-0.1.9998_pre20131130
2481 + sys-power/iasl
2482 + x11-proto/fontsproto
2483 + x11-proto/randrproto
2484 + x11-proto/renderproto
2485 + x11-proto/resourceproto
2486 + x11-proto/scrnsaverproto
2487 + x11-proto/xextproto
2488 + x11-proto/xineramaproto
2489 + x11-proto/xproto
2490 + x11-libs/libXdmcp
2491 + x11-libs/libXau
2492 + x11-libs/libX11
2493 + x11-libs/libXfixes
2494 + x11-libs/libXext
2495 + dri? ( x11-proto/xf86driproto
2496 + >=x11-libs/libdrm-2.4.5 )"
2497 +PDEPEND="dri? ( ~app-emulation/virtualbox-guest-additions-${PV} )"
2498 +
2499 +BUILD_TARGETS="all"
2500 +BUILD_TARGET_ARCH="${ARCH}"
2501 +S="${WORKDIR}/${MY_P}"
2502 +MODULES_SRC_DIR="${S}/src/VBox/Additions/linux/drm"
2503 +
2504 +PATCHES=(
2505 + # Ugly hack to build the opengl part of the video driver
2506 + "${FILESDIR}/${PN}-2.2.0-enable-opengl.patch"
2507 +
2508 + # unset useless/problematic checks in configure
2509 + "${FILESDIR}/${PN}-5.0.0_beta3-configure_checks.patch"
2510 +
2511 + # xorg-1.19 patch from opensuse (bug #602784)
2512 + "${FILESDIR}/${PN}-5.1.10-xorg119.patch"
2513 +)
2514 +
2515 +QA_TEXTRELS_x86="usr/lib/VBoxOGL.so"
2516 +
2517 +pkg_setup() {
2518 + if [ "${MERGE_TYPE}" != "binary" ]; then
2519 + version_is_at_least 4.9 $(gcc-version) || die "Please set gcc 4.9 or higher as active in gcc-config to build ${PN}"
2520 + fi
2521 +
2522 + python-single-r1_pkg_setup
2523 +}
2524 +
2525 +src_prepare() {
2526 + # Prepare the vboxvideo_drm Makefiles and build dir
2527 + eapply "${FILESDIR}"/${PN}-5.1.24-Makefile.module.kms.patch
2528 +
2529 + # Remove shipped binaries (kBuild,yasm), see bug #232775
2530 + rm -r kBuild/bin tools || die
2531 +
2532 + # Disable things unused or splitted into separate ebuilds
2533 + cp "${FILESDIR}/${PN}-5-localconfig" LocalConfig.kmk || die
2534 +
2535 + # Remove pointless GCC version check
2536 + sed -e '/^check_gcc$/d' -i configure || die
2537 +
2538 + default
2539 +
2540 + # link with lazy on hardened #394757
2541 + sed '/^TEMPLATE_VBOXR3EXE_LDFLAGS.linux/s/$/ -Wl,-z,lazy/' \
2542 + -i Config.kmk || die
2543 +}
2544 +
2545 +src_configure() {
2546 + # build the user-space tools, warnings are harmless
2547 + local cmd=(
2548 + ./configure
2549 + --nofatal
2550 + --disable-xpcom
2551 + --disable-sdl-ttf
2552 + --disable-pulse
2553 + --disable-alsa
2554 + --with-gcc="$(tc-getCC)"
2555 + --with-g++="$(tc-getCXX)"
2556 + --target-arch=${ARCH}
2557 + --with-linux="${KV_OUT_DIR}"
2558 + --build-headless
2559 + )
2560 + echo "${cmd[@]}"
2561 + "${cmd[@]}" || die "configure failed"
2562 + source ./env.sh
2563 + export VBOX_GCC_OPT="${CFLAGS} ${CPPFLAGS}"
2564 +}
2565 +
2566 +src_compile() {
2567 + local each targets=(
2568 + Runtime
2569 + Additions/common/VBoxGuestLib
2570 + GuestHost/OpenGL
2571 + Additions/x11/x11stubs
2572 + Additions/common/crOpenGL
2573 + Additions/x11/vboxvideo
2574 + )
2575 +
2576 + # need to use the upstream build system to create necessary objects properly
2577 + use dri && targets+=( Additions/linux/drm )
2578 +
2579 + for each in ${targets[@]} ; do
2580 + pushd "${S}"/src/VBox/${each} &>/dev/null || die
2581 + MAKE="kmk" \
2582 + emake TOOL_YASM_AS=yasm \
2583 + VBOX_USE_SYSTEM_XORG_HEADERS=1 \
2584 + KBUILD_PATH="${S}/kBuild" \
2585 + KBUILD_VERBOSE=2
2586 + popd &>/dev/null || die
2587 + done
2588 +
2589 + if use dri; then
2590 + local objdir="out/linux.${ARCH}/release/obj/vboxvideo_drm"
2591 + # We need a Makefile, so use Makefile.module.kms
2592 + ln -s Makefile.module.kms "${MODULES_SRC_DIR}"/Makefile || die
2593 + # All of these are expected to be in $(KBUILD_EXTMOD)/ so symlink them into place
2594 + targets=(
2595 + include
2596 + src/VBox/Runtime/r0drv
2597 + src/VBox/Installer/linux/Makefile.include.{head,foot}er
2598 + out/linux.${ARCH}/release/{product,version,revision}-generated.h
2599 + )
2600 + for each in ${targets[@]} ; do
2601 + ln -s "${S}"/${each} \
2602 + "${MODULES_SRC_DIR}"/${each##*/} || die
2603 + done
2604 + # see the vboxvideo_drm_SOURCES list in Makefile.kmk for the below,
2605 + # and replace '..' with 'dt'
2606 + targets=(
2607 + dt/dt/common/VBoxVideo/HGSMIBase.o
2608 + dt/dt/common/VBoxVideo/Modesetting.o
2609 + dt/dt/common/VBoxVideo/VBVABase.o
2610 + dt/dt/dt/GuestHost/HGSMI/HGSMICommon.o
2611 + dt/dt/dt/GuestHost/HGSMI/HGSMIMemAlloc.o
2612 + dt/dt/dt/Runtime/common/alloc/heapoffset.o
2613 + )
2614 + for each in ${targets[@]} ; do
2615 + ln -s "${S}"/${objdir}/${each} \
2616 + "${MODULES_SRC_DIR}" || die
2617 + ln -s "${S}"/${objdir}/${each}.dep \
2618 + "${MODULES_SRC_DIR}" || die
2619 + done
2620 + fi
2621 +}
2622 +
2623 +src_install() {
2624 + cd "${S}/out/linux.${ARCH}/release/bin/additions" || die
2625 + insinto /usr/$(get_libdir)/xorg/modules/drivers
2626 + newins vboxvideo_drv_system.so vboxvideo_drv.so
2627 +
2628 + # Guest OpenGL driver
2629 + insinto /usr/$(get_libdir)
2630 + doins -r VBoxOGL*
2631 +
2632 + if use dri ; then
2633 + dosym /usr/$(get_libdir)/VBoxOGL.so \
2634 + /usr/$(get_libdir)/dri/vboxvideo_dri.so
2635 + fi
2636 +}
2637 +
2638 +pkg_postinst() {
2639 + elog "You need to edit the file /etc/X11/xorg.conf and set:"
2640 + elog ""
2641 + elog " Driver \"vboxvideo\""
2642 + elog ""
2643 + elog "in the Graphics device section (Section \"Device\")"
2644 +}