testing: Cache packages downloaded with pip for strongTNC
This way no network connections is required to rebuild the root/guest images.
This commit is contained in:
parent
2721832a45
commit
acdcb91e07
|
@ -3,6 +3,7 @@
|
||||||
PKG = strongTNC
|
PKG = strongTNC
|
||||||
ZIP = $(PKG)-master.zip
|
ZIP = $(PKG)-master.zip
|
||||||
SRC = https://github.com/strongswan/$(PKG)/archive/master.zip
|
SRC = https://github.com/strongswan/$(PKG)/archive/master.zip
|
||||||
|
DEPS = $(PKG)-deps
|
||||||
|
|
||||||
all: install
|
all: install
|
||||||
|
|
||||||
|
@ -12,6 +13,10 @@ $(ZIP):
|
||||||
$(PKG)-master: $(ZIP)
|
$(PKG)-master: $(ZIP)
|
||||||
unzip -u $(ZIP)
|
unzip -u $(ZIP)
|
||||||
|
|
||||||
install: $(PKG)-master
|
$(DEPS): $(PKG)-master
|
||||||
cd $(PKG)-master && pip install -r requirements.txt
|
mkdir -p $(DEPS)
|
||||||
|
pip install --download $(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
|
cp -r $(PKG)-master /var/www/tnc && chgrp -R www-data /var/www/tnc
|
||||||
|
|
Loading…
Reference in New Issue