]> git.ipfire.org Git - people/stevee/ipfire-3.x.git/blob - strongswan/strongswan.nm
glibc: Disable multilib support on X86_64
[people/stevee/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.0
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 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 --with-capabilities=libcap \
67 --enable-unbound \
68 --enable-systemd
69
70 if "%{DISTRO_ARCH}" == "i686"
71 configure_options += --enable-padlock
72 end
73
74 # The testsuite does not run through in the build system
75 # on ARM systems.
76 #test
77 # make check
78 #end
79
80 install_cmds
81 # Drop unneeded files.
82 rm -rvf %{BUILDROOT}%{libdir}/ipsec/lib*.so
83
84 # Move libraries to libdir.
85 mv %{BUILDROOT}%{libdir}/ipsec/lib*.so.* %{BUILDROOT}%{libdir}
86 end
87 end
88
89 packages
90 package %{name}
91 script postin
92 systemctl daemon-reload >/dev/null 2>&1 || :
93 end
94
95 script postup
96 systemctl daemon-reload >/dev/null 2>&1 || :
97 systemctl reload-or-try-restart strongswan.service >/dev/null 2>&1 || :
98 end
99
100 script preun
101 systemctl disable --no-reload strongswan.service >/dev/null 2>&1 || :
102 systemctl stop strongswan.service >/dev/null 2>&1 || :
103 end
104
105 script postun
106 systemctl daemon-reload >/dev/null 2>&1 || :
107 end
108 end
109
110 package %{name}-debuginfo
111 template DEBUGINFO
112 end
113 end