From 92ef22d65f9663d89c2cf90e55d22d47d6f67d8f Mon Sep 17 00:00:00 2001 From: Alexander Miroshnichenko Date: Sun, 17 Nov 2024 21:22:24 +0300 Subject: [PATCH] sys-kernel/dracut-bcachefs: add new package --- .../dracut-bcachefs-9999.ebuild | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 sys-kernel/dracut-bcachefs/dracut-bcachefs-9999.ebuild diff --git a/sys-kernel/dracut-bcachefs/dracut-bcachefs-9999.ebuild b/sys-kernel/dracut-bcachefs/dracut-bcachefs-9999.ebuild new file mode 100644 index 0000000..0eaa8c7 --- /dev/null +++ b/sys-kernel/dracut-bcachefs/dracut-bcachefs-9999.ebuild @@ -0,0 +1,31 @@ +# Copyright 2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +if [[ ${PV} == "9999" ]] ; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/breavyn/dracut-bcachefs.git" + KEYWORDS="~amd64 ~x86" +else + SRC_URI="https://github.com/breavyn/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64 ~x86" +fi + +DESCRIPTION="This module allows mounting an encrypted bcachefs subvolume as / . The root of the bcachefs filesystem is made available at /.bcachefs" +HOMEPAGE="https://github.com/breavyn/dracut-bcachefs" + +LICENSE="GPL-2.0" +SLOT="0" + +DEPEND="" +RDEPEND="${DEPEND} + sys-kernel/dracut" +BDEPEND="" + +src_install() { + default + + exeinto /usr/lib/dracut/modules.d/90bcachefs + doexe "${S}"/90bcachefs/* +}