libimcv: Fixed processing of PTS Simple Component Evidence
[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-simaka-sql \
32 --enable-eap-md5 \
33 --enable-md4 \
34 --enable-eap-mschapv2 \
35 --enable-eap-identity \
36 --enable-eap-radius \
37 --enable-eap-dynamic \
38 --enable-eap-tls \
39 --enable-eap-ttls \
40 --enable-eap-peap \
41 --enable-eap-tnc \
42 --enable-tnc-ifmap \
43 --enable-tnc-pdp \
44 --enable-tnc-imc \
45 --enable-tnc-imv \
46 --enable-tnccs-11 \
47 --enable-tnccs-20 \
48 --enable-tnccs-dynamic \
49 --enable-imc-test \
50 --enable-imv-test \
51 --enable-imc-scanner \
52 --enable-imv-scanner \
53 --enable-imc-os \
54 --enable-imv-os \
55 --enable-imc-attestation \
56 --enable-imv-attestation \
57 --enable-imc-swima \
58 --enable-imv-swima \
59 --enable-imc-hcd \
60 --enable-imv-hcd \
61 --enable-sql \
62 --enable-sqlite \
63 --enable-attr-sql \
64 --enable-mediation \
65 --enable-openssl \
66 --enable-blowfish \
67 --enable-kernel-pfkey \
68 --enable-integrity-test \
69 --enable-leak-detective \
70 --enable-load-tester \
71 --enable-test-vectors \
72 --enable-gcrypt \
73 --enable-socket-default \
74 --enable-socket-dynamic \
75 --enable-dhcp \
76 --enable-farp \
77 --enable-connmark \
78 --enable-forecast \
79 --enable-addrblock \
80 --enable-ctr \
81 --enable-ccm \
82 --enable-gcm \
83 --enable-cmac \
84 --enable-chapoly \
85 --enable-ha \
86 --enable-af-alg \
87 --enable-whitelist \
88 --enable-xauth-generic \
89 --enable-xauth-eap \
90 --enable-pkcs8 \
91 --enable-unity \
92 --enable-unbound \
93 --enable-ipseckey \
94 --enable-dnscert \
95 --enable-acert \
96 --enable-cmd \
97 --enable-libipsec \
98 --enable-kernel-libipsec \
99 --enable-tkm \
100 --enable-ntru \
101 --enable-lookip \
102 --enable-bliss \
103 --enable-sha3 \
104 --enable-newhope \
105 --enable-systemd \
106 --enable-counters \
107 --enable-save-keys
108
109 export ADA_PROJECT_PATH=/usr/local/ada/lib/gnat
110
111 all: install
112
113 $(TAR):
114 wget $(SRC)
115
116 $(PKG): $(TAR)
117 tar xfj $(TAR)
118 echo "$(SWANVERSION)" > /root/shared/.strongswan-version
119
120 configure: $(BUILDDIR)
121 cd $(BUILDDIR) && $(DIR)/configure $(CONFIG_OPTS)
122
123 build: configure
124 cd $(BUILDDIR) && make -j $(NUM_CPUS)
125
126 install: build
127 cd $(BUILDDIR) && make -j install