-
-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(cherry picked from commit bdcbace) Co-authored-by: Cappy Ishihara <[email protected]>
- Loading branch information
1 parent
2e31c5b
commit 16fae52
Showing
3 changed files
with
90 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
project pkg { | ||
rpm { | ||
spec = "sbctl.spec" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
Name: sbctl | ||
Version: 0.13 | ||
Release: 1%{?dist} | ||
Summary: Secure Boot key manager | ||
|
||
License: MIT | ||
URL: https://github.com/Foxboron/sbctl | ||
Source0: https://github.com/Foxboron/sbctl/releases/download/%{version}/sbctl-%{version}.tar.gz | ||
|
||
ExclusiveArch: %{golang_arches} | ||
|
||
Requires: binutils | ||
Requires: util-linux | ||
|
||
Recommends: systemd-udev | ||
|
||
BuildRequires: asciidoc | ||
BuildRequires: git | ||
BuildRequires: go-rpm-macros | ||
|
||
%description | ||
sbctl intends to be a user-friendly secure boot key manager capable of setting | ||
up secure boot, offer key management capabilities, and keep track of files that | ||
needs to be signed in the boot chain. | ||
|
||
|
||
%prep | ||
%setup -q | ||
sed -i '/go build/d' Makefile | ||
|
||
|
||
%build | ||
export GOPATH=%{_builddir}/go | ||
%global gomodulesmode GO111MODULE=on | ||
%gobuild -o sbctl ./cmd/sbctl | ||
%make_build | ||
|
||
|
||
%install | ||
%make_install PREFIX=%{_prefix} | ||
|
||
|
||
%transfiletriggerin -P 1 -- /boot /efi /usr/lib /usr/libexec | ||
if grep -q -m 1 -e '\.efi$' -e '/vmlinuz$'; then | ||
exec </dev/null | ||
%{_bindir}/sbctl sign-all -g | ||
fi | ||
|
||
|
||
%files | ||
%license LICENSE | ||
%doc README.md | ||
%{_bindir}/sbctl | ||
%{_prefix}/lib/kernel/install.d/91-sbctl.install | ||
%{_mandir}/man8/sbctl.8* | ||
%{_datadir}/bash-completion/completions/sbctl | ||
%{_datadir}/fish/vendor_completions.d/sbctl.fish | ||
%{_datadir}/zsh/site-functions/_sbctl | ||
|
||
|
||
%changelog | ||
* Sat Mar 30 2024 Cappy Ishihara <[email protected]> - 0.13-1 | ||
- Push to Terra | ||
|
||
* Tue Dec 26 2023 Andrew Gunnerson <[email protected]> - 0.13-1 | ||
- Update to version 0.13 | ||
|
||
* Sun Nov 12 2023 Andrew Gunnerson <[email protected]> - 0.12-2 | ||
- Switch to upstream 91-sbctl.install kernel-install script | ||
|
||
* Fri Oct 20 2023 Andrew Gunnerson <[email protected]> - 0.12-1 | ||
- Update to version 0.12 | ||
|
||
* Sat Mar 25 2023 Andrew Gunnerson <[email protected]> - 0.11-1 | ||
- Update to version 0.11 | ||
|
||
* Mon Dec 12 2022 Andrew Gunnerson <[email protected]> - 0.10-1 | ||
- Update to version 0.10 | ||
|
||
* Tue May 3 2022 Andrew Gunnerson <[email protected]> - 0.9-1 | ||
- Update to version 0.9 | ||
|
||
* Thu Jan 27 2022 Andrew Gunnerson <[email protected]> - 0.8-1 | ||
- Initial release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
rpm.version(gh("Foxboron/sbctl")); |