summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-09-09 12:58:33 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-09-09 12:58:33 +0100
commit4c9019e1b6fbecd16b326e991e11294de3c2afa5 (patch)
tree3346302f26198a4727b865662aefb8ecca69f5c0 /packages
parent7467ae55e90e898dc17d77714e63d3ee46d4d85f (diff)
sys-apps/openrc : enable dkms integration
Diffstat (limited to 'packages')
-rw-r--r--packages/sys-apps/openrc/files/openrc-dkms.patch11
-rw-r--r--packages/sys-apps/openrc/openrc-0.34.11.exheres-014
2 files changed, 23 insertions, 2 deletions
diff --git a/packages/sys-apps/openrc/files/openrc-dkms.patch b/packages/sys-apps/openrc/files/openrc-dkms.patch
new file mode 100644
index 0000000..02a5231
--- /dev/null
+++ b/packages/sys-apps/openrc/files/openrc-dkms.patch
@@ -0,0 +1,11 @@
+diff -Nur a/init.d/modules.in b/init.d/modules.in
+--- a/init.d/modules.in 2017-05-16 01:06:10.000000000 +0100
++++ b/init.d/modules.in 2017-05-21 15:56:25.581977335 +0100
+@@ -14,6 +14,7 @@
+ depend()
+ {
+ use isapnp
++ need dkms
+ want modules-load
+ keyword -docker -lxc -openvz -prefix -systemd-nspawn -vserver
+ }
diff --git a/packages/sys-apps/openrc/openrc-0.34.11.exheres-0 b/packages/sys-apps/openrc/openrc-0.34.11.exheres-0
index ebb5e77..a68dc2b 100644
--- a/packages/sys-apps/openrc/openrc-0.34.11.exheres-0
+++ b/packages/sys-apps/openrc/openrc-0.34.11.exheres-0
@@ -17,6 +17,9 @@ MYOPTIONS="
*description = [ provider for the init daemon ]
number-selected = at-most-one
]]
+ dkms [[ description = [
+ Enable DKMS (dynamic kernel module support) integration
+ ] ]]
ncurses
newnet [[ description = [
Enable the new network stack (experimental)
@@ -28,6 +31,7 @@ PLATFORMS="~amd64 ~x86"
DEPENDENCIES="
build+run:
+ dkms? ( sys-kernel/dkms )
ncurses? ( sys-libs/ncurses )
pam? ( sys-libs/pam )
run:
@@ -39,8 +43,9 @@ DEPENDENCIES="
REMOTE_IDS="github:OpenRC/${PN}"
DEFAULT_SRC_PREPARE_PATCHES=(
- "${FILES}"/openrc-enable-rclogger.patch
- "${FILES}"/openrc-disable-cgroupsv2.patch
+ # Redcore Linux : enable rclogger, disable cgroupsv2
+ "${FILES}"/"${PN}"-enable-rclogger.patch
+ "${FILES}"/"${PN}"-disable-cgroupsv2.patch
)
@@ -71,6 +76,11 @@ pkg_setup() {
src_prepare() {
default
+ # Redcore Linux : enable dkms integration
+ if option dkms; then
+ expatch "${FILES}"/"${PN}"-dkms.patch
+ fi
+
edo sed -e 's#readelf #${READELF:-readelf} #g' \
-i src/test/runtests.sh
}