public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Andrew Ammerlaan" <andrewammerlaan@riseup.net>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:master commit in: sys-kernel/dkms/
Date: Thu, 14 May 2020 09:29:31 +0000 (UTC)	[thread overview]
Message-ID: <1589361893.32fbcd91c1dba517c23c44c92dc522f4f0578ed9.andrewammerlaan@gentoo> (raw)

commit:     32fbcd91c1dba517c23c44c92dc522f4f0578ed9
Author:     Denis Reva <denis7774 <AT> gmail <DOT> com>
AuthorDate: Wed May 13 09:24:53 2020 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
CommitDate: Wed May 13 09:24:53 2020 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=32fbcd91

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 <AT> gmail.com>

 sys-kernel/dkms/Manifest          |  1 +
 sys-kernel/dkms/dkms-2.8.1.ebuild | 47 +++++++++++++++++++++++++++++++++++++++
 sys-kernel/dkms/metadata.xml      | 22 ++++++++++++++++++
 3 files changed, 70 insertions(+)

diff --git a/sys-kernel/dkms/Manifest b/sys-kernel/dkms/Manifest
new file mode 100644
index 0000000..fad4475
--- /dev/null
+++ b/sys-kernel/dkms/Manifest
@@ -0,0 +1 @@
+DIST dkms-2.8.1.tar.gz 103894 BLAKE2B 9695c89fc1725f32e331969f94cd5b698df3cba2ef8a9d21dbb3d87ebeb6637898e184b2e8d99240763de4cb4528e2ff785e3f31c1265fdeb210df4dd060974e SHA512 25e57fcfdcdb460dc04d90db1d37577c2424b72be1019ea77af61d169460fbe8c397abf98634c72964d862cd3973f0c5e2bad7e157d48fe294750228e18e23bb

diff --git a/sys-kernel/dkms/dkms-2.8.1.ebuild b/sys-kernel/dkms/dkms-2.8.1.ebuild
new file mode 100644
index 0000000..cd3322a
--- /dev/null
+++ b/sys-kernel/dkms/dkms-2.8.1.ebuild
@@ -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"
+}

diff --git a/sys-kernel/dkms/metadata.xml b/sys-kernel/dkms/metadata.xml
new file mode 100644
index 0000000..127e2f3
--- /dev/null
+++ b/sys-kernel/dkms/metadata.xml
@@ -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>denis7774@gmail.com</email>
+		<name>Reva Denis</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>


             reply	other threads:[~2020-05-14  9:29 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-14  9:29 Andrew Ammerlaan [this message]
  -- strict thread matches above, loose matches on Subject: below --
2020-07-30 16:16 [gentoo-commits] repo/proj/guru:master commit in: sys-kernel/dkms/ Andrew Ammerlaan
2020-09-23 10:10 Andrew Ammerlaan
2020-12-06 10:49 Andrew Ammerlaan
2021-04-18  9:10 Andrew Ammerlaan
2021-04-25 20:28 Andrew Ammerlaan
2023-02-13 11:28 Andrew Ammerlaan
2023-09-04 11:12 Andrew Ammerlaan
2023-09-24 13:43 Andrew Ammerlaan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1589361893.32fbcd91c1dba517c23c44c92dc522f4f0578ed9.andrewammerlaan@gentoo \
    --to=andrewammerlaan@riseup.net \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox