From ddc703d8f61ec69f1c470379c82bea8bef253fad17c7057eb5a2378825f8074c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Wed, 28 Aug 2024 11:03:13 +0200 Subject: [PATCH] Sync from SUSE:SLFO:Main fsverity-utils revision e3f28712a1d01dbb78894380712f3a1f --- .gitattributes | 23 +++++++++++ fsverity-utils-1.6.tar.gz | 3 ++ fsverity-utils.changes | 26 ++++++++++++ fsverity-utils.spec | 86 +++++++++++++++++++++++++++++++++++++++ 4 files changed, 138 insertions(+) create mode 100644 .gitattributes create mode 100644 fsverity-utils-1.6.tar.gz create mode 100644 fsverity-utils.changes create mode 100644 fsverity-utils.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/fsverity-utils-1.6.tar.gz b/fsverity-utils-1.6.tar.gz new file mode 100644 index 0000000..d02c519 --- /dev/null +++ b/fsverity-utils-1.6.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c7aa6b17a8a069224321ff94e46fb91a6426828ca78170a879a52cef2597abb7 +size 43940 diff --git a/fsverity-utils.changes b/fsverity-utils.changes new file mode 100644 index 0000000..56664ab --- /dev/null +++ b/fsverity-utils.changes @@ -0,0 +1,26 @@ +------------------------------------------------------------------- +Thu Apr 4 08:52:34 UTC 2024 - Dirk Müller + +- update to 1.6: + * Eliminated the dependency on `pandoc` for installing the + manual page. + * Updated the documentation to reflect recent kernel changes, + including the kernel adding support for more Merkle tree + block sizes, IMA adding support for fs-verity, and btrfs + adding support for fs-verity. + * Updated the documentation to refer to the new fsverity + mailing list. + * Fixed a C++ compatibility issue in `libfsverity.h`. + * `fsverity measure` now follows standard command line syntax + for arguments beginning with hyphens. I.e., + `fsverity measure --foo` now treats `--foo` as + * an (unsupported) option, not a filename. To operate on a + file actually named `--foo`, use `fsverity measure -- --foo`. + +------------------------------------------------------------------- +Mon Mar 27 09:01:42 UTC 2023 - David Disseldorp + +- Initial packaging, version 1.5 (jsc#PED-7094) +- Add pregenerated manpage to avoid pandoc build dependency + * pandoc is large and unavailable on some architectures +- Don't package static library diff --git a/fsverity-utils.spec b/fsverity-utils.spec new file mode 100644 index 0000000..2148261 --- /dev/null +++ b/fsverity-utils.spec @@ -0,0 +1,86 @@ +# +# spec file for package fsverity-utils +# +# Copyright (c) 2024 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: fsverity-utils +Version: 1.6 +Release: 0 +Summary: Userspace utilities for fs-verity +License: MIT +Group: System/Filesystems +URL: https://www.kernel.org/doc/html/latest/filesystems/fsverity.html +Source0: https://git.kernel.org/pub/scm/fs/fsverity/%{name}.git/snapshot/%{name}-%{version}.tar.gz +BuildRequires: gcc +BuildRequires: kernel-headers +BuildRequires: libopenssl-devel + +%description +fsverity is a userspace utility for fs-verity. fs-verity is a Linux +kernel filesystem feature that does transparent on-demand verification +of the contents of read-only files using Merkle trees. + +fsverity can enable fs-verity on files, retrieve the digests of +fs-verity files, and sign files for use with fs-verity (among other +things). fsverity's functionality is divided among various subcommands. + +%package -n libfsverity0 +Summary: Library package for fsverity-utils + +%description -n libfsverity0 +Shared-object dependencies for fsverity-utils. + +%package devel +Summary: Development package for fsverity-utils +Requires: libfsverity0 = %{version}-%{release} + +%description devel +Development package for fsverity-utils, including libfsverity header +and library files. + +%prep +%setup -q + +%build +%make_build USE_SHARED_LIB=1 + +%install +%make_install \ + USE_SHARED_LIB=1 \ + BINDIR=%{_bindir} \ + INCDIR=%{_includedir} \ + LIBDIR=%{_libdir} \ + MANDIR=%{_mandir} + +rm %{buildroot}/%{_libdir}/libfsverity.a + +%post -n libfsverity0 -p /sbin/ldconfig +%postun -n libfsverity0 -p /sbin/ldconfig + +%files +%{_bindir}/fsverity +%{_mandir}/man1/fsverity.* + +%files -n libfsverity0 +%{_libdir}/libfsverity.so.0 + +%files devel +%license LICENSE +%{_libdir}/libfsverity.so +%{_libdir}/pkgconfig/libfsverity.pc +%{_includedir}/libfsverity.h + +%changelog