strongswan/strongswan.spec

94 lines
2.7 KiB
RPMSpec
Raw Normal View History

2012-02-01 19:44:52 +04:00
#%%define Werror_cflags %nil
Summary: StrongSWAN IPSEC implementation
Name: strongswan
2012-11-27 19:30:22 +04:00
Version: 5.0.1
2014-07-25 16:05:29 +04:00
Release: 3
2012-11-27 19:30:22 +04:00
License: GPLv2+
Group: System/Servers
Url: http://www.strongswan.org/
2012-02-01 19:44:52 +04:00
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
2012-11-27 19:30:22 +04:00
Patch1: strongswan-5.0.1-rosa-link.patch
BuildRequires: intltool
2012-11-27 19:30:22 +04:00
BuildRequires: gmp-devel
BuildRequires: libfcgi-devel
2012-02-01 19:44:52 +04:00
BuildRequires: libldap-devel
#BuildRequires: opensc-devel
BuildRequires: pkgconfig(libcurl)
BuildRequires: pkgconfig(libxml-2.0)
2012-02-01 19:44:52 +04:00
Requires: %{_lib}opensc3
Requires(post,preun): rpm-helper
2012-02-01 19:44:52 +04:00
%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)
2012-11-27 19:30:22 +04:00
%doc AUTHORS TODO NEWS README LICENSE
2012-02-01 19:44:52 +04:00
%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
2012-11-27 19:30:22 +04:00
%{_systemunitdir}/strongswan.service
2012-02-01 19:44:52 +04:00
%{_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'
2012-02-01 19:44:52 +04:00
%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
2012-02-01 19:44:52 +04:00