summaryrefslogtreecommitdiff
path: root/packages/sys-kernel/dkms/dkms-2.3.exheres-0
blob: ce29354d6709162bdcf49e54d3cfcc7832e80226 (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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Copyright 2018 Redcore Linux Project
# Distributed under the terms of the GNU General Public License v2

require github [ user=dell tag="v${PV}" ]
require openrc-service

SUMMARY="Dynamically rebuild kernel modules"
DESCRIPTION="
DKMS includes utilities to dynamically rebuild kernel modules when the kernel is updated. It also
allows developers to build DKMS-enabled tarballs, rpms and debs that will be rebuilt on kernel
update.
"
HOMEPAGE="http://linux.dell.com/dkms/"

LICENCES="GPL-2"
SLOT="0"
PLATFORMS="~amd64"
MYOPTIONS=""

DEPENDENCIES="
    run:
        app-shells/bash
    suggestion:
        app-arch/dpkg [[
            description = [ Build DKMS-enabled debs ]
        ]]
        app-arch/rpm [[
            description = [ Build DKMS-enabled rpms ]
        ]]
"

DEFAULT_SRC_PREPARE_PATCHES=(
    "${FILES}"/"${PNV}"-dont-touch-configs.patch
    "${FILES}"/"${PNV}"-gentoo-functions.patch
    "${FILES}"/"${PNV}"-systemd-service-fix.patch
    "${FILES}"/"${PNV}"-redcore-makefile.patch
)

DEFAULT_SRC_INSTALL_PARAMS=(
    SBIN="${IMAGE}/usr/$(exhost --target)/bin"
    LIBDIR="${IMAGE}/usr/$(exhost --target)/lib/dkms"
)

src_compile() {
    :
}

src_install() {
    default
    install_openrc_files
}