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 --- .../files/nvidia-drivers-dkms-381.22-conf.patch | 8 ++-- .../nvidia-drivers-dkms-381.22-r1706.ebuild | 46 ++++++++++++++++++++++ .../nvidia-drivers-dkms-381.22.ebuild | 46 ---------------------- 3 files changed, 50 insertions(+), 50 deletions(-) create mode 100644 sys-kernel/nvidia-drivers-dkms/nvidia-drivers-dkms-381.22-r1706.ebuild delete mode 100644 sys-kernel/nvidia-drivers-dkms/nvidia-drivers-dkms-381.22.ebuild (limited to 'sys-kernel/nvidia-drivers-dkms') diff --git a/sys-kernel/nvidia-drivers-dkms/files/nvidia-drivers-dkms-381.22-conf.patch b/sys-kernel/nvidia-drivers-dkms/files/nvidia-drivers-dkms-381.22-conf.patch index a48450a1..3a859247 100644 --- a/sys-kernel/nvidia-drivers-dkms/files/nvidia-drivers-dkms-381.22-conf.patch +++ b/sys-kernel/nvidia-drivers-dkms/files/nvidia-drivers-dkms-381.22-conf.patch @@ -18,11 +18,11 @@ diff -Nur a/kernel/dkms.conf b/kernel/dkms.conf # The list of kernel modules will be generated by nvidia-installer at runtime. -__DKMS_MODULES +BUILT_MODULE_NAME[0]="nvidia" -+DEST_MODULE_LOCATION[0]="/kernel/drivers/video" ++DEST_MODULE_LOCATION[0]="/extra/dkms" +BUILT_MODULE_NAME[1]="nvidia-uvm" -+DEST_MODULE_LOCATION[1]="/kernel/drivers/video" ++DEST_MODULE_LOCATION[1]="/extra/dkms" +BUILT_MODULE_NAME[2]="nvidia-modeset" -+DEST_MODULE_LOCATION[2]="/kernel/drivers/video" ++DEST_MODULE_LOCATION[2]="/extra/dkms" +BUILT_MODULE_NAME[3]="nvidia-drm" -+DEST_MODULE_LOCATION[3]="/kernel/drivers/video" ++DEST_MODULE_LOCATION[3]="/extra/dkms" + diff --git a/sys-kernel/nvidia-drivers-dkms/nvidia-drivers-dkms-381.22-r1706.ebuild b/sys-kernel/nvidia-drivers-dkms/nvidia-drivers-dkms-381.22-r1706.ebuild new file mode 100644 index 00000000..b1c31c79 --- /dev/null +++ b/sys-kernel/nvidia-drivers-dkms/nvidia-drivers-dkms-381.22-r1706.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils + +NV_URI="http://us.download.nvidia.com/XFree86/" +AMD64_NV_PACKAGE="NVIDIA-Linux-x86_64-${PV}" + +DESCRIPTION="NVIDIA driver sources for linux" +HOMEPAGE="http://www.nvidia.com/" +SRC_URI="amd64? ( ${NV_URI}Linux-x86_64/${PV}/${AMD64_NV_PACKAGE}.run )" + +LICENSE="GPL-2 NVIDIA-r2" +SLOT="0" +KEYWORDS="amd64" +IUSE="" + +DEPEND="sys-kernel/dkms" +RDEPEND="${DEPEND}" + +S="${WORKDIR}/${AMD64_NV_PACKAGE}" + +src_unpack() { + sh ${DISTDIR}/${AMD64_NV_PACKAGE}.run --extract-only +} + +src_prepare() { + epatch ${FILESDIR}/${P}-conf.patch +} + +src_install() { + dodir /usr/src/${P} + insinto /usr/src/${P} + doins -r "${S}"/kernel/* +} + +pkg_postinst() { + dkms add ${PN}/${PV} +} + +pkg_prerm() { + dkms remove ${PN}/${PV} --all +} diff --git a/sys-kernel/nvidia-drivers-dkms/nvidia-drivers-dkms-381.22.ebuild b/sys-kernel/nvidia-drivers-dkms/nvidia-drivers-dkms-381.22.ebuild deleted file mode 100644 index b1c31c79..00000000 --- a/sys-kernel/nvidia-drivers-dkms/nvidia-drivers-dkms-381.22.ebuild +++ /dev/null @@ -1,46 +0,0 @@ -# Copyright 1999-2016 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Id$ - -EAPI=5 - -inherit eutils - -NV_URI="http://us.download.nvidia.com/XFree86/" -AMD64_NV_PACKAGE="NVIDIA-Linux-x86_64-${PV}" - -DESCRIPTION="NVIDIA driver sources for linux" -HOMEPAGE="http://www.nvidia.com/" -SRC_URI="amd64? ( ${NV_URI}Linux-x86_64/${PV}/${AMD64_NV_PACKAGE}.run )" - -LICENSE="GPL-2 NVIDIA-r2" -SLOT="0" -KEYWORDS="amd64" -IUSE="" - -DEPEND="sys-kernel/dkms" -RDEPEND="${DEPEND}" - -S="${WORKDIR}/${AMD64_NV_PACKAGE}" - -src_unpack() { - sh ${DISTDIR}/${AMD64_NV_PACKAGE}.run --extract-only -} - -src_prepare() { - epatch ${FILESDIR}/${P}-conf.patch -} - -src_install() { - dodir /usr/src/${P} - insinto /usr/src/${P} - doins -r "${S}"/kernel/* -} - -pkg_postinst() { - dkms add ${PN}/${PV} -} - -pkg_prerm() { - dkms remove ${PN}/${PV} --all -} -- cgit v1.2.3