diff options
author | Florian Schmaus <flow@gentoo.org> | 2021-06-29 13:30:28 +0200 |
---|---|---|
committer | Florian Schmaus <flow@gentoo.org> | 2021-06-29 13:33:23 +0200 |
commit | 54dc8ac2a8076f0f08d801b436c6ffd19ae51b18 (patch) | |
tree | 87f326876e21edbbec2f68868320b811a0516b1e /sys-fs | |
parent | sys-fs/bcache-tools: add missing virtual/udev RDEPEND (diff) | |
download | gentoo-54dc8ac2a8076f0f08d801b436c6ffd19ae51b18.tar.gz gentoo-54dc8ac2a8076f0f08d801b436c6ffd19ae51b18.tar.bz2 gentoo-54dc8ac2a8076f0f08d801b436c6ffd19ae51b18.zip |
sys-fs/bcache-tools: add 9999
Signed-off-by: Florian Schmaus <flow@gentoo.org>
Diffstat (limited to 'sys-fs')
-rw-r--r-- | sys-fs/bcache-tools/bcache-tools-9999.ebuild | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/sys-fs/bcache-tools/bcache-tools-9999.ebuild b/sys-fs/bcache-tools/bcache-tools-9999.ebuild new file mode 100644 index 000000000000..5cb77851e552 --- /dev/null +++ b/sys-fs/bcache-tools/bcache-tools-9999.ebuild @@ -0,0 +1,69 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{7..10} ) + +inherit flag-o-matic python-r1 toolchain-funcs udev + +if [[ "${PV}" == "9999" ]]; then + inherit git-r3 + EGIT_REPO_URI="https://git.kernel.org/pub/scm/linux/kernel/git/colyli/bcache-tools.git https://kernel.googlesource.com/pub/scm/linux/kernel/git/colyli/bcache-tools.git" +else + SRC_URI="https://git.kernel.org/pub/scm/linux/kernel/git/colyli/${PN}.git/snapshot/${P}.tar.gz" +fi + +DESCRIPTION="Tools for bcache" +HOMEPAGE="https://git.kernel.org/pub/scm/linux/kernel/git/colyli/bcache-tools.git/" + +SLOT="0" +LICENSE="GPL-2" + +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +RDEPEND=" + ${PYTHON_DEPS} + sys-apps/util-linux + virtual/udev +" +DEPEND="${RDEPEND}" + +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 +} |