From 6421f909d2fd35d026d398d9fcf92b09f56706bb Mon Sep 17 00:00:00 2001 From: yangbo Date: Wed, 14 Jun 2023 23:03:17 +0800 Subject: [PATCH] Fix '\n' of the linux_variant Signed-off-by: yangbo --- libreswan.spec | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/libreswan.spec b/libreswan.spec index f07d94b..5dec0be 100644 --- a/libreswan.spec +++ b/libreswan.spec @@ -26,7 +26,7 @@ Name: libreswan Summary: IKE implementation for IPsec with IKEv1 and IKEv2 support Version: 4.11 -Release: 1 +Release: 2 License: GPLv2 Url: https://libreswan.org/ Source0: https://download.libreswan.org/%{name}-%{version}.tar.gz @@ -104,7 +104,7 @@ sed -i '/config setup/a\\t# Specifies a directory forNSS database files\n\tnssdi sed -i '/ipsec --checknss/s/$/ --nssdir \/etc\/ipsec.d/' ./initsystems/systemd/ipsec.service.in -linux_variant=`sed -n -e 's/"//g' -e 's/^ID_LIKE=//p' -e 's/^ID=//p' /etc/os-release` +linux_variant=`sed -n -e 's/"//g' -e 's/^ID_LIKE=//p' -e 's/^ID=//p' /etc/os-release|tr '\n' ' ' && echo` sed -i "s/filter fedora/filter fedora $linux_variant/" mk/defaults/linux.mk %build @@ -191,6 +191,9 @@ certutil -N -d sql:$tmpdir --empty-password %attr(0644,root,root) %doc %{_mandir}/*/* %changelog +* Wed Jun 14 2023 yangbo - 4.11-2 +- Fix '\n' of the linux_variant + * Tue May 30 2023 wangkai <13474090681@163.com> - 4.11-1 - Update to 4.11 for fix CVE-2023-30570 -- Gitee