From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 638D31382C5 for ; Wed, 13 May 2020 09:25:13 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 61C44E0729; Wed, 13 May 2020 09:25:12 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 0F60FE0729 for ; Wed, 13 May 2020 09:25:11 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 8B8CA34F9D6 for ; Wed, 13 May 2020 09:25:10 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 2428A21E for ; Wed, 13 May 2020 09:25:08 +0000 (UTC) From: "Denis Reva" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Denis Reva" Message-ID: <1589361893.32fbcd91c1dba517c23c44c92dc522f4f0578ed9.RarogCmex@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev commit in: sys-kernel/dkms/ X-VCS-Repository: repo/proj/guru X-VCS-Files: sys-kernel/dkms/Manifest sys-kernel/dkms/dkms-2.8.1.ebuild sys-kernel/dkms/metadata.xml X-VCS-Directories: sys-kernel/dkms/ X-VCS-Committer: RarogCmex X-VCS-Committer-Name: Denis Reva X-VCS-Revision: 32fbcd91c1dba517c23c44c92dc522f4f0578ed9 X-VCS-Branch: dev Date: Wed, 13 May 2020 09:25:08 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 5f9dbe53-641f-4f32-b22c-cff0fe6baedd X-Archives-Hash: 8be97322beb762ad9bb91404b6aa5e06 commit: 32fbcd91c1dba517c23c44c92dc522f4f0578ed9 Author: Denis Reva gmail com> AuthorDate: Wed May 13 09:24:53 2020 +0000 Commit: Denis Reva gmail com> 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 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 @@ + + + + + denis7774@gmail.com + Reva Denis + + + dell/dkms + + + 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. + + + Enable automatic rebuilding of modules via kernel source makefile hooks + + +