Compare commits
1 Commits
strongswan
...
strongswan
| Author | SHA1 | Date | |
|---|---|---|---|
| 12a24a66d2 |
4
.gitignore
vendored
4
.gitignore
vendored
@@ -4,7 +4,3 @@
|
|||||||
/strongswan-5.9.2.tar.bz2
|
/strongswan-5.9.2.tar.bz2
|
||||||
/strongswan-5.9.3.tar.bz2
|
/strongswan-5.9.3.tar.bz2
|
||||||
/strongswan-5.9.4.tar.bz2
|
/strongswan-5.9.4.tar.bz2
|
||||||
/948F158A4E76A27BF3D07532DF42C170B34DBA77
|
|
||||||
/strongswan-5.9.5.tar.bz2
|
|
||||||
/strongswan-5.9.5.tar.bz2.sig
|
|
||||||
/STRONGSWAN-RELEASE-PGP-KEY
|
|
||||||
|
|||||||
4
sources
4
sources
@@ -1,3 +1 @@
|
|||||||
SHA512 (strongswan-5.9.5.tar.bz2.sig) = 377889158484968d33b70a2a8ae149432191bc4614a2c5c3865eea1170bee1bae8ccf844d41ea5b4a087d300cc0967cba3aec6255c33976be060022871e094c5
|
SHA512 (strongswan-5.9.4.tar.bz2) = 796356c1d5c1ad410f0ed944ab4a131076d26f120ec6fa57796fe4060b0741201199625883ddc9ebd8a7ad299495f073cec76a6780ebd8f375605aae16750cf3
|
||||||
SHA512 (strongswan-5.9.5.tar.bz2) = 3b11c4edb1ffccf0ea5b8b843acfe2eb18dcd3857fc2818b8481c4febe7959261e1b2804c3af29068319df469fa0b784682d3ba4d49a3eb580841ff3c34e33a1
|
|
||||||
SHA512 (STRONGSWAN-RELEASE-PGP-KEY) = 2803ebc9bdbbe88e19b75130ad9cc36af730fd3d0c9055665da99ce9b831ce518b0083f98389e6fb9b00dd62da28fcbb03df5dbf899df52b59d49c6bd34c6d37
|
|
||||||
|
|||||||
15
strongswan-5.6.2-CVE-2018-5388.patch
Normal file
15
strongswan-5.6.2-CVE-2018-5388.patch
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
diff -Naur strongswan-5.6.2-orig/src/libcharon/plugins/stroke/stroke_socket.c strongswan-5.6.2/src/libcharon/plugins/stroke/stroke_socket.c
|
||||||
|
--- strongswan-5.6.2-orig/src/libcharon/plugins/stroke/stroke_socket.c 2017-11-09 10:57:30.000000000 -0500
|
||||||
|
+++ strongswan-5.6.2/src/libcharon/plugins/stroke/stroke_socket.c 2018-05-24 00:00:32.382953618 -0400
|
||||||
|
@@ -628,6 +628,11 @@
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
|
+ if (len < offsetof(stroke_msg_t, buffer))
|
||||||
|
+ {
|
||||||
|
+ DBG1(DBG_CFG, "invalid stroke message length %d", len);
|
||||||
|
+ return FALSE;
|
||||||
|
+ }
|
||||||
|
/* read message (we need an additional byte to terminate the buffer) */
|
||||||
|
msg = malloc(len + 1);
|
||||||
|
msg->length = len;
|
||||||
24
strongswan-5.8.4-runtime-dir.patch
Normal file
24
strongswan-5.8.4-runtime-dir.patch
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
diff -ur strongswan-5.8.4.orig/init/systemd/strongswan.service.in strongswan-5.8.4/init/systemd/strongswan.service.in
|
||||||
|
--- strongswan-5.8.4.orig/init/systemd/strongswan.service.in 2019-08-27 16:26:53.000000000 +0300
|
||||||
|
+++ strongswan-5.8.4/init/systemd/strongswan.service.in 2020-04-12 12:05:57.383596844 +0300
|
||||||
|
@@ -9,6 +9,8 @@
|
||||||
|
ExecReload=@SBINDIR@/swanctl --reload
|
||||||
|
ExecReload=@SBINDIR@/swanctl --load-all --noprompt
|
||||||
|
Restart=on-abnormal
|
||||||
|
+RuntimeDirectory=strongswan
|
||||||
|
+RuntimeDirectoryMode=0755
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
|
diff -ur strongswan-5.8.4.orig/init/systemd-starter/strongswan-starter.service.in strongswan-5.8.4/init/systemd-starter/strongswan-starter.service.in
|
||||||
|
--- strongswan-5.8.4.orig/init/systemd-starter/strongswan-starter.service.in 2019-08-27 16:26:53.000000000 +0300
|
||||||
|
+++ strongswan-5.8.4/init/systemd-starter/strongswan-starter.service.in 2020-04-12 12:05:51.810559482 +0300
|
||||||
|
@@ -6,6 +6,8 @@
|
||||||
|
ExecStart=@SBINDIR@/@IPSEC_SCRIPT@ start --nofork
|
||||||
|
StandardOutput=syslog
|
||||||
|
Restart=on-abnormal
|
||||||
|
+RuntimeDirectory=strongswan
|
||||||
|
+RuntimeDirectoryMode=0755
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
12
strongswan-5.9.1-runtime-dir.patch
Normal file
12
strongswan-5.9.1-runtime-dir.patch
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
diff -Naur strongswan-5.9.1-orig/init/systemd-starter/strongswan-starter.service.in strongswan-5.9.1/init/systemd-starter/strongswan-starter.service.in
|
||||||
|
--- strongswan-5.9.1-orig/init/systemd-starter/strongswan-starter.service.in 2020-10-16 08:36:37.000000000 -0400
|
||||||
|
+++ strongswan-5.9.1/init/systemd-starter/strongswan-starter.service.in 2021-02-12 14:06:09.985042362 -0500
|
||||||
|
@@ -5,6 +5,8 @@
|
||||||
|
[Service]
|
||||||
|
ExecStart=@SBINDIR@/@IPSEC_SCRIPT@ start --nofork
|
||||||
|
Restart=on-abnormal
|
||||||
|
+RuntimeDirectory=strongswan
|
||||||
|
+RuntimeDirectoryMode=0755
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
@@ -1,31 +0,0 @@
|
|||||||
From 377039d24648f82dac35dcf22a2b43de81f2fb96 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Petr Mensik <pemensik@redhat.com>
|
|
||||||
Date: Thu, 11 Nov 2021 05:48:38 +0100
|
|
||||||
Subject: [PATCH] Skip test case, which always hangs
|
|
||||||
|
|
||||||
It just stops and does not continue. Avoid that test.
|
|
||||||
---
|
|
||||||
src/libtls/tests/suites/test_socket.c | 2 ++
|
|
||||||
1 file changed, 2 insertions(+)
|
|
||||||
|
|
||||||
diff --git a/src/libtls/tests/suites/test_socket.c b/src/libtls/tests/suites/test_socket.c
|
|
||||||
index 9e26e91..5296680 100644
|
|
||||||
--- a/src/libtls/tests/suites/test_socket.c
|
|
||||||
+++ b/src/libtls/tests/suites/test_socket.c
|
|
||||||
@@ -804,11 +804,13 @@ Suite *socket_suite_create()
|
|
||||||
add_tls_versions_test(test_tls_12_server, TLS_1_0, TLS_1_3);
|
|
||||||
suite_add_tcase(s, tc);
|
|
||||||
|
|
||||||
+#if 0
|
|
||||||
tc = tcase_create("TLS 1.3/key exchange groups");
|
|
||||||
tcase_add_checked_fixture(tc, setup_creds, teardown_creds);
|
|
||||||
tcase_add_loop_test(tc, test_tls13_ke_groups, 0,
|
|
||||||
tls_crypto_get_supported_groups(NULL));
|
|
||||||
suite_add_tcase(s, tc);
|
|
||||||
+#endif
|
|
||||||
|
|
||||||
tc = tcase_create("TLS 1.3/signature schemes");
|
|
||||||
tcase_add_checked_fixture(tc, setup_all_creds, teardown_creds);
|
|
||||||
--
|
|
||||||
2.31.1
|
|
||||||
|
|
||||||
209
strongswan.spec
209
strongswan.spec
@@ -2,28 +2,17 @@
|
|||||||
#%%define prerelease dr1
|
#%%define prerelease dr1
|
||||||
%global dist .nhrp.9%{?dist}
|
%global dist .nhrp.9%{?dist}
|
||||||
|
|
||||||
%bcond_without python3
|
|
||||||
%bcond_without perl
|
|
||||||
%bcond_with check
|
|
||||||
|
|
||||||
%if (0%{?fedora} && 0%{?fedora} < 36) || (0%{?rhel} && 0%{?rhel} < 9)
|
|
||||||
# trousers was retired for F36+ and no longer available in RHEL with 9+
|
|
||||||
%bcond_without tss_trousers
|
|
||||||
%else
|
|
||||||
%bcond_with tss_trousers
|
|
||||||
%endif
|
|
||||||
|
|
||||||
Name: strongswan
|
Name: strongswan
|
||||||
Version: 5.9.5
|
Version: 5.9.4
|
||||||
Release: 2%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: An OpenSource IPsec-based VPN and TNC solution
|
Summary: An OpenSource IPsec-based VPN and TNC solution
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
URL: http://www.strongswan.org/
|
URL: http://www.strongswan.org/
|
||||||
Source0: http://download.strongswan.org/strongswan-%{version}%{?prerelease}.tar.bz2
|
Source0: http://download.strongswan.org/%{name}-%{version}%{?prerelease}.tar.bz2
|
||||||
Source1: http://download.strongswan.org/strongswan-%{version}%{?prerelease}.tar.bz2.sig
|
Source1: tmpfiles-strongswan.conf
|
||||||
Source2: https://download.strongswan.org/STRONGSWAN-RELEASE-PGP-KEY
|
Patch0: strongswan-5.9.1-runtime-dir.patch
|
||||||
Source3: tmpfiles-strongswan.conf
|
Patch1: strongswan-5.6.0-uintptr_t.patch
|
||||||
Patch0: strongswan-5.6.0-uintptr_t.patch
|
Patch3: strongswan-5.6.2-CVE-2018-5388.patch
|
||||||
|
|
||||||
Patch10: 0001-charon-add-optional-source-and-remote-overrides-for-.patch
|
Patch10: 0001-charon-add-optional-source-and-remote-overrides-for-.patch
|
||||||
Patch11: 0002-vici-send-certificates-for-ike-sa-events.patch
|
Patch11: 0002-vici-send-certificates-for-ike-sa-events.patch
|
||||||
@@ -33,7 +22,6 @@ Patch13: 0004-vyos-terminate-connections-source-dest.patch
|
|||||||
# only needed for pre-release versions
|
# only needed for pre-release versions
|
||||||
#BuildRequires: autoconf automake
|
#BuildRequires: autoconf automake
|
||||||
|
|
||||||
BuildRequires: gnupg2
|
|
||||||
BuildRequires: make
|
BuildRequires: make
|
||||||
BuildRequires: gcc
|
BuildRequires: gcc
|
||||||
BuildRequires: systemd-devel
|
BuildRequires: systemd-devel
|
||||||
@@ -43,6 +31,7 @@ BuildRequires: openldap-devel
|
|||||||
BuildRequires: openssl-devel
|
BuildRequires: openssl-devel
|
||||||
BuildRequires: sqlite-devel
|
BuildRequires: sqlite-devel
|
||||||
BuildRequires: gettext-devel
|
BuildRequires: gettext-devel
|
||||||
|
BuildRequires: trousers-devel
|
||||||
BuildRequires: libxml2-devel
|
BuildRequires: libxml2-devel
|
||||||
BuildRequires: pam-devel
|
BuildRequires: pam-devel
|
||||||
BuildRequires: json-c-devel
|
BuildRequires: json-c-devel
|
||||||
@@ -53,21 +42,6 @@ BuildRequires: libcap-devel
|
|||||||
BuildRequires: tpm2-tss-devel
|
BuildRequires: tpm2-tss-devel
|
||||||
Recommends: tpm2-tools
|
Recommends: tpm2-tools
|
||||||
|
|
||||||
%if %{with python3}
|
|
||||||
BuildRequires: python3-devel
|
|
||||||
BuildRequires: python3-setuptools
|
|
||||||
BuildRequires: python3-pytest
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if %{with perl}
|
|
||||||
BuildRequires: perl-devel perl-macros
|
|
||||||
BuildRequires: perl(ExtUtils::MakeMaker)
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if %{with tss_trousers}
|
|
||||||
BuildRequires: trousers-devel
|
|
||||||
%endif
|
|
||||||
|
|
||||||
BuildRequires: NetworkManager-libnm-devel
|
BuildRequires: NetworkManager-libnm-devel
|
||||||
Requires(post): systemd
|
Requires(post): systemd
|
||||||
Requires(preun): systemd
|
Requires(preun): systemd
|
||||||
@@ -87,8 +61,8 @@ in userland, using TUN devices and its own IPsec implementation libipsec.
|
|||||||
%package charon-nm
|
%package charon-nm
|
||||||
Summary: NetworkManager plugin for Strongswan
|
Summary: NetworkManager plugin for Strongswan
|
||||||
Requires: dbus
|
Requires: dbus
|
||||||
Obsoletes: strongswan-NetworkManager < 0:5.0.4-5
|
Obsoletes: %{name}-NetworkManager < 0:5.0.4-5
|
||||||
Conflicts: strongswan-NetworkManager < 0:5.0.4-5
|
Conflicts: %{name}-NetworkManager < 0:5.0.4-5
|
||||||
Conflicts: NetworkManager-strongswan < 1.4.2-1
|
Conflicts: NetworkManager-strongswan < 1.4.2-1
|
||||||
%description charon-nm
|
%description charon-nm
|
||||||
NetworkManager plugin integrates a subset of Strongswan capabilities
|
NetworkManager plugin integrates a subset of Strongswan capabilities
|
||||||
@@ -96,14 +70,14 @@ to NetworkManager.
|
|||||||
|
|
||||||
%package sqlite
|
%package sqlite
|
||||||
Summary: SQLite support for strongSwan
|
Summary: SQLite support for strongSwan
|
||||||
Requires: strongswan = %{version}-%{release}
|
Requires: %{name} = %{version}-%{release}
|
||||||
%description sqlite
|
%description sqlite
|
||||||
The sqlite plugin adds an SQLite database backend to strongSwan.
|
The sqlite plugin adds an SQLite database backend to strongSwan.
|
||||||
|
|
||||||
%package tnc-imcvs
|
%package tnc-imcvs
|
||||||
Summary: Trusted network connect (TNC)'s IMC/IMV functionality
|
Summary: Trusted network connect (TNC)'s IMC/IMV functionality
|
||||||
Requires: strongswan = %{version}-%{release}
|
Requires: %{name} = %{version}-%{release}
|
||||||
Requires: strongswan-sqlite = %{version}-%{release}
|
Requires: %{name}-sqlite = %{version}-%{release}
|
||||||
%description tnc-imcvs
|
%description tnc-imcvs
|
||||||
This package provides Trusted Network Connect's (TNC) architecture support.
|
This package provides Trusted Network Connect's (TNC) architecture support.
|
||||||
It includes support for TNC client and server (IF-TNCCS), IMC and IMV message
|
It includes support for TNC client and server (IF-TNCCS), IMC and IMV message
|
||||||
@@ -114,39 +88,16 @@ modules can be used by any third party TNC Client/Server implementation
|
|||||||
possessing a standard IF-IMC/IMV interface. In addition, it implements
|
possessing a standard IF-IMC/IMV interface. In addition, it implements
|
||||||
PT-TLS to support TNC over TLS.
|
PT-TLS to support TNC over TLS.
|
||||||
|
|
||||||
%if %{with python3}
|
|
||||||
%package -n python3-vici
|
|
||||||
Summary: Strongswan Versatile IKE Configuration Interface python bindings
|
|
||||||
BuildArch: noarch
|
|
||||||
%description -n python3-vici
|
|
||||||
VICI is an attempt to improve the situation for system integrators by providing
|
|
||||||
a stable IPC interface, allowing external tools to query, configure
|
|
||||||
and control the IKE daemon.
|
|
||||||
|
|
||||||
The Versatile IKE Configuration Interface (VICI) python bindings provides module
|
|
||||||
for Strongswan runtime configuration from python applications.
|
|
||||||
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if %{with perl}
|
|
||||||
%package -n perl-vici
|
|
||||||
Summary: Strongswan Versatile IKE Configuration Interface perl bindings
|
|
||||||
BuildArch: noarch
|
|
||||||
%description -n perl-vici
|
|
||||||
VICI is an attempt to improve the situation for system integrators by providing
|
|
||||||
a stable IPC interface, allowing external tools to query, configure
|
|
||||||
and control the IKE daemon.
|
|
||||||
|
|
||||||
The Versatile IKE Configuration Interface (VICI) perl bindings provides module
|
|
||||||
for Strongswan runtime configuration from perl applications.
|
|
||||||
%endif
|
|
||||||
|
|
||||||
# TODO: make also ruby-vici
|
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data='%{SOURCE0}'
|
%setup -q -n %{name}-%{version}%{?prerelease}
|
||||||
%autosetup -n %{name}-%{version}%{?prerelease} -p1
|
%patch0 -p1
|
||||||
|
%patch1 -p1
|
||||||
|
%patch3 -p1
|
||||||
|
|
||||||
|
%patch10 -p1
|
||||||
|
%patch11 -p1
|
||||||
|
%patch12 -p1
|
||||||
|
%patch13 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
# only for snapshots
|
# only for snapshots
|
||||||
@@ -165,7 +116,7 @@ for Strongswan runtime configuration from perl applications.
|
|||||||
--with-piddir=%{_rundir}/strongswan \
|
--with-piddir=%{_rundir}/strongswan \
|
||||||
--with-nm-ca-dir=%{_sysconfdir}/strongswan/ipsec.d/cacerts/ \
|
--with-nm-ca-dir=%{_sysconfdir}/strongswan/ipsec.d/cacerts/ \
|
||||||
--enable-bypass-lan \
|
--enable-bypass-lan \
|
||||||
--enable-tss-tss2 \
|
--enable-tss-trousers \
|
||||||
--enable-nm \
|
--enable-nm \
|
||||||
--enable-systemd \
|
--enable-systemd \
|
||||||
--enable-openssl \
|
--enable-openssl \
|
||||||
@@ -229,74 +180,26 @@ for Strongswan runtime configuration from perl applications.
|
|||||||
--enable-curl \
|
--enable-curl \
|
||||||
--enable-cmd \
|
--enable-cmd \
|
||||||
--enable-acert \
|
--enable-acert \
|
||||||
|
--enable-aikgen \
|
||||||
--enable-vici \
|
--enable-vici \
|
||||||
--enable-swanctl \
|
--enable-swanctl \
|
||||||
--enable-duplicheck \
|
--enable-duplicheck \
|
||||||
%ifarch x86_64 %{ix86}
|
%ifarch x86_64 %{ix86}
|
||||||
--enable-aesni \
|
--enable-aesni \
|
||||||
%endif
|
|
||||||
%if %{with python3}
|
|
||||||
PYTHON=%{python3} --enable-python-eggs \
|
|
||||||
%endif
|
|
||||||
%if %{with perl}
|
|
||||||
--enable-perl-cpan \
|
|
||||||
%endif
|
|
||||||
%if %{with check}
|
|
||||||
--enable-test-vectors \
|
|
||||||
%endif
|
|
||||||
%if %{with tss_trousers}
|
|
||||||
--enable-tss-trousers \
|
|
||||||
--enable-aikgen \
|
|
||||||
%endif
|
%endif
|
||||||
--enable-kernel-libipsec \
|
--enable-kernel-libipsec \
|
||||||
--with-capabilities=libcap \
|
--with-capabilities=libcap \
|
||||||
CPPFLAGS="-DSTARTER_ALLOW_NON_ROOT"
|
CPPFLAGS="-DSTARTER_ALLOW_NON_ROOT"
|
||||||
# TODO: --enable-python-eggs-install not python3 ready
|
|
||||||
|
|
||||||
# disable certain plugins in the daemon configuration by default
|
# disable certain plugins in the daemon configuration by default
|
||||||
for p in bypass-lan; do
|
for p in bypass-lan; do
|
||||||
echo -e "\ncharon.plugins.${p}.load := no" >> conf/plugins/${p}.opt
|
echo -e "\ncharon.plugins.${p}.load := no" >> conf/plugins/${p}.opt
|
||||||
done
|
done
|
||||||
|
|
||||||
%make_build
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
pushd src/libcharon/plugins/vici
|
|
||||||
|
|
||||||
%if %{with python3}
|
|
||||||
pushd python
|
|
||||||
%make_build
|
|
||||||
sed -e "s,/var/run/charon.vici,%{_rundir}/strongswan/charon.vici," -i vici/session.py
|
|
||||||
#py3_build
|
|
||||||
popd
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if %{with perl}
|
|
||||||
pushd perl/Vici-Session/
|
|
||||||
perl Makefile.PL INSTALLDIRS=vendor
|
|
||||||
%make_build
|
|
||||||
popd
|
|
||||||
%endif
|
|
||||||
|
|
||||||
popd
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%make_install
|
make install DESTDIR=%{buildroot}
|
||||||
|
|
||||||
|
|
||||||
pushd src/libcharon/plugins/vici
|
|
||||||
%if %{with python3}
|
|
||||||
pushd python
|
|
||||||
# TODO: --enable-python-eggs breaks our previous build. Do it now
|
|
||||||
# propose better way to upstream
|
|
||||||
%py3_build
|
|
||||||
%py3_install
|
|
||||||
popd
|
|
||||||
%endif
|
|
||||||
%if %{with perl}
|
|
||||||
%make_install -C perl/Vici-Session
|
|
||||||
rm -f %{buildroot}{%{perl_archlib}/perllocal.pod,%{perl_vendorarch}/auto/Vici/Session/.packlist}
|
|
||||||
%endif
|
|
||||||
popd
|
|
||||||
# prefix man pages
|
# prefix man pages
|
||||||
for i in %{buildroot}%{_mandir}/*/*; do
|
for i in %{buildroot}%{_mandir}/*/*; do
|
||||||
if echo "$i" | grep -vq '/strongswan[^\/]*$'; then
|
if echo "$i" | grep -vq '/strongswan[^\/]*$'; then
|
||||||
@@ -315,31 +218,16 @@ for i in aacerts acerts certs cacerts crls ocspcerts private reqs; do
|
|||||||
install -d -m 700 %{buildroot}%{_sysconfdir}/strongswan/ipsec.d/${i}
|
install -d -m 700 %{buildroot}%{_sysconfdir}/strongswan/ipsec.d/${i}
|
||||||
done
|
done
|
||||||
install -d -m 0700 %{buildroot}%{_rundir}/strongswan
|
install -d -m 0700 %{buildroot}%{_rundir}/strongswan
|
||||||
install -D -m 0644 %{SOURCE3} %{buildroot}/%{_tmpfilesdir}/strongswan.conf
|
install -D -m 0644 %{SOURCE1} %{buildroot}/%{_tmpfilesdir}/strongswan.conf
|
||||||
install -D -m 0644 %{SOURCE3} %{buildroot}/%{_tmpfilesdir}/strongswan-starter.conf
|
|
||||||
|
|
||||||
|
|
||||||
%check
|
|
||||||
%if %{with check}
|
|
||||||
# Seen some tests hang. Ensure we do not block builder forever
|
|
||||||
export TESTS_VERBOSITY=1
|
|
||||||
timeout 600 %make_build check
|
|
||||||
%endif
|
|
||||||
%if %{with python}
|
|
||||||
pushd src/libcharon/plugins/vici
|
|
||||||
%pytest
|
|
||||||
popd
|
|
||||||
%endif
|
|
||||||
:
|
|
||||||
|
|
||||||
%post
|
%post
|
||||||
%systemd_post strongswan.service strongswan-starter.service
|
%systemd_post %{name}.service
|
||||||
|
|
||||||
%preun
|
%preun
|
||||||
%systemd_preun strongswan.service strongswan-starter.service
|
%systemd_preun %{name}.service
|
||||||
|
|
||||||
%postun
|
%postun
|
||||||
%systemd_postun_with_restart strongswan.service strongswan-starter.service
|
%systemd_postun_with_restart %{name}.service
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%doc README NEWS TODO ChangeLog
|
%doc README NEWS TODO ChangeLog
|
||||||
@@ -374,7 +262,6 @@ install -D -m 0644 %{SOURCE3} %{buildroot}/%{_tmpfilesdir}/strongswan-starter.co
|
|||||||
%{_datadir}/strongswan/templates/database/
|
%{_datadir}/strongswan/templates/database/
|
||||||
%attr(0755,root,root) %dir %{_rundir}/strongswan
|
%attr(0755,root,root) %dir %{_rundir}/strongswan
|
||||||
%attr(0644,root,root) %{_tmpfilesdir}/strongswan.conf
|
%attr(0644,root,root) %{_tmpfilesdir}/strongswan.conf
|
||||||
%attr(0644,root,root) %{_tmpfilesdir}/strongswan-starter.conf
|
|
||||||
|
|
||||||
%files sqlite
|
%files sqlite
|
||||||
%{_libdir}/strongswan/plugins/libstrongswan-sqlite.so
|
%{_libdir}/strongswan/plugins/libstrongswan-sqlite.so
|
||||||
@@ -401,43 +288,7 @@ install -D -m 0644 %{SOURCE3} %{buildroot}/%{_tmpfilesdir}/strongswan-starter.co
|
|||||||
%{_datadir}/dbus-1/system.d/nm-strongswan-service.conf
|
%{_datadir}/dbus-1/system.d/nm-strongswan-service.conf
|
||||||
%{_libexecdir}/strongswan/charon-nm
|
%{_libexecdir}/strongswan/charon-nm
|
||||||
|
|
||||||
%if %{with python3}
|
|
||||||
%files -n python3-vici
|
|
||||||
%license COPYING
|
|
||||||
%doc src/libcharon/plugins/vici/python/README.rst
|
|
||||||
%{python3_sitelib}/vici
|
|
||||||
%{python3_sitelib}/vici-%{version}-py*.egg-info
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%if %{with perl}
|
|
||||||
%license COPYING
|
|
||||||
%files -n perl-vici
|
|
||||||
%{perl_vendorlib}/Vici
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Tue Jan 25 2022 Paul Wouters <paul.wouters@aiven.io> - 5.9.5-2
|
|
||||||
- Use newly published/cleaned strongswan gpg key
|
|
||||||
|
|
||||||
* Mon Jan 24 2022 Paul Wouters <paul.wouters@aiven.io> - 5.9.5-1
|
|
||||||
- Resolves rhbz#2044361 strongswan-5.9.5 is available (CVE-2021-45079)
|
|
||||||
|
|
||||||
* Sat Jan 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 5.9.4-5
|
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
||||||
|
|
||||||
* Thu Dec 16 2021 Neal Gompa <ngompa@datto.com> - 5.9.4-4
|
|
||||||
- Disable TPM/TSS 1.2 support for F36+ / RHEL9+
|
|
||||||
- Resolves: rhbz#2033299 Drop TPM/TSS 1.2 support (trousers)
|
|
||||||
|
|
||||||
* Thu Nov 11 2021 Petr Menšík <pemensik@redhat.com> - 5.9.4-3
|
|
||||||
- Resolves rhbz#1419441 Add python and perl vici bindings
|
|
||||||
- Adds optional tests run
|
|
||||||
|
|
||||||
* Tue Nov 09 2021 Paul Wouters <paul.wouters@aiven.io> - 5.9.4-2
|
|
||||||
- Resolves rhbz#2018547 'strongswan restart' breaks ipsec started with strongswan-starter
|
|
||||||
- Return to using tmpfiles, but extend to cover strongswan-starter service too
|
|
||||||
- Cleanup old patches
|
|
||||||
|
|
||||||
* Wed Oct 20 2021 Paul Wouters <paul.wouters@aiven.io> - 5.9.4-1
|
* Wed Oct 20 2021 Paul Wouters <paul.wouters@aiven.io> - 5.9.4-1
|
||||||
- Resolves: rhbz#2015165 strongswan-5.9.4 is available
|
- Resolves: rhbz#2015165 strongswan-5.9.4 is available
|
||||||
- Resolves: rhbz#2015611 CVE-2021-41990 strongswan: gmp plugin: integer overflow via a crafted certificate with an RSASSA-PSS signature
|
- Resolves: rhbz#2015611 CVE-2021-41990 strongswan: gmp plugin: integer overflow via a crafted certificate with an RSASSA-PSS signature
|
||||||
|
|||||||
Reference in New Issue
Block a user