Sync from SUSE:ALP:Source:Standard:1.0 sevctl revision 3cb8b2c9d40b9d0bc6fb87b0688e2131

This commit is contained in:
Adrian Schröter 2023-09-22 09:59:19 +02:00
commit b5977d411a
8 changed files with 218 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

30
_service Normal file
View File

@ -0,0 +1,30 @@
<services>
<service name="obs_scm" mode="disabled">
<param name="url">https://github.com/virtee/sevctl.git</param>
<param name="scm">git</param>
<param name="filename">sevctl</param>
<param name="revision">v0.4.3</param>
<param name="versionformat">@PARENT_TAG@</param>
<param name="versionrewrite-pattern">[v]?([^\+]+)(.*)</param>
<param name="versionrewrite-replacement">\1</param>
</service>
<service name="set_version" mode="disabled"/>
<service name="tar" mode="disabled"/>
<service name="recompress" mode="disabled">
<param name="file">*.tar</param>
<param name="compression">xz</param>
</service>
<service name="cargo_audit" mode="disabled">
<param name="srcdir">sevctl</param>
</service>
<service name="cargo_vendor" mode="disabled">
<param name="srcdir">sevctl</param>
<param name="compression">xz</param>
<param name="update">false</param>
</service>
</services>

5
cargo_config Normal file
View File

@ -0,0 +1,5 @@
[source.crates-io]
replace-with = "vendored-sources"
[source.vendored-sources]
directory = "vendor"

BIN
sevctl-0.4.3.tar.xz (Stored with Git LFS) Normal file

Binary file not shown.

95
sevctl.changes Normal file
View File

@ -0,0 +1,95 @@
-------------------------------------------------------------------
Wed Sep 13 14:42:56 UTC 2023 - Caleb Crane <caleb.crane@suse.com>
- Update to sevctl v0.4.3 (jsc#4981)
- Add show commands for identifier and VCEK URL
- Improve processor identification
- Add 'sevctl measurement build'
- Expand coverage for all AMD CPU model numbers
- Adjust to use sev VMSA result changes
- Add vmsa show command
- Implement vmsa update subcommand
- Implement vmsa build subcommand
- Detect and use host arch's CPU generation
- Support HTTP/HTTPS proxies
- Spec: Upgrade vendored dependencies
- Spec: Utilize upstream git tags
-------------------------------------------------------------------
Wed Apr 19 07:39:35 UTC 2023 - Dominique Leuenberger <dimstar@opensuse.org>
- BuildRequire rubygem(asciidoctor) instead of %{rubygem
asciidoctor}" the %rubygem} macro expands to all ruby versions,
wheras we are perfectly fine with getting only one version for
asciidoctor into the buildroot.
-------------------------------------------------------------------
Tue Mar 14 15:25:33 UTC 2023 - Caleb Crane <caleb.crane@suse.com>
- Update to v0.3.2 + git commit 255d370
dependency: Enable vendored feature for openssl
Add show commands for identifier, SNP status and VCEK URL.
readme: Add some basic provisioning instructions
Update sev library to version 1.1.0
ok: Find singular model and family on processor ID
-------------------------------------------------------------------
Wed Feb 8 20:34:00 UTC 2023 - Caleb Crane <caleb.crane@suse.com>
- Set cargo_vendor update param to false to bypass upstream semvar issues
-------------------------------------------------------------------
Tue Jan 31 22:08:30 UTC 2023 - James Fehlig <jfehlig@suse.com>
- Update to v0.3.2 + git commit e37c4d6
src/main: Remove README portion of main.rs
.github: Remove cargo readme CI test
docs: Add a generable man page
ci: Add asciidoctor as a build dependency
ok: Add Genoa processor identifying
ok: Rewrite processor generation querying
secret: Add docs and update README.md
Add `secret build` subcommand
measurement: rework some functions for use with `secret build`
main: Improve error printing on exit
measurement: Add docs and update README.md
measurement: Comment why we aren't using sev crate
Change `measurement build` output to measurement+nonce
Add `measurement build --launch-measure-blob`
Add `measurement build --vmsa-cpu0, --vmsa-cpu1, --num-cpus`
Add `measurement build --firmware --kernel --initrd --cmdline`
Add `measurement build --outfile PATH`
Let `measurement build --tk` accept path or base64 string
Let `measurement build` accept int values as hex too
Add `measurement build` subcommand
Update version to 0.3.2
Update sev crate to 1.0.1
Update to 0.3.1
Update to 0.3.1
build(deps): bump httparse from 1.7.1 to 1.8.0
Add CODEOWNERS file
CI: Drop rust 1.51.0 testing
Fix clippy warnings with rust nightly
ok: Show if Page flush MSR is enabled/disabled
ok: Change TestResult.name to String
Replace error.rs with anyhow crate
ok: Expand coverage for all AMD CPU model numbers
-------------------------------------------------------------------
Thu Jul 7 17:15:42 UTC 2022 - Caleb Crane <caleb.crane@suse.com>
- Disable obs_scm service by default
- Use a commit hash as the checked out revision corresponding to crate version 0.3.0
- Change version format to be clear we are using a git commit hash
-------------------------------------------------------------------
Thu Jul 7 04:13:20 UTC 2022 - Caleb Crane <caleb.crane@suse.com>
- Build for x86_64 only
-------------------------------------------------------------------
Thu Jul 7 03:52:13 UTC 2022 - Caleb Crane <caleb.crane@suse.com>
- Initial package for sevctl v0.3.0 (https://github.com/virtee/sevctl)
- FIXME: Upstream has no tags so using HEAD revision

4
sevctl.obsinfo Normal file
View File

@ -0,0 +1,4 @@
name: sevctl
version: 0.4.3
mtime: 1691456916
commit: c41c9172be013d6f10b9e1d7286fcb021805d5a5

55
sevctl.spec Normal file
View File

@ -0,0 +1,55 @@
#
# spec file for package sevctl
#
# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: sevctl
Version: 0.4.3
Release: 0
Summary: Administrative utility for AMD SEV
Group: Development/Libraries/Rust
License: Apache-2.0
URL: https://github.com/virtee/sevctl
Source0: %{name}-%{version}.tar.xz
Source1: vendor.tar.xz
Source2: cargo_config
BuildRequires: cargo-packaging
BuildRequires: libopenssl-devel
BuildRequires: rubygem(asciidoctor)
ExclusiveArch: x86_64
%description
Administrative utility for AMD SEV
%files
%doc README.md
%{_bindir}/sevctl
%prep
%autosetup -a1
mkdir .cargo
cp %{SOURCE2} .cargo/config
%build
%{cargo_build}
%install
%{cargo_install}
%check
%{cargo_test}
%changelog

BIN
vendor.tar.xz (Stored with Git LFS) Normal file

Binary file not shown.