Files
strongswan-ext/testing/scripts/recipes/015_strongTNC.mk
T
Andreas Steffen 3e2841572b testing: Switch to Python 3
Both swidGenerator and strongTNC were migrated to Python 3.
This allows to migrate all testing scripts to Python 3, too.
2021-09-21 09:47:43 +02:00

27 lines
672 B
Makefile

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