summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Schmaus <flow@gentoo.org>2021-06-29 13:28:50 +0200
committerFlorian Schmaus <flow@gentoo.org>2021-06-29 13:33:22 +0200
commit736714abf5ef458cdafa0aaf53a5d10e9d63a596 (patch)
tree38ad7b76d4f2715df8ddc4bf49ffa2ec61869ce1 /sys-fs/bcache-tools/bcache-tools-1.1-r1.ebuild
parentsys-fs/bcache-tools: add myself as maintainer, drop outdated remote (diff)
downloadgentoo-736714abf5ef458cdafa0aaf53a5d10e9d63a596.tar.gz
gentoo-736714abf5ef458cdafa0aaf53a5d10e9d63a596.tar.bz2
gentoo-736714abf5ef458cdafa0aaf53a5d10e9d63a596.zip
sys-fs/bcache-tools: add missing virtual/udev RDEPEND
Signed-off-by: Florian Schmaus <flow@gentoo.org>
Diffstat (limited to 'sys-fs/bcache-tools/bcache-tools-1.1-r1.ebuild')
-rw-r--r--sys-fs/bcache-tools/bcache-tools-1.1-r1.ebuild71
1 files changed, 71 insertions, 0 deletions
diff --git a/sys-fs/bcache-tools/bcache-tools-1.1-r1.ebuild b/sys-fs/bcache-tools/bcache-tools-1.1-r1.ebuild
new file mode 100644
index 000000000000..d675b12de42f
--- /dev/null
+++ b/sys-fs/bcache-tools/bcache-tools-1.1-r1.ebuild
@@ -0,0 +1,71 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{7,8,9} )
+
+inherit flag-o-matic python-r1 toolchain-funcs udev
+
+DESCRIPTION="Tools for bcache"
+HOMEPAGE="https://bcache.evilpiepirate.org/"
+SRC_URI="https://git.kernel.org/pub/scm/linux/kernel/git/colyli/${PN}.git/snapshot/${P}.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
+ virtual/udev
+"
+DEPEND="${RDEPEND}"
+
+PATCHES=(
+ "${FILESDIR}"/1.0.8_p20140220/bcache-tools-1.0.8-noprobe.patch
+ "${FILESDIR}"/${PV}/bcache-tools-add-bcache-status.patch
+ "${FILESDIR}"/${PV}/bcache-tools-add-man-page-bcache-status.8.patch
+)
+
+src_prepare() {
+ default
+
+ tc-export CC
+ sed \
+ -e '/^CFLAGS/s:-O2::' \
+ -e '/^CFLAGS/s:-g::' \
+ -i Makefile || die
+
+ append-lfs-flags
+}
+
+src_install() {
+ into /
+ dosbin bcache 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
+}