blob: 6cbfae0c1a1e6d0ef5d1c923ca5596e743c5c9b9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=5
inherit toolchain-funcs udev
DESCRIPTION="Tools for bcachefs"
HOMEPAGE="http://bcache.evilpiepirate.org/"
SRC_URI="https://github.com/g2p/bcache-tools/archive/v${PV}.tar.gz -> ${P}.tgz"
SLOT="0"
LICENSE="GPL-2"
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
IUSE=""
RDEPEND=">=sys-apps/util-linux-2.24"
DEPEND="${RDEPEND}"
src_prepare() {
tc-export CC
sed \
-e '/^CFLAGS/s:-O2::' \
-e '/^CFLAGS/s:-g:-std=gnu89:' \
-i Makefile || die
}
src_install() {
into /
dosbin make-bcache bcache-super-show
exeinto $(get_udevdir)
doexe bcache-register probe-bcache
udev_dorules 69-bcache.rules
insinto /etc/initramfs-tools/hooks/bcache
doins initramfs/hook
# that is what dracut does
insinto /usr/lib/dracut/modules.d/90bcache
doins dracut/module-setup.sh
doman *.8
dodoc README
}
pkg_postinst() {
udev_reload
}
|