Merge branch 'stroke-counters'
[strongswan.git] / testing / scripts / recipes / 005_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-ldap \
16 --enable-eap-aka \
17 --enable-eap-aka-3gpp2 \
18 --enable-eap-sim \
19 --enable-eap-sim-file \
20 --enable-eap-md5 \
21 --enable-md4 \
22 --enable-eap-mschapv2 \
23 --enable-eap-identity \
24 --enable-eap-radius \
25 --enable-eap-dynamic \
26 --enable-eap-tls \
27 --enable-eap-ttls \
28 --enable-eap-peap \
29 --enable-eap-tnc \
30 --enable-tnc-pdp \
31 --enable-tnc-imc \
32 --enable-tnc-imv \
33 --enable-tnccs-11 \
34 --enable-tnccs-20 \
35 --enable-tnccs-dynamic \
36 --enable-imc-test \
37 --enable-imv-test \
38 --enable-imc-scanner \
39 --enable-imv-scanner \
40 --enable-imc-os \
41 --enable-imv-os \
42 --enable-imc-attestation \
43 --enable-imv-attestation \
44 --enable-sql \
45 --enable-sqlite \
46 --enable-mediation \
47 --enable-openssl \
48 --enable-blowfish \
49 --enable-kernel-pfkey \
50 --enable-integrity-test \
51 --enable-leak-detective \
52 --enable-load-tester \
53 --enable-test-vectors \
54 --enable-gcrypt \
55 --enable-socket-default \
56 --enable-socket-dynamic \
57 --enable-dhcp \
58 --enable-farp \
59 --enable-addrblock \
60 --enable-ctr \
61 --enable-ccm \
62 --enable-gcm \
63 --enable-cmac \
64 --enable-ha \
65 --enable-af-alg \
66 --enable-whitelist \
67 --enable-xauth-generic \
68 --enable-xauth-eap \
69 --enable-pkcs8 \
70 --enable-unity \
71 --enable-unbound \
72 --enable-ipseckey
73
74 all: install
75
76 $(TAR):
77 wget $(SRC)
78
79 $(PKG): $(TAR)
80 tar xfj $(TAR)
81
82 configure: $(PKG)
83 cd $(PKG) && ./configure $(CONFIG_OPTS)
84
85 build: configure
86 cd $(PKG) && make -j $(NUM_CPUS)
87
88 install: build
89 cd $(PKG) && make install