1 |
commit: 746b2988015154fdcfbfd47cce969ad3e06e2cba |
2 |
Author: Viorel Munteanu <ceamac.paragon <AT> gmail <DOT> com> |
3 |
AuthorDate: Sun Sep 4 08:19:55 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Sep 5 01:19:02 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=746b2988 |
7 |
|
8 |
app-emulation/virtualbox-modules: add 6.1.38 |
9 |
|
10 |
Signed-off-by: Viorel Munteanu <ceamac.paragon <AT> gmail.com> |
11 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
12 |
|
13 |
app-emulation/virtualbox-modules/Manifest | 1 + |
14 |
.../virtualbox-modules-6.1.38.ebuild | 65 ++++++++++++++++++++++ |
15 |
2 files changed, 66 insertions(+) |
16 |
|
17 |
diff --git a/app-emulation/virtualbox-modules/Manifest b/app-emulation/virtualbox-modules/Manifest |
18 |
index acb9c54c56fd..e76d749db840 100644 |
19 |
--- a/app-emulation/virtualbox-modules/Manifest |
20 |
+++ b/app-emulation/virtualbox-modules/Manifest |
21 |
@@ -1,3 +1,4 @@ |
22 |
DIST vbox-kernel-module-src-6.1.32.tar.xz 675300 BLAKE2B fc843779ae9348203f2528009880e2d2dde65102c8be1837eb3a362e2703f9ecf54f7a10939318cbecbb41b4790a8b7d56c98ad82a4e83592b4c5491af0772b5 SHA512 e1c00be4fe2a0447c30ae0d380fc7a78fec1c3f52fb0cf0d20ccefcd174bf11097a91aa862ef8753be012e546a31555f5be9c1136cbaefc2240708b3adde7e5b |
23 |
DIST vbox-kernel-module-src-6.1.34.tar.xz 675236 BLAKE2B 45385b4e60f7f5da8ebd2bb20ebc706ec8ac48e698dc62740ead31bd77e059bfb2980a83f8781832fe8e5faaade88db97c73f25096724ae4f29aba6daf04f7a0 SHA512 313dda056cb5e4020bfc9bafca2d05ab628aa740d174b9457f860ce0cd8eccaf557798cbb5fc1efeb36dc0f1f0320034ee86e48da03b33779eda1093b50d6c64 |
24 |
DIST vbox-kernel-module-src-6.1.36.tar.xz 678624 BLAKE2B b09a9f4281287dc3a356e2af77fa024f06f64db41eac10efe8cf2b4ab39df292fac13a75247bdfa8b22dc3fbbc3747d217651da11c4788cfd08a2b6d775bb4f7 SHA512 b00c99a2db57c78c538539afc900ffa1e4729727f39ed68565a18c3fcbc28080d1ca340ee16f45e5616f535ce38ba646020a5373acc124a15821287fa29ddd52 |
25 |
+DIST vbox-kernel-module-src-6.1.38.tar.xz 678320 BLAKE2B 02fce9d8436e5e05cefae5e947c814470ff2898fa5ced2b734a7570e42fde2a84ecc98cbd2a3f0254443af1dd8131d541d565ecc4eb6a57ca88f7c638ed4994d SHA512 ef933e68942b847bd17ae9173d8c9963e12ffba73fe1d049e2fe9af10f720cc269ffdf7d2341ab75374f4737f4521c24316786574c0c71feb153a430c744eb0a |
26 |
|
27 |
diff --git a/app-emulation/virtualbox-modules/virtualbox-modules-6.1.38.ebuild b/app-emulation/virtualbox-modules/virtualbox-modules-6.1.38.ebuild |
28 |
new file mode 100644 |
29 |
index 000000000000..d293415c5d91 |
30 |
--- /dev/null |
31 |
+++ b/app-emulation/virtualbox-modules/virtualbox-modules-6.1.38.ebuild |
32 |
@@ -0,0 +1,65 @@ |
33 |
+# Copyright 2022 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+# XXX: the tarball here is just the kernel modules split out of the binary |
37 |
+# package that comes from VirtualBox-*.run |
38 |
+ |
39 |
+EAPI=8 |
40 |
+ |
41 |
+inherit linux-mod toolchain-funcs |
42 |
+ |
43 |
+MY_P="vbox-kernel-module-src-${PV}" |
44 |
+DESCRIPTION="Kernel Modules for Virtualbox" |
45 |
+HOMEPAGE="https://www.virtualbox.org/" |
46 |
+SRC_URI="https://github.com/ceamac/virtualbox-modules-dist/releases/download/v${PV}/${MY_P}.tar.xz" |
47 |
+ |
48 |
+LICENSE="GPL-2" |
49 |
+SLOT="0/$(ver_cut 1-2)" |
50 |
+[[ "${PV}" == *_beta* ]] || [[ "${PV}" == *_rc* ]] || \ |
51 |
+KEYWORDS="~amd64" |
52 |
+IUSE="pax-kernel" |
53 |
+ |
54 |
+S="${WORKDIR}" |
55 |
+ |
56 |
+BUILD_TARGETS="all" |
57 |
+MODULE_NAMES="vboxdrv(misc:${S}) vboxnetflt(misc:${S}) vboxnetadp(misc:${S})" |
58 |
+MODULESD_VBOXDRV_ENABLED="yes" |
59 |
+MODULESD_VBOXNETADP_ENABLED="no" |
60 |
+MODULESD_VBOXNETFLT_ENABLED="no" |
61 |
+ |
62 |
+pkg_setup() { |
63 |
+ linux-mod_pkg_setup |
64 |
+ BUILD_PARAMS="CC=\"$(tc-getBUILD_CC)\" KERN_DIR=${KV_DIR} KERN_VER=${KV_FULL} O=${KV_OUT_DIR} V=1 KBUILD_VERBOSE=1" |
65 |
+ if linux_chkconfig_present CC_IS_CLANG; then |
66 |
+ ewarn "Warning: building ${PN} with a clang-built kernel is experimental." |
67 |
+ |
68 |
+ BUILD_PARAMS+=' CC=${CHOST}-clang' |
69 |
+ if linux_chkconfig_present LD_IS_LLD; then |
70 |
+ BUILD_PARAMS+=' LD=ld.lld' |
71 |
+ if linux_chkconfig_present LTO_CLANG_THIN; then |
72 |
+ # kernel enables cache by default leading to sandbox violations |
73 |
+ BUILD_PARAMS+=' ldflags-y=--thinlto-cache-dir= LDFLAGS_MODULE=--thinlto-cache-dir=' |
74 |
+ fi |
75 |
+ fi |
76 |
+ fi |
77 |
+} |
78 |
+ |
79 |
+src_prepare() { |
80 |
+ if use pax-kernel && kernel_is -ge 3 0 0 ; then |
81 |
+ eapply -p0 "${FILESDIR}"/${PN}-5.2.8-pax-const.patch |
82 |
+ fi |
83 |
+ |
84 |
+ default |
85 |
+} |
86 |
+ |
87 |
+src_install() { |
88 |
+ linux-mod_src_install |
89 |
+ insinto /usr/lib/modules-load.d/ |
90 |
+ newins "${FILESDIR}"/virtualbox.conf-r1 virtualbox.conf |
91 |
+} |
92 |
+ |
93 |
+pkg_postinst() { |
94 |
+ # Remove vboxpci.ko from current running kernel |
95 |
+ find /lib/modules/${KV_FULL}/misc -type f -name "vboxpci.ko" -delete |
96 |
+ linux-mod_pkg_postinst |
97 |
+} |