summaryrefslogtreecommitdiff
path: root/sys-kernel/dkms/dkms-2.3-r2.ebuild
blob: a89e5107a02e18e1a6ca6814a772e8fecc93f246 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# Distributed under the terms of the GNU General Public License v2

EAPI=7

inherit eutils bash-completion-r1

DESCRIPTION="Dynamic Kernel Module Support"
SRC_URI="https://github.com/dell/dkms/archive/2.3.tar.gz -> ${P}.tar.gz"
HOMEPAGE="https://github.com/dell/dkms"
LICENSE="GPL-2"
DEPEND=""
RDEPEND="sys-apps/gentoo-functions"
KEYWORDS="amd64 arm64"
SLOT="0"

src_prepare() {
	default
	epatch ${FILESDIR}/${P}-dont-touch-configs.patch
	epatch ${FILESDIR}/${P}-gentoo-functions.patch
	epatch ${FILESDIR}/${P}-systemd-service-fix.patch
	epatch ${FILESDIR}/${P}-redcore-makefile.patch
}

src_install() {
	emake DESTDIR=${D} install
	newinitd "${FILESDIR}"/dkms.initd dkms
}