# Copyright 1999-2015 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI=5 inherit linux-info linux-mod DESCRIPTION="Log-structured Caching for Linux" HOMEPAGE="https://github.com/akiradeveloper/dm-writeboost" SRC_URI="https://github.com/akiradeveloper/dm-writeboost/archive/v${PV}.tar.gz -> ${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="" DEPEND="" RDEPEND="${DEPEND} sys-fs/dm-writeboost-tools" S="${WORKDIR}/${P}" MODULE_NAMES="${PN}(drivers/md:${S}/src)" BUILD_TARGETS="modules" BUILD_PARAMS="V=0 M=${S}/src" pkg_setup() { linux-info_pkg_setup linux-mod_pkg_setup CONFIG_CHECK="BLK_DEV_DM LIBCRC32C" check_extra_config } src_compile() { BUILD_PARAMS+=" -C ${KV_DIR} KERNEL_SOURCE_VERSION=${KV_FULL}" linux-mod_src_compile } src_install() { dodoc ChangeLog doc/* linux-mod_src_install }