github: Don't fail LGTM test with an error if variables are missing
[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 --enable-silent-rules \
21 --sysconfdir=/etc \
22 --with-strongswan-conf=/etc/strongswan.conf.testing \
23 --with-random-device=/dev/urandom \
24 --disable-load-warning \
25 --enable-curl \
26 --enable-soup \
27 --enable-ldap \
28 --enable-eap-aka \
29 --enable-eap-aka-3gpp2 \
30 --enable-eap-sim \
31 --enable-eap-sim-file \
32 --enable-eap-simaka-sql \
33 --enable-eap-md5 \
34 --enable-md4 \
35 --enable-eap-mschapv2 \
36 --enable-eap-identity \
37 --enable-eap-radius \
38 --enable-eap-dynamic \
39 --enable-eap-tls \
40 --enable-eap-ttls \
41 --enable-eap-peap \
42 --enable-eap-tnc \
43 --enable-tnc-ifmap \
44 --enable-tnc-pdp \
45 --enable-tnc-imc \
46 --enable-tnc-imv \
47 --enable-tnccs-11 \
48 --enable-tnccs-20 \
49 --enable-tnccs-dynamic \
50 --enable-imc-test \
51 --enable-imv-test \
52 --enable-imc-scanner \
53 --enable-imv-scanner \
54 --enable-imc-os \
55 --enable-imv-os \
56 --enable-imc-attestation \
57 --enable-imv-attestation \
58 --enable-imc-swima \
59 --enable-imv-swima \
60 --enable-imc-hcd \
61 --enable-imv-hcd \
62 --enable-sql \
63 --enable-sqlite \
64 --enable-attr-sql \
65 --enable-mediation \
66 --enable-botan \
67 --enable-openssl \
68 --enable-blowfish \
69 --enable-kernel-pfkey \
70 --enable-integrity-test \
71 --enable-leak-detective \
72 --enable-load-tester \
73 --enable-test-vectors \
74 --enable-gcrypt \
75 --enable-socket-default \
76 --enable-socket-dynamic \
77 --enable-dhcp \
78 --enable-farp \
79 --enable-connmark \
80 --enable-forecast \
81 --enable-addrblock \
82 --enable-ctr \
83 --enable-ccm \
84 --enable-gcm \
85 --enable-cmac \
86 --enable-chapoly \
87 --enable-ha \
88 --enable-af-alg \
89 --enable-whitelist \
90 --enable-xauth-generic \
91 --enable-xauth-eap \
92 --enable-pkcs8 \
93 --enable-unity \
94 --enable-unbound \
95 --enable-ipseckey \
96 --enable-dnscert \
97 --enable-acert \
98 --enable-cmd \
99 --enable-libipsec \
100 --enable-kernel-libipsec \
101 --enable-tkm \
102 --enable-ntru \
103 --enable-lookip \
104 --enable-bliss \
105 --enable-sha3 \
106 --enable-newhope \
107 --enable-systemd \
108 --enable-counters \
109 --enable-save-keys \
110 --enable-python-eggs
111
112 export ADA_PROJECT_PATH=/usr/local/ada/lib/gnat
113
114 all: install
115
116 $(TAR):
117 wget $(SRC)
118
119 $(PKG): $(TAR)
120 tar xfj $(TAR)
121 echo "$(SWANVERSION)" > /root/shared/.strongswan-version
122
123 configure: $(BUILDDIR)
124 cd $(BUILDDIR) && $(DIR)/configure $(CONFIG_OPTS)
125
126 build: configure
127 cd $(BUILDDIR) && make -j $(NUM_CPUS)
128
129 install: build
130 cd $(BUILDDIR) && make -j install && \
131 cd $(DIR)/src/libcharon/plugins/vici/python && python setup.py install
132 # for Python-based updown scripts
133 pip install python-daemon