From 6ac251c9a63310214897d01b46f686f8d2a64b8b Mon Sep 17 00:00:00 2001 From: Matthew Thode Date: Tue, 22 Sep 2015 00:14:06 -0500 Subject: [PATCH] sys-power/bbswitch: fixing build bug 513542 Package-Manager: portage-2.2.20.1 --- sys-power/bbswitch/bbswitch-0.8.ebuild | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sys-power/bbswitch/bbswitch-0.8.ebuild b/sys-power/bbswitch/bbswitch-0.8.ebuild index bedd8989e904..aa7df518c4cd 100644 --- a/sys-power/bbswitch/bbswitch-0.8.ebuild +++ b/sys-power/bbswitch/bbswitch-0.8.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2014 Gentoo Foundation +# Copyright 1999-2015 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Id$ @@ -29,6 +29,10 @@ pkg_setup() { BUILD_PARAMS="KVERSION=${KV_FULL}" } +src_prepare() { + sed -i 's/^KDIR.*$/KDIR\ \:= \/usr\/src\/linux/g' Makefile || die +} + src_install() { insinto /etc/modprobe.d newins "${FILESDIR}"/bbswitch.modprobe bbswitch.conf -- 2.26.2