diff options
-rw-r--r-- | sys-power/bbswitch/bbswitch-0.8.ebuild | 6 |
1 files changed, 5 insertions, 1 deletions
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 |