# Copyright 1999-2015 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Id$ EAPI=5 inherit toolchain-funcs udev DESCRIPTION="Tools for bcachefs" HOMEPAGE="http://bcache.evilpiepirate.org/" SRC_URI="https://dev.gentoo.org/~jlec/distfiles/${P}.tar.xz" SLOT="0" LICENSE="GPL-2" KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" IUSE="" src_prepare() { tc-export CC sed \ -e '/^CFLAGS/d' \ -i Makefile || die } src_install() { into / dosbin make-bcache probe-bcache bcache-super-show doman *.8 insinto /etc/initramfs-tools/hooks/bcache doins initramfs/hook udev_dorules 61-bcache.rules exeinto $(get_udevdir) doexe bcache-register dodoc README } pkg_postinst() { udev_reload }