Files
strongswan-ext/testing/scripts/recipes/015_strongTNC.mk
T
Tobias Brunner d9785b36a3 testing: Replace deprecated/removed pip install --download command
It was deprecated for a while and has been replaced by `pip download`.
2020-09-03 13:34:19 +02:00

23 lines
581 B
Makefile

#!/usr/bin/make
PKG = strongTNC
ZIP = $(PKG)-master.zip
SRC = https://github.com/strongswan/$(PKG)/archive/master.zip
DEPS = $(PKG)-deps
all: install
$(ZIP):
wget --ca-directory=/usr/share/ca-certificates/mozilla/ $(SRC) -O $(ZIP)
$(PKG)-master: $(ZIP)
unzip -u $(ZIP)
$(DEPS): $(PKG)-master
mkdir -p $(DEPS)
pip download -d $(DEPS) -r $(PKG)-master/requirements.txt
install: $(DEPS)
pip install --no-index --find-links=file://`pwd`/$(DEPS) -r $(PKG)-master/requirements.txt
cp -r $(PKG)-master /var/www/tnc && chgrp -R www-data /var/www/tnc && chmod g+sw /var/www/tnc