From: dkwo <dkwo@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] sbctl: update
Date: Wed, 31 Jul 2024 16:58:43 +0200 [thread overview]
Message-ID: <20240731145843.CD8D521465@inbox.vuxu.org> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-46165@inbox.vuxu.org>
[-- Attachment #1: Type: text/plain, Size: 492 bytes --]
There is an updated pull request by dkwo against master on the void-packages repository
https://github.com/dkwo/void-packages sbctl
https://github.com/void-linux/void-packages/pull/46165
sbctl: update
- I tested the changes in this PR: yes
- I built this PR locally for my native architecture, (x86_64-glibc)
the patch fixes https://github.com/Foxboron/sbctl/issues/102
cc maintainer @ericonr
A patch file from https://github.com/void-linux/void-packages/pull/46165.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-sbctl-46165.patch --]
[-- Type: text/x-diff, Size: 2633 bytes --]
From b9f7443c32684554413cebea768fb1a309a3963b Mon Sep 17 00:00:00 2001
From: dkwo <nicolopiazzalunga@gmail.com>
Date: Sun, 17 Sep 2023 09:43:11 -0400
Subject: [PATCH] sbctl: run checks, update to 0.15.2
---
srcpkgs/sbctl/files/sbctl.conf | 19 +++++++++++++++++++
srcpkgs/sbctl/template | 30 ++++++++++++++++++++----------
2 files changed, 39 insertions(+), 10 deletions(-)
create mode 100644 srcpkgs/sbctl/files/sbctl.conf
diff --git a/srcpkgs/sbctl/files/sbctl.conf b/srcpkgs/sbctl/files/sbctl.conf
new file mode 100644
index 00000000000000..ca9ceb51b64337
--- /dev/null
+++ b/srcpkgs/sbctl/files/sbctl.conf
@@ -0,0 +1,19 @@
+---
+landlock: true
+keydir: /var/lib/sbctl/keys
+guid: /var/lib/sbctl/GUID
+files_db: /var/lib/sbctl/files.json
+bundles_db: /var/lib/sbctl/bundles.json
+keys:
+ pk:
+ privkey: /var/lib/sbctl/keys/PK/PK.key
+ pubkey: /var/lib/sbctl/keys/PK/PK.pem
+ type: file
+ kek:
+ privkey: /var/lib/sbctl/keys/KEK/KEK.key
+ pubkey: /var/lib/sbctl/keys/KEK/KEK.pem
+ type: file
+ db:
+ privkey: /var/lib/sbctl/keys/db/db.key
+ pubkey: /var/lib/sbctl/keys/db/db.pem
+ type: file
diff --git a/srcpkgs/sbctl/template b/srcpkgs/sbctl/template
index 5d181cd62da0d7..5a00d649371be3 100644
--- a/srcpkgs/sbctl/template
+++ b/srcpkgs/sbctl/template
@@ -1,26 +1,36 @@
# Template file for 'sbctl'
pkgname=sbctl
-version=0.10
-revision=3
+version=0.15.2
+revision=1
build_style=go
+build_helper=qemu
go_import_path="github.com/foxboron/sbctl"
+go_package="${go_import_path}/cmd/sbctl"
+go_ldflags="-X ${go_import_path}.Version=${version}"
hostmakedepends="asciidoc"
+checkdepends="openssl-devel"
short_desc="Secure Boot key manager"
maintainer="Érico Nogueira <ericonr@disroot.org>"
license="MIT"
homepage="https://github.com/Foxboron/sbctl"
distfiles="https://github.com/Foxboron/sbctl/archive/${version}.tar.gz"
-checksum=22c394e1ae3f80eafe85e331ca4499d2df28bebcc4421c0af89241b897a17774
+checksum=5bc8e8e12df1239d56f0915801327a0637c92b6ebb11e3ed0bb33ec6eaf75df1
+# make_dirs="/var/lib/sbctl 0700 root root"
+conf_files="/etc/sbctl/sbctl.conf"
+export GOFLAGS="-buildmode=pie"
-do_build() {
- make
-}
-
-do_install() {
- make install PREFIX=/usr DESTDIR=$DESTDIR
- # TODO: install completions, sbctl tries to run lsblk when generating them
+do_check() {
+ go test -v ./...
}
post_install() {
+ make man
+ vman docs/sbctl.8
vlicense LICENSE
+ SBCTL="${DESTDIR}/usr/bin/sbctl"
+ for shell in bash fish zsh; do
+ vtargetrun ${SBCTL} completion ${shell} > sbctl.${shell}
+ vcompletion sbctl.${shell} ${shell}
+ done
+ vinstall ${FILESDIR}/sbctl.conf 640 etc/sbctl
}
next prev parent reply other threads:[~2024-07-31 14:58 UTC|newest]
Thread overview: 64+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-09-20 20:39 [PR PATCH] sbctl: update to 0.11, patch, add kernel hook dkwo
2023-09-20 22:27 ` Duncaen
2023-09-20 22:27 ` Duncaen
2023-09-20 22:28 ` Duncaen
2023-09-21 15:59 ` dkwo
2023-09-21 16:09 ` Duncaen
2023-09-21 18:11 ` [PR PATCH] [Updated] " dkwo
2023-09-21 18:12 ` dkwo
2023-09-21 18:16 ` Duncaen
2023-09-21 18:22 ` Duncaen
2023-09-21 18:22 ` Duncaen
2023-09-21 18:22 ` Duncaen
2023-09-21 18:23 ` Duncaen
2023-09-21 18:24 ` Duncaen
2023-09-21 20:09 ` [PR PATCH] [Updated] " dkwo
2023-09-21 20:09 ` dkwo
2023-09-23 13:06 ` [PR REVIEW] " classabbyamp
2023-09-23 14:59 ` [PR PATCH] [Updated] " dkwo
2023-09-23 15:00 ` [PR REVIEW] " dkwo
2023-09-23 20:59 ` [PR PATCH] [Updated] " dkwo
2023-09-23 21:00 ` dkwo
2023-10-11 18:48 ` dkwo
2023-10-26 22:08 ` [PR PATCH] [Updated] " dkwo
2023-10-26 22:13 ` dkwo
2023-10-27 19:50 ` [PR PATCH] [Updated] " dkwo
2023-10-27 20:22 ` dkwo
2023-10-27 20:25 ` sbctl: update to 0.12, " dkwo
2023-10-27 20:25 ` dkwo
2023-11-02 14:54 ` dkwo
2023-12-21 9:13 ` [PR PATCH] [Updated] " dkwo
2023-12-27 16:18 ` dkwo
2023-12-27 18:41 ` dkwo
2024-01-07 14:17 ` [PR PATCH] [Updated] sbctl: update, " dkwo
2024-01-16 17:03 ` dkwo
2024-01-16 22:41 ` dkwo
2024-01-16 22:42 ` [PR PATCH] [Updated] " dkwo
2024-01-25 19:38 ` dkwo
2024-01-25 19:40 ` dkwo
2024-01-25 19:42 ` [PR PATCH] [Updated] " dkwo
2024-01-25 19:46 ` dkwo
2024-01-30 22:51 ` dkwo
2024-02-01 0:42 ` Duncaen
2024-02-01 0:43 ` Duncaen
2024-02-01 0:43 ` Duncaen
2024-02-01 16:06 ` dkwo
2024-02-01 17:27 ` Duncaen
2024-02-02 22:36 ` [PR PATCH] [Updated] " dkwo
2024-02-02 22:40 ` dkwo
2024-02-02 22:40 ` dkwo
2024-04-17 19:53 ` [PR PATCH] [Updated] " dkwo
2024-04-17 19:58 ` dkwo
2024-05-11 20:18 ` [PR PATCH] [Updated] sbctl: update dkwo
2024-05-11 21:55 ` dkwo
2024-07-31 11:59 ` Calandracas606
2024-07-31 14:58 ` dkwo [this message]
2024-07-31 15:17 ` dkwo
2024-07-31 17:56 ` Foxboron
2024-08-01 9:32 ` [PR PATCH] [Updated] " dkwo
2024-08-01 9:35 ` dkwo
2024-08-05 8:17 ` dkwo
2024-08-07 3:49 ` classabbyamp
2024-08-07 8:59 ` [PR PATCH] [Updated] " dkwo
2024-08-07 9:08 ` dkwo
2024-08-07 10:20 ` [PR PATCH] [Merged]: " classabbyamp
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240731145843.CD8D521465@inbox.vuxu.org \
--to=dkwo@users.noreply.github.com \
--cc=ml@inbox.vuxu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).