From 48a9c4664b2995bf6d6fabfb0aa8a320eb4b244e Mon Sep 17 00:00:00 2001 From: Scott Mayhew Date: Thu, 6 Jun 2024 12:15:46 -0400 Subject: [PATCH] Initial import for CentOS Stream 10 Resolves: RHEL-39058 --- .gitignore | 1 + changelog | 14 ++++++++++ ktls-utils.spec | 69 +++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 85 insertions(+) create mode 100644 changelog create mode 100644 ktls-utils.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore index e69de29..3508f6a 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/ktls-utils-0.10.tar.gz diff --git a/changelog b/changelog new file mode 100644 index 0000000..840f811 --- /dev/null +++ b/changelog @@ -0,0 +1,14 @@ +* Thu Jan 25 2024 Fedora Release Engineering - 0.10-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Sun Jan 21 2024 Fedora Release Engineering - 0.10-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Sat Oct 07 2023 Steve Dickson - 0.10-1 +- Updated to the latest upstream release: 0.10 + +* Thu Jul 20 2023 Fedora Release Engineering - 0.9^20230627.g52ac9ff05a5e-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Tue Jun 27 2023 Jeff Layton - 0.9^20230627.g52ac9ff05a5e-1 +- Initial import (fedora#2182151) diff --git a/ktls-utils.spec b/ktls-utils.spec new file mode 100644 index 0000000..f5c4ea2 --- /dev/null +++ b/ktls-utils.spec @@ -0,0 +1,69 @@ +%global forgeurl https://github.com/oracle/ktls-utils +%global baseversion 0.10 + +Name: ktls-utils +Version: %{baseversion} +Release: %{autorelease} +Summary: TLS handshake agent for kernel sockets + +%forgemeta + +License: GPL-2.0-only AND (GPL-2.0-only OR BSD-3-Clause) +URL: %{forgeurl} + +# FIXME: is this a bug in the tagging scheme or forgesource macro? +Source0: %{forgeurl}/releases/download/%{name}-%{baseversion}/%{name}-%{baseversion}.tar.gz + +BuildRequires: bash systemd-rpm-macros +BuildRequires: gcc make coreutils +BuildRequires: pkgconfig(gnutls) >= 3.3.0 +BuildRequires: autoconf >= 2.69 +BuildRequires: automake +BuildRequires: pkgconfig(libkeyutils) +BuildRequires: pkgconfig(glib-2.0) >= 2.6 +BuildRequires: pkgconfig(libnl-3.0) >= 3.1 + +%description +In-kernel TLS consumers need a mechanism to perform TLS handshakes +on a connected socket to negotiate TLS session parameters that can +then be programmed into the kernel's TLS record protocol engine. + +This package of software provides a TLS handshake user agent that +listens for kernel requests and then materializes a user space +socket endpoint on which to perform these handshakes. The resulting +negotiated session parameters are passed back to the kernel via +standard kTLS socket options. + +%prep +%setup -q -n %{name}-%{baseversion} +%autopatch -p1 + +%build +./autogen.sh +%configure --with-systemd +%make_build + +%install +%make_install + +%files +%config(noreplace) %{_sysconfdir}/tlshd.conf +%{_sbindir}/tlshd +%{_mandir}/man5/tlshd.conf.5.gz +%{_mandir}/man8/tlshd.8.gz +%{_unitdir}/tlshd.service +%license COPYING +%doc README.md +%doc SECURITY.md + +%post +%systemd_post tlshd.service + +%preun +%systemd_preun tlshd.service + +%postun +%systemd_postun_with_restart tlshd.service + +%changelog +%autochangelog diff --git a/sources b/sources new file mode 100644 index 0000000..ea57698 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (ktls-utils-0.10.tar.gz) = cb2ef7fe93b0a9d982c082ff308aad29a4900106911f7f8bce15a876efdaadd7f031b4563373c24927e11abc33e6bfcb56be8675b1c51a2e3763e2a5c6796367