From 4c9019e1b6fbecd16b326e991e11294de3c2afa5 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 9 Sep 2018 12:58:33 +0100 Subject: sys-apps/openrc : enable dkms integration --- packages/sys-apps/openrc/files/openrc-dkms.patch | 11 +++++++++++ packages/sys-apps/openrc/openrc-0.34.11.exheres-0 | 14 ++++++++++++-- 2 files changed, 23 insertions(+), 2 deletions(-) create mode 100644 packages/sys-apps/openrc/files/openrc-dkms.patch 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 } -- cgit v1.2.3