]> git.ipfire.org Git - ipfire-3.x.git/blame - strongswan/strongswan.nm
libseccomp: Update to 2.4.3
[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
48052e14 7version = 5.8.0
198756ea 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
00a97de3
MT
87 # Install network settings
88 install -v -m 644 %{DIR_SOURCE}/network.conf \
89 %{BUILDROOT}%{sysconfdir}/strongswan.d/
90
fc8a8a3c
MT
91 # Create directory for connections
92 mkdir -pv %{BUILDROOT}%{sysconfdir}/swanctl/connections
93 echo "include connections/*.conf" > \
94 %{BUILDROOT}%{sysconfdir}/swanctl/swanctl.conf
95
549db1ae
SS
96 # Drop unneeded files.
97 rm -rvf %{BUILDROOT}%{libdir}/ipsec/lib*.so
98
99 # Move libraries to libdir.
100 mv %{BUILDROOT}%{libdir}/ipsec/lib*.so.* %{BUILDROOT}%{libdir}
101 end
802ea3af 102end
c6a74bfb 103
802ea3af
MT
104packages
105 package %{name}
ba0b224a
MT
106 script postin
107 systemctl daemon-reload >/dev/null 2>&1 || :
108 end
109
110 script postup
111 systemctl daemon-reload >/dev/null 2>&1 || :
112 systemctl reload-or-try-restart strongswan.service >/dev/null 2>&1 || :
113 end
114
115 script preun
116 systemctl disable --no-reload strongswan.service >/dev/null 2>&1 || :
117 systemctl stop strongswan.service >/dev/null 2>&1 || :
118 end
119
120 script postun
121 systemctl daemon-reload >/dev/null 2>&1 || :
122 end
123 end
1f9bc2f0
MT
124
125 package %{name}-debuginfo
126 template DEBUGINFO
127 end
802ea3af 128end