]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blob - strongswan/strongswan.nm
Merge remote-tracking branch 'arne_f/kernel-4.7'
[people/ms/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.5.3
8 release = 2
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 ldns-devel
34 libcap-devel
35 libcurl-devel
36 libgcrypt-devel
37 libtool
38 openldap-devel
39 openssl-devel
40 perl
41 sqlite-devel
42 systemd-devel >= 221-2
43 unbound-devel
44 end
45
46 configure_options += \
47 --disable-static \
48 --with-ipseclibdir=%{libdir}/ipsec \
49 --enable-curl \
50 --enable-ldap \
51 --enable-openssl \
52 --enable-sqlite \
53 --enable-gcrypt \
54 --enable-ccm \
55 --enable-ctr \
56 --enable-gcm \
57 --enable-unity \
58 --enable-xauth-eap \
59 --enable-xauth-noauth \
60 --enable-eap-radius \
61 --enable-eap-tls \
62 --enable-eap-ttls \
63 --enable-eap-peap \
64 --enable-eap-mschapv2 \
65 --enable-eap-identity \
66 --disable-blowfish \
67 --disable-rc2 \
68 --with-capabilities=libcap \
69 --enable-unbound \
70 --enable-systemd
71
72 if "%{DISTRO_ARCH}" == "i686"
73 configure_options += --enable-padlock
74 end
75
76 # The testsuite does not run through in the build system
77 # on ARM systems.
78 #test
79 # make check
80 #end
81
82 install_cmds
83 # Drop unneeded files.
84 rm -rvf %{BUILDROOT}%{libdir}/ipsec/lib*.so
85
86 # Move libraries to libdir.
87 mv %{BUILDROOT}%{libdir}/ipsec/lib*.so.* %{BUILDROOT}%{libdir}
88 end
89 end
90
91 packages
92 package %{name}
93 script postin
94 systemctl daemon-reload >/dev/null 2>&1 || :
95 end
96
97 script postup
98 systemctl daemon-reload >/dev/null 2>&1 || :
99 systemctl reload-or-try-restart strongswan.service >/dev/null 2>&1 || :
100 end
101
102 script preun
103 systemctl disable --no-reload strongswan.service >/dev/null 2>&1 || :
104 systemctl stop strongswan.service >/dev/null 2>&1 || :
105 end
106
107 script postun
108 systemctl daemon-reload >/dev/null 2>&1 || :
109 end
110 end
111
112 package %{name}-debuginfo
113 template DEBUGINFO
114 end
115 end