From 1130c49c8cfc0feca60a828b21f46f7409988760c04ee29f1d1850b0ff0be311 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Fri, 20 Sep 2024 16:02:56 +0200 Subject: [PATCH] Sync from SUSE:SLFO:Main rtrlib revision e7098e194c878d8c7ef2689c715d69ea --- .gitattributes | 23 ++++ rtrlib-0.8.0.tar.gz | 3 + ...sts-that-require-network-connections.patch | 19 +++ rtrlib.changes | 58 +++++++++ rtrlib.spec | 121 ++++++++++++++++++ 5 files changed, 224 insertions(+) create mode 100644 .gitattributes create mode 100644 rtrlib-0.8.0.tar.gz create mode 100644 rtrlib-disable-tests-that-require-network-connections.patch create mode 100644 rtrlib.changes create mode 100644 rtrlib.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/rtrlib-0.8.0.tar.gz b/rtrlib-0.8.0.tar.gz new file mode 100644 index 0000000..db7d863 --- /dev/null +++ b/rtrlib-0.8.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8cc99343dc3ea8908cd9710ba1f72a1ddce591bf80bfd7d656dbc4568f560ada +size 262281 diff --git a/rtrlib-disable-tests-that-require-network-connections.patch b/rtrlib-disable-tests-that-require-network-connections.patch new file mode 100644 index 0000000..a2746a9 --- /dev/null +++ b/rtrlib-disable-tests-that-require-network-connections.patch @@ -0,0 +1,19 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 7e9aa98..7b1fea9 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -112,14 +112,10 @@ ADD_TEST(test_trie tests/test_trie) + ADD_TEST(test_ht_spkitable tests/test_ht_spkitable) + ADD_TEST(test_ht_spkitable_locks tests/test_ht_spkitable_locks) + +-ADD_TEST(test_live_validation tests/test_live_validation) +- + ADD_TEST(test_ipaddr tests/test_ipaddr) + + ADD_TEST(test_getbits tests/test_getbits) + +-ADD_TEST(test_dynamic_groups tests/test_dynamic_groups) +- + #install lib + set (RTRLIB_VERSION_MAJOR 0) + set (RTRLIB_VERSION_MINOR 8) diff --git a/rtrlib.changes b/rtrlib.changes new file mode 100644 index 0000000..8ff0f7f --- /dev/null +++ b/rtrlib.changes @@ -0,0 +1,58 @@ +------------------------------------------------------------------- +Fri Feb 23 11:45:07 UTC 2024 - Dominique Leuenberger + +- Use %autosetup macro. Allows to eliminate the usage of deprecated + %patchN. + +------------------------------------------------------------------- +Mon Oct 25 21:23:36 UTC 2021 - Martin Hauke + +- Update to version 0.8.0 + * Fix blocking when stopping sockets in some cases + * Add callback to allow user created sockets + * Add ability to change the connect timeout + * Add support for password authentication to ssh transport + * Update tools to allow for password authentication when using + ssh transport + * Improve error handling in ssh transport + * Improve error output in TCP transport + * Improve libssh detection when running configure + * Initialise structures properly in rtrclient + * Fix several compiler warnings + * Extend log messages to include prefixes when using ssh transport + * Fix bug that constantly called tr_recv because of ignoring + timeout argument when using ssh transport + * Apply kernel coding style in all source files + +------------------------------------------------------------------- +Thu Jul 18 18:01:45 UTC 2019 - Martin Hauke + +- Update to version 0.7.0 + * Fix to ensure shadow tables are only freed when initialized + before + * Fix SSH transport w/o bind address and add host key verification + * Fix bug in cache groups to ensure uniqueness of cache server + preferences + * Fix race condition in rtr_stop + * Remove error PDU null termination check + * Update tommyds implementation to version 2.2 + * tools/rpki-rov: improve validation of command line arguments + * tools/rtrclient: add ROA export with templates, support for CSV + and JSON + * Output log messages to stderr instead of stdout + * style: increase max line length to 120 characters +- Update patch: + * rtrlib-disable-tests-that-require-network-connections.patch + +------------------------------------------------------------------- +Wed Feb 6 09:07:54 UTC 2019 - Jan Engelhardt + +- Trim bias from descriptions. +- Drop technically unfounded Requires lines. + +------------------------------------------------------------------- +Sun Feb 3 19:27:27 UTC 2019 - mardnh@gmx.de + +- Initial package, version 0.6.3 +- Add patch: + * rtrlib-disable-tests-that-require-network-connections.patch diff --git a/rtrlib.spec b/rtrlib.spec new file mode 100644 index 0000000..f5c18b9 --- /dev/null +++ b/rtrlib.spec @@ -0,0 +1,121 @@ +# +# spec file for package rtrlib +# +# Copyright (c) 2021 SUSE LLC +# Copyright (c) 2019-2021, Martin Hauke +# +# 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/ +# + + +%define sover 0 +Name: rtrlib +Version: 0.8.0 +Release: 0 +Summary: Extensible RPKI-RTR-Client C library +License: MIT +Group: Development/Languages/C and C++ +URL: https://rpki.realmv6.org/ +Source: https://github.com/rtrlib/rtrlib/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz +Patch0: rtrlib-disable-tests-that-require-network-connections.patch +BuildRequires: cmake +BuildRequires: doxygen +BuildRequires: fdupes +BuildRequires: pkgconfig +BuildRequires: pkgconfig(libssh) >= 0.5.0 + +%description +RTRlib is a C implementation of the RPKI/Router Protocol +client. The library allows one to fetch and store validated prefix origin +data from a RTR-cache and performs origin verification of prefixes. It +supports different types of transport sessions (e.g., SSH, unprotected TCP) +and is extensible. + +%package -n librtr%{sover} +Summary: Extensible RPKI-RTR-Client C library +Group: System/Libraries + +%description -n librtr%{sover} +RTRlib is a C implementation of the RPKI/Router Protocol +client. The library allows one to fetch and store validated prefix origin +data from a RTR-cache and performs origin verification of prefixes. It +supports different types of transport sessions (e.g., SSH, unprotected TCP) +and is extensible. + +%package -n rtr-tools +Summary: RPKI-RTR command line tools +Group: Productivity/Networking/Routing + +%description -n rtr-tools +rtrclient is command line that connects to an RPKI-RTR server and prints +protocol information and information about the fetched ROAs to the console. +rpki-rov is a command line tool that connects to an RPKI-RTR server and +allows one to validate given IP prefixes and origin ASes. + +%package devel +Summary: Header files for librtr +Group: Development/Libraries/C and C++ +Requires: librtr%{sover} = %{version} + +%description devel +Development and header files for librtr. + +%package devel-doc +Summary: API documentation of the RTRlib +Group: Documentation/Other +BuildArch: noarch + +%description devel-doc +This is the API documentation of the RTRlib, a C implementation of +the RPKI/Router Protocol client. + +%prep +%autosetup -p1 + +%build +CFLAGS="%{optflags} -Wno-return-type" +%cmake +make %{?_smp_mflags} + +%install +%cmake_install +mkdir -p %{buildroot}/%{_docdir}/%{name} +mv %{buildroot}/%{_datadir}/doc/%{name}/docs/html %{buildroot}%{_docdir}/%{name}/html +%fdupes -s %{buildroot}/%{_docdir}/%{name}/html + +%check +%ctest + +%post -n librtr%{sover} -p /sbin/ldconfig +%postun -n librtr%{sover} -p /sbin/ldconfig + +%files -n librtr%{sover} +%license LICENSE +%doc CHANGELOG README.md +%{_libdir}/librtr.so.%{sover}* + +%files -n rtr-tools +%{_bindir}/rpki-rov +%{_bindir}/rtrclient +%{_mandir}/man1/rpki-rov.1%{?ext_man} +%{_mandir}/man1/rtrclient.1%{?ext_man} + +%files devel +%{_includedir}/rtrlib +%{_libdir}/librtr.so +%{_libdir}/pkgconfig/rtrlib.pc + +%files devel-doc +%dir %{_docdir}/%{name} +%doc %{_docdir}/%{name}/html + +%changelog