From 8dce5bd252235e4566955018f74275a48a2dae81 Mon Sep 17 00:00:00 2001 From: Ronald Farrer Date: Fri, 18 Sep 2020 12:51:51 -0700 Subject: [PATCH] Added dkms. --- sys-kernel/dkms/Manifest | 1 + sys-kernel/dkms/dkms-2.8.3.ebuild | 47 +++++++++++++++++++++++++++++++ sys-kernel/dkms/metadata.xml | 22 +++++++++++++++ 3 files changed, 70 insertions(+) create mode 100644 sys-kernel/dkms/Manifest create mode 100644 sys-kernel/dkms/dkms-2.8.3.ebuild create mode 100644 sys-kernel/dkms/metadata.xml diff --git a/sys-kernel/dkms/Manifest b/sys-kernel/dkms/Manifest new file mode 100644 index 0000000..c9fced4 --- /dev/null +++ b/sys-kernel/dkms/Manifest @@ -0,0 +1 @@ +DIST dkms-2.8.3.tar.gz 104257 BLAKE2B 791667ca886311e9be994d42675d624f448762561a8c7beb540237d40dc514d15611b467fd966bd6da66af6c22af15199185218b4ad092870670d78cd70284e1 SHA512 523891be78756fb5760efa3da9f509a7607e79b25ac5083e1b89a1446b4a65e125e969db048bcbb7f988cebbab1c2d98d78d27770f7519762157b74fcd9f3b97 diff --git a/sys-kernel/dkms/dkms-2.8.3.ebuild b/sys-kernel/dkms/dkms-2.8.3.ebuild new file mode 100644 index 0000000..79440da --- /dev/null +++ b/sys-kernel/dkms/dkms-2.8.3.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit eutils + +DESCRIPTION="Dynamic Kernel Module Support" +HOMEPAGE="https://github.com/dell/dkms" +LICENSE="GPL-2" +DEPEND="" +KEYWORDS="~amd64 ~x86" +SLOT="0" +IUSE="kernel-hooks" + +SRC_URI="https://github.com/dell/dkms/archive/v${PV}.tar.gz -> ${P}.tar.gz" +DOCS=( AUTHORS sample.conf sample.spec ) + +src_prepare() { + #Removing gzip compressions in Makefile + sed -i '/dkms.8.gz/d' "${S}"/Makefile + default +} + +src_compile() { + einfo "Skipping compilation" +} + +src_install() { + emake install DESTDIR="${D}" LIBDIR="${D}"/usr/$(get_libdir)/ + + keepdir /var/lib/dkms + insinto /var/lib/dkms + doins dkms_dbversion + + keepdir /etc/dkms + doins template-dkms-mkrpm.spec + + einstalldocs + if use kernel-hooks; then + einfo "You're installed kernel hooks that automatically rebuild your modules" + else rm -r "${D}"/etc/kernel/; + fi + + ewarn "DKMS might say about missing headers even if sys-kernel/linux-headers installed" + ewarn "Just don't keep attention, that don't affect anything" +} diff --git a/sys-kernel/dkms/metadata.xml b/sys-kernel/dkms/metadata.xml new file mode 100644 index 0000000..1355e6b --- /dev/null +++ b/sys-kernel/dkms/metadata.xml @@ -0,0 +1,22 @@ + + + + + canutethegreat@gmail.com + Ronald Farrer + + + dell/dkms + + + Dynamic Kernel Module Support (DKMS) is a program/framework that enables generating Linux kernel modules whose sources generally reside outside the kernel source tree. The concept is to have DKMS modules automatically rebuilt when a new kernel is installed. + An essential feature of DKMS is that it automatically recompiles all DKMS modules if a new kernel version is installed. This allows drivers and devices outside of the mainline kernel to continue working after a Linux kernel upgrade. + Another benefit of DKMS is that it allows the installation of a new driver on an existing system, running an arbitrary kernel version, without any need for manual compilation or precompiled packages provided by the vendor. + DKMS was written by the Linux Engineering Team at Dell in 2003. It is included in many distributions, such as Ubuntu, Debian, Fedora, SUSE, and Arch. DKMS is free software released under the terms of the GNU General Public License (GPL) v2 or later. + DKMS supports both the rpm and deb package formats out-of-the-box. + + + Enable automatic rebuilding of modules via kernel source makefile hooks + + +