1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
9 thisapp = %{name}-%{version}rc1
11 groups = Networking/VPN
12 url = http://www.strongswan.org/
14 summary = IPsec (IKEv1 + IKEv2) implementation for Linux.
17 StrongSwan is a complete IPsec and IKEv1 implementation for
18 Linux 2.4 and 2.6 kernels. It also fully supports the new IKEv2
19 protocol with Linux 2.6 kernels. It interoperates in both IKEv1
20 and IKEv2 mode with most other IPsec-based VPN products.
23 source_dl = http://download.strongswan.org/
24 sources = %{thisapp}.tar.bz2
44 configure_options += \
50 --with-capabilities=libcap
52 if "%{DISTRO_ARCH}" == "i686"
53 configure_options += --enable-padlock
61 # Make the shared libraries available to the runtime linker.
62 # (RPATH issues, whatever...)
63 cd %{BUILDROOT}%{libdir}
64 for lib in libcharon.so.0 libhydra.so.0 libstrongswan.so.0; do
65 ln -svf ipsec/${lib} .
73 systemctl daemon-reload >/dev/null 2>&1 || :
77 systemctl daemon-reload >/dev/null 2>&1 || :
78 systemctl reload-or-try-restart strongswan.service >/dev/null 2>&1 || :
82 systemctl disable --no-reload strongswan.service >/dev/null 2>&1 || :
83 systemctl stop strongswan.service >/dev/null 2>&1 || :
87 systemctl daemon-reload >/dev/null 2>&1 || :
91 package %{name}-debuginfo