1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
10 groups = Networking/VPN
11 url = http://www.strongswan.org/
13 summary = IPsec (IKEv1 + IKEv2) implementation for Linux.
16 StrongSwan is a complete IPsec and IKEv1 implementation for
17 Linux 2.4 and 2.6 kernels. It also fully supports the new IKEv2
18 protocol with Linux 2.6 kernels. It interoperates in both IKEv1
19 and IKEv2 mode with most other IPsec-based VPN products.
22 source_dl = http://download.strongswan.org/
23 sources = %{thisapp}.tar.bz2
41 systemd-devel >= 221-2
44 configure_options += \
46 --with-ipseclibdir=%{libdir}/ipsec \
56 --enable-xauth-noauth \
61 --enable-eap-mschapv2 \
62 --enable-eap-identity \
63 --with-capabilities=libcap \
66 --enable-kernel-libipsec
68 if "%{DISTRO_ARCH}" == "i686"
69 configure_options += --enable-padlock
72 # The testsuite does not run through in the build system
79 # Drop unneeded files.
80 rm -rvf %{BUILDROOT}%{libdir}/ipsec/lib*.so
82 # Move libraries to libdir.
83 mv %{BUILDROOT}%{libdir}/ipsec/lib*.so.* %{BUILDROOT}%{libdir}
90 systemctl daemon-reload >/dev/null 2>&1 || :
94 systemctl daemon-reload >/dev/null 2>&1 || :
95 systemctl reload-or-try-restart strongswan.service >/dev/null 2>&1 || :
96 systemctl reload-or-try-restart strongswan-swanctl.service >/dev/null 2>&1 || :
100 systemctl disable --no-reload strongswan.service >/dev/null 2>&1 || :
101 systemctl disable --no-reload strongswan-swanctl.service >/dev/null 2>&1 || :
102 systemctl stop strongswan.service >/dev/null 2>&1 || :
103 systemctl stop strongswan-swanctl.service >/dev/null 2>&1 || :
107 systemctl daemon-reload >/dev/null 2>&1 || :
111 package %{name}-debuginfo