sys-kernel/dkms: add 3.1.0

Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
This commit is contained in:
Andrew Ammerlaan
2024-10-03 11:11:43 +02:00
parent 5d23c1225a
commit 56a4978930
2 changed files with 54 additions and 0 deletions

View File

@@ -1 +1,2 @@
DIST dkms-3.0.13.tar.gz 92840 BLAKE2B ccd677b6e8074fd0ced23f0735817fc36364f4476f7d552af2417b33a4845652a0b0331d3a7642fb5149178674448b479f094fdf27babd64efbfea1491daf671 SHA512 6cf3866730ea92715092b50a1174026dda9a7fb1321796e7c887032ffefb5609c0f6cf59a60ff4d47b7ffee2dac331584073393e9e4e906eaa5a425fc8d22c02
DIST dkms-3.1.0.tar.gz 92614 BLAKE2B 555c2e4d340bf99bf035706186c5f68e8476881a102e14f7f5890122b7193fc634052fdfea4f3d3ce3dad7c8185b5643ed87c4e8e27262b90b3bf964f1ba84bd SHA512 57f9716b1a812b4c265617a27bfca6e559aea66ffb4676cb02f39de1c4670f6c2f8e6457725adc5e43b431579117dac3e22496d35ded57647984c9ba5f5e25e4

View File

@@ -0,0 +1,53 @@
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit linux-info optfeature
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"
SLOT="0"
KEYWORDS="~amd64 ~arm64 ~x86"
IUSE="systemd"
RDEPEND="
sys-apps/kmod
virtual/linux-sources
systemd? ( sys-apps/systemd )
"
# Cannot work in the emerge sandbox
RESTRICT="test"
CONFIG_CHECK="~MODULES"
src_compile() {
# Nothing to do here
return
}
src_test() {
chmod +x dkms || die
PATH="${PATH}:$(pwd)" ./run_test.sh || die "Tests failed"
}
src_install() {
if use systemd; then
emake install-redhat DESTDIR="${ED}" KCONF="/usr/lib/kernel"
else
emake install DESTDIR="${ED}" KCONF="/usr/lib/kernel"
fi
einstalldocs
keepdir /var/lib/dkms
}
pkg_postinst() {
optfeature "automatically running \"dkms autoinstall\" on each kernel installation" \
sys-kernel/installkernel
}