github: Don't fail LGTM test with an error if variables are missing
[strongswan.git] / testing / scripts / recipes / 015_strongTNC.mk
1 #!/usr/bin/make
2
3 PKG = strongTNC
4 ZIP = $(PKG)-master.zip
5 SRC = https://github.com/strongswan/$(PKG)/archive/master.zip
6 DEPS = $(PKG)-deps
7
8 all: install
9
10 $(ZIP):
11 wget --ca-directory=/usr/share/ca-certificates/mozilla/ $(SRC) -O $(ZIP)
12
13 $(PKG)-master: $(ZIP)
14 unzip -u $(ZIP)
15
16 $(DEPS): $(PKG)-master
17 mkdir -p $(DEPS)
18 pip download -d $(DEPS) -r $(PKG)-master/requirements.txt six
19
20 install: $(DEPS)
21 # six is required for djangorestframework-camel-case
22 pip install --no-index --find-links=file://`pwd`/$(DEPS) -r $(PKG)-master/requirements.txt six
23 cp -r $(PKG)-master /var/www/tnc && chgrp -R www-data /var/www/tnc && chmod g+sw /var/www/tnc