summaryrefslogtreecommitdiff
path: root/packages/sys-kernel/dkms/dkms-2.3-r1.exheres-0
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-10-18 15:12:32 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-10-18 15:12:32 +0100
commit9bd7b9e0256f9209538f750cd4c1ad882b749b46 (patch)
tree5ef900234adacb806f704dd3950a4f1a646e3923 /packages/sys-kernel/dkms/dkms-2.3-r1.exheres-0
parentf9c0d490e0673404a54831b08e91a5a5957569bb (diff)
sys-kernel/dkms : fix download location
Diffstat (limited to 'packages/sys-kernel/dkms/dkms-2.3-r1.exheres-0')
-rw-r--r--packages/sys-kernel/dkms/dkms-2.3-r1.exheres-059
1 files changed, 59 insertions, 0 deletions
diff --git a/packages/sys-kernel/dkms/dkms-2.3-r1.exheres-0 b/packages/sys-kernel/dkms/dkms-2.3-r1.exheres-0
new file mode 100644
index 0000000..e2f3983
--- /dev/null
+++ b/packages/sys-kernel/dkms/dkms-2.3-r1.exheres-0
@@ -0,0 +1,59 @@
+# Copyright 2018 Redcore Linux Project
+# Distributed under the terms of the GNU General Public License v2
+
+require bash-completion
+require openrc-service
+
+DOWNLOADS="https://github.com/dell/dkms/archive/2.3.tar.gz -> ${PNV}.tar.gz"
+
+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
+ sys-apps/gentoo-functions
+ 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=/usr/$(exhost --target)/bin
+ LIBDIR=/usr/$(exhost --target)/lib/dkms
+ SYSTEMD_UNITDIR=/usr/$(exhost --target)/lib/systemd/system
+ BASHDIR=${BASHCOMPLETIONDIR}
+)
+
+src_compile() {
+ :
+}
+
+src_install() {
+ emake \
+ ${DEFAULT_SRC_INSTALL_PARAMS[@]} \
+ DESTDIR="${IMAGE}" install
+
+ install_openrc_files
+}