diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-05-12 00:01:15 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-05-12 00:01:15 +0100 |
commit | d72a987a342949e200b5e9decbd71f246da53788 (patch) | |
tree | ea9d3f4ec74bd6ab18582852d7958d3f3176dfea /app-crypt/sbctl/sbctl-0.14.ebuild | |
parent | c035b2b83f0e94c4b2e82184f00bcef874e6276b (diff) |
gentoo auto-resync : 12:05:2024 - 00:01:15
Diffstat (limited to 'app-crypt/sbctl/sbctl-0.14.ebuild')
-rw-r--r-- | app-crypt/sbctl/sbctl-0.14.ebuild | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/app-crypt/sbctl/sbctl-0.14.ebuild b/app-crypt/sbctl/sbctl-0.14.ebuild new file mode 100644 index 000000000000..97f67663daf4 --- /dev/null +++ b/app-crypt/sbctl/sbctl-0.14.ebuild @@ -0,0 +1,38 @@ +# Copyright 2022-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit go-module optfeature verify-sig + +DESCRIPTION="Secure Boot key manager" +HOMEPAGE="https://github.com/Foxboron/sbctl" +SRC_URI="https://github.com/Foxboron/${PN}/releases/download/${PV}/${P}.tar.gz + verify-sig? ( https://github.com/Foxboron/${PN}/releases/download/${PV}/${P}.tar.gz.sig )" +SRC_URI+=" https://dev.gentoo.org/~ajak/distfiles/${CATEGORY}/${PN}/${P}-deps.tar.xz" + +LICENSE="Apache-2.0 BSD BSD-2 MIT" +SLOT="0" +KEYWORDS="~amd64" + +BDEPEND="app-text/asciidoc + verify-sig? ( sec-keys/openpgp-keys-foxboron )" + +VERIFY_SIG_OPENPGP_KEY_PATH="/usr/share/openpgp-keys/foxboron.asc" + +src_unpack() { + if use verify-sig; then + verify-sig_verify_detached "${DISTDIR}"/${P}.tar.gz{,.sig} + fi + + default +} + +src_install() { + emake PREFIX="${ED}/usr" install +} + +pkg_postinst() { + optfeature "automatically signing installed kernels with sbctl keys on each kernel installation" \ + "sys-kernel/installkernel[systemd]" +} |