app-crypt/sbctl - 0.18 (gentoo)

Search

Package Information

Description:
Secure Boot key manager
Homepage:
https://github.com/Foxboron/sbctl
License:
Apache-2.0 BSD BSD-2 MIT Apache-2.0 BSD BSD-2 GPL-2 MIT

Ebuild Details

Version EAPI Keywords Slot
0.18 8 ~amd64 0
View Raw Ebuild
# Copyright 2022-2025 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"
# Dependent licenses
LICENSE+="  Apache-2.0 BSD BSD-2 GPL-2 MIT"
# Dependent licenses
LICENSE+="  "
SLOT="0"
KEYWORDS="~amd64"

DEPEND="sys-apps/pcsc-lite"

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]"
}

Dependencies

DEPEND

sys-apps/pcsc-lite

BDEPEND

app-text/asciidoc
	verify-sig? ( sec-keys/openpgp-keys-foxboron )

Manifest for 0.18

Type File Size Source URLs
DIST sbctl-0.18.tar.gz 17982581 bytes https://github.com/Foxboron/sbctl/releases/download/0.18/sbctl-0.18.tar.gz
DIST sbctl-0.18.tar.gz.sig 566 bytes https://github.com/Foxboron/sbctl/releases/download/0.18/sbctl-0.18.tar.gz.sig