From: Matthew Thode Date: Tue, 22 Sep 2015 05:14:06 +0000 (-0500) Subject: sys-power/bbswitch: fixing build bug 513542 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=6ac251c9a63310214897d01b46f686f8d2a64b8b;p=gentoo.git sys-power/bbswitch: fixing build bug 513542 Package-Manager: portage-2.2.20.1 --- 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