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/, app-emulation/virtualbox-guest-additions/files/, ...
Date: Wed, 17 Apr 2019 12:20:36
Message-Id: 1555503623.b7f84dbbeba53c372c1a2337a89d0fa113c76870.polynomial-c@gentoo
1 commit: b7f84dbbeba53c372c1a2337a89d0fa113c76870
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Wed Apr 17 11:59:39 2019 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Wed Apr 17 12:20:23 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b7f84dbb
7
8 virtualbox packages: Bump to versions 5.2.28 and 6.0.6
9
10 Package-Manager: Portage-2.3.63, Repoman-2.3.12
11 Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
12
13 app-emulation/virtualbox-additions/Manifest | 2 +
14 .../virtualbox-additions-5.2.28.ebuild | 33 ++
15 .../virtualbox-additions-6.0.6.ebuild | 34 ++
16 app-emulation/virtualbox-bin/Manifest | 7 +
17 .../virtualbox-bin-5.2.28.130011.ebuild | 287 ++++++++++++
18 .../virtualbox-bin-6.0.6.130049.ebuild | 289 ++++++++++++
19 app-emulation/virtualbox-extpack-oracle/Manifest | 2 +
20 .../virtualbox-extpack-oracle-5.2.28.130011.ebuild | 42 ++
21 .../virtualbox-extpack-oracle-6.0.6.130049.ebuild | 43 ++
22 app-emulation/virtualbox-guest-additions/Manifest | 2 +
23 .../files/vboxguest-6.0.6-log-use-c99.patch | 13 +
24 .../virtualbox-guest-additions-5.2.28.ebuild | 228 ++++++++++
25 .../virtualbox-guest-additions-6.0.6.ebuild | 230 ++++++++++
26 app-emulation/virtualbox-modules/Manifest | 2 +
27 .../virtualbox-modules-5.2.28.ebuild | 51 +++
28 .../virtualbox-modules-6.0.6.ebuild | 52 +++
29 app-emulation/virtualbox/Manifest | 2 +
30 app-emulation/virtualbox/virtualbox-5.2.28.ebuild | 480 ++++++++++++++++++++
31 app-emulation/virtualbox/virtualbox-6.0.6.ebuild | 485 +++++++++++++++++++++
32 19 files changed, 2284 insertions(+)
33
34 diff --git a/app-emulation/virtualbox-additions/Manifest b/app-emulation/virtualbox-additions/Manifest
35 index 4196dac6968..d4d35d2f3b1 100644
36 --- a/app-emulation/virtualbox-additions/Manifest
37 +++ b/app-emulation/virtualbox-additions/Manifest
38 @@ -1,5 +1,7 @@
39 DIST VBoxGuestAdditions_5.2.22.iso 58013696 BLAKE2B 196f0048b685200328bcf753f3df23eac6477ce863885e93a54951795368bf62bdaa497589001ec203d75809b1f74ebbaa80419406d26bc7db43a131f5b9d698 SHA512 b320174b2f2ef796ac2c9c920579be38f0cedaa037d21992863ac355ecf6e99ae2aea56c70fb2034e9e03afac2cd7297f7717b447a6981701755593110164d37
40 DIST VBoxGuestAdditions_5.2.24.iso 58429440 BLAKE2B ee5b2751238da4372c4164c02e96c5bc6a1dbfb6670f7cd8912415680e99118e65c8f4c765c7d5f9dcf521644a011540e289357fe38e715d6264fa84b5d7ef1b SHA512 e05f75f3a5974efba6f64606d255a03ddf104deec3c300a9369c06d603aa3cbf70b73cdfeda2ce1fcd1c36da472bc190da0ed4e908bd6dbcf857104c99a61b05
41 DIST VBoxGuestAdditions_5.2.26.iso 58433536 BLAKE2B 1d7bae647923a57cdcee38a1609a07cd081d593a0852dcf67b549ed178508e93f7ee4d076ac700ab7e7ec828e660eb09cc8a55a0f2400b1ff0912cc2fafdff7f SHA512 fea91c442d3f05a35435155d3a3890e2c29e2523f1106cc8c7fb6513826263ff450e72b393796e0dff99b3bd85d85d8d55309e81f68ddfd39689df8f54bca1fe
42 +DIST VBoxGuestAdditions_5.2.28.iso 58568704 BLAKE2B cc7f0f0c18823f8c7dcae945d0e73b4b8c7d151a07be23bd8d21c44aa555f7964949857af817a9bc4e04d773a18cdc369dcbd8aadffe846ff7200477118aada8 SHA512 ccfdb2705a6c7daa79108fdb3bc6e6070e8de3f45eea308f821a0194e77c092b029119739239a2ccf9c5cb89045e919ba57950994668bc879443a55b53407c9c
43 DIST VBoxGuestAdditions_6.0.2.iso 85905408 BLAKE2B c5ce6d2cc3c15032f5d6733df72f938f2e5b0e996d467464e0229cfd8b8a2ba57f4f3878d94f769f0dfda48b14e426815925d883add6934a2c3f72ac1a41d6cb SHA512 53e82fbec7f1e04f473f0add3a0e03e2abfb9e88b57d7501d28310c36ae26af835d52a76104b31a8a4dc69ff31b6826c7c391622cdf3977df7ab7c4181d0e7dd
44 DIST VBoxGuestAdditions_6.0.4.iso 85917696 BLAKE2B 2fa419ef8524b46afb327bd1f5e53bec6df7fa53d6608bb25e5d986d8be9eaf2e0e7a37523beb56981380e8f4ad41ae48eb5ec23505a382c57fda737ec999caf SHA512 ad9afd9941cac771a156071df3a054225643e39059c84abc0c0c2525d0fa32d5bc5a144b1fef367f92e0216f8f9fc73ef961eeead648421ea30465650516bc88
45 +DIST VBoxGuestAdditions_6.0.6.iso 86321152 BLAKE2B d186d6c14500376b1721e084d9a4859bcbe3c64bfc22835a8e4b4425eee4a3a21c8dc4d48bfb072a793a8f2fb0d7f6ef83f53b1ebedbfb38c2e3fffbe3611d55 SHA512 ced893f8384b0ad74cce77f6d6f74fd748acf3acd18843a08c1b433b40ee73ce4c10d16ab8893aabba7fb3aac57e6faea599ed5733d4e91895bb78e7cf34c7ac
46
47 diff --git a/app-emulation/virtualbox-additions/virtualbox-additions-5.2.28.ebuild b/app-emulation/virtualbox-additions/virtualbox-additions-5.2.28.ebuild
48 new file mode 100644
49 index 00000000000..6faf7e7e8a0
50 --- /dev/null
51 +++ b/app-emulation/virtualbox-additions/virtualbox-additions-5.2.28.ebuild
52 @@ -0,0 +1,33 @@
53 +# Copyright 1999-2019 Gentoo Authors
54 +# Distributed under the terms of the GNU General Public License v2
55 +
56 +EAPI=7
57 +
58 +MY_PN=VBoxGuestAdditions
59 +MY_PV="${PV/beta/BETA}"
60 +MY_PV="${MY_PV/rc/RC}"
61 +MY_P=${MY_PN}_${MY_PV}
62 +
63 +DESCRIPTION="CD image containing guest additions for VirtualBox"
64 +HOMEPAGE="https://www.virtualbox.org/"
65 +SRC_URI="https://download.virtualbox.org/virtualbox/${MY_PV}/${MY_P}.iso"
66 +
67 +LICENSE="GPL-2+ LGPL-2.1+ MIT SGI-B-2.0 CDDL"
68 +SLOT="0"
69 +KEYWORDS="~amd64 ~x86"
70 +IUSE=""
71 +RESTRICT="mirror"
72 +
73 +RDEPEND="!app-emulation/virtualbox-bin
74 + !=app-emulation/virtualbox-9999"
75 +
76 +S="${WORKDIR}"
77 +
78 +src_unpack() {
79 + return 0
80 +}
81 +
82 +src_install() {
83 + insinto /usr/share/${PN/-additions}
84 + newins "${DISTDIR}"/${MY_P}.iso ${MY_PN}.iso
85 +}
86
87 diff --git a/app-emulation/virtualbox-additions/virtualbox-additions-6.0.6.ebuild b/app-emulation/virtualbox-additions/virtualbox-additions-6.0.6.ebuild
88 new file mode 100644
89 index 00000000000..5124a818a15
90 --- /dev/null
91 +++ b/app-emulation/virtualbox-additions/virtualbox-additions-6.0.6.ebuild
92 @@ -0,0 +1,34 @@
93 +# Copyright 1999-2019 Gentoo Authors
94 +# Distributed under the terms of the GNU General Public License v2
95 +
96 +EAPI=7
97 +
98 +MY_PN=VBoxGuestAdditions
99 +MY_PV="${PV/beta/BETA}"
100 +MY_PV="${MY_PV/rc/RC}"
101 +MY_P=${MY_PN}_${MY_PV}
102 +
103 +DESCRIPTION="CD image containing guest additions for VirtualBox"
104 +HOMEPAGE="https://www.virtualbox.org/"
105 +SRC_URI="https://download.virtualbox.org/virtualbox/${MY_PV}/${MY_P}.iso"
106 +
107 +LICENSE="GPL-2+ LGPL-2.1+ MIT SGI-B-2.0 CDDL"
108 +SLOT="0"
109 +[[ "${PV}" == *_beta* ]] || [[ "${PV}" == *_rc* ]] || \
110 +KEYWORDS="~amd64 ~x86"
111 +IUSE=""
112 +RESTRICT="mirror"
113 +
114 +RDEPEND="!app-emulation/virtualbox-bin
115 + !=app-emulation/virtualbox-9999"
116 +
117 +S="${WORKDIR}"
118 +
119 +src_unpack() {
120 + return 0
121 +}
122 +
123 +src_install() {
124 + insinto /usr/share/${PN/-additions}
125 + newins "${DISTDIR}"/${MY_P}.iso ${MY_PN}.iso
126 +}
127
128 diff --git a/app-emulation/virtualbox-bin/Manifest b/app-emulation/virtualbox-bin/Manifest
129 index 7ccbfe1fc21..c8eafe2d03c 100644
130 --- a/app-emulation/virtualbox-bin/Manifest
131 +++ b/app-emulation/virtualbox-bin/Manifest
132 @@ -1,18 +1,25 @@
133 DIST Oracle_VM_VirtualBox_Extension_Pack-5.2.22-126460.tar.gz 19640932 BLAKE2B 162ab40da6b2cd30d00e020666a1f4fb026e29af2ca9d6c36c294e5fa299b61ab8fd147f24d2b500426c768808db2c7693c30e88519e695d7759f8eedf1c52c5 SHA512 85b8552668b6580bea24f051ad861c82b9ba32177fb7fa37fe2980d8bab32a84325d02bfa9c8f55c2021a4000ef2546d8996ca8b99ca7fc19f8281a92108dfb0
134 DIST Oracle_VM_VirtualBox_Extension_Pack-5.2.24-128163.tar.gz 19683939 BLAKE2B ce05e159172e34e1d520b3783d77db06aa8f91067cc743beb1eeafaf01508e830f5fe9501cb1f3a6d99492e3046ec2dd2fec94ffd39a237ef4679352492aaa1a SHA512 035103e420d773201ad24093910d7175a5d548f19de4a58900e78e2ebfac711851c99375977ba9fd47fced234346437164d226592b7070a867a1d13fd534a3b5
135 DIST Oracle_VM_VirtualBox_Extension_Pack-5.2.26-128414.tar.gz 19684009 BLAKE2B 81787dcf3b70211fa9c84a40c668100eda0dfd2ce3e1d35c226cb6913ef74027f3444be93069a5e881d8e60905477460a180cb98919050286978edf9c1edcdf3 SHA512 deb4c62d58e2071f4413f0ff769e9ecd756362920b29482a6a3d77566c327b075cb5ecafdc65985305b8b798dc56ca2104a0f8244651fca89c4e15ef879c121e
136 +DIST Oracle_VM_VirtualBox_Extension_Pack-5.2.28-130011.tar.gz 19719444 BLAKE2B 4b70bb91f4309efbc9a3127e85aaab2175dee1bd3535dce17f3e36747c60ea4b2951958020c3b922b3f832e5cc2a40785ec7fdbe9be6af8a93513ac3d8012d20 SHA512 9da57baaa508cd86663e57b9c545532207fd8460bddb9fd92c3a0058da05cd81e782f99f7c6cc3bbbe1811ebff67e9e7455ccf4a7851d2c3025c4d4d98acf10d
137 DIST Oracle_VM_VirtualBox_Extension_Pack-6.0.2-128162.tar.gz 23289693 BLAKE2B 13e1ad30b40676ed2e11cf26957377696a9f30a7a92bda0ca5f69039ffebe4abf3bb0224844609a29ac217b227e4d1906c70cd404d3967a26dc0ace3bf4d2ccd SHA512 29b682bf8130f73b25a82e97053847077d9eb48f0510db7fb0cf2e817e1e6b9a6e7ded54ede7447c56aa7b219d32a2d6ee19cb0efbe5c7e0a984c5e137fada51
138 DIST Oracle_VM_VirtualBox_Extension_Pack-6.0.4-128413.tar.gz 23290549 BLAKE2B f9ac1a560d5e8b9b73efa21e3623c9f6f0d7769eb4cad7b01d8f68a135a74573659a0a9b092f7ab35beb348ed2722fcf7862aa66e47987b33038f488b88b1129 SHA512 ee54cbdf58de8d37ba84fffd2baec2c9d3915feeab715767515fd6d6ec3032dad2f02509b08cea24754cfce0974a7c1b29c6050bff466af53c1ac6589f4c0215
139 +DIST Oracle_VM_VirtualBox_Extension_Pack-6.0.6-130049.tar.gz 23309541 BLAKE2B 550dcee0893c820e3113344f5990528ec2ade766f0a3ff1efc0965c555f820224070bec1f4b4b8b835b2150a7279d1bf9b247433a42658f0e179326c7d78eb0c SHA512 e0b0061137f2e5db1cba0aaf287be2f06cc5379e8f9b562a661beae1f2cc8855f0a78e173473bf44906ca84d6a09c0afa82e0f4026cfb5fb64f9fe6267ab3044
140 DIST VirtualBox-5.2.22-126460-Linux_amd64.run 88821201 BLAKE2B 1b0433844247ee9531af915dcbb740183fa29fb296f8c78b4165cc3b48300da71f7d329026983da581ffff0d7b8976a2e5e32d5e948861a557ddfa2437813ea0 SHA512 22b20a68884a114818fcdfe9a459a7c3b1b3598526a74cc66407f5bcdc6eb6bcbe022b820477ccdc081e22349777b73fac9d6126585ee3c8fa0d3d24624006f3
141 DIST VirtualBox-5.2.22-126460-Linux_x86.run 87817677 BLAKE2B 5f11e5f92386c9524869082cf1a5af413c69fe5b36b1ace58887076000c7b928267eb7c3be22282885d6871ccdcee981ec79a526c71f281f0e8ada5858194851 SHA512 32d44b6d691e33a1ee1426cb7a3cb3648722709c588d177951b8be802546faadfd612567981bbbfed3d782b18260e6e638e7879813f3b06bb5a8387b052b0227
142 DIST VirtualBox-5.2.24-128163-Linux_amd64.run 89282001 BLAKE2B affd8768878cf25209b7a53dc024ff1798d2c2e007031d40b39c5245df608cc09fdb19c216075b0ec7a4fd63ff580731b1b04838d5d6dc81bd126fed005ea355 SHA512 f22e3c71e5c3f923edc14fbae0191a5d1262426166984e19c784e2b0a332296f949d2a9eeca6972c1f16a0f9573c1f9807c556d4dab2bd500d5b73e22485c7e1
143 DIST VirtualBox-5.2.24-128163-Linux_x86.run 88391118 BLAKE2B ffc44c55f664e4bc2c2e8bf09d95fda3631541b4b4b1dca7735dd5fcbf12da8258065fa13466ce23229126fb84b0193eee7cd794cf09f631ce124c4fd6558f16 SHA512 a7350a8266c6b3522be91158d765ce31b69acbfd67b6056a96361e0cb48926cee115c8f3df4d1965fd7b082d3f487f9f655253620a8357dbfadfbd2320ad6a3b
144 DIST VirtualBox-5.2.26-128414-Linux_amd64.run 89220562 BLAKE2B d937e3a8f622ed1afc8ab7d2479401c6b41f6b1404197b2d86933d741a209071b1bc98de14ea4f25b2b0f2a22a328393908f85955f8879dbf8b28e2b981e4d04 SHA512 c8d7741408d234e7c05709dd0ed66d30b427b0f39976f232b1fe8a17160d36c4dda7d3adda46a38cbdd6626d34570805f582ac0aae2a975385a1f1d06e97f354
145 DIST VirtualBox-5.2.26-128414-Linux_x86.run 88339918 BLAKE2B 0fe177a8d9ab4c4cb894151a00f9554713dee27af1fe3036591a0e7865c8869eef17368ab42270d5a9081c849e6550ebef809c3f8f09a9238e2f5a5f0c9e76e5 SHA512 6a809cf29a2cd70bddeca0443955ea10044553ef85744949b604f92a8bca96b9deb1c37f723388d1f27f903c9469e7cb853a0bf7d6928bb18ba61cb19b216fba
146 +DIST VirtualBox-5.2.28-130011-Linux_amd64.run 89445843 BLAKE2B c5a91dad470ec1bf9c9bc6ff2e8197bb05e16098e8e9c8168d41c8657d0acf8556d77446d3ffbdeee054874b70c744644a00b3a6eb0bb0b6fb51bfc6bdeec367 SHA512 0f4f5ab8248ee65894609a63138b5001d04e1475f3ecd5f38a85f33be5b12eebdd2ab8a2bfeae6a99ba30c2c304b51e2466560316e634d82f47fa99e895e8b43
147 +DIST VirtualBox-5.2.28-130011-Linux_x86.run 88544719 BLAKE2B ed76962b9ddcd27136a4ced260cad88825542e690b633bd54a4aa8e877f47560ca93401ec67bb75224cd2a7247d5a477d7d532f78f11d341e69cab03240cbe9d SHA512 7c8292b898f7f701eeeeb7a27112f1350b7a255aaa095a7fb3a3037205d30948033acc368a28eeac70e9bd841f1032b946f802a7c9ab47b88105bbf343a14bb9
148 DIST VirtualBox-6.0.2-128162-Linux_amd64.run 155114954 BLAKE2B 0159383d2bd3ed0e454e03db61d7466e06b63222da364ae8c8964ac418c2a5de6b78c320c989bc497e6fc98051434d3e480d1bd16e0f92f8ac2fde8a60af088e SHA512 10b0971b81158f80de918f5ae9e0261eaec23ac7b5b3a8117c7d757a3044559648860b70d5688b58bcda1d0bdd36b1df70d5d0c8c1a65c53e1a65112beba1fff
149 DIST VirtualBox-6.0.4-128413-Linux_amd64.run 154920406 BLAKE2B 518ef3ee6a5b8d066b9238ea3660cce5898b15471805cdcc508471a8a7b1003d5b4d894a8de5be4e70a67abe77dd05ce7d463603081749836d1e6b58aa43aa04 SHA512 a35cbc5d726acde31939d8729695cb041c8e962af3f4894153e5779af4efa1b260f0f021de9c5a3edc651271e7adfa1818d6b9c1e081155f483cb148555e52b5
150 +DIST VirtualBox-6.0.6-130049-Linux_amd64.run 132914648 BLAKE2B 720d98a3d271a545e1ff3357731c44d592c2f1e3a5c685f68b1daeecd9880c784f19de905c5ca73fa6a7be77ecc550e97f672b08198f90ead13c059edb4c59d1 SHA512 ee1156e940b1c1c2e4c82d77148f56495845731d73ef68f4a5da9c19f008c978c6ef3e7693b70e7d16ebf44202deeba30928674a26ad3090dad7f5ae2a242a88
151 DIST VirtualBoxSDK-5.2.22-126460.zip 10154660 BLAKE2B e0a0106f695ca7198d4b2ac5c62bb435fe7934858115dcb3aed57b40d82655bd54cbbae63b279132c23762a227c53affe68131a0bf9452c69dcaf2162b1e4ebf SHA512 1d34b8f7f32602b5656fdb6184e6c35cc54d6ecb36bc41d7df3e154f18c27ea5938635969feb69defe86a53897eee87792514967f15810224ee89e8e523d2b29
152 DIST VirtualBoxSDK-5.2.24-128163.zip 10153218 BLAKE2B e0a86462396eaa3fb9aa475ab40ee810874f61d3e9f37050b4aba36e6b5150e3699303b7f9989e32e794b9f67de4340ff008fa67339a3c45678005d126a17c27 SHA512 fbc12076ee968a6066f6ac81ff1555e10710d10d7821be24a4b4371a4f4b0409bed2d209904daa2b3f98a7998357558ca158bd76b87c5449815843312b669627
153 DIST VirtualBoxSDK-5.2.26-128414.zip 10159276 BLAKE2B 32a9e0a70cc63c8e0daa7080f8e10ac8a514837be98a66b00161cd0c9bf2cc42ef0a11f3a69a742a2f6745b4c8b8fe9e946e18f81cd5ef3ab2f68d5e3c95c568 SHA512 f3d1cc622734ecb0f56fcdf5728fcc747e3b084cb2358d420c55c1acd98d2f24870f0fd18cea430f118f34bca10199526ba195a314d6ce7fb6c4bc8281d89f09
154 +DIST VirtualBoxSDK-5.2.28-130011.zip 10157910 BLAKE2B 793918a663027a1396706b3aa0573679526b9c02aaaaadfe7cf4448744fc3ee6ea0484cdd01b07cb03169583b91fb1567d9c2f30046fc4bcb113d709aed30242 SHA512 90b25a1dddc50efe29cc1bd70819ca945be5f474c89e9fea90b0aa2f3ace448ec961ee749b6e3f41f763c05edd824d4a5e3c1c227db8e9a59267f91b87c24770
155 DIST VirtualBoxSDK-6.0.2-128162.zip 10753904 BLAKE2B 52824830e3d816df57932d8812a959dc3590eeabe8b7ba1dc8927d7eac7bea0c4584e0f2d62b405fdb8d5833fc93792dfcd7c2cfc2714237ecb8dbf26be36f11 SHA512 d7d1d60c7ffc4022de16dccc7786bbc4d481cef26e105932158955cc4350d65a6ac5bffa01a319baee5a64f4ae7d016ba50f82128bef6e11e54e72e82e73c168
156 DIST VirtualBoxSDK-6.0.4-128413.zip 10755635 BLAKE2B 60333b130adbacc85a84c65ee638effcb6d1a226957c48907df342853b0a9ba4d5632d93858e539fafe2ec28befaa7de584538b46ee83a05789b065a05c3107c SHA512 de2c3e979fe35cda8b433c27f4ce52d5c86e7c0bdfb061a758fce642d4aab908c7c6808c3110ec81d4967977768de95ee8be5cd330d634d3dc9711dd77f17867
157 +DIST VirtualBoxSDK-6.0.6-130049.zip 10759233 BLAKE2B f5fbcdeacfa3d4843b62728ecd2406785355eecd396292502ae2ebdadcdb38c24d0565a1304e935a1b3cc390880c443f9e8e490ab18adcc13f4b461c9750441a SHA512 45c5450249ab5ac43eb5dbc4d6e2b61cd4cd5a22005f38fd019d909f9d4b98147b959ff836ea05cceb7d730196a14763472ac6fe4113d1de7c11fad76300ac82
158
159 diff --git a/app-emulation/virtualbox-bin/virtualbox-bin-5.2.28.130011.ebuild b/app-emulation/virtualbox-bin/virtualbox-bin-5.2.28.130011.ebuild
160 new file mode 100644
161 index 00000000000..e4f534871c4
162 --- /dev/null
163 +++ b/app-emulation/virtualbox-bin/virtualbox-bin-5.2.28.130011.ebuild
164 @@ -0,0 +1,287 @@
165 +# Copyright 1999-2019 Gentoo Authors
166 +# Distributed under the terms of the GNU General Public License v2
167 +
168 +EAPI=6
169 +
170 +PYTHON_COMPAT=( python2_7 )
171 +
172 +inherit xdg-utils gnome2 pax-utils python-r1 udev unpacker eapi7-ver
173 +
174 +MAIN_PV="$(ver_cut 1-3)"
175 +if [[ ${PV} = *_beta* ]] || [[ ${PV} = *_rc* ]] ; then
176 + MY_PV="${MAIN_PV}_$(ver_cut 5)"
177 + MY_PV="${MY_PV/beta/BETA}"
178 + MY_PV="${MY_PV/rc/RC}"
179 +else
180 + MY_PV="${MAIN_PV}"
181 +fi
182 +VBOX_BUILD_ID="$(ver_cut 4)"
183 +VBOX_PV="${MY_PV}-${VBOX_BUILD_ID}"
184 +MY_P="VirtualBox-${VBOX_PV}-Linux"
185 +# needed as sometimes the extpack gets another build ID
186 +EXTP_PV="${VBOX_PV}"
187 +EXTP_PN="Oracle_VM_VirtualBox_Extension_Pack"
188 +EXTP_P="${EXTP_PN}-${EXTP_PV}"
189 +# needed as sometimes the SDK gets another build ID
190 +SDK_PV="${VBOX_PV}"
191 +SDK_P="VirtualBoxSDK-${SDK_PV}"
192 +
193 +DESCRIPTION="Family of powerful x86 virtualization products for enterprise and home use"
194 +HOMEPAGE="https://www.virtualbox.org/"
195 +SRC_URI="amd64? ( https://download.virtualbox.org/virtualbox/${MY_PV}/${MY_P}_amd64.run )
196 + x86? ( https://download.virtualbox.org/virtualbox/${MY_PV}/${MY_P}_x86.run )
197 + https://download.virtualbox.org/virtualbox/${MY_PV}/${EXTP_P}.vbox-extpack -> ${EXTP_P}.tar.gz"
198 +
199 +LICENSE="GPL-2 PUEL"
200 +SLOT="0"
201 +KEYWORDS="~amd64 ~x86"
202 +IUSE="+additions +chm headless python vboxwebsrv rdesktop-vrdp"
203 +RESTRICT="mirror"
204 +
205 +if [[ "${PV}" != *beta* ]] ; then
206 + SRC_URI+="
207 + sdk? ( https://download.virtualbox.org/virtualbox/${MY_PV}/${SDK_P}.zip )"
208 + IUSE+=" sdk"
209 +fi
210 +
211 +DEPEND="app-arch/unzip
212 + ${PYTHON_DEPS}"
213 +
214 +RDEPEND="!!app-emulation/virtualbox
215 + !app-emulation/virtualbox-additions
216 + ~app-emulation/virtualbox-modules-${MAIN_PV}
217 + !headless? (
218 + dev-libs/glib
219 + media-libs/fontconfig
220 + media-libs/freetype
221 + media-libs/libpng
222 + media-libs/libsdl[X]
223 + x11-libs/libXcursor
224 + x11-libs/libXext
225 + x11-libs/libXfixes
226 + x11-libs/libXft
227 + x11-libs/libXi
228 + x11-libs/libXinerama
229 + x11-libs/libXrandr
230 + x11-libs/libXrender
231 + chm? ( dev-libs/expat )
232 + )
233 + dev-libs/libxml2
234 + sys-fs/lvm2
235 + x11-libs/libXau
236 + x11-libs/libX11
237 + x11-libs/libXt
238 + x11-libs/libXmu
239 + x11-libs/libSM
240 + x11-libs/libICE
241 + x11-libs/libXdmcp
242 + ${PYTHON_DEPS}"
243 +
244 +REQUIRED_USE="${PYTHON_REQUIRED_USE}"
245 +S="${WORKDIR}"
246 +
247 +QA_PREBUILT="opt/VirtualBox/*"
248 +
249 +PYTHON_UPDATER_IGNORE="1"
250 +
251 +src_unpack() {
252 + unpack_makeself ${MY_P}_${ARCH}.run
253 + unpack ./VirtualBox.tar.bz2
254 +
255 + mkdir "${S}"/${EXTP_PN} || die
256 + pushd "${S}"/${EXTP_PN} &>/dev/null || die
257 + unpack ${EXTP_P}.tar.gz
258 + popd &>/dev/null || die
259 +
260 + if [[ "${PV}" != *beta* ]] && use sdk ; then
261 + unpack VirtualBoxSDK-${SDK_PV}.zip
262 + fi
263 +}
264 +
265 +src_configure() {
266 + :;
267 +}
268 +
269 +src_compile() {
270 + :;
271 +}
272 +
273 +src_install() {
274 + # create virtualbox configurations files
275 + insinto /etc/vbox
276 + newins "${FILESDIR}/${PN}-config" vbox.cfg
277 +
278 + if ! use headless ; then
279 + newmenu "${FILESDIR}"/${PN}.desktop-2 ${PN}.desktop
280 +
281 + # set up symlinks (bug #572012)
282 + dosym ../../../../opt/VirtualBox/virtualbox.xml /usr/share/mime/packages/virtualbox.xml
283 +
284 + local size ico icofile
285 + for size in 16 24 32 48 64 72 96 128 256 ; do
286 + pushd "${S}"/icons/${size}x${size} &>/dev/null || die
287 + if [[ -f "virtualbox.png" ]] ; then
288 + doicon -s ${size} virtualbox.png
289 + fi
290 + for ico in hdd ova ovf vbox{,-extpack} vdi vdh vmdk ; do
291 + icofile="virtualbox-${ico}.png"
292 + if [[ -f "${icofile}" ]] ; then
293 + doicon -s ${size} ${icofile}
294 + fi
295 + done
296 + popd &>/dev/null || die
297 + done
298 + doicon -s scalable "${S}"/icons/scalable/virtualbox.svg
299 + insinto /usr/share/pixmaps
300 + newins "${S}"/icons/48x48/virtualbox.png ${PN}.png
301 + fi
302 +
303 + pushd "${S}"/${EXTP_PN} &>/dev/null || die
304 + insinto /opt/VirtualBox/ExtensionPacks/${EXTP_PN}
305 + doins -r linux.${ARCH}
306 + doins ExtPack* PXE-Intel.rom
307 + popd &>/dev/null || die
308 + rm -rf "${S}"/${EXTP_PN}
309 +
310 + insinto /opt/VirtualBox
311 + dodir /opt/bin
312 +
313 + doins UserManual.pdf
314 +
315 + if [[ "${PV}" != *beta* ]] && use sdk ; then
316 + doins -r sdk
317 + fi
318 +
319 + if use additions; then
320 + doins -r additions
321 + fi
322 +
323 + if use vboxwebsrv; then
324 + doins vboxwebsrv
325 + fowners root:vboxusers /opt/VirtualBox/vboxwebsrv
326 + fperms 0750 /opt/VirtualBox/vboxwebsrv
327 + dosym ../../opt/VirtualBox/VBox.sh /opt/bin/vboxwebsrv
328 + newinitd "${FILESDIR}"/vboxwebsrv-initd vboxwebsrv
329 + newconfd "${FILESDIR}"/vboxwebsrv-confd vboxwebsrv
330 + fi
331 +
332 + if use rdesktop-vrdp; then
333 + doins rdesktop-vrdp
334 + doins -r rdesktop-vrdp-keymaps
335 + fperms 0750 /opt/VirtualBox/rdesktop-vrdp
336 + dosym ../../opt/VirtualBox/rdesktop-vrdp /opt/bin/rdesktop-vrdp
337 + fi
338 +
339 + if ! use headless && use chm; then
340 + doins kchmviewer VirtualBox.chm
341 + fowners root:vboxusers /opt/VirtualBox/kchmviewer
342 + fperms 0750 /opt/VirtualBox/kchmviewer
343 + fi
344 +
345 + # This ebuild / package supports only py2.7. When py3 comes is unknown.
346 + # The compile phase makes VBoxPython2_7.so.
347 + # py3 support would presumably require a binary pre-compiled by py3.
348 + use python && doins VBoxPython.so VBoxPython2_7.so
349 +
350 + rm -rf src rdesktop* deffiles install* routines.sh runlevel.sh \
351 + vboxdrv.sh VBox.sh VBox.png vboxnet.sh additions VirtualBox.desktop \
352 + VirtualBox.tar.bz2 LICENSE VBoxSysInfo.sh rdesktop* vboxwebsrv \
353 + webtest kchmviewer VirtualBox.chm vbox-create-usb-node.sh \
354 + 90-vbox-usb.fdi uninstall.sh vboxshell.py vboxdrv-pardus.py \
355 + VBoxPython?_*.so
356 +
357 + if use headless ; then
358 + rm -rf VBoxSDL VirtualBox VBoxKeyboard.so
359 + fi
360 +
361 + doins -r * || die
362 +
363 + # create symlinks for working around unsupported $ORIGIN/.. in VBoxC.so (setuid)
364 + dosym ../VBoxVMM.so /opt/VirtualBox/components/VBoxVMM.so
365 + dosym ../VBoxREM.so /opt/VirtualBox/components/VBoxREM.so
366 + dosym ../VBoxRT.so /opt/VirtualBox/components/VBoxRT.so
367 + dosym ../VBoxDDU.so /opt/VirtualBox/components/VBoxDDU.so
368 + dosym ../VBoxXPCOM.so /opt/VirtualBox/components/VBoxXPCOM.so
369 +
370 + local each
371 + for each in VBox{Manage,SVC,XPCOMIPCD,Tunctl,NetAdpCtl,NetDHCP,NetNAT,TestOGL,ExtPackHelperApp}; do
372 + fowners root:vboxusers /opt/VirtualBox/${each}
373 + fperms 0750 /opt/VirtualBox/${each}
374 + pax-mark -m "${ED%/}"/opt/VirtualBox/${each}
375 + done
376 + # VBoxNetAdpCtl and VBoxNetDHCP binaries need to be suid root in any case..
377 + fperms 4750 /opt/VirtualBox/VBoxNetAdpCtl
378 + fperms 4750 /opt/VirtualBox/VBoxNetDHCP
379 + fperms 4750 /opt/VirtualBox/VBoxNetNAT
380 +
381 + if ! use headless ; then
382 + # Hardened build: Mark selected binaries set-user-ID-on-execution
383 + for each in VBox{SDL,Headless} VirtualBox; do
384 + fowners root:vboxusers /opt/VirtualBox/${each}
385 + fperms 4510 /opt/VirtualBox/${each}
386 + pax-mark -m "${ED%/}"/opt/VirtualBox/${each}
387 + done
388 +
389 + dosym ../VirtualBox/VBox.sh /opt/bin/VirtualBox
390 + dosym ../VirtualBox/VBox.sh /opt/bin/VBoxSDL
391 + else
392 + # Hardened build: Mark selected binaries set-user-ID-on-execution
393 + fowners root:vboxusers /opt/VirtualBox/VBoxHeadless
394 + fperms 4510 /opt/VirtualBox/VBoxHeadless
395 + pax-mark -m "${ED%/}"/opt/VirtualBox/VBoxHeadless
396 + fi
397 +
398 + exeinto /opt/VirtualBox
399 + newexe "${FILESDIR}/${PN}-3-wrapper" "VBox.sh"
400 + fowners root:vboxusers /opt/VirtualBox/VBox.sh
401 + fperms 0750 /opt/VirtualBox/VBox.sh
402 +
403 + dosym ../VirtualBox/VBox.sh /opt/bin/VBoxManage
404 + dosym ../VirtualBox/VBox.sh /opt/bin/VBoxVRDP
405 + dosym ../VirtualBox/VBox.sh /opt/bin/VBoxHeadless
406 + dosym ../VirtualBox/VBoxTunctl /opt/bin/VBoxTunctl
407 +
408 + # set an env-variable for 3rd party tools
409 + echo -n "VBOX_APP_HOME=/opt/VirtualBox" > "${T}/90virtualbox"
410 + doenvd "${T}/90virtualbox"
411 +
412 + local udevdir="$(get_udevdir)"
413 + insinto ${udevdir}/rules.d
414 + doins "${FILESDIR}"/10-virtualbox.rules
415 + sed "s@%UDEVDIR%@${udevdir}@" \
416 + -i "${ED%/}"${udevdir}/rules.d/10-virtualbox.rules || die
417 + # move udev scripts into ${udevdir} (bug #372491)
418 + mv "${ED%/}"/opt/VirtualBox/VBoxCreateUSBNode.sh "${ED%/}"${udevdir} || die
419 + fperms 0750 ${udevdir}/VBoxCreateUSBNode.sh
420 +}
421 +
422 +pkg_postinst() {
423 + xdg_desktop_database_update
424 +
425 + gnome2_icon_cache_update
426 +
427 + udevadm control --reload-rules && udevadm trigger --subsystem-match=usb
428 +
429 + elog ""
430 + if ! use headless ; then
431 + elog "To launch VirtualBox just type: \"VirtualBox\""
432 + elog ""
433 + fi
434 + elog "You must be in the vboxusers group to use VirtualBox."
435 + elog ""
436 + elog "For advanced networking setups you should emerge:"
437 + elog "net-misc/bridge-utils and sys-apps/usermode-utilities"
438 + elog ""
439 + elog "Please visit http://www.virtualbox.org/wiki/Editions for"
440 + elog "an overview about the different features of ${PN}"
441 + elog "and virtualbox-ose"
442 + if [ -e "${ROOT}/etc/udev/rules.d/10-virtualbox.rules" ] ; then
443 + elog ""
444 + elog "Please remove \"${ROOT}/etc/udev/rules.d/10-virtualbox.rules\""
445 + elog "or else USB in ${PN} won't work."
446 + fi
447 +}
448 +
449 +pkg_postrm() {
450 + xdg_desktop_database_update
451 +}
452
453 diff --git a/app-emulation/virtualbox-bin/virtualbox-bin-6.0.6.130049.ebuild b/app-emulation/virtualbox-bin/virtualbox-bin-6.0.6.130049.ebuild
454 new file mode 100644
455 index 00000000000..d3ff954fe25
456 --- /dev/null
457 +++ b/app-emulation/virtualbox-bin/virtualbox-bin-6.0.6.130049.ebuild
458 @@ -0,0 +1,289 @@
459 +# Copyright 1999-2019 Gentoo Authors
460 +# Distributed under the terms of the GNU General Public License v2
461 +
462 +EAPI=6
463 +
464 +PYTHON_COMPAT=( python2_7 )
465 +
466 +inherit xdg-utils gnome2 pax-utils python-r1 udev unpacker eapi7-ver
467 +
468 +MAIN_PV="$(ver_cut 1-3)"
469 +if [[ ${PV} = *_beta* ]] || [[ ${PV} = *_rc* ]] ; then
470 + MY_PV="${MAIN_PV}_$(ver_cut 5-6)"
471 + MY_PV="${MY_PV/beta/BETA}"
472 + MY_PV="${MY_PV/rc/RC}"
473 +else
474 + MY_PV="${MAIN_PV}"
475 + KEYWORDS="~amd64" #~x86
476 +fi
477 +VBOX_BUILD_ID="$(ver_cut 4)"
478 +VBOX_PV="${MY_PV}-${VBOX_BUILD_ID}"
479 +MY_P="VirtualBox-${VBOX_PV}-Linux"
480 +# needed as sometimes the extpack gets another build ID
481 +EXTP_PV="${VBOX_PV}"
482 +EXTP_PN="Oracle_VM_VirtualBox_Extension_Pack"
483 +EXTP_P="${EXTP_PN}-${EXTP_PV}"
484 +# needed as sometimes the SDK gets another build ID
485 +SDK_PV="${VBOX_PV}"
486 +SDK_P="VirtualBoxSDK-${SDK_PV}"
487 +
488 +DESCRIPTION="Family of powerful x86 virtualization products for enterprise and home use"
489 +HOMEPAGE="https://www.virtualbox.org/"
490 +SRC_URI="amd64? ( https://download.virtualbox.org/virtualbox/${MY_PV}/${MY_P}_amd64.run )
491 + https://download.virtualbox.org/virtualbox/${MY_PV}/${EXTP_P}.vbox-extpack -> ${EXTP_P}.tar.gz"
492 + #x86? ( https://download.virtualbox.org/virtualbox/${MY_PV}/${MY_P}_x86.run )
493 +
494 +LICENSE="GPL-2 PUEL"
495 +SLOT="0"
496 +IUSE="+additions +chm headless python vboxwebsrv rdesktop-vrdp"
497 +RESTRICT="mirror"
498 +
499 +if [[ "${PV}" != *beta* ]] ; then
500 + SRC_URI+="
501 + sdk? ( https://download.virtualbox.org/virtualbox/${MY_PV}/${SDK_P}.zip )"
502 + IUSE+=" sdk"
503 +fi
504 +
505 +DEPEND="app-arch/unzip
506 + ${PYTHON_DEPS}"
507 +
508 +RDEPEND="!!app-emulation/virtualbox
509 + !app-emulation/virtualbox-additions
510 + ~app-emulation/virtualbox-modules-${MAIN_PV}
511 + !headless? (
512 + dev-libs/glib
513 + media-libs/fontconfig
514 + media-libs/freetype
515 + media-libs/libpng
516 + media-libs/libsdl[X]
517 + x11-libs/libXcursor
518 + x11-libs/libXext
519 + x11-libs/libXfixes
520 + x11-libs/libXft
521 + x11-libs/libXi
522 + x11-libs/libXinerama
523 + x11-libs/libXrandr
524 + x11-libs/libXrender
525 + chm? ( dev-libs/expat )
526 + )
527 + dev-libs/libxml2
528 + sys-fs/lvm2
529 + x11-libs/libXau
530 + x11-libs/libX11
531 + x11-libs/libXt
532 + x11-libs/libXmu
533 + x11-libs/libSM
534 + x11-libs/libICE
535 + x11-libs/libXdmcp
536 + ${PYTHON_DEPS}"
537 +
538 +REQUIRED_USE="${PYTHON_REQUIRED_USE}"
539 +S="${WORKDIR}"
540 +
541 +QA_PREBUILT="opt/VirtualBox/*"
542 +
543 +PYTHON_UPDATER_IGNORE="1"
544 +
545 +src_unpack() {
546 + unpack_makeself ${MY_P}_${ARCH}.run
547 + unpack ./VirtualBox.tar.bz2
548 +
549 + mkdir "${S}"/${EXTP_PN} || die
550 + pushd "${S}"/${EXTP_PN} &>/dev/null || die
551 + unpack ${EXTP_P}.tar.gz
552 + popd &>/dev/null || die
553 +
554 + if [[ "${PV}" != *beta* ]] && use sdk ; then
555 + unpack VirtualBoxSDK-${SDK_PV}.zip
556 + fi
557 +}
558 +
559 +src_configure() {
560 + :;
561 +}
562 +
563 +src_compile() {
564 + :;
565 +}
566 +
567 +src_install() {
568 + # create virtualbox configurations files
569 + insinto /etc/vbox
570 + newins "${FILESDIR}/${PN}-config" vbox.cfg
571 +
572 + if ! use headless ; then
573 + newmenu "${FILESDIR}"/${PN}.desktop-2 ${PN}.desktop
574 +
575 + # set up symlinks (bug #572012)
576 + dosym ../../../../opt/VirtualBox/virtualbox.xml /usr/share/mime/packages/virtualbox.xml
577 +
578 + local size ico icofile
579 + for size in 16 24 32 48 64 72 96 128 256 ; do
580 + pushd "${S}"/icons/${size}x${size} &>/dev/null || die
581 + if [[ -f "virtualbox.png" ]] ; then
582 + doicon -s ${size} virtualbox.png
583 + fi
584 + for ico in hdd ova ovf vbox{,-extpack} vdi vdh vmdk ; do
585 + icofile="virtualbox-${ico}.png"
586 + if [[ -f "${icofile}" ]] ; then
587 + doicon -s ${size} ${icofile}
588 + fi
589 + done
590 + popd &>/dev/null || die
591 + done
592 + doicon -s scalable "${S}"/icons/scalable/virtualbox.svg
593 + insinto /usr/share/pixmaps
594 + newins "${S}"/icons/48x48/virtualbox.png ${PN}.png
595 + fi
596 +
597 + pushd "${S}"/${EXTP_PN} &>/dev/null || die
598 + insinto /opt/VirtualBox/ExtensionPacks/${EXTP_PN}
599 + doins -r linux.${ARCH}
600 + doins ExtPack* PXE-Intel.rom
601 + popd &>/dev/null || die
602 + rm -rf "${S}"/${EXTP_PN}
603 +
604 + insinto /opt/VirtualBox
605 + dodir /opt/bin
606 +
607 + doins UserManual.pdf
608 +
609 + if [[ "${PV}" != *beta* ]] && use sdk ; then
610 + doins -r sdk
611 + fi
612 +
613 + if use additions; then
614 + doins -r additions
615 + fi
616 +
617 + if use vboxwebsrv; then
618 + doins vboxwebsrv
619 + fowners root:vboxusers /opt/VirtualBox/vboxwebsrv
620 + fperms 0750 /opt/VirtualBox/vboxwebsrv
621 + dosym ../../opt/VirtualBox/VBox.sh /opt/bin/vboxwebsrv
622 + newinitd "${FILESDIR}"/vboxwebsrv-initd vboxwebsrv
623 + newconfd "${FILESDIR}"/vboxwebsrv-confd vboxwebsrv
624 + fi
625 +
626 + if use rdesktop-vrdp; then
627 + doins rdesktop-vrdp
628 + doins -r rdesktop-vrdp-keymaps
629 + fperms 0750 /opt/VirtualBox/rdesktop-vrdp
630 + dosym ../../opt/VirtualBox/rdesktop-vrdp /opt/bin/rdesktop-vrdp
631 + fi
632 +
633 + if ! use headless && use chm; then
634 + doins kchmviewer VirtualBox.chm
635 + fowners root:vboxusers /opt/VirtualBox/kchmviewer
636 + fperms 0750 /opt/VirtualBox/kchmviewer
637 + fi
638 +
639 + # This ebuild / package supports only py2.7. When py3 comes is unknown.
640 + # The compile phase makes VBoxPython2_7.so.
641 + # py3 support would presumably require a binary pre-compiled by py3.
642 + use python && doins VBoxPython.so
643 +
644 + rm -rf src rdesktop* deffiles install* routines.sh runlevel.sh \
645 + vboxdrv.sh VBox.sh VBox.png vboxnet.sh additions VirtualBox.desktop \
646 + VirtualBox.tar.bz2 LICENSE VBoxSysInfo.sh rdesktop* vboxwebsrv \
647 + webtest kchmviewer VirtualBox.chm vbox-create-usb-node.sh \
648 + 90-vbox-usb.fdi uninstall.sh vboxshell.py vboxdrv-pardus.py \
649 + VBoxPython?_*.so
650 +
651 + if use headless ; then
652 + rm -rf VBoxSDL VirtualBox{,VM} VBoxKeyboard.so
653 + fi
654 +
655 + doins -r * || die
656 +
657 + # create symlinks for working around unsupported $ORIGIN/.. in VBoxC.so (setuid)
658 + dosym ../VBoxVMM.so /opt/VirtualBox/components/VBoxVMM.so
659 + dosym ../VBoxREM.so /opt/VirtualBox/components/VBoxREM.so
660 + dosym ../VBoxRT.so /opt/VirtualBox/components/VBoxRT.so
661 + dosym ../VBoxDDU.so /opt/VirtualBox/components/VBoxDDU.so
662 + dosym ../VBoxXPCOM.so /opt/VirtualBox/components/VBoxXPCOM.so
663 +
664 + local each
665 + for each in VBox{Manage,SVC,XPCOMIPCD,Tunctl,TestOGL,ExtPackHelperApp} $(usex headless '' VirtualBox) ; do
666 + fowners root:vboxusers /opt/VirtualBox/${each}
667 + fperms 0750 /opt/VirtualBox/${each}
668 + pax-mark -m "${ED%/}"/opt/VirtualBox/${each}
669 + done
670 + # VBoxNetAdpCtl and VBoxNetDHCP binaries need to be suid root in any case..
671 + for each in VBoxNet{AdpCtl,DHCP,NAT} $(usex headless '' VirtualBoxVM) ; do
672 + fowners root:vboxusers /opt/VirtualBox/${each}
673 + fperms 4750 /opt/VirtualBox/${each}
674 + pax-mark -m "${ED%/}"/opt/VirtualBox/${each}
675 + done
676 +
677 + if ! use headless ; then
678 + # Hardened build: Mark selected binaries set-user-ID-on-execution
679 + for each in VBox{SDL,Headless} ; do
680 + fowners root:vboxusers /opt/VirtualBox/${each}
681 + fperms 4510 /opt/VirtualBox/${each}
682 + pax-mark -m "${ED%/}"/opt/VirtualBox/${each}
683 + done
684 +
685 + dosym ../VirtualBox/VBox.sh /opt/bin/VirtualBox
686 + dosym ../VirtualBox/VBox.sh /opt/bin/VBoxSDL
687 + else
688 + # Hardened build: Mark selected binaries set-user-ID-on-execution
689 + fowners root:vboxusers /opt/VirtualBox/VBoxHeadless
690 + fperms 4510 /opt/VirtualBox/VBoxHeadless
691 + pax-mark -m "${ED%/}"/opt/VirtualBox/VBoxHeadless
692 + fi
693 +
694 + exeinto /opt/VirtualBox
695 + newexe "${FILESDIR}/${PN}-3-wrapper" "VBox.sh"
696 + fowners root:vboxusers /opt/VirtualBox/VBox.sh
697 + fperms 0750 /opt/VirtualBox/VBox.sh
698 +
699 + dosym ../VirtualBox/VBox.sh /opt/bin/VBoxManage
700 + dosym ../VirtualBox/VBox.sh /opt/bin/VBoxVRDP
701 + dosym ../VirtualBox/VBox.sh /opt/bin/VBoxHeadless
702 + dosym ../VirtualBox/VBoxTunctl /opt/bin/VBoxTunctl
703 +
704 + # set an env-variable for 3rd party tools
705 + echo -n "VBOX_APP_HOME=/opt/VirtualBox" > "${T}/90virtualbox"
706 + doenvd "${T}/90virtualbox"
707 +
708 + local udevdir="$(get_udevdir)"
709 + insinto ${udevdir}/rules.d
710 + doins "${FILESDIR}"/10-virtualbox.rules
711 + sed "s@%UDEVDIR%@${udevdir}@" \
712 + -i "${ED%/}"${udevdir}/rules.d/10-virtualbox.rules || die
713 + # move udev scripts into ${udevdir} (bug #372491)
714 + mv "${ED%/}"/opt/VirtualBox/VBoxCreateUSBNode.sh "${ED%/}"${udevdir} || die
715 + fperms 0750 ${udevdir}/VBoxCreateUSBNode.sh
716 +}
717 +
718 +pkg_postinst() {
719 + xdg_desktop_database_update
720 +
721 + gnome2_icon_cache_update
722 +
723 + udevadm control --reload-rules && udevadm trigger --subsystem-match=usb
724 +
725 + elog ""
726 + if ! use headless ; then
727 + elog "To launch VirtualBox just type: \"VirtualBox\""
728 + elog ""
729 + fi
730 + elog "You must be in the vboxusers group to use VirtualBox."
731 + elog ""
732 + elog "For advanced networking setups you should emerge:"
733 + elog "net-misc/bridge-utils and sys-apps/usermode-utilities"
734 + elog ""
735 + elog "Please visit http://www.virtualbox.org/wiki/Editions for"
736 + elog "an overview about the different features of ${PN}"
737 + elog "and virtualbox-ose"
738 + if [ -e "${ROOT}/etc/udev/rules.d/10-virtualbox.rules" ] ; then
739 + elog ""
740 + elog "Please remove \"${ROOT}/etc/udev/rules.d/10-virtualbox.rules\""
741 + elog "or else USB in ${PN} won't work."
742 + fi
743 +}
744 +
745 +pkg_postrm() {
746 + xdg_desktop_database_update
747 +}
748
749 diff --git a/app-emulation/virtualbox-extpack-oracle/Manifest b/app-emulation/virtualbox-extpack-oracle/Manifest
750 index 5115bada1fc..4fc4c1d3c20 100644
751 --- a/app-emulation/virtualbox-extpack-oracle/Manifest
752 +++ b/app-emulation/virtualbox-extpack-oracle/Manifest
753 @@ -1,5 +1,7 @@
754 DIST Oracle_VM_VirtualBox_Extension_Pack-5.2.22-126460.tar.gz 19640932 BLAKE2B 162ab40da6b2cd30d00e020666a1f4fb026e29af2ca9d6c36c294e5fa299b61ab8fd147f24d2b500426c768808db2c7693c30e88519e695d7759f8eedf1c52c5 SHA512 85b8552668b6580bea24f051ad861c82b9ba32177fb7fa37fe2980d8bab32a84325d02bfa9c8f55c2021a4000ef2546d8996ca8b99ca7fc19f8281a92108dfb0
755 DIST Oracle_VM_VirtualBox_Extension_Pack-5.2.24-128163.tar.gz 19683939 BLAKE2B ce05e159172e34e1d520b3783d77db06aa8f91067cc743beb1eeafaf01508e830f5fe9501cb1f3a6d99492e3046ec2dd2fec94ffd39a237ef4679352492aaa1a SHA512 035103e420d773201ad24093910d7175a5d548f19de4a58900e78e2ebfac711851c99375977ba9fd47fced234346437164d226592b7070a867a1d13fd534a3b5
756 DIST Oracle_VM_VirtualBox_Extension_Pack-5.2.26-128414.tar.gz 19684009 BLAKE2B 81787dcf3b70211fa9c84a40c668100eda0dfd2ce3e1d35c226cb6913ef74027f3444be93069a5e881d8e60905477460a180cb98919050286978edf9c1edcdf3 SHA512 deb4c62d58e2071f4413f0ff769e9ecd756362920b29482a6a3d77566c327b075cb5ecafdc65985305b8b798dc56ca2104a0f8244651fca89c4e15ef879c121e
757 +DIST Oracle_VM_VirtualBox_Extension_Pack-5.2.28-130011.tar.gz 19719444 BLAKE2B 4b70bb91f4309efbc9a3127e85aaab2175dee1bd3535dce17f3e36747c60ea4b2951958020c3b922b3f832e5cc2a40785ec7fdbe9be6af8a93513ac3d8012d20 SHA512 9da57baaa508cd86663e57b9c545532207fd8460bddb9fd92c3a0058da05cd81e782f99f7c6cc3bbbe1811ebff67e9e7455ccf4a7851d2c3025c4d4d98acf10d
758 DIST Oracle_VM_VirtualBox_Extension_Pack-6.0.2-128162.tar.gz 23289693 BLAKE2B 13e1ad30b40676ed2e11cf26957377696a9f30a7a92bda0ca5f69039ffebe4abf3bb0224844609a29ac217b227e4d1906c70cd404d3967a26dc0ace3bf4d2ccd SHA512 29b682bf8130f73b25a82e97053847077d9eb48f0510db7fb0cf2e817e1e6b9a6e7ded54ede7447c56aa7b219d32a2d6ee19cb0efbe5c7e0a984c5e137fada51
759 DIST Oracle_VM_VirtualBox_Extension_Pack-6.0.4-128413.tar.gz 23290549 BLAKE2B f9ac1a560d5e8b9b73efa21e3623c9f6f0d7769eb4cad7b01d8f68a135a74573659a0a9b092f7ab35beb348ed2722fcf7862aa66e47987b33038f488b88b1129 SHA512 ee54cbdf58de8d37ba84fffd2baec2c9d3915feeab715767515fd6d6ec3032dad2f02509b08cea24754cfce0974a7c1b29c6050bff466af53c1ac6589f4c0215
760 +DIST Oracle_VM_VirtualBox_Extension_Pack-6.0.6-130049.tar.gz 23309541 BLAKE2B 550dcee0893c820e3113344f5990528ec2ade766f0a3ff1efc0965c555f820224070bec1f4b4b8b835b2150a7279d1bf9b247433a42658f0e179326c7d78eb0c SHA512 e0b0061137f2e5db1cba0aaf287be2f06cc5379e8f9b562a661beae1f2cc8855f0a78e173473bf44906ca84d6a09c0afa82e0f4026cfb5fb64f9fe6267ab3044
761
762 diff --git a/app-emulation/virtualbox-extpack-oracle/virtualbox-extpack-oracle-5.2.28.130011.ebuild b/app-emulation/virtualbox-extpack-oracle/virtualbox-extpack-oracle-5.2.28.130011.ebuild
763 new file mode 100644
764 index 00000000000..e598ba63811
765 --- /dev/null
766 +++ b/app-emulation/virtualbox-extpack-oracle/virtualbox-extpack-oracle-5.2.28.130011.ebuild
767 @@ -0,0 +1,42 @@
768 +# Copyright 1999-2019 Gentoo Authors
769 +# Distributed under the terms of the GNU General Public License v2
770 +
771 +EAPI=7
772 +
773 +inherit multilib
774 +
775 +MAIN_PV="$(ver_cut 1-3)"
776 +if [[ ${PV} = *_beta* ]] || [[ ${PV} = *_rc* ]] ; then
777 + MY_PV="${MAIN_PV}_$(ver_cut 5)"
778 + DEP_PV="${MY_PV}"
779 + MY_PV="${MY_PV/beta/BETA}"
780 + MY_PV="${MY_PV/rc/RC}"
781 +else
782 + MY_PV="${MAIN_PV}"
783 + DEP_PV="${MAIN_PV}"
784 +fi
785 +VBOX_BUILD_ID="$(ver_cut 4)"
786 +MY_PN="Oracle_VM_VirtualBox_Extension_Pack"
787 +MY_P="${MY_PN}-${MY_PV}-${VBOX_BUILD_ID}"
788 +
789 +DESCRIPTION="PUEL extensions for VirtualBox"
790 +HOMEPAGE="https://www.virtualbox.org/"
791 +SRC_URI="https://download.virtualbox.org/virtualbox/${MY_PV}/${MY_P}.vbox-extpack -> ${MY_P}.tar.gz"
792 +
793 +LICENSE="PUEL"
794 +SLOT="0"
795 +KEYWORDS="~amd64 ~x86"
796 +IUSE=""
797 +RESTRICT="mirror strip"
798 +
799 +RDEPEND="~app-emulation/virtualbox-${DEP_PV}"
800 +
801 +S="${WORKDIR}"
802 +
803 +QA_PREBUILT="/usr/lib*/virtualbox/ExtensionPacks/${MY_PN}/.*"
804 +
805 +src_install() {
806 + insinto /usr/$(get_libdir)/virtualbox/ExtensionPacks/${MY_PN}
807 + doins -r linux.${ARCH}
808 + doins ExtPack* PXE-Intel.rom
809 +}
810
811 diff --git a/app-emulation/virtualbox-extpack-oracle/virtualbox-extpack-oracle-6.0.6.130049.ebuild b/app-emulation/virtualbox-extpack-oracle/virtualbox-extpack-oracle-6.0.6.130049.ebuild
812 new file mode 100644
813 index 00000000000..a260ead1a63
814 --- /dev/null
815 +++ b/app-emulation/virtualbox-extpack-oracle/virtualbox-extpack-oracle-6.0.6.130049.ebuild
816 @@ -0,0 +1,43 @@
817 +# Copyright 1999-2019 Gentoo Authors
818 +# Distributed under the terms of the GNU General Public License v2
819 +
820 +EAPI=7
821 +
822 +inherit multilib
823 +
824 +MAIN_PV="$(ver_cut 1-3)"
825 +if [[ ${PV} = *_beta* ]] || [[ ${PV} = *_rc* ]] ; then
826 + MY_PV="${MAIN_PV}_$(ver_cut 5-6)"
827 + DEP_PV="${MY_PV}"
828 + MY_PV="${MY_PV/beta/BETA}"
829 + MY_PV="${MY_PV/rc/RC}"
830 +else
831 + MY_PV="${MAIN_PV}"
832 + DEP_PV="${MAIN_PV}"
833 +fi
834 +VBOX_BUILD_ID="$(ver_cut 4)"
835 +MY_PN="Oracle_VM_VirtualBox_Extension_Pack"
836 +MY_P="${MY_PN}-${MY_PV}-${VBOX_BUILD_ID}"
837 +
838 +DESCRIPTION="PUEL extensions for VirtualBox"
839 +HOMEPAGE="https://www.virtualbox.org/"
840 +SRC_URI="https://download.virtualbox.org/virtualbox/${MY_PV}/${MY_P}.vbox-extpack -> ${MY_P}.tar.gz"
841 +
842 +LICENSE="PUEL"
843 +SLOT="0"
844 +[[ "${PV}" == *_beta* ]] || [[ "${PV}" == *_rc* ]] || \
845 +KEYWORDS="~amd64 ~x86"
846 +IUSE=""
847 +RESTRICT="mirror strip"
848 +
849 +RDEPEND="~app-emulation/virtualbox-${DEP_PV}"
850 +
851 +S="${WORKDIR}"
852 +
853 +QA_PREBUILT="/usr/lib*/virtualbox/ExtensionPacks/${MY_PN}/.*"
854 +
855 +src_install() {
856 + insinto /usr/$(get_libdir)/virtualbox/ExtensionPacks/${MY_PN}
857 + doins -r linux.${ARCH}
858 + doins ExtPack* PXE-Intel.rom
859 +}
860
861 diff --git a/app-emulation/virtualbox-guest-additions/Manifest b/app-emulation/virtualbox-guest-additions/Manifest
862 index 7436edd17ca..4c3917d2a58 100644
863 --- a/app-emulation/virtualbox-guest-additions/Manifest
864 +++ b/app-emulation/virtualbox-guest-additions/Manifest
865 @@ -1,7 +1,9 @@
866 DIST VirtualBox-5.2.22.tar.bz2 118757134 BLAKE2B be795cdbfb09d3d443f63e190b63898239622f5a57aefdd90f382d9a849d09cc1abc2624071fbc60b2c04a12f33376184540cc362c19225733f99a3bcc8ff6a3 SHA512 4f6c4611a3114778f45419587dc1519ca07410c1ea6474cdb18ecd3b068639a4fdac3f25146fe9b8e006e30f19eba134ce9f665182008b033f6f78497e1ea722
867 DIST VirtualBox-5.2.24.tar.bz2 118369194 BLAKE2B 2073ec85a641ae80113d41e8363401da5afaf6ea442c2a3c537341f39e06a03a7175463605133e642988f72c4adde4f987905c08f4ba58460953af7169cb4ca0 SHA512 2de5a19ff6aff56a4f7e7b9d7d39b3e787d2ac30d448e3313e915b1cde4b2eedccab44c7a195412efb9e9a6de3c1fb3ee96bde57af93f9ef8f317ffa8b7d4410
868 DIST VirtualBox-5.2.26.tar.bz2 118371765 BLAKE2B 32413b72e33f2f63835a2eb2d47dc75a7b63121934bdffd51ff58e9d63d68b77b4f8dac4605916ba8bd6896240d00024ccc3d7d002d4f6f92d6d9b1dc35995e3 SHA512 aee334c74bd02772ac5e0528d84d31661f61c775d0993c00febe125810efc78a2f779db41bf66283be51b19a35540fee14445bada59a8d3b7affa6ef6645005f
869 +DIST VirtualBox-5.2.28.tar.bz2 118655475 BLAKE2B 4e4e75b78de3cb3b6dc2fe2c2f306487cb924bf9ca2d1b0ffc6fc349774d3fa38886d386277a32067daaabfad6e8cd58ea058a78a70d16761d76f6ebed035d16 SHA512 085cfcab82851f98c757ea109ba420335d891a99df52a811e19815b3e55a92894cfb7b6fd4a5aaf15def71811f14e21527625adf885a394144cb5f971eb57782
870 DIST VirtualBox-6.0.2.tar.bz2 155125777 BLAKE2B 2d902fd1963305883eebba85daa03bd17fe8a9ba20e7a6482508879068a809ee80c4a5caffeb26acd0fd4ad29f6f60cf963e1d314e4b01f137ede5b589a74cb9 SHA512 9cfc03eae073ada47c050d2a5eeefa6f724ad2094f2bc3717aa010553ab0dd5af0ed0860bf120727491c7798cdff9219e53cdc3d629f61e3cd12c55068e7401b
871 DIST VirtualBox-6.0.4.tar.bz2 155233564 BLAKE2B 6bc4d450e275e8aac5dc62ab05d9ba1450e13965f3eba64819315d121bd0e515319be2ad92ab429f2e598e157e89660561de69a2aac87e14792284669bcec7e8 SHA512 c2e5418bafd5d50b46e1bc70280753c2fdfbf7248d782fc398771839950fb575eaea437e9699d56f4d8c92ea4dc9ba8bed74379565dac6114f7e9c45aecc9fdb
872 +DIST VirtualBox-6.0.6.tar.bz2 155297550 BLAKE2B a886ed99da3aee7a52d8c0654c33e50ae4155077e3d5061e1888a0cb5760b12dd63fb1205b75ec04419d50261f81e56036bdba79d20b57c836f073af232c913a SHA512 eb71ca94220680ac6cba7af13eb9eef132c21e57b1b27d6bc3c564bba58b000e682d19e36b63660bfa4f4471cd0632d365659ef8c4e3e526931622901a432d1b
873 DIST virtualbox-5.2.16-patches-02.tar.xz 3152 BLAKE2B c8d8f3872f544a465c7d1aa07291599307120ac9eabfb299ddd788a11f85ca6c2d84b8e7306ee4ad436270dad0dd39f101ee68a549eac15afd1e3cdc03f23c6c SHA512 85ee8c4045de562d71ab2d761695ea48b6726a6f0c4bcaa2562bb0d147542d3f1a1b5b47cf593a7f22dac1b86f87b59a56bef421dce3e1fa8e5260cd41998450
874 DIST virtualbox-6.0.0_beta2-patches-01.tar.xz 2732 BLAKE2B a138e715d99f135f16ca21c92781bf6cd8913f7f766bb598eddcd63e98280e568e646f56bbd0a3714f273457ca90db0b77ec7940ba25028506a22891f1af7b2d SHA512 954e4b40d6e272efe756ee0965adb4110d45f764433a89080fda7ebaebbc20031f86a3e0027dfdaa1c6a7d6379a1af557cea71512504e4b57b5f5adbfc86b56e
875
876 diff --git a/app-emulation/virtualbox-guest-additions/files/vboxguest-6.0.6-log-use-c99.patch b/app-emulation/virtualbox-guest-additions/files/vboxguest-6.0.6-log-use-c99.patch
877 new file mode 100644
878 index 00000000000..baae66fb081
879 --- /dev/null
880 +++ b/app-emulation/virtualbox-guest-additions/files/vboxguest-6.0.6-log-use-c99.patch
881 @@ -0,0 +1,13 @@
882 +https://bugs.gentoo.org/298988
883 +
884 +--- a/vboxguest/Makefile
885 ++++ b/vboxguest/Makefile
886 +@@ -136,7 +136,7 @@
887 + IN_MODULE \
888 + RT_WITH_VBOX \
889 + VBGL_VBOXGUEST \
890 +- VBOX_WITH_HGCM
891 ++ VBOX_WITH_HGCM LOG_USE_C99
892 + ifeq ($(BUILD_TARGET_ARCH),amd64)
893 + VBOXMOD_DEFS += VBOX_WITH_64_BITS_GUESTS
894 + endif
895
896 diff --git a/app-emulation/virtualbox-guest-additions/virtualbox-guest-additions-5.2.28.ebuild b/app-emulation/virtualbox-guest-additions/virtualbox-guest-additions-5.2.28.ebuild
897 new file mode 100644
898 index 00000000000..5780804c8c4
899 --- /dev/null
900 +++ b/app-emulation/virtualbox-guest-additions/virtualbox-guest-additions-5.2.28.ebuild
901 @@ -0,0 +1,228 @@
902 +# Copyright 1999-2019 Gentoo Authors
903 +# Distributed under the terms of the GNU General Public License v2
904 +
905 +EAPI=7
906 +
907 +inherit linux-mod systemd user toolchain-funcs
908 +
909 +MY_PV="${PV/beta/BETA}"
910 +MY_PV="${MY_PV/rc/RC}"
911 +MY_P="VirtualBox-${MY_PV}"
912 +DESCRIPTION="VirtualBox kernel modules and user-space tools for Gentoo guests"
913 +HOMEPAGE="https://www.virtualbox.org/"
914 +SRC_URI="https://download.virtualbox.org/virtualbox/${MY_PV}/${MY_P}.tar.bz2
915 + https://dev.gentoo.org/~polynomial-c/virtualbox/patchsets/virtualbox-5.2.16-patches-02.tar.xz"
916 +
917 +LICENSE="GPL-2"
918 +SLOT="0"
919 +KEYWORDS="~amd64 ~x86"
920 +IUSE="X"
921 +
922 +RDEPEND="
923 + X? ( x11-apps/xrandr
924 + x11-apps/xrefresh
925 + x11-libs/libXmu
926 + x11-libs/libX11
927 + x11-libs/libXt
928 + x11-libs/libXext
929 + x11-libs/libXau
930 + x11-libs/libXdmcp
931 + x11-libs/libSM
932 + x11-libs/libICE )
933 + sys-apps/dbus
934 +"
935 +DEPEND="
936 + ${RDEPEND}
937 + >=dev-util/kbuild-0.1.9998.3127
938 + >=dev-lang/yasm-0.6.2
939 + sys-devel/bin86
940 + sys-libs/pam
941 + sys-power/iasl
942 + x11-base/xorg-proto
943 +"
944 +PDEPEND="
945 + X? ( x11-drivers/xf86-video-vboxvideo )
946 +"
947 +BUILD_TARGETS="all"
948 +BUILD_TARGET_ARCH="${ARCH}"
949 +
950 +S="${WORKDIR}/${MY_P}"
951 +
952 +pkg_setup() {
953 + MODULE_NAMES="vboxguest(misc:${WORKDIR}/vboxguest:${WORKDIR}/vboxguest)
954 + vboxsf(misc:${WORKDIR}/vboxsf:${WORKDIR}/vboxsf)"
955 + use X && MODULE_NAMES+=" vboxvideo(misc:${WORKDIR}/vboxvideo::${WORKDIR}/vboxvideo)"
956 +
957 + linux-mod_pkg_setup
958 + BUILD_PARAMS="KERN_DIR=/lib/modules/${KV_FULL}/build KERNOUT=${KV_OUT_DIR}"
959 +}
960 +
961 +src_unpack() {
962 + unpack ${A}
963 +
964 + # Create and unpack a tarball with the sources of the Linux guest
965 + # kernel modules, to include all the needed files
966 + "${S}"/src/VBox/Additions/linux/export_modules.sh "${WORKDIR}/vbox-kmod.tar.gz"
967 + unpack ./vbox-kmod.tar.gz
968 +
969 + # Remove shipped binaries (kBuild,yasm), see bug #232775
970 + cd "${S}"
971 + rm -rf kBuild/bin tools
972 +}
973 +
974 +src_prepare() {
975 + # PaX fixes (see bug #298988)
976 + pushd "${WORKDIR}" &>/dev/null || die
977 + eapply "${FILESDIR}"/vboxguest-4.1.0-log-use-c99.patch
978 + popd &>/dev/null || die
979 +
980 + # Disable things unused or splitted into separate ebuilds
981 + cp "${FILESDIR}/${PN}-5-localconfig" LocalConfig.kmk || die
982 + use X || echo "VBOX_WITH_X11_ADDITIONS :=" >> LocalConfig.kmk
983 +
984 + # stupid new header references...
985 + local vboxheader mdir
986 + for vboxheader in {product,revision,version}-generated.h ; do
987 + for mdir in vbox{guest,sf} ; do
988 + ln -sf "${S}"/out/linux.${ARCH}/release/${vboxheader} \
989 + "${WORKDIR}/${mdir}/${vboxheader}"
990 + done
991 + done
992 +
993 + # Remove pointless GCC version check
994 + sed -e '/^check_gcc$/d' -i configure || die
995 +
996 + rm "${WORKDIR}/patches/008_virtualbox-4.3.14-missing_define.patch" || die
997 + eapply "${WORKDIR}/patches"
998 +
999 + eapply_user
1000 +}
1001 +
1002 +src_configure() {
1003 + # build the user-space tools, warnings are harmless
1004 + local cmd=(
1005 + ./configure
1006 + --nofatal
1007 + --disable-xpcom
1008 + --disable-sdl-ttf
1009 + --disable-pulse
1010 + --disable-alsa
1011 + --with-gcc="$(tc-getCC)"
1012 + --with-g++="$(tc-getCXX)"
1013 + --target-arch=${ARCH}
1014 + --with-linux="${KV_OUT_DIR}"
1015 + --build-headless
1016 + )
1017 + echo "${cmd[@]}"
1018 + "${cmd[@]}" || die "configure failed"
1019 + source ./env.sh
1020 + export VBOX_GCC_OPT="${CFLAGS} ${CPPFLAGS}"
1021 +}
1022 +
1023 +src_compile() {
1024 + MAKE="kmk" \
1025 + emake TOOL_YASM_AS=yasm \
1026 + VBOX_ONLY_ADDITIONS=1 \
1027 + KBUILD_VERBOSE=2
1028 +
1029 + # Now creating the kernel modules. We must do this _after_
1030 + # we compiled the user-space tools as we need two of the
1031 + # automatically generated header files. (>=3.2.0)
1032 + linux-mod_src_compile
1033 +}
1034 +
1035 +src_install() {
1036 + linux-mod_src_install
1037 +
1038 + cd "${S}"/out/linux.${ARCH}/release/bin/additions || die
1039 +
1040 + insinto /sbin
1041 + newins mount.vboxsf mount.vboxsf
1042 + fperms 4755 /sbin/mount.vboxsf
1043 +
1044 + newinitd "${FILESDIR}"/${PN}-8.initd ${PN}
1045 +
1046 + insinto /usr/sbin/
1047 + newins VBoxService vboxguest-service
1048 + fperms 0755 /usr/sbin/vboxguest-service
1049 +
1050 + insinto /usr/bin
1051 + doins VBoxControl
1052 + fperms 0755 /usr/bin/VBoxControl
1053 +
1054 + # VBoxClient user service and xrandr wrapper
1055 + if use X ; then
1056 + doins VBoxClient
1057 + fperms 0755 /usr/bin/VBoxClient
1058 +
1059 + pushd "${S}"/src/VBox/Additions/x11/Installer &>/dev/null \
1060 + || die
1061 + newins 98vboxadd-xclient VBoxClient-all
1062 + fperms 0755 /usr/bin/VBoxClient-all
1063 + popd &>/dev/null || die
1064 + fi
1065 +
1066 + # udev rule for vboxdrv
1067 + local udev_rules_dir="/lib/udev/rules.d"
1068 + dodir ${udev_rules_dir}
1069 + echo 'KERNEL=="vboxguest", OWNER="vboxguest", GROUP="vboxguest", MODE="0660"' \
1070 + >> "${ED%/}/${udev_rules_dir}/60-virtualbox-guest-additions.rules" \
1071 + || die
1072 + echo 'KERNEL=="vboxuser", OWNER="vboxguest", GROUP="vboxguest", MODE="0660"' \
1073 + >> "${ED%/}/${udev_rules_dir}/60-virtualbox-guest-additions.rules" \
1074 + || die
1075 +
1076 + # VBoxClient autostart file
1077 + insinto /etc/xdg/autostart
1078 + doins "${FILESDIR}"/vboxclient.desktop
1079 +
1080 + # sample xorg.conf
1081 + insinto /usr/share/doc/${PF}
1082 + doins "${FILESDIR}"/xorg.conf.vbox
1083 +
1084 + systemd_dounit "${FILESDIR}/${PN}.service"
1085 +}
1086 +
1087 +pkg_preinst() {
1088 + enewgroup vboxguest
1089 + enewuser vboxguest -1 /bin/sh /dev/null vboxguest
1090 + # automount Error: VBoxServiceAutoMountWorker: Group "vboxsf" does not exist
1091 + enewgroup vboxsf
1092 +}
1093 +
1094 +pkg_postinst() {
1095 + linux-mod_pkg_postinst
1096 + if ! use X ; then
1097 + elog "use flag X is off, enable it to install the"
1098 + elog "X Window System video driver."
1099 + fi
1100 + elog ""
1101 + elog "Please add users to the \"vboxguest\" group so they can"
1102 + elog "benefit from seamless mode, auto-resize and clipboard."
1103 + elog ""
1104 + elog "The vboxsf group has been added to make automount services work."
1105 + elog "These services are part of the shared folders support."
1106 + elog ""
1107 + elog "Please add:"
1108 + elog "/etc/init.d/${PN}"
1109 + elog "to the default runlevel in order to start"
1110 + elog "needed services."
1111 + elog "To use the VirtualBox X driver, use the following"
1112 + elog "file as your /etc/X11/xorg.conf:"
1113 + elog " /usr/share/doc/${PF}/xorg.conf.vbox"
1114 + elog ""
1115 + elog "Also make sure you use the Mesa library for OpenGL:"
1116 + elog " eselect opengl set xorg-x11"
1117 + elog ""
1118 + elog "An autostart .desktop file has been installed to start"
1119 + elog "VBoxClient in desktop sessions."
1120 + elog ""
1121 + elog "You can mount shared folders with:"
1122 + elog " mount -t vboxsf <shared_folder_name> <mount_point>"
1123 + elog ""
1124 + elog "Warning:"
1125 + elog "this ebuild is only needed if you are running gentoo"
1126 + elog "inside a VirtualBox Virtual Machine, you don't need"
1127 + elog "it to run VirtualBox itself."
1128 + elog ""
1129 +}
1130
1131 diff --git a/app-emulation/virtualbox-guest-additions/virtualbox-guest-additions-6.0.6.ebuild b/app-emulation/virtualbox-guest-additions/virtualbox-guest-additions-6.0.6.ebuild
1132 new file mode 100644
1133 index 00000000000..1d942ef517d
1134 --- /dev/null
1135 +++ b/app-emulation/virtualbox-guest-additions/virtualbox-guest-additions-6.0.6.ebuild
1136 @@ -0,0 +1,230 @@
1137 +# Copyright 1999-2019 Gentoo Authors
1138 +# Distributed under the terms of the GNU General Public License v2
1139 +
1140 +EAPI=7
1141 +
1142 +inherit linux-mod systemd user toolchain-funcs
1143 +
1144 +MY_PV="${PV/beta/BETA}"
1145 +MY_PV="${MY_PV/rc/RC}"
1146 +MY_P="VirtualBox-${MY_PV}"
1147 +DESCRIPTION="VirtualBox kernel modules and user-space tools for Gentoo guests"
1148 +HOMEPAGE="https://www.virtualbox.org/"
1149 +SRC_URI="https://download.virtualbox.org/virtualbox/${MY_PV}/${MY_P}.tar.bz2
1150 + https://dev.gentoo.org/~polynomial-c/virtualbox/patchsets/virtualbox-6.0.0_beta2-patches-01.tar.xz"
1151 +
1152 +LICENSE="GPL-2"
1153 +SLOT="0"
1154 +[[ "${PV}" == *_beta* ]] || [[ "${PV}" == *_rc* ]] || \
1155 +KEYWORDS="~amd64 ~x86"
1156 +IUSE="X"
1157 +
1158 +RDEPEND="
1159 + X? ( x11-apps/xrandr
1160 + x11-apps/xrefresh
1161 + x11-libs/libXmu
1162 + x11-libs/libX11
1163 + x11-libs/libXt
1164 + x11-libs/libXext
1165 + x11-libs/libXau
1166 + x11-libs/libXdmcp
1167 + x11-libs/libSM
1168 + x11-libs/libICE )
1169 + sys-apps/dbus
1170 +"
1171 +DEPEND="
1172 + ${RDEPEND}
1173 + >=dev-util/kbuild-0.1.9998.3127
1174 + >=dev-lang/yasm-0.6.2
1175 + sys-devel/bin86
1176 + sys-libs/pam
1177 + sys-power/iasl
1178 + x11-base/xorg-proto
1179 +"
1180 +PDEPEND="
1181 + X? ( x11-drivers/xf86-video-vboxvideo )
1182 +"
1183 +BUILD_TARGETS="all"
1184 +BUILD_TARGET_ARCH="${ARCH}"
1185 +
1186 +S="${WORKDIR}/${MY_P}"
1187 +
1188 +pkg_setup() {
1189 + MODULE_NAMES="vboxguest(misc:${WORKDIR}/vboxguest:${WORKDIR}/vboxguest)
1190 + vboxsf(misc:${WORKDIR}/vboxsf:${WORKDIR}/vboxsf)"
1191 + use X && MODULE_NAMES+=" vboxvideo(misc:${WORKDIR}/vboxvideo::${WORKDIR}/vboxvideo)"
1192 +
1193 + linux-mod_pkg_setup
1194 + BUILD_PARAMS="KERN_DIR=/lib/modules/${KV_FULL}/build KERNOUT=${KV_OUT_DIR}"
1195 +}
1196 +
1197 +src_unpack() {
1198 + unpack ${A}
1199 +
1200 + # Create and unpack a tarball with the sources of the Linux guest
1201 + # kernel modules, to include all the needed files
1202 + "${S}"/src/VBox/Additions/linux/export_modules.sh \
1203 + "${WORKDIR}/vbox-kmod.tar.gz" &>/dev/null || die
1204 + unpack ./vbox-kmod.tar.gz
1205 +
1206 + # Remove shipped binaries (kBuild,yasm), see bug #232775
1207 + cd "${S}" || die
1208 + rm -r kBuild/bin tools || die
1209 +}
1210 +
1211 +src_prepare() {
1212 + # PaX fixes (see bug #298988)
1213 + pushd "${WORKDIR}" &>/dev/null || die
1214 + eapply "${FILESDIR}"/vboxguest-6.0.6-log-use-c99.patch
1215 + popd &>/dev/null || die
1216 +
1217 + # Disable things unused or splitted into separate ebuilds
1218 + cp "${FILESDIR}/${PN}-5-localconfig" LocalConfig.kmk || die
1219 + use X || echo "VBOX_WITH_X11_ADDITIONS :=" >> LocalConfig.kmk
1220 +
1221 + # stupid new header references...
1222 + local vboxheader mdir
1223 + for vboxheader in {product,revision,version}-generated.h ; do
1224 + for mdir in vbox{guest,sf} ; do
1225 + ln -sf "${S}"/out/linux.${ARCH}/release/${vboxheader} \
1226 + "${WORKDIR}/${mdir}/${vboxheader}"
1227 + done
1228 + done
1229 +
1230 + # Remove pointless GCC version check
1231 + sed -e '/^check_gcc$/d' -i configure || die
1232 +
1233 + rm "${WORKDIR}/patches/010_virtualbox-5.2.12-qt511.patch" || die
1234 + eapply "${WORKDIR}/patches"
1235 +
1236 + eapply_user
1237 +}
1238 +
1239 +src_configure() {
1240 + # build the user-space tools, warnings are harmless
1241 + local cmd=(
1242 + ./configure
1243 + --nofatal
1244 + --disable-xpcom
1245 + --disable-sdl-ttf
1246 + --disable-pulse
1247 + --disable-alsa
1248 + --with-gcc="$(tc-getCC)"
1249 + --with-g++="$(tc-getCXX)"
1250 + --target-arch=${ARCH}
1251 + --with-linux="${KV_OUT_DIR}"
1252 + --build-headless
1253 + )
1254 + echo "${cmd[@]}"
1255 + "${cmd[@]}" || die "configure failed"
1256 + source ./env.sh
1257 + export VBOX_GCC_OPT="${CFLAGS} ${CPPFLAGS}"
1258 +}
1259 +
1260 +src_compile() {
1261 + MAKE="kmk" \
1262 + emake TOOL_YASM_AS=yasm \
1263 + VBOX_ONLY_ADDITIONS=1 \
1264 + KBUILD_VERBOSE=2
1265 +
1266 + # Now creating the kernel modules. We must do this _after_
1267 + # we compiled the user-space tools as we need two of the
1268 + # automatically generated header files. (>=3.2.0)
1269 + linux-mod_src_compile
1270 +}
1271 +
1272 +src_install() {
1273 + linux-mod_src_install
1274 +
1275 + cd "${S}"/out/linux.${ARCH}/release/bin/additions || die
1276 +
1277 + insinto /sbin
1278 + newins mount.vboxsf mount.vboxsf
1279 + fperms 4755 /sbin/mount.vboxsf
1280 +
1281 + newinitd "${FILESDIR}"/${PN}-8.initd ${PN}
1282 +
1283 + insinto /usr/sbin/
1284 + newins VBoxService vboxguest-service
1285 + fperms 0755 /usr/sbin/vboxguest-service
1286 +
1287 + insinto /usr/bin
1288 + doins VBoxControl
1289 + fperms 0755 /usr/bin/VBoxControl
1290 +
1291 + # VBoxClient user service and xrandr wrapper
1292 + if use X ; then
1293 + doins VBoxClient
1294 + fperms 0755 /usr/bin/VBoxClient
1295 +
1296 + pushd "${S}"/src/VBox/Additions/x11/Installer &>/dev/null \
1297 + || die
1298 + newins 98vboxadd-xclient VBoxClient-all
1299 + fperms 0755 /usr/bin/VBoxClient-all
1300 + popd &>/dev/null || die
1301 + fi
1302 +
1303 + # udev rule for vboxdrv
1304 + local udev_rules_dir="/lib/udev/rules.d"
1305 + dodir ${udev_rules_dir}
1306 + echo 'KERNEL=="vboxguest", OWNER="vboxguest", GROUP="vboxguest", MODE="0660"' \
1307 + >> "${ED%/}/${udev_rules_dir}/60-virtualbox-guest-additions.rules" \
1308 + || die
1309 + echo 'KERNEL=="vboxuser", OWNER="vboxguest", GROUP="vboxguest", MODE="0660"' \
1310 + >> "${ED%/}/${udev_rules_dir}/60-virtualbox-guest-additions.rules" \
1311 + || die
1312 +
1313 + # VBoxClient autostart file
1314 + insinto /etc/xdg/autostart
1315 + doins "${FILESDIR}"/vboxclient.desktop
1316 +
1317 + # sample xorg.conf
1318 + insinto /usr/share/doc/${PF}
1319 + doins "${FILESDIR}"/xorg.conf.vbox
1320 +
1321 + systemd_dounit "${FILESDIR}/${PN}.service"
1322 +}
1323 +
1324 +pkg_preinst() {
1325 + enewgroup vboxguest
1326 + enewuser vboxguest -1 /bin/sh /dev/null vboxguest
1327 + # automount Error: VBoxServiceAutoMountWorker: Group "vboxsf" does not exist
1328 + enewgroup vboxsf
1329 +}
1330 +
1331 +pkg_postinst() {
1332 + linux-mod_pkg_postinst
1333 + if ! use X ; then
1334 + elog "use flag X is off, enable it to install the"
1335 + elog "X Window System video driver."
1336 + fi
1337 + elog ""
1338 + elog "Please add users to the \"vboxguest\" group so they can"
1339 + elog "benefit from seamless mode, auto-resize and clipboard."
1340 + elog ""
1341 + elog "The vboxsf group has been added to make automount services work."
1342 + elog "These services are part of the shared folders support."
1343 + elog ""
1344 + elog "Please add:"
1345 + elog "/etc/init.d/${PN}"
1346 + elog "to the default runlevel in order to start"
1347 + elog "needed services."
1348 + elog "To use the VirtualBox X driver, use the following"
1349 + elog "file as your /etc/X11/xorg.conf:"
1350 + elog " /usr/share/doc/${PF}/xorg.conf.vbox"
1351 + elog ""
1352 + elog "Also make sure you use the Mesa library for OpenGL:"
1353 + elog " eselect opengl set xorg-x11"
1354 + elog ""
1355 + elog "An autostart .desktop file has been installed to start"
1356 + elog "VBoxClient in desktop sessions."
1357 + elog ""
1358 + elog "You can mount shared folders with:"
1359 + elog " mount -t vboxsf <shared_folder_name> <mount_point>"
1360 + elog ""
1361 + elog "Warning:"
1362 + elog "this ebuild is only needed if you are running gentoo"
1363 + elog "inside a VirtualBox Virtual Machine, you don't need"
1364 + elog "it to run VirtualBox itself."
1365 + elog ""
1366 +}
1367
1368 diff --git a/app-emulation/virtualbox-modules/Manifest b/app-emulation/virtualbox-modules/Manifest
1369 index 62665f9e611..7520c1ec60a 100644
1370 --- a/app-emulation/virtualbox-modules/Manifest
1371 +++ b/app-emulation/virtualbox-modules/Manifest
1372 @@ -1,5 +1,7 @@
1373 DIST vbox-kernel-module-src-5.2.22.tar.xz 638492 BLAKE2B 71aba29b056bb3dfeffbf4632fbf7f15d89b988267ba24c766b78b1d9c50a4d27fb1b8e699108b973af68024f9f77ca0a8ad787355d7342fe1400f14189487ff SHA512 3361bb536af8e8d490377be04d1b1b9af478538e23ec409d3e0205ad930c16e5228c57ae7d92d214ac533ae64298d9eaff3c9284ff9bb308108d1ad7d69fb507
1374 DIST vbox-kernel-module-src-5.2.24.tar.xz 642124 BLAKE2B fbf077b1d94f0b2f6ccb1a9a9f2e9b6f2b02153659f60a28bf3905bbd9aca762bcdbbe1a96ff602048a4d43eb61b8195c1c511bea7248d0593efd7972a17fc5b SHA512 ba0dc0ba4964eb17c421f624e321369a96564f08daa7e6949db9cbde2a182cd29a51f7b0a3215938789bb61e2427cbd38e318e5d909fd54d243ef764f51eb0e4
1375 DIST vbox-kernel-module-src-5.2.26.tar.xz 642096 BLAKE2B fa908b8dda4c49e880005f22d4ec159ba4e84b20d3cf8f514ec5ad0ea556499b0df25fb714bb5f9a3474e6fc1cba67f6d56fddaee748b9561bbe31a003dd0657 SHA512 7f37be1b35772d59cd3df9b61dec436450de3c038faf2cd22fb891fee7270aa7f87f146f72497ffeb63dfe869cccd3f2788562d23fc51afd83ca19159f2a6810
1376 +DIST vbox-kernel-module-src-5.2.28.tar.xz 642000 BLAKE2B 65ffe2345e978e0afba079e9291d55dc0419853718831d4c47e8e3e4f9fa194957342683aec0f362aa3f3924dca90d73ac30d947dec69ff54106d8e229510889 SHA512 bef0601b295d1a5cc0387262a6c75ec33777edaeaa543218bc7ddea5ced3995511978abfb624d2547fc6339c41e638054fb173ee7e0aeb46c7356a24834b3d83
1377 DIST vbox-kernel-module-src-6.0.2.tar.xz 665352 BLAKE2B 703291334afb8662211dfc5223d66dafa496612ca917637b2d34f6d38475287a1eed00e484965c670da236fdfcc558e0c7ebd081be1f6674603af2c0b6bda549 SHA512 c05f3e89b2fc5a504e77f0617dbe9ccde8de6d9b06e4c2f6d59d90f362b2d5a8207d64b16a8c767e63066a04236934664dfd452b23f4c5a2c4a3b301e07212c9
1378 DIST vbox-kernel-module-src-6.0.4.tar.xz 666200 BLAKE2B b7a6911a8534ae9e7db5a90fecfaf58394bf61ff1ee925302fdea46443e603535d1508b638c7c3f2440c0fe1176ca85d2f063f99632eb1a9093a9367f2e49fdc SHA512 565d635683f8a5f32c18b1bbf41b38bcab549a019cf0977c8dfbb53310494fb261e485ac11eb48e546c3c4b6ed13b3fb1628013dbc101f042ee9a61b8168122a
1379 +DIST vbox-kernel-module-src-6.0.6.tar.xz 667936 BLAKE2B 5eca0167ad6c624bb56978c07c0184ef39d789ca5752fee3fcb00a2f5a7af4d20a69dde4288fc5233111ea821eab69d6970a86861459d09d6050d93f09f8f2ef SHA512 aff4b1f200abfdb7e249e6c725ab9c2a4c83010bd0c7b6d2d6595ae7d7bc6b2bd291f77c1597b3fb2c39de61867447c18e06d865a50565ccb07120de2c34d141
1380
1381 diff --git a/app-emulation/virtualbox-modules/virtualbox-modules-5.2.28.ebuild b/app-emulation/virtualbox-modules/virtualbox-modules-5.2.28.ebuild
1382 new file mode 100644
1383 index 00000000000..c4b01a1b3f9
1384 --- /dev/null
1385 +++ b/app-emulation/virtualbox-modules/virtualbox-modules-5.2.28.ebuild
1386 @@ -0,0 +1,51 @@
1387 +# Copyright 1999-2019 Gentoo Authors
1388 +# Distributed under the terms of the GNU General Public License v2
1389 +
1390 +# XXX: the tarball here is just the kernel modules split out of the binary
1391 +# package that comes from virtualbox-bin
1392 +
1393 +EAPI=7
1394 +
1395 +inherit linux-mod user
1396 +
1397 +MY_P="vbox-kernel-module-src-${PV}"
1398 +DESCRIPTION="Kernel Modules for Virtualbox"
1399 +HOMEPAGE="https://www.virtualbox.org/"
1400 +SRC_URI="https://dev.gentoo.org/~polynomial-c/virtualbox/${MY_P}.tar.xz"
1401 +
1402 +LICENSE="GPL-2"
1403 +SLOT="0"
1404 +KEYWORDS="~amd64 ~x86"
1405 +IUSE="pax_kernel"
1406 +
1407 +RDEPEND="!=app-emulation/virtualbox-9999"
1408 +
1409 +S="${WORKDIR}"
1410 +
1411 +BUILD_TARGETS="all"
1412 +BUILD_TARGET_ARCH="${ARCH}"
1413 +MODULE_NAMES="vboxdrv(misc:${S}) vboxnetflt(misc:${S}) vboxnetadp(misc:${S}) vboxpci(misc:${S})"
1414 +
1415 +pkg_setup() {
1416 + enewgroup vboxusers
1417 + linux-mod_pkg_setup
1418 + BUILD_PARAMS="CC=$(tc-getBUILD_CC) KERN_DIR=${KV_DIR} KERN_VER=${KV_FULL} O=${KV_OUT_DIR} V=1 KBUILD_VERBOSE=1"
1419 +}
1420 +
1421 +src_prepare() {
1422 + if use pax_kernel && kernel_is -ge 3 0 0 ; then
1423 + eapply -p0 "${FILESDIR}"/${PN}-5.2.8-pax-const.patch
1424 + fi
1425 +
1426 + default
1427 +}
1428 +
1429 +src_install() {
1430 + linux-mod_src_install
1431 + insinto /usr/lib/modules-load.d/
1432 + doins "${FILESDIR}"/virtualbox.conf
1433 +}
1434 +
1435 +pkg_postinst() {
1436 + linux-mod_pkg_postinst
1437 +}
1438
1439 diff --git a/app-emulation/virtualbox-modules/virtualbox-modules-6.0.6.ebuild b/app-emulation/virtualbox-modules/virtualbox-modules-6.0.6.ebuild
1440 new file mode 100644
1441 index 00000000000..7257cb3b581
1442 --- /dev/null
1443 +++ b/app-emulation/virtualbox-modules/virtualbox-modules-6.0.6.ebuild
1444 @@ -0,0 +1,52 @@
1445 +# Copyright 1999-2019 Gentoo Authors
1446 +# Distributed under the terms of the GNU General Public License v2
1447 +
1448 +# XXX: the tarball here is just the kernel modules split out of the binary
1449 +# package that comes from virtualbox-bin
1450 +
1451 +EAPI=7
1452 +
1453 +inherit linux-mod user
1454 +
1455 +MY_P="vbox-kernel-module-src-${PV}"
1456 +DESCRIPTION="Kernel Modules for Virtualbox"
1457 +HOMEPAGE="https://www.virtualbox.org/"
1458 +SRC_URI="https://dev.gentoo.org/~polynomial-c/virtualbox/${MY_P}.tar.xz"
1459 +
1460 +LICENSE="GPL-2"
1461 +SLOT="0"
1462 +[[ "${PV}" == *_beta* ]] || [[ "${PV}" == *_rc* ]] || \
1463 +KEYWORDS="~amd64 ~x86"
1464 +IUSE="pax_kernel"
1465 +
1466 +RDEPEND="!=app-emulation/virtualbox-9999"
1467 +
1468 +S="${WORKDIR}"
1469 +
1470 +BUILD_TARGETS="all"
1471 +BUILD_TARGET_ARCH="${ARCH}"
1472 +MODULE_NAMES="vboxdrv(misc:${S}) vboxnetflt(misc:${S}) vboxnetadp(misc:${S}) vboxpci(misc:${S})"
1473 +
1474 +pkg_setup() {
1475 + enewgroup vboxusers
1476 + linux-mod_pkg_setup
1477 + BUILD_PARAMS="CC=$(tc-getBUILD_CC) KERN_DIR=${KV_DIR} KERN_VER=${KV_FULL} O=${KV_OUT_DIR} V=1 KBUILD_VERBOSE=1"
1478 +}
1479 +
1480 +src_prepare() {
1481 + if use pax_kernel && kernel_is -ge 3 0 0 ; then
1482 + eapply -p0 "${FILESDIR}"/${PN}-5.2.8-pax-const.patch
1483 + fi
1484 +
1485 + default
1486 +}
1487 +
1488 +src_install() {
1489 + linux-mod_src_install
1490 + insinto /usr/lib/modules-load.d/
1491 + doins "${FILESDIR}"/virtualbox.conf
1492 +}
1493 +
1494 +pkg_postinst() {
1495 + linux-mod_pkg_postinst
1496 +}
1497
1498 diff --git a/app-emulation/virtualbox/Manifest b/app-emulation/virtualbox/Manifest
1499 index 7436edd17ca..4c3917d2a58 100644
1500 --- a/app-emulation/virtualbox/Manifest
1501 +++ b/app-emulation/virtualbox/Manifest
1502 @@ -1,7 +1,9 @@
1503 DIST VirtualBox-5.2.22.tar.bz2 118757134 BLAKE2B be795cdbfb09d3d443f63e190b63898239622f5a57aefdd90f382d9a849d09cc1abc2624071fbc60b2c04a12f33376184540cc362c19225733f99a3bcc8ff6a3 SHA512 4f6c4611a3114778f45419587dc1519ca07410c1ea6474cdb18ecd3b068639a4fdac3f25146fe9b8e006e30f19eba134ce9f665182008b033f6f78497e1ea722
1504 DIST VirtualBox-5.2.24.tar.bz2 118369194 BLAKE2B 2073ec85a641ae80113d41e8363401da5afaf6ea442c2a3c537341f39e06a03a7175463605133e642988f72c4adde4f987905c08f4ba58460953af7169cb4ca0 SHA512 2de5a19ff6aff56a4f7e7b9d7d39b3e787d2ac30d448e3313e915b1cde4b2eedccab44c7a195412efb9e9a6de3c1fb3ee96bde57af93f9ef8f317ffa8b7d4410
1505 DIST VirtualBox-5.2.26.tar.bz2 118371765 BLAKE2B 32413b72e33f2f63835a2eb2d47dc75a7b63121934bdffd51ff58e9d63d68b77b4f8dac4605916ba8bd6896240d00024ccc3d7d002d4f6f92d6d9b1dc35995e3 SHA512 aee334c74bd02772ac5e0528d84d31661f61c775d0993c00febe125810efc78a2f779db41bf66283be51b19a35540fee14445bada59a8d3b7affa6ef6645005f
1506 +DIST VirtualBox-5.2.28.tar.bz2 118655475 BLAKE2B 4e4e75b78de3cb3b6dc2fe2c2f306487cb924bf9ca2d1b0ffc6fc349774d3fa38886d386277a32067daaabfad6e8cd58ea058a78a70d16761d76f6ebed035d16 SHA512 085cfcab82851f98c757ea109ba420335d891a99df52a811e19815b3e55a92894cfb7b6fd4a5aaf15def71811f14e21527625adf885a394144cb5f971eb57782
1507 DIST VirtualBox-6.0.2.tar.bz2 155125777 BLAKE2B 2d902fd1963305883eebba85daa03bd17fe8a9ba20e7a6482508879068a809ee80c4a5caffeb26acd0fd4ad29f6f60cf963e1d314e4b01f137ede5b589a74cb9 SHA512 9cfc03eae073ada47c050d2a5eeefa6f724ad2094f2bc3717aa010553ab0dd5af0ed0860bf120727491c7798cdff9219e53cdc3d629f61e3cd12c55068e7401b
1508 DIST VirtualBox-6.0.4.tar.bz2 155233564 BLAKE2B 6bc4d450e275e8aac5dc62ab05d9ba1450e13965f3eba64819315d121bd0e515319be2ad92ab429f2e598e157e89660561de69a2aac87e14792284669bcec7e8 SHA512 c2e5418bafd5d50b46e1bc70280753c2fdfbf7248d782fc398771839950fb575eaea437e9699d56f4d8c92ea4dc9ba8bed74379565dac6114f7e9c45aecc9fdb
1509 +DIST VirtualBox-6.0.6.tar.bz2 155297550 BLAKE2B a886ed99da3aee7a52d8c0654c33e50ae4155077e3d5061e1888a0cb5760b12dd63fb1205b75ec04419d50261f81e56036bdba79d20b57c836f073af232c913a SHA512 eb71ca94220680ac6cba7af13eb9eef132c21e57b1b27d6bc3c564bba58b000e682d19e36b63660bfa4f4471cd0632d365659ef8c4e3e526931622901a432d1b
1510 DIST virtualbox-5.2.16-patches-02.tar.xz 3152 BLAKE2B c8d8f3872f544a465c7d1aa07291599307120ac9eabfb299ddd788a11f85ca6c2d84b8e7306ee4ad436270dad0dd39f101ee68a549eac15afd1e3cdc03f23c6c SHA512 85ee8c4045de562d71ab2d761695ea48b6726a6f0c4bcaa2562bb0d147542d3f1a1b5b47cf593a7f22dac1b86f87b59a56bef421dce3e1fa8e5260cd41998450
1511 DIST virtualbox-6.0.0_beta2-patches-01.tar.xz 2732 BLAKE2B a138e715d99f135f16ca21c92781bf6cd8913f7f766bb598eddcd63e98280e568e646f56bbd0a3714f273457ca90db0b77ec7940ba25028506a22891f1af7b2d SHA512 954e4b40d6e272efe756ee0965adb4110d45f764433a89080fda7ebaebbc20031f86a3e0027dfdaa1c6a7d6379a1af557cea71512504e4b57b5f5adbfc86b56e
1512
1513 diff --git a/app-emulation/virtualbox/virtualbox-5.2.28.ebuild b/app-emulation/virtualbox/virtualbox-5.2.28.ebuild
1514 new file mode 100644
1515 index 00000000000..4464ccc84a0
1516 --- /dev/null
1517 +++ b/app-emulation/virtualbox/virtualbox-5.2.28.ebuild
1518 @@ -0,0 +1,480 @@
1519 +# Copyright 1999-2019 Gentoo Authors
1520 +# Distributed under the terms of the GNU General Public License v2
1521 +
1522 +EAPI=6
1523 +
1524 +PYTHON_COMPAT=( python2_7 )
1525 +inherit flag-o-matic gnome2-utils java-pkg-opt-2 linux-info pax-utils python-single-r1 tmpfiles toolchain-funcs udev xdg-utils
1526 +
1527 +MY_PV="${PV/beta/BETA}"
1528 +MY_PV="${MY_PV/rc/RC}"
1529 +MY_P=VirtualBox-${MY_PV}
1530 +
1531 +DESCRIPTION="Family of powerful x86 virtualization products for enterprise and home use"
1532 +HOMEPAGE="https://www.virtualbox.org/"
1533 +SRC_URI="https://download.virtualbox.org/virtualbox/${MY_PV}/${MY_P}.tar.bz2
1534 + https://dev.gentoo.org/~polynomial-c/${PN}/patchsets/${PN}-5.2.16-patches-02.tar.xz"
1535 +
1536 +LICENSE="GPL-2"
1537 +SLOT="0"
1538 +KEYWORDS="~amd64 ~x86"
1539 +IUSE="alsa debug doc headless java libressl lvm +opus pam pax_kernel pulseaudio +opengl python +qt5 +sdk +udev vboxwebsrv vnc"
1540 +
1541 +RDEPEND="!app-emulation/virtualbox-bin
1542 + ~app-emulation/virtualbox-modules-${PV}
1543 + dev-libs/libIDL
1544 + >=dev-libs/libxslt-1.1.19
1545 + net-misc/curl
1546 + dev-libs/libxml2
1547 + media-libs/libpng:0=
1548 + media-libs/libvpx:0=
1549 + sys-libs/zlib:=
1550 + !headless? (
1551 + media-libs/libsdl:0[X,video]
1552 + x11-libs/libX11
1553 + x11-libs/libxcb:=
1554 + x11-libs/libXcursor
1555 + x11-libs/libXext
1556 + x11-libs/libXmu
1557 + x11-libs/libXt
1558 + opengl? ( virtual/opengl media-libs/freeglut )
1559 + qt5? (
1560 + dev-qt/qtcore:5
1561 + dev-qt/qtgui:5
1562 + dev-qt/qtprintsupport:5
1563 + dev-qt/qtwidgets:5
1564 + dev-qt/qtx11extras:5
1565 + opengl? ( dev-qt/qtopengl:5 )
1566 + x11-libs/libXinerama
1567 + )
1568 + )
1569 + libressl? ( dev-libs/libressl:= )
1570 + !libressl? ( dev-libs/openssl:0= )
1571 + lvm? ( sys-fs/lvm2 )
1572 + opus? ( media-libs/opus )
1573 + udev? ( >=virtual/udev-171 )
1574 + vnc? ( >=net-libs/libvncserver-0.9.9 )"
1575 +DEPEND="${RDEPEND}
1576 + >=dev-util/kbuild-0.1.9998.3127
1577 + >=dev-lang/yasm-0.6.2
1578 + sys-devel/bin86
1579 + sys-libs/libcap
1580 + sys-power/iasl
1581 + virtual/pkgconfig
1582 + alsa? ( >=media-libs/alsa-lib-1.0.13 )
1583 + doc? (
1584 + app-text/docbook-sgml-dtd:4.4
1585 + dev-texlive/texlive-basic
1586 + dev-texlive/texlive-latex
1587 + dev-texlive/texlive-latexrecommended
1588 + dev-texlive/texlive-latexextra
1589 + dev-texlive/texlive-fontsrecommended
1590 + dev-texlive/texlive-fontsextra
1591 + )
1592 + !headless? ( x11-libs/libXinerama )
1593 + java? ( >=virtual/jdk-1.6 )
1594 + pam? ( sys-libs/pam )
1595 + pax_kernel? ( sys-apps/elfix )
1596 + pulseaudio? ( media-sound/pulseaudio )
1597 + qt5? ( dev-qt/linguist-tools:5 )
1598 + vboxwebsrv? ( net-libs/gsoap[-gnutls(-)] )
1599 + ${PYTHON_DEPS}"
1600 +RDEPEND="${RDEPEND}
1601 + java? ( >=virtual/jre-1.6 )"
1602 +
1603 +QA_TEXTRELS_x86="usr/lib/virtualbox-ose/VBoxGuestPropSvc.so
1604 + usr/lib/virtualbox/VBoxSDL.so
1605 + usr/lib/virtualbox/VBoxSharedFolders.so
1606 + usr/lib/virtualbox/VBoxDD2.so
1607 + usr/lib/virtualbox/VBoxOGLrenderspu.so
1608 + usr/lib/virtualbox/VBoxPython.so
1609 + usr/lib/virtualbox/VBoxDD.so
1610 + usr/lib/virtualbox/VBoxDDU.so
1611 + usr/lib/virtualbox/VBoxREM64.so
1612 + usr/lib/virtualbox/VBoxSharedClipboard.so
1613 + usr/lib/virtualbox/VBoxHeadless.so
1614 + usr/lib/virtualbox/VBoxRT.so
1615 + usr/lib/virtualbox/VBoxREM.so
1616 + usr/lib/virtualbox/VBoxSettings.so
1617 + usr/lib/virtualbox/VBoxKeyboard.so
1618 + usr/lib/virtualbox/VBoxSharedCrOpenGL.so
1619 + usr/lib/virtualbox/VBoxVMM.so
1620 + usr/lib/virtualbox/VirtualBox.so
1621 + usr/lib/virtualbox/VBoxOGLhosterrorspu.so
1622 + usr/lib/virtualbox/components/VBoxC.so
1623 + usr/lib/virtualbox/components/VBoxSVCM.so
1624 + usr/lib/virtualbox/components/VBoxDDU.so
1625 + usr/lib/virtualbox/components/VBoxRT.so
1626 + usr/lib/virtualbox/components/VBoxREM.so
1627 + usr/lib/virtualbox/components/VBoxVMM.so
1628 + usr/lib/virtualbox/VBoxREM32.so
1629 + usr/lib/virtualbox/VBoxPython2_7.so
1630 + usr/lib/virtualbox/VBoxXPCOMC.so
1631 + usr/lib/virtualbox/VBoxOGLhostcrutil.so
1632 + usr/lib/virtualbox/VBoxNetDHCP.so
1633 + usr/lib/virtualbox/VBoxNetNAT.so"
1634 +
1635 +S="${WORKDIR}/${MY_P}"
1636 +
1637 +REQUIRED_USE="
1638 + java? ( sdk )
1639 + python? ( sdk )
1640 + vboxwebsrv? ( java )
1641 + ${PYTHON_REQUIRED_USE}
1642 +"
1643 +
1644 +pkg_pretend() {
1645 + if ! use headless && ! use qt5 ; then
1646 + einfo "No USE=\"qt5\" selected, this build will not include any Qt frontend."
1647 + elif use headless && use qt5 ; then
1648 + einfo "You selected USE=\"headless qt5\", defaulting to"
1649 + einfo "USE=\"headless\", this build will not include any X11/Qt frontend."
1650 + fi
1651 +
1652 + if ! use opengl ; then
1653 + einfo "No USE=\"opengl\" selected, this build will lack"
1654 + einfo "the OpenGL feature."
1655 + fi
1656 + if ! use python ; then
1657 + einfo "You have disabled the \"python\" USE flag. This will only"
1658 + einfo "disable the python bindings being installed."
1659 + fi
1660 +}
1661 +
1662 +pkg_setup() {
1663 + java-pkg-opt-2_pkg_setup
1664 + python-single-r1_pkg_setup
1665 +
1666 + tc-ld-disable-gold #bug 488176
1667 + tc-export CC CXX LD AR RANLIB
1668 + export HOST_CC="$(tc-getBUILD_CC)"
1669 +}
1670 +
1671 +src_prepare() {
1672 + # Remove shipped binaries (kBuild,yasm), see bug #232775
1673 + rm -r kBuild/bin tools || die
1674 +
1675 + # Replace pointless GCC version check with something less stupid.
1676 + # This is needed for the qt5 version check.
1677 + sed -e 's@^check_gcc$@cc_maj="$(gcc -dumpversion | cut -d. -f1)" ; cc_min="$(gcc -dumpversion | cut -d. -f2)"@' \
1678 + -i configure || die
1679 +
1680 + # Disable things unused or split into separate ebuilds
1681 + sed -e "s@MY_LIBDIR@$(get_libdir)@" \
1682 + "${FILESDIR}"/${PN}-5-localconfig > LocalConfig.kmk || die
1683 +
1684 + # Respect LDFLAGS
1685 + sed -e "s@_LDFLAGS\.${ARCH}*.*=@& ${LDFLAGS}@g" \
1686 + -i Config.kmk src/libs/xpcom18a4/Config.kmk || die
1687 +
1688 + # Do not use hard-coded ld (related to bug #488176)
1689 + sed -e '/QUIET)ld /s@ld @$(LD) @' \
1690 + -i src/VBox/Devices/PC/ipxe/Makefile.kmk || die
1691 +
1692 + # Use PAM only when pam USE flag is enbaled (bug #376531)
1693 + if ! use pam ; then
1694 + elog "Disabling PAM removes the possibility to use the VRDP features."
1695 + sed -i 's@^.*VBOX_WITH_PAM@#VBOX_WITH_PAM@' Config.kmk || die
1696 + sed -i 's@\(.*/auth/Makefile.kmk.*\)@#\1@' \
1697 + src/VBox/HostServices/Makefile.kmk || die
1698 + fi
1699 +
1700 + # add correct java path
1701 + if use java ; then
1702 + sed "s@/usr/lib/jvm/java-6-sun@$(java-config -O)@" \
1703 + -i "${S}"/Config.kmk || die
1704 + java-pkg-opt-2_src_prepare
1705 + fi
1706 +
1707 + # Only add nopie patch when we're on hardened
1708 + if gcc-specs-pie ; then
1709 + eapply "${FILESDIR}/050_virtualbox-5.2.8-nopie.patch"
1710 + fi
1711 +
1712 + # Only add paxmark patch when we're on pax_kernel
1713 + if use pax_kernel ; then
1714 + eapply "${FILESDIR}"/virtualbox-5.2.8-paxmark-bldprogs.patch
1715 + fi
1716 +
1717 + rm "${WORKDIR}/patches/008_virtualbox-4.3.14-missing_define.patch" || die
1718 + eapply "${WORKDIR}/patches"
1719 +
1720 + eapply_user
1721 +}
1722 +
1723 +doecho() {
1724 + echo "$@"
1725 + "$@" || die
1726 +}
1727 +
1728 +src_configure() {
1729 + local myconf=(
1730 + --with-gcc="$(tc-getCC)"
1731 + --with-g++="$(tc-getCXX)"
1732 + --disable-dbus
1733 + --disable-kmods
1734 + $(usex alsa '' --disable-alsa)
1735 + $(usex debug --build-debug '')
1736 + $(usex doc '' --disable-docs)
1737 + $(usex java '' --disable-java)
1738 + $(usex lvm '' --disable-devmapper)
1739 + $(usex opus --build-libopus '')
1740 + $(usex pulseaudio '' --disable-pulse)
1741 + $(usex python '' --disable-python)
1742 + $(usex vboxwebsrv --enable-webservice '')
1743 + $(usex vnc --enable-vnc '')
1744 + )
1745 + if ! use headless ; then
1746 + myconf+=(
1747 + $(usex opengl '' --disable-opengl)
1748 + $(usex qt5 '' --disable-qt)
1749 + )
1750 + else
1751 + myconf+=(
1752 + --build-headless
1753 + --disable-opengl
1754 + )
1755 + fi
1756 + if use amd64 && ! has_multilib_profile ; then
1757 + myconf+=( --disable-vmmraw )
1758 + fi
1759 + # not an autoconf script
1760 + doecho ./configure ${myconf[@]}
1761 +}
1762 +
1763 +src_compile() {
1764 + source ./env.sh || die
1765 +
1766 + # Force kBuild to respect C[XX]FLAGS and MAKEOPTS (bug #178529)
1767 + MAKEJOBS=$(grep -Eo '(\-j|\-\-jobs)(=?|[[:space:]]*)[[:digit:]]+' <<< ${MAKEOPTS}) #'
1768 + MAKELOAD=$(grep -Eo '(\-l|\-\-load-average)(=?|[[:space:]]*)[[:digit:]]+' <<< ${MAKEOPTS}) #'
1769 + MAKEOPTS="${MAKEJOBS} ${MAKELOAD}"
1770 + MAKE="kmk" emake \
1771 + VBOX_BUILD_PUBLISHER=_Gentoo \
1772 + TOOL_GCC3_CC="$(tc-getCC)" TOOL_GCC3_CXX="$(tc-getCXX)" \
1773 + TOOL_GCC3_AS="$(tc-getCC)" TOOL_GCC3_AR="$(tc-getAR)" \
1774 + TOOL_GCC3_LD="$(tc-getCXX)" TOOL_GCC3_LD_SYSMOD="$(tc-getLD)" \
1775 + TOOL_GCC3_CFLAGS="${CFLAGS}" TOOL_GCC3_CXXFLAGS="${CXXFLAGS}" \
1776 + VBOX_GCC_OPT="${CXXFLAGS}" \
1777 + TOOL_YASM_AS=yasm KBUILD_VERBOSE=2 \
1778 + all
1779 +}
1780 +
1781 +src_install() {
1782 + local binpath="release"
1783 + use debug && binpath="debug"
1784 + cd "${S}"/out/linux.${ARCH}/${binpath}/bin || die
1785 +
1786 + local vbox_inst_path="/usr/$(get_libdir)/${PN}" each fwfile size ico icofile
1787 +
1788 + vbox_inst() {
1789 + local binary="${1}"
1790 + local perms="${2:-0750}"
1791 + local path="${3:-${vbox_inst_path}}"
1792 +
1793 + [[ -n "${binary}" ]] || die "vbox_inst: No binray given!"
1794 + [[ ${perms} =~ ^[[:digit:]]+{4}$ ]] || die "vbox_inst: perms must consist of four digits."
1795 +
1796 + insinto ${path}
1797 + doins ${binary}
1798 + fowners root:vboxusers ${path}/${binary}
1799 + fperms ${perms} ${path}/${binary}
1800 + }
1801 +
1802 + # Create configuration files
1803 + insinto /etc/vbox
1804 + newins "${FILESDIR}/${PN}-4-config" vbox.cfg
1805 +
1806 + # Set the correct libdir
1807 + sed \
1808 + -e "s@MY_LIBDIR@$(get_libdir)@" \
1809 + -i "${ED%/}"/etc/vbox/vbox.cfg || die "vbox.cfg sed failed"
1810 +
1811 + # Install the wrapper script
1812 + exeinto ${vbox_inst_path}
1813 + newexe "${FILESDIR}/${PN}-ose-5-wrapper" "VBox"
1814 + fowners root:vboxusers ${vbox_inst_path}/VBox
1815 + fperms 0750 ${vbox_inst_path}/VBox
1816 +
1817 + # Install binaries and libraries
1818 + insinto ${vbox_inst_path}
1819 + doins -r components
1820 +
1821 + # *.rc files for x86_64 are only available on multilib systems
1822 + local rcfiles="*.rc"
1823 + if use amd64 && ! has_multilib_profile ; then
1824 + rcfiles=""
1825 + fi
1826 + for each in VBox{ExtPackHelperApp,Manage,SVC,Tunctl,XPCOMIPCD} *so *r0 ${rcfiles} ; do
1827 + vbox_inst ${each}
1828 + done
1829 +
1830 + # These binaries need to be suid root.
1831 + for each in VBox{Headless,Net{AdpCtl,DHCP,NAT}} ; do
1832 + vbox_inst ${each} 4750
1833 + done
1834 +
1835 + # Install EFI Firmware files (bug #320757)
1836 + pushd "${S}"/src/VBox/Devices/EFI/FirmwareBin &>/dev/null || die
1837 + for fwfile in VBoxEFI{32,64}.fd ; do
1838 + vbox_inst ${fwfile} 0644
1839 + done
1840 + popd &>/dev/null || die
1841 +
1842 + # VBoxSVC and VBoxManage need to be pax-marked (bug #403453)
1843 + # VBoxXPCOMIPCD (bug #524202)
1844 + for each in VBox{Headless,Manage,SVC,XPCOMIPCD} ; do
1845 + pax-mark -m "${ED%/}"${vbox_inst_path}/${each}
1846 + done
1847 +
1848 + # Symlink binaries to the shipped wrapper
1849 + for each in vbox{headless,manage} VBox{Headless,Manage,VRDP} ; do
1850 + dosym ${vbox_inst_path}/VBox /usr/bin/${each}
1851 + done
1852 + dosym ${vbox_inst_path}/VBoxTunctl /usr/bin/VBoxTunctl
1853 +
1854 + if use pam ; then
1855 + # VRDPAuth only works with this (bug #351949)
1856 + dosym VBoxAuth.so ${vbox_inst_path}/VRDPAuth.so
1857 + fi
1858 +
1859 + # set an env-variable for 3rd party tools
1860 + echo -n "VBOX_APP_HOME=${vbox_inst_path}" > "${T}/90virtualbox"
1861 + doenvd "${T}/90virtualbox"
1862 +
1863 + if ! use headless ; then
1864 + vbox_inst VBoxSDL 4750
1865 + pax-mark -m "${ED%/}"${vbox_inst_path}/VBoxSDL
1866 +
1867 + for each in vboxsdl VBoxSDL ; do
1868 + dosym ${vbox_inst_path}/VBox /usr/bin/${each}
1869 + done
1870 +
1871 + if use qt5 ; then
1872 + vbox_inst VirtualBox 4750
1873 + pax-mark -m "${ED%/}"${vbox_inst_path}/VirtualBox
1874 +
1875 + if use opengl ; then
1876 + vbox_inst VBoxTestOGL
1877 + pax-mark -m "${ED%/}"${vbox_inst_path}/VBoxTestOGL
1878 + fi
1879 +
1880 + for each in virtualbox VirtualBox ; do
1881 + dosym ${vbox_inst_path}/VBox /usr/bin/${each}
1882 + done
1883 +
1884 + insinto /usr/share/${PN}
1885 + doins -r nls
1886 + doins -r UnattendedTemplates
1887 +
1888 + newmenu "${FILESDIR}"/${PN}-ose.desktop-2 ${PN}.desktop
1889 + fi
1890 +
1891 + pushd "${S}"/src/VBox/Artwork/OSE &>/dev/null || die
1892 + for size in 16 32 48 64 128 ; do
1893 + newicon -s ${size} ${PN}-${size}px.png ${PN}.png
1894 + done
1895 + newicon ${PN}-48px.png ${PN}.png
1896 + doicon -s scalable ${PN}.svg
1897 + popd &>/dev/null || die
1898 + pushd "${S}"/src/VBox/Artwork/other &>/dev/null || die
1899 + for size in 16 24 32 48 64 72 96 128 256 512 ; do
1900 + for ico in hdd ova ovf vbox{,-extpack} vdi vdh vmdk ; do
1901 + icofile="${PN}-${ico}-${size}px.png"
1902 + if [[ -f "${icofile}" ]] ; then
1903 + newicon -s ${size} ${icofile} ${PN}-${ico}.png
1904 + fi
1905 + done
1906 + done
1907 + popd &>/dev/null || die
1908 + fi
1909 +
1910 + if use lvm ; then
1911 + vbox_inst VBoxVolInfo 4750
1912 + dosym ${vbox_inst_path}/VBoxVolInfo /usr/bin/VBoxVolInfo
1913 + fi
1914 +
1915 + if use sdk ; then
1916 + insinto ${vbox_inst_path}
1917 + doins -r sdk
1918 +
1919 + if use java ; then
1920 + java-pkg_regjar "${ED%/}/${vbox_inst_path}/sdk/bindings/xpcom/java/vboxjxpcom.jar"
1921 + java-pkg_regso "${ED%/}/${vbox_inst_path}/libvboxjxpcom.so"
1922 + fi
1923 + fi
1924 +
1925 + if use udev ; then
1926 + # New way of handling USB device nodes for VBox (bug #356215)
1927 + local udevdir="$(get_udevdir)"
1928 + insinto ${udevdir}
1929 + doins VBoxCreateUSBNode.sh
1930 + fowners root:vboxusers ${udevdir}/VBoxCreateUSBNode.sh
1931 + fperms 0750 ${udevdir}/VBoxCreateUSBNode.sh
1932 + insinto ${udevdir}/rules.d
1933 + sed "s@%UDEVDIR%@${udevdir}@" "${FILESDIR}"/10-virtualbox.rules \
1934 + > "${T}"/10-virtualbox.rules || die
1935 + doins "${T}"/10-virtualbox.rules
1936 + fi
1937 +
1938 + if use vboxwebsrv ; then
1939 + vbox_inst vboxwebsrv
1940 + dosym ${vbox_inst_path}/VBox /usr/bin/vboxwebsrv
1941 + newinitd "${FILESDIR}"/vboxwebsrv-initd vboxwebsrv
1942 + newconfd "${FILESDIR}"/vboxwebsrv-confd vboxwebsrv
1943 + fi
1944 +
1945 + if use doc ; then
1946 + dodoc UserManual.pdf
1947 + fi
1948 +
1949 + newtmpfiles "${FILESDIR}"/${PN}-vboxusb_tmpfilesd ${PN}-vboxusb.conf
1950 +}
1951 +
1952 +pkg_postinst() {
1953 + gnome2_icon_cache_update
1954 + xdg_desktop_database_update
1955 +
1956 + if use udev ; then
1957 + udevadm control --reload-rules \
1958 + && udevadm trigger --subsystem-match=usb
1959 + fi
1960 +
1961 + tmpfiles_process /usr/lib/tmpfiles.d/virtualbox-vboxusb.conf
1962 +
1963 + if ! use headless && use qt5 ; then
1964 + elog "To launch VirtualBox just type: \"virtualbox\"."
1965 + fi
1966 + elog "You must be in the vboxusers group to use VirtualBox."
1967 + elog ""
1968 + elog "The latest user manual is available for download at:"
1969 + elog "http://download.virtualbox.org/virtualbox/${PV}/UserManual.pdf"
1970 + elog ""
1971 + elog "For advanced networking setups you should emerge:"
1972 + elog "net-misc/bridge-utils and sys-apps/usermode-utilities"
1973 + elog ""
1974 + elog "Starting with version 4.0.0, ${PN} has USB-1 support."
1975 + elog "For USB-2 support, PXE-boot ability and VRDP support please emerge"
1976 + elog " app-emulation/virtualbox-extpack-oracle"
1977 + elog "package."
1978 + elog "Starting with version 5.0.0, ${PN} no longer has the \"additions\" and"
1979 + elog "the \"extension\" USE flag. For installation of the guest additions ISO"
1980 + elog "image, please emerge"
1981 + elog " app-emulation/virtualbox-additions"
1982 + elog "and for the USB2, USB3, VRDP and PXE boot ROM modules, please emerge"
1983 + elog " app-emulation/virtualbox-extpack-oracle"
1984 + if ! use udev ; then
1985 + elog ""
1986 + elog "WARNING!"
1987 + elog "Without USE=udev, USB devices will likely not work in ${PN}."
1988 + elif [ -e "${ROOT%/}/etc/udev/rules.d/10-virtualbox.rules" ] ; then
1989 + elog ""
1990 + elog "Please remove \"${ROOT%/}/etc/udev/rules.d/10-virtualbox.rules\""
1991 + elog "or else USB in ${PN} won't work."
1992 + fi
1993 +}
1994 +
1995 +pkg_postrm() {
1996 + gnome2_icon_cache_update
1997 + xdg_desktop_database_update
1998 +}
1999
2000 diff --git a/app-emulation/virtualbox/virtualbox-6.0.6.ebuild b/app-emulation/virtualbox/virtualbox-6.0.6.ebuild
2001 new file mode 100644
2002 index 00000000000..8c7e76ae253
2003 --- /dev/null
2004 +++ b/app-emulation/virtualbox/virtualbox-6.0.6.ebuild
2005 @@ -0,0 +1,485 @@
2006 +# Copyright 1999-2019 Gentoo Authors
2007 +# Distributed under the terms of the GNU General Public License v2
2008 +
2009 +EAPI=6
2010 +
2011 +PYTHON_COMPAT=( python{2_7,3_{5,6,7}} )
2012 +inherit flag-o-matic java-pkg-opt-2 linux-info pax-utils python-single-r1 tmpfiles toolchain-funcs udev xdg
2013 +
2014 +MY_PV="${PV/beta/BETA}"
2015 +MY_PV="${MY_PV/rc/RC}"
2016 +MY_P=VirtualBox-${MY_PV}
2017 +
2018 +DESCRIPTION="Family of powerful x86 virtualization products for enterprise and home use"
2019 +HOMEPAGE="https://www.virtualbox.org/"
2020 +SRC_URI="https://download.virtualbox.org/virtualbox/${MY_PV}/${MY_P}.tar.bz2
2021 + https://dev.gentoo.org/~polynomial-c/${PN}/patchsets/${PN}-6.0.0_beta2-patches-01.tar.xz"
2022 +
2023 +LICENSE="GPL-2"
2024 +SLOT="0"
2025 +[[ "${PV}" == *_beta* ]] || [[ "${PV}" == *_rc* ]] || \
2026 +KEYWORDS="~amd64 ~x86"
2027 +IUSE="alsa debug doc headless java libressl lvm +opus pam pax_kernel pulseaudio +opengl python +qt5 +sdk +udev vboxwebsrv vnc"
2028 +
2029 +RDEPEND="!app-emulation/virtualbox-bin
2030 + ~app-emulation/virtualbox-modules-${PV}
2031 + dev-libs/libIDL
2032 + >=dev-libs/libxslt-1.1.19
2033 + net-misc/curl
2034 + dev-libs/libxml2
2035 + media-libs/libpng:0=
2036 + media-libs/libvpx:0=
2037 + sys-libs/zlib:=
2038 + !headless? (
2039 + media-libs/libsdl:0[X,video]
2040 + x11-libs/libX11
2041 + x11-libs/libxcb:=
2042 + x11-libs/libXcursor
2043 + x11-libs/libXext
2044 + x11-libs/libXmu
2045 + x11-libs/libXt
2046 + opengl? ( virtual/opengl media-libs/freeglut )
2047 + qt5? (
2048 + dev-qt/qtcore:5
2049 + dev-qt/qtgui:5
2050 + dev-qt/qtprintsupport:5
2051 + dev-qt/qtwidgets:5
2052 + dev-qt/qtx11extras:5
2053 + opengl? ( dev-qt/qtopengl:5 )
2054 + x11-libs/libXinerama
2055 + )
2056 + )
2057 + libressl? ( dev-libs/libressl:= )
2058 + !libressl? ( dev-libs/openssl:0= )
2059 + lvm? ( sys-fs/lvm2 )
2060 + opus? ( media-libs/opus )
2061 + udev? ( >=virtual/udev-171 )
2062 + vnc? ( >=net-libs/libvncserver-0.9.9 )"
2063 +DEPEND="${RDEPEND}
2064 + >=dev-util/kbuild-0.1.9998.3127
2065 + >=dev-lang/yasm-0.6.2
2066 + sys-devel/bin86
2067 + sys-libs/libcap
2068 + sys-power/iasl
2069 + virtual/pkgconfig
2070 + alsa? ( >=media-libs/alsa-lib-1.0.13 )
2071 + doc? (
2072 + app-text/docbook-sgml-dtd:4.4
2073 + dev-texlive/texlive-basic
2074 + dev-texlive/texlive-latex
2075 + dev-texlive/texlive-latexrecommended
2076 + dev-texlive/texlive-latexextra
2077 + dev-texlive/texlive-fontsrecommended
2078 + dev-texlive/texlive-fontsextra
2079 + )
2080 + !headless? ( x11-libs/libXinerama )
2081 + java? ( >=virtual/jdk-1.6 )
2082 + pam? ( sys-libs/pam )
2083 + pax_kernel? ( sys-apps/elfix )
2084 + pulseaudio? ( media-sound/pulseaudio )
2085 + qt5? ( dev-qt/linguist-tools:5 )
2086 + vboxwebsrv? ( net-libs/gsoap[-gnutls(-)] )
2087 + ${PYTHON_DEPS}"
2088 +RDEPEND="${RDEPEND}
2089 + java? ( >=virtual/jre-1.6 )"
2090 +
2091 +QA_TEXTRELS_x86="usr/lib/virtualbox-ose/VBoxGuestPropSvc.so
2092 + usr/lib/virtualbox/VBoxSDL.so
2093 + usr/lib/virtualbox/VBoxSharedFolders.so
2094 + usr/lib/virtualbox/VBoxDD2.so
2095 + usr/lib/virtualbox/VBoxOGLrenderspu.so
2096 + usr/lib/virtualbox/VBoxPython.so
2097 + usr/lib/virtualbox/VBoxDD.so
2098 + usr/lib/virtualbox/VBoxDDU.so
2099 + usr/lib/virtualbox/VBoxREM64.so
2100 + usr/lib/virtualbox/VBoxSharedClipboard.so
2101 + usr/lib/virtualbox/VBoxHeadless.so
2102 + usr/lib/virtualbox/VBoxRT.so
2103 + usr/lib/virtualbox/VBoxREM.so
2104 + usr/lib/virtualbox/VBoxSettings.so
2105 + usr/lib/virtualbox/VBoxKeyboard.so
2106 + usr/lib/virtualbox/VBoxSharedCrOpenGL.so
2107 + usr/lib/virtualbox/VBoxVMM.so
2108 + usr/lib/virtualbox/VirtualBox.so
2109 + usr/lib/virtualbox/VBoxOGLhosterrorspu.so
2110 + usr/lib/virtualbox/components/VBoxC.so
2111 + usr/lib/virtualbox/components/VBoxSVCM.so
2112 + usr/lib/virtualbox/components/VBoxDDU.so
2113 + usr/lib/virtualbox/components/VBoxRT.so
2114 + usr/lib/virtualbox/components/VBoxREM.so
2115 + usr/lib/virtualbox/components/VBoxVMM.so
2116 + usr/lib/virtualbox/VBoxREM32.so
2117 + usr/lib/virtualbox/VBoxPython2_7.so
2118 + usr/lib/virtualbox/VBoxXPCOMC.so
2119 + usr/lib/virtualbox/VBoxOGLhostcrutil.so
2120 + usr/lib/virtualbox/VBoxNetDHCP.so
2121 + usr/lib/virtualbox/VBoxNetNAT.so"
2122 +
2123 +S="${WORKDIR}/${MY_P}"
2124 +
2125 +REQUIRED_USE="
2126 + java? ( sdk )
2127 + python? ( sdk )
2128 + vboxwebsrv? ( java )
2129 + ${PYTHON_REQUIRED_USE}
2130 +"
2131 +
2132 +pkg_pretend() {
2133 + if ! use headless && ! use qt5 ; then
2134 + einfo "No USE=\"qt5\" selected, this build will not include any Qt frontend."
2135 + elif use headless && use qt5 ; then
2136 + einfo "You selected USE=\"headless qt5\", defaulting to"
2137 + einfo "USE=\"headless\", this build will not include any X11/Qt frontend."
2138 + fi
2139 +
2140 + if ! use opengl ; then
2141 + einfo "No USE=\"opengl\" selected, this build will lack"
2142 + einfo "the OpenGL feature."
2143 + fi
2144 + if ! use python ; then
2145 + einfo "You have disabled the \"python\" USE flag. This will only"
2146 + einfo "disable the python bindings being installed."
2147 + fi
2148 +}
2149 +
2150 +pkg_setup() {
2151 + java-pkg-opt-2_pkg_setup
2152 + python-single-r1_pkg_setup
2153 +
2154 + tc-ld-disable-gold #bug 488176
2155 + tc-export CC CXX LD AR RANLIB
2156 + export HOST_CC="$(tc-getBUILD_CC)"
2157 +}
2158 +
2159 +src_prepare() {
2160 + # Remove shipped binaries (kBuild,yasm), see bug #232775
2161 + rm -r kBuild/bin tools || die
2162 +
2163 + # Replace pointless GCC version check with something less stupid.
2164 + # This is needed for the qt5 version check.
2165 + sed -e 's@^check_gcc$@cc_maj="$(gcc -dumpversion | cut -d. -f1)" ; cc_min="$(gcc -dumpversion | cut -d. -f2)"@' \
2166 + -i configure || die
2167 +
2168 + # Disable things unused or split into separate ebuilds
2169 + sed -e "s@MY_LIBDIR@$(get_libdir)@" \
2170 + "${FILESDIR}"/${PN}-5-localconfig > LocalConfig.kmk || die
2171 +
2172 + # Respect LDFLAGS
2173 + sed -e "s@_LDFLAGS\.${ARCH}*.*=@& ${LDFLAGS}@g" \
2174 + -i Config.kmk src/libs/xpcom18a4/Config.kmk || die
2175 +
2176 + # Do not use hard-coded ld (related to bug #488176)
2177 + sed -e '/QUIET)ld /s@ld @$(LD) @' \
2178 + -i src/VBox/Devices/PC/ipxe/Makefile.kmk || die
2179 +
2180 + # Use PAM only when pam USE flag is enbaled (bug #376531)
2181 + if ! use pam ; then
2182 + elog "Disabling PAM removes the possibility to use the VRDP features."
2183 + sed -i 's@^.*VBOX_WITH_PAM@#VBOX_WITH_PAM@' Config.kmk || die
2184 + sed -i 's@\(.*/auth/Makefile.kmk.*\)@#\1@' \
2185 + src/VBox/HostServices/Makefile.kmk || die
2186 + fi
2187 +
2188 + # add correct java path
2189 + if use java ; then
2190 + sed "s@/usr/lib/jvm/java-6-sun@$(java-config -O)@" \
2191 + -i "${S}"/Config.kmk || die
2192 + java-pkg-opt-2_src_prepare
2193 + fi
2194 +
2195 + # Only add nopie patch when we're on hardened
2196 + if gcc-specs-pie ; then
2197 + eapply "${FILESDIR}/050_virtualbox-5.2.8-nopie.patch"
2198 + fi
2199 +
2200 + # Only add paxmark patch when we're on pax_kernel
2201 + if use pax_kernel ; then
2202 + eapply "${FILESDIR}"/virtualbox-5.2.8-paxmark-bldprogs.patch
2203 + fi
2204 +
2205 + rm "${WORKDIR}/patches/010_virtualbox-5.2.12-qt511.patch" || die
2206 + eapply "${WORKDIR}/patches"
2207 +
2208 + eapply_user
2209 +}
2210 +
2211 +doecho() {
2212 + echo "$@"
2213 + "$@" || die
2214 +}
2215 +
2216 +src_configure() {
2217 + local myconf=(
2218 + --with-gcc="$(tc-getCC)"
2219 + --with-g++="$(tc-getCXX)"
2220 + --disable-dbus
2221 + --disable-kmods
2222 + $(usex alsa '' --disable-alsa)
2223 + $(usex debug --build-debug '')
2224 + $(usex doc '' --disable-docs)
2225 + $(usex java '' --disable-java)
2226 + $(usex lvm '' --disable-devmapper)
2227 + $(usex opus '' --disable-libopus)
2228 + $(usex pulseaudio '' --disable-pulse)
2229 + $(usex python '' --disable-python)
2230 + $(usex vboxwebsrv --enable-webservice '')
2231 + $(usex vnc --enable-vnc '')
2232 + )
2233 + if ! use headless ; then
2234 + myconf+=(
2235 + $(usex opengl '' --disable-opengl)
2236 + $(usex qt5 '' --disable-qt)
2237 + )
2238 + else
2239 + myconf+=(
2240 + --build-headless
2241 + --disable-opengl
2242 + )
2243 + fi
2244 + if use amd64 && ! has_multilib_profile ; then
2245 + myconf+=( --disable-vmmraw )
2246 + fi
2247 + # not an autoconf script
2248 + doecho ./configure ${myconf[@]}
2249 +}
2250 +
2251 +src_compile() {
2252 + source ./env.sh || die
2253 +
2254 + # Force kBuild to respect C[XX]FLAGS and MAKEOPTS (bug #178529)
2255 + MAKEJOBS=$(grep -Eo '(\-j|\-\-jobs)(=?|[[:space:]]*)[[:digit:]]+' <<< ${MAKEOPTS}) #'
2256 + MAKELOAD=$(grep -Eo '(\-l|\-\-load-average)(=?|[[:space:]]*)[[:digit:]]+' <<< ${MAKEOPTS}) #'
2257 + MAKEOPTS="${MAKEJOBS} ${MAKELOAD}"
2258 + MAKE="kmk" emake \
2259 + VBOX_BUILD_PUBLISHER=_Gentoo \
2260 + TOOL_GCC3_CC="$(tc-getCC)" TOOL_GCC3_CXX="$(tc-getCXX)" \
2261 + TOOL_GCC3_AS="$(tc-getCC)" TOOL_GCC3_AR="$(tc-getAR)" \
2262 + TOOL_GCC3_LD="$(tc-getCXX)" TOOL_GCC3_LD_SYSMOD="$(tc-getLD)" \
2263 + TOOL_GCC3_CFLAGS="${CFLAGS}" TOOL_GCC3_CXXFLAGS="${CXXFLAGS}" \
2264 + VBOX_GCC_OPT="${CXXFLAGS}" \
2265 + TOOL_YASM_AS=yasm KBUILD_VERBOSE=2 \
2266 + all
2267 +}
2268 +
2269 +src_install() {
2270 + local binpath="release"
2271 + use debug && binpath="debug"
2272 + cd "${S}"/out/linux.${ARCH}/${binpath}/bin || die
2273 +
2274 + local vbox_inst_path="/usr/$(get_libdir)/${PN}" each size ico icofile
2275 +
2276 + vbox_inst() {
2277 + local binary="${1}"
2278 + local perms="${2:-0750}"
2279 + local path="${3:-${vbox_inst_path}}"
2280 +
2281 + [[ -n "${binary}" ]] || die "vbox_inst: No binary given!"
2282 + [[ ${perms} =~ ^[[:digit:]]+{4}$ ]] || die "vbox_inst: perms must consist of four digits."
2283 +
2284 + insinto ${path}
2285 + doins ${binary}
2286 + fowners root:vboxusers ${path}/${binary}
2287 + fperms ${perms} ${path}/${binary}
2288 + }
2289 +
2290 + # Create configuration files
2291 + insinto /etc/vbox
2292 + newins "${FILESDIR}/${PN}-4-config" vbox.cfg
2293 +
2294 + # Set the correct libdir
2295 + sed \
2296 + -e "s@MY_LIBDIR@$(get_libdir)@" \
2297 + -i "${ED%/}"/etc/vbox/vbox.cfg || die "vbox.cfg sed failed"
2298 +
2299 + # Install the wrapper script
2300 + exeinto ${vbox_inst_path}
2301 + newexe "${FILESDIR}/${PN}-ose-6-wrapper" "VBox"
2302 + fowners root:vboxusers ${vbox_inst_path}/VBox
2303 + fperms 0750 ${vbox_inst_path}/VBox
2304 +
2305 + # Install binaries and libraries
2306 + insinto ${vbox_inst_path}
2307 + doins -r components
2308 +
2309 + # *.rc files for x86_64 are only available on multilib systems
2310 + local rcfiles="*.rc"
2311 + if use amd64 && ! has_multilib_profile ; then
2312 + rcfiles=""
2313 + fi
2314 + for each in VBox{Autostart,BalloonCtrl,BugReport,CpuReport,ExtPackHelperApp,Manage,SVC,Tunctl,VMMPreload,XPCOMIPCD} *so *r0 ${rcfiles} iPxeBaseBin ; do
2315 + vbox_inst ${each}
2316 + done
2317 +
2318 + # These binaries need to be suid root.
2319 + for each in VBox{Headless,Net{AdpCtl,DHCP,NAT}} ; do
2320 + vbox_inst ${each} 4750
2321 + done
2322 +
2323 + # Install EFI Firmware files (bug #320757)
2324 + for each in VBoxEFI{32,64}.fd ; do
2325 + vbox_inst ${each} 0644
2326 + done
2327 +
2328 + # VBoxSVC and VBoxManage need to be pax-marked (bug #403453)
2329 + # VBoxXPCOMIPCD (bug #524202)
2330 + for each in VBox{Headless,Manage,SVC,XPCOMIPCD} ; do
2331 + pax-mark -m "${ED%/}"${vbox_inst_path}/${each}
2332 + done
2333 +
2334 + # Symlink binaries to the shipped wrapper
2335 + for each in vbox{autostart,balloonctrl,bugreport,headless,manage} VBox{Autostart,BalloonCtrl,BugReport,Headless,Manage,VRDP} ; do
2336 + dosym ${vbox_inst_path}/VBox /usr/bin/${each}
2337 + done
2338 + dosym ${vbox_inst_path}/VBoxTunctl /usr/bin/VBoxTunctl
2339 +
2340 + if use pam ; then
2341 + # VRDPAuth only works with this (bug #351949)
2342 + dosym VBoxAuth.so ${vbox_inst_path}/VRDPAuth.so
2343 + fi
2344 +
2345 + # set an env-variable for 3rd party tools
2346 + echo -n "VBOX_APP_HOME=${vbox_inst_path}" > "${T}/90virtualbox"
2347 + doenvd "${T}/90virtualbox"
2348 +
2349 + if ! use headless ; then
2350 + vbox_inst rdesktop-vrdp
2351 + vbox_inst VBoxSDL 4750
2352 + pax-mark -m "${ED%/}"${vbox_inst_path}/VBoxSDL
2353 +
2354 + for each in vboxsdl VBoxSDL ; do
2355 + dosym ${vbox_inst_path}/VBox /usr/bin/${each}
2356 + done
2357 +
2358 + if use qt5 ; then
2359 + vbox_inst VirtualBox
2360 + vbox_inst VirtualBoxVM 4750
2361 + for each in VirtualBox{,VM} ; do
2362 + pax-mark -m "${ED%/}"${vbox_inst_path}/${each}
2363 + done
2364 +
2365 + if use opengl ; then
2366 + vbox_inst VBoxTestOGL
2367 + pax-mark -m "${ED%/}"${vbox_inst_path}/VBoxTestOGL
2368 + fi
2369 +
2370 + for each in virtualbox{,vm} VirtualBox{,VM} ; do
2371 + dosym ${vbox_inst_path}/VBox /usr/bin/${each}
2372 + done
2373 +
2374 + insinto /usr/share/${PN}
2375 + doins -r nls
2376 + doins -r UnattendedTemplates
2377 +
2378 + domenu ${PN}.desktop
2379 + fi
2380 +
2381 + pushd "${S}"/src/VBox/Artwork/OSE &>/dev/null || die
2382 + for size in 16 32 48 64 128 ; do
2383 + newicon -s ${size} ${PN}-${size}px.png ${PN}.png
2384 + done
2385 + newicon ${PN}-48px.png ${PN}.png
2386 + doicon -s scalable ${PN}.svg
2387 + popd &>/dev/null || die
2388 + pushd "${S}"/src/VBox/Artwork/other &>/dev/null || die
2389 + for size in 16 24 32 48 64 72 96 128 256 512 ; do
2390 + for ico in hdd ova ovf vbox{,-extpack} vdi vdh vmdk ; do
2391 + icofile="${PN}-${ico}-${size}px.png"
2392 + if [[ -f "${icofile}" ]] ; then
2393 + newicon -s ${size} ${icofile} ${PN}-${ico}.png
2394 + fi
2395 + done
2396 + done
2397 + popd &>/dev/null || die
2398 + fi
2399 +
2400 + if use lvm ; then
2401 + vbox_inst VBoxVolInfo 4750
2402 + dosym ${vbox_inst_path}/VBoxVolInfo /usr/bin/VBoxVolInfo
2403 + fi
2404 +
2405 + if use sdk ; then
2406 + insinto ${vbox_inst_path}
2407 + doins -r sdk
2408 +
2409 + if use java ; then
2410 + java-pkg_regjar "${ED%/}/${vbox_inst_path}/sdk/bindings/xpcom/java/vboxjxpcom.jar"
2411 + java-pkg_regso "${ED%/}/${vbox_inst_path}/libvboxjxpcom.so"
2412 + fi
2413 + fi
2414 +
2415 + if use udev ; then
2416 + # New way of handling USB device nodes for VBox (bug #356215)
2417 + local udevdir="$(get_udevdir)"
2418 + insinto ${udevdir}
2419 + doins VBoxCreateUSBNode.sh
2420 + fowners root:vboxusers ${udevdir}/VBoxCreateUSBNode.sh
2421 + fperms 0750 ${udevdir}/VBoxCreateUSBNode.sh
2422 + insinto ${udevdir}/rules.d
2423 + sed "s@%UDEVDIR%@${udevdir}@" "${FILESDIR}"/10-virtualbox.rules \
2424 + > "${T}"/10-virtualbox.rules || die
2425 + doins "${T}"/10-virtualbox.rules
2426 + fi
2427 +
2428 + if use vboxwebsrv ; then
2429 + vbox_inst vboxwebsrv
2430 + dosym ${vbox_inst_path}/VBox /usr/bin/vboxwebsrv
2431 + newinitd "${FILESDIR}"/vboxwebsrv-initd vboxwebsrv
2432 + newconfd "${FILESDIR}"/vboxwebsrv-confd vboxwebsrv
2433 + fi
2434 +
2435 + if use doc ; then
2436 + dodoc UserManual.pdf
2437 + fi
2438 +
2439 + newtmpfiles "${FILESDIR}"/${PN}-vboxusb_tmpfilesd ${PN}-vboxusb.conf
2440 +}
2441 +
2442 +pkg_preinst() {
2443 + xdg_pkg_preinst
2444 +}
2445 +
2446 +pkg_postinst() {
2447 + xdg_pkg_postinst
2448 +
2449 + if use udev ; then
2450 + udevadm control --reload-rules \
2451 + && udevadm trigger --subsystem-match=usb
2452 + fi
2453 +
2454 + tmpfiles_process /usr/lib/tmpfiles.d/virtualbox-vboxusb.conf
2455 +
2456 + if ! use headless && use qt5 ; then
2457 + elog "To launch VirtualBox just type: \"virtualbox\"."
2458 + fi
2459 + elog "You must be in the vboxusers group to use VirtualBox."
2460 + elog ""
2461 + elog "The latest user manual is available for download at:"
2462 + elog "http://download.virtualbox.org/virtualbox/${PV}/UserManual.pdf"
2463 + elog ""
2464 + elog "For advanced networking setups you should emerge:"
2465 + elog "net-misc/bridge-utils and sys-apps/usermode-utilities"
2466 + elog ""
2467 + elog "Starting with version 4.0.0, ${PN} has USB-1 support."
2468 + elog "For USB-2 support, PXE-boot ability and VRDP support please emerge"
2469 + elog " app-emulation/virtualbox-extpack-oracle"
2470 + elog "package."
2471 + elog "Starting with version 5.0.0, ${PN} no longer has the \"additions\" and"
2472 + elog "the \"extension\" USE flag. For installation of the guest additions ISO"
2473 + elog "image, please emerge"
2474 + elog " app-emulation/virtualbox-additions"
2475 + elog "and for the USB2, USB3, VRDP and PXE boot ROM modules, please emerge"
2476 + elog " app-emulation/virtualbox-extpack-oracle"
2477 + if ! use udev ; then
2478 + elog ""
2479 + elog "WARNING!"
2480 + elog "Without USE=udev, USB devices will likely not work in ${PN}."
2481 + elif [ -e "${ROOT%/}/etc/udev/rules.d/10-virtualbox.rules" ] ; then
2482 + elog ""
2483 + elog "Please remove \"${ROOT%/}/etc/udev/rules.d/10-virtualbox.rules\""
2484 + elog "or else USB in ${PN} won't work."
2485 + fi
2486 +}
2487 +
2488 +pkg_postrm() {
2489 + xdg_pkg_postrm
2490 +}