diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-05-21 16:10:46 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-05-21 16:10:46 +0100 |
commit | 357c77baa3f7c3e197c6b5a9ae091913c4dce74b (patch) | |
tree | 5032a277e114fc8723322dff45e9fd77a2603a17 | |
parent | b2ea57ff35cc35f5704a204abe4f7160bc11c0f2 (diff) |
sys-apps/openrc - integrate dkms
-rw-r--r-- | sys-apps/openrc/files/openrc-dkms.patch | 11 | ||||
-rw-r--r-- | sys-apps/openrc/openrc-0.26.2-r1704.ebuild | 12 |
2 files changed, 22 insertions, 1 deletions
diff --git a/sys-apps/openrc/files/openrc-dkms.patch b/sys-apps/openrc/files/openrc-dkms.patch new file mode 100644 index 00000000..02a5231b --- /dev/null +++ b/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/sys-apps/openrc/openrc-0.26.2-r1704.ebuild b/sys-apps/openrc/openrc-0.26.2-r1704.ebuild index 10d99041..e98ee44c 100644 --- a/sys-apps/openrc/openrc-0.26.2-r1704.ebuild +++ b/sys-apps/openrc/openrc-0.26.2-r1704.ebuild @@ -18,7 +18,7 @@ fi LICENSE="BSD-2" SLOT="0" -IUSE="audit debug ncurses pam newnet prefix +netifrc selinux static-libs +IUSE="audit debug +dkms ncurses pam newnet prefix +netifrc selinux static-libs unicode kernel_linux kernel_FreeBSD" COMMON_DEPEND="kernel_FreeBSD? ( || ( >=sys-freebsd/freebsd-ubin-9.0_rc sys-process/fuser-bsd ) ) @@ -40,6 +40,7 @@ COMMON_DEPEND="kernel_FreeBSD? ( || ( >=sys-freebsd/freebsd-ubin-9.0_rc sys-proc !<sys-fs/udev-init-scripts-27" DEPEND="${COMMON_DEPEND} virtual/os-headers + dkms? ( sys-kernel/dkms ) ncurses? ( virtual/pkgconfig )" RDEPEND="${COMMON_DEPEND} !prefix? ( @@ -66,6 +67,10 @@ src_prepare() { local ver="git-${EGIT_VERSION:0:6}" sed -i "/^GITVER[[:space:]]*=/s:=.*:=${ver}:" mk/gitver.mk || die fi + + if use dkms ; then + epatch ${FILESDIR}/${PN}-dkms.patch + fi } src_compile() { @@ -284,6 +289,11 @@ pkg_postinst() { fi fi + if use dkms; then + elog "Auto-adding DKMS to boot runlevel" + ln -sf /etc/init.d/dkms /etc/runlevels/boot + fi + if use hppa; then elog "Setting the console font does not work on all HPPA consoles." elog "You can still enable it by running:" |