# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 inherit go-module optfeature DESCRIPTION="Fast and secure initramfs generator" HOMEPAGE="https://github.com/anatol/booster" SRC_URI="https://github.com/anatol/booster/archive/refs/tags/0.10.tar.gz -> ${P}.tar.gz" SRC_URI+=" file:///var/db/repos/dev/sys-kernel/booster/booster-0.10-vendor.tar.xz" LICENSE="MIT" SLOT="0" KEYWORDS="~amd64" IUSE="+man" RDEPEND="app-shells/bash" DEPEND="${RDEPEND}" BDEPEND=" man? ( app-text/ronn-ng )" PATCHES=( "${FILESDIR}/${PN}-fix-console-font-path.patch" "${FILESDIR}/${PN}-fix-lib-path.patch" ) src_compile() { cd generator ego build cd ../init ego build cd .. if use man; then ronn docs/manpage.md fi } src_install() { newbin generator/generator booster exeinto /usr/lib/booster doexe init/init if use man; then newman docs/manpage.1 booster.1 fi } pkg_postinst() { optfeature "emergency shell at the boot time" sys-apps/busybox[static] optfeature "clevis Yubikey challenge-response support" sys-auth/yubikey-personalization-gui optfeature "systemd-enroll with FIDO2" sys-apps/systemd[fido2] }