You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
53 lines
1.0 KiB
53 lines
1.0 KiB
11 years ago
|
# Copyright 1999-2014 Gentoo Foundation
|
||
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
# $Header: /var/cvsroot/gentoo-x86/sys-fs/bcache-tools/bcache-tools-1.0.5.ebuild,v 1.1 2014/01/20 11:44:03 jlec Exp $
|
||
|
|
||
|
EAPI=5
|
||
|
|
||
|
inherit toolchain-funcs udev
|
||
|
|
||
|
DESCRIPTION="Tools for bachefs"
|
||
|
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::' \
|
||
|
-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
|
||
|
}
|