diff options
Diffstat (limited to 'sys-kernel/virtualbox-modules-dkms')
3 files changed, 61 insertions, 0 deletions
diff --git a/sys-kernel/virtualbox-modules-dkms/Manifest b/sys-kernel/virtualbox-modules-dkms/Manifest new file mode 100644 index 00000000..76141d3a --- /dev/null +++ b/sys-kernel/virtualbox-modules-dkms/Manifest @@ -0,0 +1 @@ +DIST vbox-kernel-module-src-5.1.8.tar.xz 612740 SHA256 a9448ae2cb0468b9dbc94cbcdafc7d8c49787bc6246e69d9cc905dfe61d0f3c8 SHA512 56ebaaab238d1a4b9b632cea9a9653849c88af23fff64bf6fb7b96b9a0890108f83fca33562abbad51358dd5757c57b619beb466f703bb2bf1d103631655ec45 WHIRLPOOL 396a44167f337e9a0acd1cee2cd325d493486786976ce9a34f44eee7fb2443730fc57a07a7e89f0f190a8cc6f5bc89692066af44a34a86a61b63a5c20e112cba diff --git a/sys-kernel/virtualbox-modules-dkms/files/dkms.conf b/sys-kernel/virtualbox-modules-dkms/files/dkms.conf new file mode 100644 index 00000000..428afdb1 --- /dev/null +++ b/sys-kernel/virtualbox-modules-dkms/files/dkms.conf @@ -0,0 +1,15 @@ +PACKAGE_NAME="virtualbox-drivers-dkms" +PACKAGE_VERSION="5.1.8" +AUTOINSTALL="yes" + +MAKE[0]="'make' -j`nproc` KERNEL_UNAME=${kernelver}" + +BUILT_MODULE_NAME[0]="vboxdrv" +DEST_MODULE_LOCATION[0]="/kernel/misc" +BUILT_MODULE_NAME[1]="vboxnetflt" +DEST_MODULE_LOCATION[1]="/kernel/misc" +BUILT_MODULE_NAME[2]="vboxnetadp" +DEST_MODULE_LOCATION[2]="/kernel/misc" +BUILT_MODULE_NAME[3]="vboxpci" +DEST_MODULE_LOCATION[3]="/kernel/misc" + diff --git a/sys-kernel/virtualbox-modules-dkms/virtualbox-modules-dkms-5.1.8.ebuild b/sys-kernel/virtualbox-modules-dkms/virtualbox-modules-dkms-5.1.8.ebuild new file mode 100644 index 00000000..00923566 --- /dev/null +++ b/sys-kernel/virtualbox-modules-dkms/virtualbox-modules-dkms-5.1.8.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils + +MY_P=vbox-kernel-module-src-${PV} +DESCRIPTION="Kernel Modules source for Virtualbox" +HOMEPAGE="http://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="" + +DEPEND="sys-kernel/dkms" +RDEPEND="${DEPEND}" + +S=${WORKDIR} + +src_prepare() { + grep -lR linux/autoconf.h * | xargs sed -i -e 's:<linux/autoconf.h>:<generated/autoconf.h>:' +} + +src_compile() { + : +} + +src_install() { + cp ${FILESDIR}/dkms.conf ${S} + dodir /usr/src/${P} + insinto /usr/src/${P} + doins -r ${S}/* +} + +pkg_postinst() { + dkms add ${PN}/${PV} +} + +pkg_prerm() { + dkms remove ${PN}/${PV} --all +} |