]> git.ipfire.org Git - people/amarx/ipfire-3.x.git/blob - strongswan/strongswan.nm
less: Update to version 481
[people/amarx/ipfire-3.x.git] / strongswan / strongswan.nm
1 ###############################################################################
2 # IPFire.org - An Open Source Firewall Solution #
3 # Copyright (C) - IPFire Development Team <info@ipfire.org> #
4 ###############################################################################
5
6 name = strongswan
7 version = 5.3.2
8 release = 1
9
10 groups = Networking/VPN
11 url = http://www.strongswan.org/
12 license = GPL
13 summary = IPsec (IKEv1 + IKEv2) implementation for Linux.
14
15 description
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.
20 end
21
22 source_dl = http://download.strongswan.org/
23 sources = %{thisapp}.tar.bz2
24
25 build
26 requires
27 autoconf
28 automake
29 bison
30 flex
31 gmp-devel
32 gperf
33 libcap-devel
34 libcurl-devel
35 libgcrypt-devel
36 libtool
37 openldap-devel
38 openssl-devel
39 perl
40 sqlite-devel
41 systemd-devel
42 systemd-units
43 end
44
45 configure_options += \
46 --enable-curl \
47 --enable-ldap \
48 --enable-openssl \
49 --enable-sqlite \
50 --enable-gcrypt \
51 --enable-ccm \
52 --enable-ctr \
53 --enable-gcm \
54 --enable-xauth-eap \
55 --enable-xauth-noauth \
56 --enable-eap-radius \
57 --enable-eap-tls \
58 --enable-eap-ttls \
59 --enable-eap-peap \
60 --enable-eap-mschapv2 \
61 --enable-eap-identity \
62 --with-capabilities=libcap \
63 --enable-swanctl \
64 --enable-kernel-libipsec
65
66 if "%{DISTRO_ARCH}" == "i686"
67 configure_options += --enable-padlock
68 end
69
70 # The testsuite does not run through in the build system
71 # on ARM systems.
72 #test
73 # make check
74 #end
75 end
76
77 packages
78 package %{name}
79 script postin
80 systemctl daemon-reload >/dev/null 2>&1 || :
81 end
82
83 script postup
84 systemctl daemon-reload >/dev/null 2>&1 || :
85 systemctl reload-or-try-restart strongswan.service >/dev/null 2>&1 || :
86 end
87
88 script preun
89 systemctl disable --no-reload strongswan.service >/dev/null 2>&1 || :
90 systemctl stop strongswan.service >/dev/null 2>&1 || :
91 end
92
93 script postun
94 systemctl daemon-reload >/dev/null 2>&1 || :
95 end
96 end
97
98 package %{name}-debuginfo
99 template DEBUGINFO
100 end
101 end