summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-09-09 12:37:45 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-09-09 12:37:45 +0100
commit7467ae55e90e898dc17d77714e63d3ee46d4d85f (patch)
tree793123bc197ea93b8f06a4fe60128683bd45947e
parenta56d96ce69b57da0c80023f580a00c86295a4e71 (diff)
sys-apps/dkms : let's use gentoo-functions, shall we?
-rw-r--r--packages/sys-kernel/dkms/dkms-2.3.exheres-01
-rw-r--r--packages/sys-kernel/dkms/files/dkms-2.3-gentoo-functions.patch4
2 files changed, 3 insertions, 2 deletions
diff --git a/packages/sys-kernel/dkms/dkms-2.3.exheres-0 b/packages/sys-kernel/dkms/dkms-2.3.exheres-0
index e835a4f..1204b50 100644
--- a/packages/sys-kernel/dkms/dkms-2.3.exheres-0
+++ b/packages/sys-kernel/dkms/dkms-2.3.exheres-0
@@ -21,6 +21,7 @@ MYOPTIONS=""
DEPENDENCIES="
run:
app-shells/bash
+ sys-apps/gentoo-functions
suggestion:
app-arch/dpkg [[
description = [ Build DKMS-enabled debs ]
diff --git a/packages/sys-kernel/dkms/files/dkms-2.3-gentoo-functions.patch b/packages/sys-kernel/dkms/files/dkms-2.3-gentoo-functions.patch
index 42b7464..6fc55e1 100644
--- a/packages/sys-kernel/dkms/files/dkms-2.3-gentoo-functions.patch
+++ b/packages/sys-kernel/dkms/files/dkms-2.3-gentoo-functions.patch
@@ -26,8 +26,8 @@ diff -Nur a/dkms_autoinstaller b/dkms_autoinstaller
- . /lib/lsb/init-functions
-elif [ -f /etc/rc.d/init.d/functions ]; then
- . /etc/rc.d/init.d/functions
-+if [ -f /lib/gentoo/functions.sh ]; then
-+ . /lib/gentoo/functions.sh
++if [ -f /usr/libexec/gentoo/functions.sh ]; then
++ . /usr/libexec/gentoo/functions.sh
fi
-#We only have these functions on debian/ubuntu