add sys-kernel/dracut-hook-bcachefs package

This commit is contained in:
2024-10-15 10:54:23 +03:00
parent 1c4199101b
commit d47d04385f
2 changed files with 30 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit toolchain-funcs
DESCRIPTION="Early unlocking of encrypted systems via ssh for dracut"
HOMEPAGE="https://github.com/kode54/dracut-hook-bcachefs"
SRC_URI="https://github.com/kode54/dracut-hook-bcachefs/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~arm64 ~x86"
DEPEND="sys-kernel/dracut"
RDEPEND="${DEPEND}
sys-fs/bcachefs-tools"
src_compile() {
if [[ ! -f Makefile ]]; then
emake || die "emake failed"
fi
}
src_install() {
emake -j1 DESTDIR="${D}" install || die "emake failed"
}