Added dkms.
This commit is contained in:
parent
d3e2ec561c
commit
8dce5bd252
3 changed files with 70 additions and 0 deletions
1
sys-kernel/dkms/Manifest
Normal file
1
sys-kernel/dkms/Manifest
Normal file
|
@ -0,0 +1 @@
|
|||
DIST dkms-2.8.3.tar.gz 104257 BLAKE2B 791667ca886311e9be994d42675d624f448762561a8c7beb540237d40dc514d15611b467fd966bd6da66af6c22af15199185218b4ad092870670d78cd70284e1 SHA512 523891be78756fb5760efa3da9f509a7607e79b25ac5083e1b89a1446b4a65e125e969db048bcbb7f988cebbab1c2d98d78d27770f7519762157b74fcd9f3b97
|
47
sys-kernel/dkms/dkms-2.8.3.ebuild
Normal file
47
sys-kernel/dkms/dkms-2.8.3.ebuild
Normal file
|
@ -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"
|
||||
}
|
22
sys-kernel/dkms/metadata.xml
Normal file
22
sys-kernel/dkms/metadata.xml
Normal file
|
@ -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>canutethegreat@gmail.com</email>
|
||||
<name>Ronald Farrer</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>
|
||||
<use>
|
||||
<flag name="kernel-hooks">Enable automatic rebuilding of modules via kernel source makefile hooks
|
||||
</flag>
|
||||
</use>
|
||||
</pkgmetadata>
|
Loading…
Reference in a new issue