1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 inherit toolchain-funcs udev
8 DESCRIPTION="Tools for bcachefs"
9 HOMEPAGE="https://bcache.evilpiepirate.org/"
10 SRC_URI="https://github.com/g2p/bcache-tools/archive/v${PV}.tar.gz -> ${P}.tgz"
14 KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
17 RDEPEND=">=sys-apps/util-linux-2.24"
23 -e '/^CFLAGS/s:-O2::' \
24 -e '/^CFLAGS/s:-g:-std=gnu89:' \
30 dosbin make-bcache bcache-super-show
32 exeinto $(get_udevdir)
33 doexe bcache-register probe-bcache
35 udev_dorules 69-bcache.rules
37 insinto /etc/initramfs-tools/hooks/bcache
40 # that is what dracut does
41 insinto /usr/lib/dracut/modules.d/90bcache
42 doins dracut/module-setup.sh