SPECS/strongswan/strongswan.spec
044296c9
 Summary:          The OpenSource IPsec-based VPN Solution
 Name:             strongswan
31204a78
 Version:          5.5.2
3381f125
 Release:          4%{?dist}
044296c9
 License:          GPLv2+
 URL:              https://www.strongswan.org/
 Group:            System Environment/Security
 Vendor:           VMware, Inc.
 Distribution:     Photon
31204a78
 Source0:          https://download.strongswan.org/%{name}-%{version}.tar.bz2
 %define sha1      strongswan=0f181715fd25a98a9e0d3227b594c6fc8ed429c2
e7b20e7d
 Patch0:           CVE-2017-9022.patch
 Patch1:           CVE-2017-9023.patch
 Patch2:           CVE-2017-11185.patch
3381f125
 Patch3:           CVE-2018-5388.patch
044296c9
 
 BuildRequires:    autoconf
 
 %description
 strongSwan is a complete IPsec implementation for Linux 2.6, 3.x, and 4.x kernels.
 
 %prep
 %setup -q
e7b20e7d
 %patch0 -p1
 %patch1 -p1
 %patch2 -p1
3381f125
 %patch3 -p1
044296c9
 
 %build
 ./configure --prefix=%{_prefix} --sysconfdir=%{_sysconfdir}
92f724ea
 sed -i '/stdlib.h/a #include <stdint.h>' src/libstrongswan/utils/utils.h &&
044296c9
 make %{?_smp_mflags}
31204a78
 
044296c9
 %install
 [ %{buildroot} != "/"] && rm -rf %{buildroot}/*
 make DESTDIR=%{buildroot} install
 find %{buildroot} -name '*.la' -delete
 find %{buildroot} -name '*.a' -delete
 
 %post   -p /sbin/ldconfig
 %postun -p /sbin/ldconfig
 
 %clean
 rm -rf %{buildroot}/*
 
 %files
 %defattr(-,root,root)
 %{_sysconfdir}/*
 %{_bindir}/*
 %{_sbindir}/*
 %{_libdir}/ipsec/*
 %{_libexecdir}/*
 %{_mandir}/man[158]/*
 %{_datadir}/strongswan/*
 
 %changelog
3381f125
 *   Mon Jul 23 2018 Ajay Kaher <akaher@vmware.com> 5.5.2-4
 -   Fix CVE-2018-5388
e7b20e7d
 *   Tue Oct 10 2017 Dheeraj Shetty <dheerajs@vmware.com> 5.5.2-3
 -   Fix CVE-2017-11185 CVE-2017-9022 and CVE-2017-9023
92f724ea
 *   Thu Aug 24 2017 Alexey Makhalov <amakhalov@vmware.com> 5.5.2-2
 -   Fix compilation issue for glibc-2.26
31204a78
 *   Wed Apr 12 2017 Vinay Kulkarni <kulkarniv@vmware.com> 5.5.2-1
 -   Update to version 5.5.2
044296c9
 *   Wed Dec 21 2016 Xiaolin Li <xiaolinl@vmware.com>  5.5.1-1
 -   Initial build.