]> git.ipfire.org Git - ipfire-3.x.git/blame - strongswan/strongswan.nm
strongswan: Update to 5.7.1
[ipfire-3.x.git] / strongswan / strongswan.nm
CommitLineData
c6a74bfb 1###############################################################################
802ea3af
MT
2# IPFire.org - An Open Source Firewall Solution #
3# Copyright (C) - IPFire Development Team <info@ipfire.org> #
c6a74bfb
MT
4###############################################################################
5
802ea3af 6name = strongswan
198756ea
MT
7version = 5.7.1
8release = 1
c6a74bfb 9
802ea3af
MT
10groups = Networking/VPN
11url = http://www.strongswan.org/
12license = GPL
9901f43c 13summary = IPsec (IKEv1 + IKEv2) implementation for Linux.
c6a74bfb 14
802ea3af 15description
f59c3c04
SS
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
c6a74bfb 19 and IKEv2 mode with most other IPsec-based VPN products.
802ea3af 20end
c6a74bfb 21
802ea3af 22source_dl = http://download.strongswan.org/
9901f43c 23sources = %{thisapp}.tar.bz2
802ea3af
MT
24
25build
26 requires
5e7474d8
MT
27 autoconf
28 automake
802ea3af
MT
29 bison
30 flex
31 gmp-devel
32 gperf
f8758f36 33 ldns-devel
802ea3af
MT
34 libcap-devel
35 libcurl-devel
36 libgcrypt-devel
ba0b224a 37 libtool
802ea3af 38 openldap-devel
ba0b224a 39 openssl-devel
802ea3af
MT
40 perl
41 sqlite-devel
549db1ae 42 systemd-devel >= 221-2
326ae1cc 43 unbound-devel >= 1.7
802ea3af
MT
44 end
45
46 configure_options += \
549db1ae
SS
47 --disable-static \
48 --with-ipseclibdir=%{libdir}/ipsec \
802ea3af
MT
49 --enable-curl \
50 --enable-ldap \
ba0b224a 51 --enable-openssl \
802ea3af
MT
52 --enable-sqlite \
53 --enable-gcrypt \
5e7474d8
MT
54 --enable-ccm \
55 --enable-ctr \
56 --enable-gcm \
326ae1cc 57 --enable-chapoly \
b5563ff9 58 --enable-unity \
5e7474d8
MT
59 --enable-xauth-eap \
60 --enable-xauth-noauth \
61 --enable-eap-radius \
62 --enable-eap-tls \
63 --enable-eap-ttls \
64 --enable-eap-peap \
65 --enable-eap-mschapv2 \
66 --enable-eap-identity \
ce09972d
MT
67 --disable-blowfish \
68 --disable-rc2 \
5e7474d8 69 --with-capabilities=libcap \
f8758f36 70 --enable-unbound \
fc8a8a3c
MT
71 --enable-systemd \
72 --disable-charon \
73 --disable-stroke \
74 --disable-scepclient
926324f9 75
f94138e7
MT
76 if "%{DISTRO_ARCH}" == "i686"
77 configure_options += --enable-padlock
78 end
79
5e7474d8
MT
80 # The testsuite does not run through in the build system
81 # on ARM systems.
82 #test
83 # make check
84 #end
549db1ae
SS
85
86 install_cmds
fc8a8a3c
MT
87 mv -v %{BUILDROOT}%{unitdir}/strongswan{-swanctl,}.service
88
00a97de3
MT
89 # Install network settings
90 install -v -m 644 %{DIR_SOURCE}/network.conf \
91 %{BUILDROOT}%{sysconfdir}/strongswan.d/
92
fc8a8a3c
MT
93 # Create directory for connections
94 mkdir -pv %{BUILDROOT}%{sysconfdir}/swanctl/connections
95 echo "include connections/*.conf" > \
96 %{BUILDROOT}%{sysconfdir}/swanctl/swanctl.conf
97
549db1ae
SS
98 # Drop unneeded files.
99 rm -rvf %{BUILDROOT}%{libdir}/ipsec/lib*.so
100
101 # Move libraries to libdir.
102 mv %{BUILDROOT}%{libdir}/ipsec/lib*.so.* %{BUILDROOT}%{libdir}
103 end
802ea3af 104end
c6a74bfb 105
802ea3af
MT
106packages
107 package %{name}
ba0b224a
MT
108 script postin
109 systemctl daemon-reload >/dev/null 2>&1 || :
110 end
111
112 script postup
113 systemctl daemon-reload >/dev/null 2>&1 || :
114 systemctl reload-or-try-restart strongswan.service >/dev/null 2>&1 || :
115 end
116
117 script preun
118 systemctl disable --no-reload strongswan.service >/dev/null 2>&1 || :
119 systemctl stop strongswan.service >/dev/null 2>&1 || :
120 end
121
122 script postun
123 systemctl daemon-reload >/dev/null 2>&1 || :
124 end
125 end
1f9bc2f0
MT
126
127 package %{name}-debuginfo
128 template DEBUGINFO
129 end
802ea3af 130end