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 = https://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 = https://download.strongswan.org/
41 systemd-devel >= 221-2
45 # strongswan cannot be compiled with -Wformat-security
46 # because of some custom printf stuff
47 CFLAGS += -Wno-format-security -Wno-error=format-security
49 configure_options += \
51 --with-ipseclibdir=%{libdir}/ipsec \
63 --enable-xauth-noauth \
68 --enable-eap-mschapv2 \
69 --enable-eap-identity \
72 --with-capabilities=libcap \
80 LD_LIBRARY_PATH="%{DIR_APP}/src/libstrongswan/.libs" make check || :
84 # Install network settings
85 install -v -m 644 %{DIR_SOURCE}/network.conf \
86 %{BUILDROOT}%{sysconfdir}/strongswan.d/
88 # Create directory for connections
89 mkdir -pv %{BUILDROOT}%{sysconfdir}/swanctl/connections
90 echo "include connections/*.conf" > \
91 %{BUILDROOT}%{sysconfdir}/swanctl/swanctl.conf
98 systemctl daemon-reload >/dev/null 2>&1 || :
102 systemctl daemon-reload >/dev/null 2>&1 || :
103 systemctl reload-or-try-restart strongswan.service >/dev/null 2>&1 || :
107 systemctl disable --no-reload strongswan.service >/dev/null 2>&1 || :
108 systemctl stop strongswan.service >/dev/null 2>&1 || :
112 systemctl daemon-reload >/dev/null 2>&1 || :
116 package %{name}-debuginfo