summaryrefslogtreecommitdiff
path: root/sys-kernel
diff options
context:
space:
mode:
Diffstat (limited to 'sys-kernel')
-rw-r--r--sys-kernel/Manifest.gzbin4412 -> 4575 bytes
-rw-r--r--sys-kernel/dkms/Manifest4
-rw-r--r--sys-kernel/dkms/dkms-3.0.12.ebuild51
-rw-r--r--sys-kernel/dkms/files/dkms-3.0.12-add-gentoo-os-id.patch13
-rw-r--r--sys-kernel/dkms/metadata.xml18
5 files changed, 86 insertions, 0 deletions
diff --git a/sys-kernel/Manifest.gz b/sys-kernel/Manifest.gz
index 4616af99bc16..a8b3180e4ef1 100644
--- a/sys-kernel/Manifest.gz
+++ b/sys-kernel/Manifest.gz
Binary files differ
diff --git a/sys-kernel/dkms/Manifest b/sys-kernel/dkms/Manifest
new file mode 100644
index 000000000000..e64f1319962b
--- /dev/null
+++ b/sys-kernel/dkms/Manifest
@@ -0,0 +1,4 @@
+AUX dkms-3.0.12-add-gentoo-os-id.patch 345 BLAKE2B 70642f624869ea17c96bc4c9a51e91fefb01b15827abe2ebdb2ed7d4eb7f4b2a2b2cfa9263834489738d3c91dccd1d557f794453ae515dbd2f287eeaeeff9a79 SHA512 abd6d1cb9ce7b6718599e4c372b1d6c97db5cfb56d23da7ae7847d77941cac23f1ed64b094070c4f73781c965d1bb2b1dc52af654194af8b46c11bdb8b3d34fb
+DIST dkms-3.0.12.tar.gz 88241 BLAKE2B 672105074b7899080a2468d347e1fdd60bb6be92852746bccff69565b4f49631568764d265495610d3aebf8df1e0c717daa123d6c3be8752d417ed1c633942e0 SHA512 81646f39c458039958159f519d4dcdfb5dcaa303f7c9898310d13e36c38f30ce57efcc2f2fc98a18ec3d232fd3c50e7a2d859ee42a023e62475e7dad070029d7
+EBUILD dkms-3.0.12.ebuild 928 BLAKE2B 06661b93fc557e5282131626da78e2e842d19f3c28074fbb8184766f1c41e88dafd1a980b0bbbb889000e70f54993107fbe1ffbe34bbbac21691d34e4044abaa SHA512 835f8dee2462048e0a99acc0cb473137c140b8fcfecc56b0325aa16785ee38c1406c098e121118672f4679d90de4859cd2cef2960be2475842d57063cdbf8360
+MISC metadata.xml 1423 BLAKE2B ba5005482cd295624b271e93ccc588a8ded7993c703b81e820150dbc6a8283ae19e8e4fc64327cbb3498292de34740ec15d8561498a8127a588fec01e20eee95 SHA512 15d88c65b0e65e1252ea0fa71fba548aa6bc4e44d727f9933ab0926a7eae9a3a07729a45100213754dac2518ed58b3e13286526b4ebcfed76f8468ae0d7e093d
diff --git a/sys-kernel/dkms/dkms-3.0.12.ebuild b/sys-kernel/dkms/dkms-3.0.12.ebuild
new file mode 100644
index 000000000000..376784e0a285
--- /dev/null
+++ b/sys-kernel/dkms/dkms-3.0.12.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+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="systemd"
+
+CONFIG_CHECK="~MODULES"
+
+RDEPEND="
+ sys-apps/kmod
+ virtual/linux-sources
+ systemd? ( sys-apps/systemd )
+"
+
+PATCHES=(
+ "${FILESDIR}/${P}-add-gentoo-os-id.patch"
+)
+
+# 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
+ einstalldocs
+ keepdir /var/lib/dkms
+}
diff --git a/sys-kernel/dkms/files/dkms-3.0.12-add-gentoo-os-id.patch b/sys-kernel/dkms/files/dkms-3.0.12-add-gentoo-os-id.patch
new file mode 100644
index 000000000000..10bbacd4fdae
--- /dev/null
+++ b/sys-kernel/dkms/files/dkms-3.0.12-add-gentoo-os-id.patch
@@ -0,0 +1,13 @@
+diff --git a/run_test.sh b/run_test.sh
+index 4cda255..af089cb 100755
+--- a/run_test.sh
++++ b/run_test.sh
+@@ -245,7 +245,7 @@ case "${os_id}" in
+ arch | debian | ubuntu)
+ expected_dest_loc=updates/dkms
+ ;;
+- alpine)
++ alpine | gentoo)
+ expected_dest_loc=kernel/extra
+ mod_compression_ext=.gz
+ ;;
diff --git a/sys-kernel/dkms/metadata.xml b/sys-kernel/dkms/metadata.xml
new file mode 100644
index 000000000000..bfebb6f1a8ba
--- /dev/null
+++ b/sys-kernel/dkms/metadata.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>andrewammerlaan@gentoo.org</email>
+ <name>Andrew Ammerlaan</name>
+ </maintainer>
+ <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>
+ <upstream>
+ <remote-id type="github">dell/dkms</remote-id>
+ </upstream>
+</pkgmetadata>