diff options
author | Andrew Ammerlaan <andrewammerlaan@gentoo.org> | 2024-03-06 17:40:42 +0100 |
---|---|---|
committer | Andrew Ammerlaan <andrewammerlaan@gentoo.org> | 2024-03-06 17:41:10 +0100 |
commit | 4bce094e890dcb0d594e01626380c40c261d4923 (patch) | |
tree | a88e4716968160cb731a9526439669fa621ff887 /sys-kernel | |
parent | dev-java/openjdk: drop old repoman annotation (diff) | |
download | gentoo-4bce094e890dcb0d594e01626380c40c261d4923.tar.gz gentoo-4bce094e890dcb0d594e01626380c40c261d4923.tar.bz2 gentoo-4bce094e890dcb0d594e01626380c40c261d4923.zip |
sys-kernel/dkms: add 3.0.13
Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
Diffstat (limited to 'sys-kernel')
-rw-r--r-- | sys-kernel/dkms/Manifest | 1 | ||||
-rw-r--r-- | sys-kernel/dkms/dkms-3.0.13.ebuild | 55 |
2 files changed, 56 insertions, 0 deletions
diff --git a/sys-kernel/dkms/Manifest b/sys-kernel/dkms/Manifest index f1d2fef88628..2ea52ef259be 100644 --- a/sys-kernel/dkms/Manifest +++ b/sys-kernel/dkms/Manifest @@ -1 +1,2 @@ DIST dkms-3.0.12.tar.gz 88241 BLAKE2B 672105074b7899080a2468d347e1fdd60bb6be92852746bccff69565b4f49631568764d265495610d3aebf8df1e0c717daa123d6c3be8752d417ed1c633942e0 SHA512 81646f39c458039958159f519d4dcdfb5dcaa303f7c9898310d13e36c38f30ce57efcc2f2fc98a18ec3d232fd3c50e7a2d859ee42a023e62475e7dad070029d7 +DIST dkms-3.0.13.tar.gz 92840 BLAKE2B ccd677b6e8074fd0ced23f0735817fc36364f4476f7d552af2417b33a4845652a0b0331d3a7642fb5149178674448b479f094fdf27babd64efbfea1491daf671 SHA512 6cf3866730ea92715092b50a1174026dda9a7fb1321796e7c887032ffefb5609c0f6cf59a60ff4d47b7ffee2dac331584073393e9e4e906eaa5a425fc8d22c02 diff --git a/sys-kernel/dkms/dkms-3.0.13.ebuild b/sys-kernel/dkms/dkms-3.0.13.ebuild new file mode 100644 index 000000000000..81617cdde7c6 --- /dev/null +++ b/sys-kernel/dkms/dkms-3.0.13.ebuild @@ -0,0 +1,55 @@ +# 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" + +CONFIG_CHECK="~MODULES" + +RDEPEND=" + sys-apps/kmod + virtual/linux-sources + systemd? ( sys-apps/systemd ) +" + +# Can not work in the emerge sandbox +RESTRICT="test" + +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 + # Backwards compatibility with sys-kernel/installkernel[-systemd] + dosym ../../../usr/lib/kernel/postinst.d/dkms /etc/kernel/postinst.d/dkms + dosym ../../../usr/lib/kernel/prerm.d/dkms /etc/kernel/prerm.d/dkms + einstalldocs + keepdir /var/lib/dkms +} + +pkg_postinst() { + optfeature "automatically running \"dkms autoinstall\" on each kernel installation" \ + "sys-kernel/installkernel[systemd]" +} |