testing: Use venv for strongTNC
Also updated to a newer version to fix dependency issues.
This commit is contained in:
@@ -1,11 +1,12 @@
|
||||
#!/usr/bin/make
|
||||
|
||||
PKG = strongTNC
|
||||
REV = 1.0
|
||||
REV = 1.0.2
|
||||
DIR = $(PKG)-$(REV)
|
||||
ZIP = $(PKG)-$(REV).zip
|
||||
SRC = https://github.com/strongswan/$(PKG)/archive/$(REV).zip
|
||||
DEPS = $(PKG)-deps
|
||||
VENV = /usr/local/venvs/tnc
|
||||
|
||||
all: install
|
||||
|
||||
@@ -22,5 +23,6 @@ $(ZIP):
|
||||
@touch $@
|
||||
|
||||
install: .$(PKG)-deps-$(REV)
|
||||
pip3 install --no-index --find-links=file://`pwd`/$(DEPS) -r $(DIR)/requirements.txt
|
||||
python3 -m venv $(VENV)
|
||||
$(VENV)/bin/pip 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
|
||||
|
||||
Reference in New Issue
Block a user