###############################################################################
name = strongswan
-version = 5.4.0
+version = 5.8.0
release = 1
groups = Networking/VPN
perl
sqlite-devel
systemd-devel >= 221-2
- unbound-devel
+ unbound-devel >= 1.7
end
configure_options += \
--enable-ccm \
--enable-ctr \
--enable-gcm \
+ --enable-chapoly \
--enable-unity \
--enable-xauth-eap \
--enable-xauth-noauth \
--enable-eap-peap \
--enable-eap-mschapv2 \
--enable-eap-identity \
+ --disable-blowfish \
+ --disable-rc2 \
--with-capabilities=libcap \
--enable-unbound \
- --enable-systemd
+ --enable-systemd \
+ --disable-charon \
+ --disable-stroke \
+ --disable-scepclient
if "%{DISTRO_ARCH}" == "i686"
configure_options += --enable-padlock
#end
install_cmds
+ # Install network settings
+ install -v -m 644 %{DIR_SOURCE}/network.conf \
+ %{BUILDROOT}%{sysconfdir}/strongswan.d/
+
+ # Create directory for connections
+ mkdir -pv %{BUILDROOT}%{sysconfdir}/swanctl/connections
+ echo "include connections/*.conf" > \
+ %{BUILDROOT}%{sysconfdir}/swanctl/swanctl.conf
+
# Drop unneeded files.
rm -rvf %{BUILDROOT}%{libdir}/ipsec/lib*.so