testing: Enable dnscert plugin
[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-imc-swid \
47 --enable-imv-swid \
48 --enable-sql \
49 --enable-sqlite \
50 --enable-attr-sql \
51 --enable-mediation \
52 --enable-openssl \
53 --enable-blowfish \
54 --enable-kernel-pfkey \
55 --enable-integrity-test \
56 --enable-leak-detective \
57 --enable-load-tester \
58 --enable-test-vectors \
59 --enable-gcrypt \
60 --enable-socket-default \
61 --enable-socket-dynamic \
62 --enable-dhcp \
63 --enable-farp \
64 --enable-addrblock \
65 --enable-ctr \
66 --enable-ccm \
67 --enable-gcm \
68 --enable-cmac \
69 --enable-ha \
70 --enable-af-alg \
71 --enable-whitelist \
72 --enable-xauth-generic \
73 --enable-xauth-eap \
74 --enable-pkcs8 \
75 --enable-unity \
76 --enable-unbound \
77 --enable-ipseckey \
78 --enable-dnscert \
79 --enable-cmd \
80 --enable-libipsec \
81 --enable-kernel-libipsec \
82 --enable-tkm
83
84 export ADA_PROJECT_PATH=/usr/local/ada/lib/gnat
85
86 all: install
87
88 $(TAR):
89 wget $(SRC)
90
91 $(PKG): $(TAR)
92 tar xfj $(TAR)
93
94 configure: $(PKG)
95 cd $(PKG) && ./configure $(CONFIG_OPTS)
96
97 build: configure
98 cd $(PKG) && make -j $(NUM_CPUS)
99
100 install: build
101 cd $(PKG) && make install