diff options
author | Justin Lecher <jlec@gentoo.org> | 2016-01-30 16:11:14 +0100 |
---|---|---|
committer | Justin Lecher <jlec@gentoo.org> | 2016-01-30 16:11:26 +0100 |
commit | 76aca9c8583227c0a267442b3f82d162b101dfea (patch) | |
tree | 4c6a783039f083bafd58323314f03a7886a1ee0b /sys-fs/bcache-tools/bcache-tools-1.0.8_p20140220-r1.ebuild | |
parent | dev-python/virtualenv: Version Bump (diff) | |
download | gentoo-76aca9c8583227c0a267442b3f82d162b101dfea.tar.gz gentoo-76aca9c8583227c0a267442b3f82d162b101dfea.tar.bz2 gentoo-76aca9c8583227c0a267442b3f82d162b101dfea.zip |
sys-fs/bcache-tools: Fix build problems
Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=573372
Package-Manager: portage-2.2.27
Signed-off-by: Justin Lecher <jlec@gentoo.org>
Diffstat (limited to 'sys-fs/bcache-tools/bcache-tools-1.0.8_p20140220-r1.ebuild')
-rw-r--r-- | sys-fs/bcache-tools/bcache-tools-1.0.8_p20140220-r1.ebuild | 78 |
1 files changed, 78 insertions, 0 deletions
diff --git a/sys-fs/bcache-tools/bcache-tools-1.0.8_p20140220-r1.ebuild b/sys-fs/bcache-tools/bcache-tools-1.0.8_p20140220-r1.ebuild new file mode 100644 index 000000000000..af47111be78a --- /dev/null +++ b/sys-fs/bcache-tools/bcache-tools-1.0.8_p20140220-r1.ebuild @@ -0,0 +1,78 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +PYTHON_COMPAT=( python3_{3,4,5} ) + +inherit eutils flag-o-matic python-r1 toolchain-funcs udev + +DESCRIPTION="Tools for bcachefs" +HOMEPAGE="http://bcache.evilpiepirate.org/" +SRC_URI=" + https://github.com/g2p/bcache-tools/archive/v${PV%%_p*}.tar.gz -> ${P}.tgz + https://dev.gentoo.org/~jlec/distfiles/bcache-status-20140220.tar.gz +" + +SLOT="0" +LICENSE="GPL-2" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +IUSE="" + +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +RDEPEND="${PYTHON_DEPS} + >=sys-apps/util-linux-2.24" +DEPEND="${RDEPEND}" + +PATCHES=( + "${FILESDIR}"/${PV}/bcache-status-python3.patch + "${FILESDIR}"/${PV}/bcache-tools-1.0.8-crc64.patch + "${FILESDIR}"/${PV}/bcache-tools-1.0.8-noprobe.patch + "${FILESDIR}"/${PV}/bcache-tools-20131018-fedconf.patch + "${FILESDIR}"/${PV}/bcache-tools-status-20130826-man.patch +) + +S="${WORKDIR}"/${P%%_p*} + +src_prepare() { + tc-export CC + sed \ + -e '/^CFLAGS/s:-O2::' \ + -e '/^CFLAGS/s:-g:-std=gnu99:' \ + -i Makefile || die + + append-lfs-flags + + cp ../bcache-status*/bcache-status . || die + + epatch "${PATCHES[@]}" +} + +src_install() { + into / + dosbin make-bcache bcache-super-show + + exeinto $(get_udevdir) + doexe bcache-register probe-bcache + + python_foreach_impl python_doscript bcache-status + + 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 +} |