summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wendler <polynomial-c@gentoo.org>2019-07-17 10:11:34 +0200
committerLars Wendler <polynomial-c@gentoo.org>2019-07-17 10:16:29 +0200
commit04be81dcf8cc790dc66bb488b975337390c046fc (patch)
tree521f7f72a26d8038b2b4c60fec20a962efe7a8ab /app-emulation/virtualbox-modules/virtualbox-modules-6.0.10.ebuild
parentdev-ruby/octokit: cleanup (diff)
downloadgentoo-04be81dcf8cc790dc66bb488b975337390c046fc.tar.gz
gentoo-04be81dcf8cc790dc66bb488b975337390c046fc.tar.bz2
gentoo-04be81dcf8cc790dc66bb488b975337390c046fc.zip
virtualbox packages: Bump to versions 5.2.32 and 6.0.10
Package-Manager: Portage-2.3.69, Repoman-2.3.16 Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
Diffstat (limited to 'app-emulation/virtualbox-modules/virtualbox-modules-6.0.10.ebuild')
-rw-r--r--app-emulation/virtualbox-modules/virtualbox-modules-6.0.10.ebuild52
1 files changed, 52 insertions, 0 deletions
diff --git a/app-emulation/virtualbox-modules/virtualbox-modules-6.0.10.ebuild b/app-emulation/virtualbox-modules/virtualbox-modules-6.0.10.ebuild
new file mode 100644
index 000000000000..7257cb3b5812
--- /dev/null
+++ b/app-emulation/virtualbox-modules/virtualbox-modules-6.0.10.ebuild
@@ -0,0 +1,52 @@
+# 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"
+[[ "${PV}" == *_beta* ]] || [[ "${PV}" == *_rc* ]] || \
+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
+}