mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-18 11:33:15 -04:00
sys-kernel/dkms: new/p Dynamic modules support system
https://bugs.gentoo.org/100754 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. Package-Manager: Portage-2.3.99, Repoman-2.3.22 Signed-off-by: Denis Reva <denis7774@gmail.com>
This commit is contained in:
47
sys-kernel/dkms/dkms-2.8.1.ebuild
Normal file
47
sys-kernel/dkms/dkms-2.8.1.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 will say about missing headers even if sys-kernel/linux-headers installed"
|
||||
ewarn "Just don't keep attention, that don't affect anything"
|
||||
}
|
||||
Reference in New Issue
Block a user