summaryrefslogtreecommitdiff
path: root/sys-kernel/virtualbox-modules-dkms
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2019-07-07 17:39:04 +0100
committerV3n3RiX <venerix@redcorelinux.org>2019-07-07 17:39:04 +0100
commit02cd1cf9c9ac1b1cec28598df9dfeecc7c40615b (patch)
tree6089bfeb6116ed7d1de4930545cf9cd2e13c2145 /sys-kernel/virtualbox-modules-dkms
parent00d7a72361a4519cbcc664058ed08eaa9d57811e (diff)
sys-kernel/virtualbox-modules-dkms : fix
Diffstat (limited to 'sys-kernel/virtualbox-modules-dkms')
-rw-r--r--sys-kernel/virtualbox-modules-dkms/Manifest2
-rw-r--r--sys-kernel/virtualbox-modules-dkms/virtualbox-modules-dkms-6.0.8-r1.ebuild (renamed from sys-kernel/virtualbox-modules-dkms/virtualbox-modules-dkms-6.0.8.ebuild)15
2 files changed, 11 insertions, 6 deletions
diff --git a/sys-kernel/virtualbox-modules-dkms/Manifest b/sys-kernel/virtualbox-modules-dkms/Manifest
index 98a3ef2c..27ea9c02 100644
--- a/sys-kernel/virtualbox-modules-dkms/Manifest
+++ b/sys-kernel/virtualbox-modules-dkms/Manifest
@@ -1 +1 @@
-DIST vbox-kernel-module-src-6.0.8.tar.xz 668380 BLAKE2B 06deabe0bae37503ec2b2df3cf1edb820b190c9e453aad8e211278a27c9ffaf229b98c08b2d7510b3721a30ca53833b43184636fde7ce3e5ac0bcbc588330486 SHA512 a4fb626c5a58637cfef7ebc44ccfcf82d6f2a7e91af665a8854d9fafb0c9b042d473c6767dad64497aed5110aefd23299461d39b43f8e57aa0c255cfcc94b448
+DIST virtualbox-dkms_6.0.8-dfsg-7_all.deb 717452 BLAKE2B 7f7919663318acab22d668b77d2cd317cb75dea4bed3114c5d6eb28e4b4f4e05509869c249c8ed5b4ea5d734ba00166bca648c3108e46b5aadc5539ad5f25756 SHA512 d55c10b6c60f57fff9bb64b1cebde701fc79aff8fd94684a33117a53ec8ac4b7281781e04475205d60768635460fd59b42abffea4b97946fe56b1a8bc30b178c
diff --git a/sys-kernel/virtualbox-modules-dkms/virtualbox-modules-dkms-6.0.8.ebuild b/sys-kernel/virtualbox-modules-dkms/virtualbox-modules-dkms-6.0.8-r1.ebuild
index a0fa967b..0100f68a 100644
--- a/sys-kernel/virtualbox-modules-dkms/virtualbox-modules-dkms-6.0.8.ebuild
+++ b/sys-kernel/virtualbox-modules-dkms/virtualbox-modules-dkms-6.0.8-r1.ebuild
@@ -4,12 +4,12 @@
EAPI=5
-inherit eutils
+inherit eutils unpacker
-MY_P=vbox-kernel-module-src-${PV}
+MY_PN=virtualbox-dkms
DESCRIPTION="Kernel Modules source for Virtualbox"
HOMEPAGE="http://www.virtualbox.org/"
-SRC_URI="https://dev.gentoo.org/~polynomial-c/virtualbox/${MY_P}.tar.xz"
+SRC_URI="http://ftp.de.debian.org/debian/pool/contrib/v/virtualbox/${MY_PN}_${PV}-dfsg-7_all.deb"
LICENSE="GPL-2"
SLOT="0"
@@ -21,8 +21,14 @@ RDEPEND="${DEPEND}"
S=${WORKDIR}
+src_unpack() {
+ unpack_deb ${A}
+}
+
src_prepare() {
grep -lR linux/autoconf.h * | xargs sed -i -e 's:<linux/autoconf.h>:<generated/autoconf.h>:'
+ sed -i "s/virtualbox/${PN}/g" usr/src/virtualbox-${PV}/dkms.conf
+ sed -i "s/updates/extra\/dkms/g" usr/src/virtualbox-${PV}/dkms.conf
}
src_compile() {
@@ -32,8 +38,7 @@ src_compile() {
src_install() {
dodir usr/src/${P}
insinto usr/src/${P}
- doins -r ${S}/*
- doins ${FILESDIR}/dkms.conf
+ doins -r ${S}/usr/src/virtualbox-${PV}/*
}
pkg_postinst() {