commit: 14a860023c447d45a413344e6998af10ea31fccc Author: Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net> AuthorDate: Wed Dec 16 19:40:11 2020 +0000 Commit: Aisha Tammy <gentoo <AT> aisha <DOT> cc> CommitDate: Sat Dec 19 13:21:28 2020 +0000 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=14a86002
sys-kernel/dkms: dynamic kernel module support Package-Manager: Portage-3.0.12, Repoman-3.0.2 Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> riseup.net> Closes: https://github.com/gentoo/sci/pull/994 Signed-off-by: Aisha Tammy <gentoo <AT> aisha.cc> sys-kernel/dkms/dkms-2.8.4.ebuild | 41 +++++++++++++++++++++++++++++++++++++++ sys-kernel/dkms/metadata.xml | 22 +++++++++++++++++++++ 2 files changed, 63 insertions(+) diff --git a/sys-kernel/dkms/dkms-2.8.4.ebuild b/sys-kernel/dkms/dkms-2.8.4.ebuild new file mode 100644 index 000000000..895780135 --- /dev/null +++ b/sys-kernel/dkms/dkms-2.8.4.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit linux-info + +DESCRIPTION="Dynamic Kernel Module Support" +HOMEPAGE="https://github.com/dell/dkms" +SRC_URI="https://github.com/dell/dkms/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2" +KEYWORDS="~amd64 ~x86" +SLOT="0" + +IUSE="doc" + +CONFIG_CHECK="~MODULES" + +RDEPEND="sys-apps/kmod" + +src_prepare() { + # Install uncompressed version of man files + sed -i \ + -e '\_gzip -c -9 dkms.8 > $(MAN)/dkms.8.gz_d' \ + -e '\_chmod 0644 $(MAN)/dkms.8.gz_d' \ + -e 's/dkms.8.gz/dkms.8/g' \ + Makefile || die + default +} + +src_compile() { + # Nothing to do here + return +} + +src_install() { + emake install DESTDIR="${D}" LIBDIR="${D}"/usr/$(get_libdir)/ + use doc && emake install-doc DOCDIR="${D}/usr/share/doc/${PF}" + einstalldocs +} diff --git a/sys-kernel/dkms/metadata.xml b/sys-kernel/dkms/metadata.xml new file mode 100644 index 000000000..d46f906b8 --- /dev/null +++ b/sys-kernel/dkms/metadata.xml @@ -0,0 +1,22 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>[email protected]</email> + <name>Andrew Ammerlaan</name> + </maintainer> + <maintainer type="project"> + <email>[email protected]</email> + <name>Gentoo Science Project</name> + </maintainer> + <upstream> + <remote-id type="github">dell/dkms</remote-id> + </upstream> + <longdescription lang="en"> + 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. + </longdescription> +</pkgmetadata>
