commit: 6ac251c9a63310214897d01b46f686f8d2a64b8b
Author: Matthew Thode <prometheanfire <AT> gentoo <DOT> org>
AuthorDate: Tue Sep 22 05:14:06 2015 +0000
Commit: Matt Thode <prometheanfire <AT> gentoo <DOT> org>
CommitDate: Tue Sep 22 05:14:06 2015 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6ac251c9
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 bedd898..aa7df51 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