From bcbe825eddc9375f384241dc6b01a98d2254d77e Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 23 Jul 2017 14:42:18 +0100 Subject: install all dkms modules under /lib/modules/4.9.39-redcore/extra/dkms --- .../bbswitch-dkms/bbswitch-dkms-0.8-r1706.ebuild | 45 ++++++++++++++++++++++ sys-kernel/bbswitch-dkms/bbswitch-dkms-0.8.ebuild | 45 ---------------------- .../files/bbswitch-dkms-0.8-conf.patch | 2 +- 3 files changed, 46 insertions(+), 46 deletions(-) create mode 100644 sys-kernel/bbswitch-dkms/bbswitch-dkms-0.8-r1706.ebuild delete mode 100644 sys-kernel/bbswitch-dkms/bbswitch-dkms-0.8.ebuild (limited to 'sys-kernel/bbswitch-dkms') diff --git a/sys-kernel/bbswitch-dkms/bbswitch-dkms-0.8-r1706.ebuild b/sys-kernel/bbswitch-dkms/bbswitch-dkms-0.8-r1706.ebuild new file mode 100644 index 00000000..b02911ec --- /dev/null +++ b/sys-kernel/bbswitch-dkms/bbswitch-dkms-0.8-r1706.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils + +MY_PN="bbswitch" +DESCRIPTION="BBswitch sources for linux" +HOMEPAGE="https://github.com/Bumblebee-Project/bbswitch" +SRC_URI="https://github.com/Bumblebee-Project/${MY_PN}/archive/v${PV}.tar.gz -> ${MY_PN}-${PV}.tar.gz" + +SLOT="0" +LICENSE="GPL-3+" +KEYWORDS="amd64" +IUSE="" +DEPEND="sys-kernel/dkms" +RDEPEND="${DEPEND}" + +S="${WORKDIR}/${MY_PN}-${PV}" + +src_prepare() { + # Fix build failure, bug #513542 + sed -i 's/^KDIR.*$/KDIR\ \:= \/usr\/src\/linux/g' Makefile + epatch ${FILESDIR}/${P}-conf.patch +} + +src_compile() { + : +} + +src_install() { + 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/bbswitch-dkms/bbswitch-dkms-0.8.ebuild b/sys-kernel/bbswitch-dkms/bbswitch-dkms-0.8.ebuild deleted file mode 100644 index b02911ec..00000000 --- a/sys-kernel/bbswitch-dkms/bbswitch-dkms-0.8.ebuild +++ /dev/null @@ -1,45 +0,0 @@ -# Copyright 1999-2015 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Id$ - -EAPI=5 - -inherit eutils - -MY_PN="bbswitch" -DESCRIPTION="BBswitch sources for linux" -HOMEPAGE="https://github.com/Bumblebee-Project/bbswitch" -SRC_URI="https://github.com/Bumblebee-Project/${MY_PN}/archive/v${PV}.tar.gz -> ${MY_PN}-${PV}.tar.gz" - -SLOT="0" -LICENSE="GPL-3+" -KEYWORDS="amd64" -IUSE="" -DEPEND="sys-kernel/dkms" -RDEPEND="${DEPEND}" - -S="${WORKDIR}/${MY_PN}-${PV}" - -src_prepare() { - # Fix build failure, bug #513542 - sed -i 's/^KDIR.*$/KDIR\ \:= \/usr\/src\/linux/g' Makefile - epatch ${FILESDIR}/${P}-conf.patch -} - -src_compile() { - : -} - -src_install() { - 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/bbswitch-dkms/files/bbswitch-dkms-0.8-conf.patch b/sys-kernel/bbswitch-dkms/files/bbswitch-dkms-0.8-conf.patch index 4b1447a4..2afeb051 100644 --- a/sys-kernel/bbswitch-dkms/files/bbswitch-dkms-0.8-conf.patch +++ b/sys-kernel/bbswitch-dkms/files/bbswitch-dkms-0.8-conf.patch @@ -21,7 +21,7 @@ diff -Nur a/dkms.conf b/dkms.conf +CLEAN="make clean" + +BUILT_MODULE_NAME[0]="bbswitch" -+DEST_MODULE_LOCATION[0]="/kernel/drivers/acpi" ++DEST_MODULE_LOCATION[0]="/extra/dkms" diff -Nur a/Makefile.dkms b/Makefile.dkms --- a/Makefile.dkms 2013-12-04 23:22:06.000000000 +0000 +++ b/Makefile.dkms 1970-01-01 01:00:00.000000000 +0100 -- cgit v1.2.3