summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wendler <polynomial-c@gentoo.org>2019-05-18 16:08:09 +0200
committerLars Wendler <polynomial-c@gentoo.org>2019-05-18 16:12:42 +0200
commit8ede137e839be3111053d8ae93843ffdb816676b (patch)
tree4b306bb47f0528f8f63b471d3e450af1b5f0746b /app-emulation/virtualbox-modules/virtualbox-modules-5.2.30.ebuild
parentsys-kernel/gentoo-sources: Linux patch 4.9.177 (diff)
downloadgentoo-8ede137e839be3111053d8ae93843ffdb816676b.tar.gz
gentoo-8ede137e839be3111053d8ae93843ffdb816676b.tar.bz2
gentoo-8ede137e839be3111053d8ae93843ffdb816676b.zip
virtualbox packages: Bump to versions 5.2.30 and 6.0.8
Package-Manager: Portage-2.3.66, Repoman-2.3.12 Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
Diffstat (limited to 'app-emulation/virtualbox-modules/virtualbox-modules-5.2.30.ebuild')
-rw-r--r--app-emulation/virtualbox-modules/virtualbox-modules-5.2.30.ebuild51
1 files changed, 51 insertions, 0 deletions
diff --git a/app-emulation/virtualbox-modules/virtualbox-modules-5.2.30.ebuild b/app-emulation/virtualbox-modules/virtualbox-modules-5.2.30.ebuild
new file mode 100644
index 000000000000..c4b01a1b3f96
--- /dev/null
+++ b/app-emulation/virtualbox-modules/virtualbox-modules-5.2.30.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+# XXX: the tarball here is just the kernel modules split out of the binary
+# package that comes from virtualbox-bin
+
+EAPI=7
+
+inherit linux-mod user
+
+MY_P="vbox-kernel-module-src-${PV}"
+DESCRIPTION="Kernel Modules for Virtualbox"
+HOMEPAGE="https://www.virtualbox.org/"
+SRC_URI="https://dev.gentoo.org/~polynomial-c/virtualbox/${MY_P}.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="pax_kernel"
+
+RDEPEND="!=app-emulation/virtualbox-9999"
+
+S="${WORKDIR}"
+
+BUILD_TARGETS="all"
+BUILD_TARGET_ARCH="${ARCH}"
+MODULE_NAMES="vboxdrv(misc:${S}) vboxnetflt(misc:${S}) vboxnetadp(misc:${S}) vboxpci(misc:${S})"
+
+pkg_setup() {
+ enewgroup vboxusers
+ linux-mod_pkg_setup
+ BUILD_PARAMS="CC=$(tc-getBUILD_CC) KERN_DIR=${KV_DIR} KERN_VER=${KV_FULL} O=${KV_OUT_DIR} V=1 KBUILD_VERBOSE=1"
+}
+
+src_prepare() {
+ if use pax_kernel && kernel_is -ge 3 0 0 ; then
+ eapply -p0 "${FILESDIR}"/${PN}-5.2.8-pax-const.patch
+ fi
+
+ default
+}
+
+src_install() {
+ linux-mod_src_install
+ insinto /usr/lib/modules-load.d/
+ doins "${FILESDIR}"/virtualbox.conf
+}
+
+pkg_postinst() {
+ linux-mod_pkg_postinst
+}