build openssl-fips in KVM root-image
[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 NUM_CPUS := $(shell getconf _NPROCESSORS_ONLN)
9
10 CONFIG_OPTS = \
11 --sysconfdir=/etc \
12 --with-random-device=/dev/urandom \
13 --disable-load-warning \
14 --enable-curl \
15 --enable-soup \
16 --enable-ldap \
17 --enable-eap-aka \
18 --enable-eap-aka-3gpp2 \
19 --enable-eap-sim \
20 --enable-eap-sim-file \
21 --enable-eap-md5 \
22 --enable-md4 \
23 --enable-eap-mschapv2 \
24 --enable-eap-identity \
25 --enable-eap-radius \
26 --enable-eap-dynamic \
27 --enable-eap-tls \
28 --enable-eap-ttls \
29 --enable-eap-peap \
30 --enable-eap-tnc \
31 --enable-tnc-ifmap \
32 --enable-tnc-pdp \
33 --enable-tnc-imc \
34 --enable-tnc-imv \
35 --enable-tnccs-11 \
36 --enable-tnccs-20 \
37 --enable-tnccs-dynamic \
38 --enable-imc-test \
39 --enable-imv-test \
40 --enable-imc-scanner \
41 --enable-imv-scanner \
42 --enable-imc-os \
43 --enable-imv-os \
44 --enable-imc-attestation \
45 --enable-imv-attestation \
46 --enable-sql \
47 --enable-sqlite \
48 --enable-attr-sql \
49 --enable-mediation \
50 --enable-openssl \
51 --enable-blowfish \
52 --enable-kernel-pfkey \
53 --enable-integrity-test \
54 --enable-leak-detective \
55 --enable-load-tester \
56 --enable-test-vectors \
57 --enable-gcrypt \
58 --enable-socket-default \
59 --enable-socket-dynamic \
60 --enable-dhcp \
61 --enable-farp \
62 --enable-addrblock \
63 --enable-ctr \
64 --enable-ccm \
65 --enable-gcm \
66 --enable-cmac \
67 --enable-ha \
68 --enable-af-alg \
69 --enable-whitelist \
70 --enable-xauth-generic \
71 --enable-xauth-eap \
72 --enable-pkcs8 \
73 --enable-unity \
74 --enable-unbound \
75 --enable-ipseckey \
76 --enable-tkm
77
78 export ADA_PROJECT_PATH=/usr/local/ada/lib/gnat
79
80 all: install
81
82 $(TAR):
83 wget $(SRC)
84
85 $(PKG): $(TAR)
86 tar xfj $(TAR)
87
88 configure: $(PKG)
89 cd $(PKG) && ./configure $(CONFIG_OPTS)
90
91 build: configure
92 cd $(PKG) && make -j $(NUM_CPUS)
93
94 install: build
95 cd $(PKG) && make install