994acaa2830f1c5cde6399ae447d73979cbe22dc
[strongswan.git] / testing / scripts / recipes / 013_strongswan.mk
1 #!/usr/bin/make
2
3 PV = $(SWANVERSION)
4 PKG = strongswan-$(PV)
5 TAR = $(PKG).tar.bz2
6 SRC = http://download.strongswan.org/$(TAR)
7
8 # can be passed to load sources from a directory instead of a tarball
9 ifneq ($(origin SRCDIR), undefined)
10 DIR = $(SRCDIR)
11 BUILDDIR ?= $(SRCDIR)
12 endif
13 DIR ?= .
14 # can be passed if not building in the source directory
15 BUILDDIR ?= $(PKG)
16
17 NUM_CPUS := $(shell getconf _NPROCESSORS_ONLN)
18
19 CONFIG_OPTS = \
20 --sysconfdir=/etc \
21 --with-strongswan-conf=/etc/strongswan.conf.testing \
22 --with-random-device=/dev/urandom \
23 --disable-load-warning \
24 --enable-curl \
25 --enable-soup \
26 --enable-ldap \
27 --enable-eap-aka \
28 --enable-eap-aka-3gpp2 \
29 --enable-eap-sim \
30 --enable-eap-sim-file \
31 --enable-eap-md5 \
32 --enable-md4 \
33 --enable-eap-mschapv2 \
34 --enable-eap-identity \
35 --enable-eap-radius \
36 --enable-eap-dynamic \
37 --enable-eap-tls \
38 --enable-eap-ttls \
39 --enable-eap-peap \
40 --enable-eap-tnc \
41 --enable-tnc-ifmap \
42 --enable-tnc-pdp \
43 --enable-tnc-imc \
44 --enable-tnc-imv \
45 --enable-tnccs-11 \
46 --enable-tnccs-20 \
47 --enable-tnccs-dynamic \
48 --enable-imc-test \
49 --enable-imv-test \
50 --enable-imc-scanner \
51 --enable-imv-scanner \
52 --enable-imc-os \
53 --enable-imv-os \
54 --enable-imc-attestation \
55 --enable-imv-attestation \
56 --enable-imc-swid \
57 --enable-imv-swid \
58 --enable-imc-hcd \
59 --enable-imv-hcd \
60 --enable-sql \
61 --enable-sqlite \
62 --enable-attr-sql \
63 --enable-mediation \
64 --enable-openssl \
65 --enable-blowfish \
66 --enable-kernel-pfkey \
67 --enable-integrity-test \
68 --enable-leak-detective \
69 --enable-load-tester \
70 --enable-test-vectors \
71 --enable-gcrypt \
72 --enable-socket-default \
73 --enable-socket-dynamic \
74 --enable-dhcp \
75 --enable-farp \
76 --enable-connmark \
77 --enable-forecast \
78 --enable-addrblock \
79 --enable-ctr \
80 --enable-ccm \
81 --enable-gcm \
82 --enable-cmac \
83 --enable-chapoly \
84 --enable-ha \
85 --enable-af-alg \
86 --enable-whitelist \
87 --enable-xauth-generic \
88 --enable-xauth-eap \
89 --enable-pkcs8 \
90 --enable-unity \
91 --enable-unbound \
92 --enable-ipseckey \
93 --enable-dnscert \
94 --enable-acert \
95 --enable-cmd \
96 --enable-libipsec \
97 --enable-kernel-libipsec \
98 --enable-tkm \
99 --enable-ntru \
100 --enable-lookip \
101 --enable-swanctl \
102 --enable-bliss \
103 --enable-sha3
104
105 export ADA_PROJECT_PATH=/usr/local/ada/lib/gnat
106
107 all: install
108
109 $(TAR):
110 wget $(SRC)
111
112 $(PKG): $(TAR)
113 tar xfj $(TAR)
114 echo "$(SWANVERSION)" > /root/shared/.strongswan-version
115
116 configure: $(BUILDDIR)
117 cd $(BUILDDIR) && $(DIR)/configure $(CONFIG_OPTS)
118
119 build: configure
120 cd $(BUILDDIR) && make -j $(NUM_CPUS)
121
122 install: build
123 cd $(BUILDDIR) && make -j install