From 41a627715cd5b974163f71e16006b80098e1fe35 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Wed, 11 Apr 2018 17:57:03 +0100 Subject: sys-kernel/virtualbox-{modules,guest}-dkms : improve dkms.conf --- sys-kernel/virtualbox-modules-dkms/files/dkms.conf | 4 +- .../virtualbox-modules-dkms-5.2.4-r1.ebuild | 45 ++++++++++++++++++++++ .../virtualbox-modules-dkms-5.2.4.ebuild | 45 ---------------------- 3 files changed, 47 insertions(+), 47 deletions(-) create mode 100644 sys-kernel/virtualbox-modules-dkms/virtualbox-modules-dkms-5.2.4-r1.ebuild delete mode 100644 sys-kernel/virtualbox-modules-dkms/virtualbox-modules-dkms-5.2.4.ebuild (limited to 'sys-kernel/virtualbox-modules-dkms') diff --git a/sys-kernel/virtualbox-modules-dkms/files/dkms.conf b/sys-kernel/virtualbox-modules-dkms/files/dkms.conf index 80cc6b40..b330bb9c 100644 --- a/sys-kernel/virtualbox-modules-dkms/files/dkms.conf +++ b/sys-kernel/virtualbox-modules-dkms/files/dkms.conf @@ -2,7 +2,8 @@ PACKAGE_NAME="virtualbox-modules-dkms" PACKAGE_VERSION="5.2.4" AUTOINSTALL="yes" -MAKE[0]="'make' -j`nproc` KERNEL_UNAME=${kernelver}" +MAKE[0]="make KVERSION=$kernelver" +CLEAN="make clean" BUILT_MODULE_NAME[0]="vboxdrv" DEST_MODULE_LOCATION[0]="/extra/dkms" @@ -12,4 +13,3 @@ BUILT_MODULE_NAME[2]="vboxnetadp" DEST_MODULE_LOCATION[2]="/extra/dkms" BUILT_MODULE_NAME[3]="vboxpci" DEST_MODULE_LOCATION[3]="/extra/dkms" - diff --git a/sys-kernel/virtualbox-modules-dkms/virtualbox-modules-dkms-5.2.4-r1.ebuild b/sys-kernel/virtualbox-modules-dkms/virtualbox-modules-dkms-5.2.4-r1.ebuild new file mode 100644 index 00000000..00923566 --- /dev/null +++ b/sys-kernel/virtualbox-modules-dkms/virtualbox-modules-dkms-5.2.4-r1.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:::' +} + +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 +} diff --git a/sys-kernel/virtualbox-modules-dkms/virtualbox-modules-dkms-5.2.4.ebuild b/sys-kernel/virtualbox-modules-dkms/virtualbox-modules-dkms-5.2.4.ebuild deleted file mode 100644 index 00923566..00000000 --- a/sys-kernel/virtualbox-modules-dkms/virtualbox-modules-dkms-5.2.4.ebuild +++ /dev/null @@ -1,45 +0,0 @@ -# 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:::' -} - -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 -} -- cgit v1.2.3