sys-kernel/booster: new pakage

This commit is contained in:
2024-09-27 13:50:38 +03:00
parent 538fd3f7b3
commit 3c079a9ed1
3 changed files with 56 additions and 0 deletions

View File

@@ -0,0 +1,36 @@
# Copyright 2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit go-module
DESCRIPTION="Fast and secure initramfs generator"
HOMEPAGE="https://github.com/anatol/booster"
SRC_URI="https://github.com/anatol/${PN}/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz
https://git.millerson.name/alex/gentoo-artifacts/releases/download/${P}-vendor/${P}-vendor.tar.xz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
DEPEND=""
RDEPEND="${DEPEND}"
BDEPEND=""
src_compile() {
cd ${S}/generator && ego build
cd ${S}/init && ego build
}
src_install() {
insinto /etc
newins "${FILESDIR}/${PN}.yaml" ${PN}.yaml
exeinto /usr/lib/${PN}
doexe init/init
newbin generator/generator ${PN}
default
}