#%%define Werror_cflags %nil Summary: StrongSWAN IPSEC implementation Name: strongswan Version: 5.0.1 Release: 2 License: GPLv2+ Group: System/Servers Url: http://www.strongswan.org/ Source0: http://download.strongswan.org/%{name}-%{version}.tar.bz2 Source1: strongswan.init Patch0: strongswan-4.5.2-format_not_a_string_literal_and_no_format_arguments.diff Patch1: strongswan-5.0.1-rosa-link.patch BuildRequires: intltool BuildRequires: gmp-devel BuildRequires: libfcgi-devel BuildRequires: libldap-devel #BuildRequires: opensc-devel BuildRequires: pkgconfig(libcurl) BuildRequires: pkgconfig(libxml-2.0) Requires: %{_lib}opensc3 Requires(post,preun): rpm-helper %description FreeS/WAN is a free implementation of IPSEC & IKE for Linux. IPSEC is the Internet Protocol Security and uses strong cryptography to provide both authentication and encryption services. These services allow you to build secure tunnels through untrusted networks. Everything passing through the untrusted net is encrypted by the ipsec gateway machine and decrypted by the gateway at the other end of the tunnel. The resulting tunnel is a virtual private network or VPN. This package contains the daemons and userland tools for setting up FreeS/WAN on a freeswan enabled kernel. %files %defattr(-,root,root,755) %doc AUTHORS TODO NEWS README LICENSE %attr(700,root,root) %dir %{_sysconfdir}/ipsec.d/ %attr(700,root,root) %dir %{_sysconfdir}/ipsec.d/acerts %attr(700,root,root) %dir %{_sysconfdir}/ipsec.d/aacerts %attr(700,root,root) %dir %{_sysconfdir}/ipsec.d/ocspcerts %attr(700,root,root) %dir %{_sysconfdir}/ipsec.d/certs %attr(700,root,root) %dir %{_sysconfdir}/ipsec.d/cacerts %attr(700,root,root) %dir %{_sysconfdir}/ipsec.d/crls %attr(700,root,root) %dir %{_sysconfdir}/ipsec.d/private %config(noreplace) %{_sysconfdir}/ipsec.conf %{_initrddir}/ipsec %config(noreplace) %{_sysconfdir}/strongswan.conf %{_systemunitdir}/strongswan.service %{_libdir}/ipsec %{_mandir}/man*/* %{_sbindir}/ipsec %post %_post_service ipsec %preun %_preun_service ipsec #---------------------------------------------------------------------------- %prep %setup -q #patch0 -p0 -b .str %patch1 -p1 -b .link find . -name "Makefile*" -o -name "*.m4" |xargs sed -i -e 's,configure.in,configure.ac,g' %build autoreconf -fi %serverbuild %configure2_5x \ --enable-smartcard \ --enable-cisco-quirks \ --enable-ldap \ --with-default-pkcs11=%{_libdir}/opensc-pkcs11.so \ --disable-static \ --with-systemdsystemunitdir=%{_systemunitdir} %make %install install -d %{buildroot}%{_sysconfdir}/ipsec.d/{cacerts,crls,private,certs,acerts,aacerts,ocspcerts} install -d %{buildroot}%{_initrddir} install -d %{buildroot}/var/run/pluto %makeinstall_std # (fg) File is copied over here install -m0755 %{SOURCE1} %{buildroot}%{_initrddir}/ipsec