summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Helmert III <ajak@gentoo.org>2022-08-02 11:53:13 -0500
committerJohn Helmert III <ajak@gentoo.org>2022-08-02 11:55:28 -0500
commit46694cf0c3e2c0512b65aa5acfe52e0a4fcb04cf (patch)
tree1422a076d0f7a3f7a46002fff964c605b7150997
parentsec-keys/openpgp-keys-foxboron: new package, add 20220802 (diff)
downloadgentoo-46694cf0c3e2c0512b65aa5acfe52e0a4fcb04cf.tar.gz
gentoo-46694cf0c3e2c0512b65aa5acfe52e0a4fcb04cf.tar.bz2
gentoo-46694cf0c3e2c0512b65aa5acfe52e0a4fcb04cf.zip
app-crypt/sbctl: new package, add 0.9
Signed-off-by: John Helmert III <ajak@gentoo.org>
-rw-r--r--app-crypt/sbctl/Manifest3
-rw-r--r--app-crypt/sbctl/metadata.xml12
-rw-r--r--app-crypt/sbctl/sbctl-0.9.ebuild34
3 files changed, 49 insertions, 0 deletions
diff --git a/app-crypt/sbctl/Manifest b/app-crypt/sbctl/Manifest
new file mode 100644
index 000000000000..5156999ee2dd
--- /dev/null
+++ b/app-crypt/sbctl/Manifest
@@ -0,0 +1,3 @@
+DIST sbctl-0.9-deps.tar.xz 21517024 BLAKE2B 6a90caf5bae7561d63d65777f8293012f946a1688dc86e2a9932ec1eb6cd3b89cd2293c202daa01ab8dc91952fcb7c47974a72d1750965d9d0636441d1405782 SHA512 6ec614082a15b2817f551d7b25353f1014bec7a86b730617168ba719695836571cbeff66b9ee57ebef37fcbfff4565117fc44ad1580b790a9cb031f861e71937
+DIST sbctl-0.9.tar.gz 108318 BLAKE2B 8d50562e471416562e5cec07e155ea16cb919cff062435c3450e09c1d411b3a356f42a062aae74c5b826afe6f7853a68eb213b479797ca85bbd847d95d386f03 SHA512 5b1d02dce29ca2adc96048191ebdd07003d4ada28fb829fb829db27645710696502efe1c4b94166df7ddeceaa283cc713e7d9195c11291d426a69aa3cce5cf22
+DIST sbctl-0.9.tar.gz.sig 566 BLAKE2B 1932291376bd993626cfeaa82a7a58ea8998eefbf8cf952a66ba9133d22f4da414a0cbe1e50382308d710fe7af0277582cb8c3d77cd043cb4d22c6e832da8c28 SHA512 39f7848796c92babe9ffd3928c71adee4987ab97ae8606baecaf2c7def7a5147624027450c6bfafc66e30c18d609354d06e5c30aeb362fabd8d7efcaed7e151d
diff --git a/app-crypt/sbctl/metadata.xml b/app-crypt/sbctl/metadata.xml
new file mode 100644
index 000000000000..31fb1548e9e1
--- /dev/null
+++ b/app-crypt/sbctl/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>ajak@gentoo.org</email>
+ <name>John Helmert III</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">Foxboron/sbctl</remote-id>
+ <changelog>https://github.com/Foxboron/sbctl/releases</changelog>
+ </upstream>
+</pkgmetadata>
diff --git a/app-crypt/sbctl/sbctl-0.9.ebuild b/app-crypt/sbctl/sbctl-0.9.ebuild
new file mode 100644
index 000000000000..7d3e9ef2e850
--- /dev/null
+++ b/app-crypt/sbctl/sbctl-0.9.ebuild
@@ -0,0 +1,34 @@
+# Copyright 2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit go-module 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
+ https://dev.gentoo.org/~ajak/dist/${P}-deps.tar.xz
+ verify-sig? ( https://github.com/Foxboron/${PN}/releases/download/${PV}/${P}.tar.gz.sig )"
+
+LICENSE="Apache-2.0 BSD BSD-2 MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+
+BDEPEND="app-text/asciidoc
+ dev-lang/go
+ verify-sig? ( sec-keys/openpgp-keys-foxboron )"
+
+VERIFY_SIG_OPENPGP_KEY_PATH="${BROOT}/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
+}