diff options
author | Tobias Brunner <tobias@strongswan.org> | 2014-06-02 17:45:42 +0200 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2014-06-02 17:45:42 +0200 |
commit | acdcb91e07ebff0cff1325dcd4c1ddafb427f637 (patch) | |
tree | 0caeb7a5b8a1b063ff587a02176d8b4db4338ff8 /testing | |
parent | 2721832a45dcda115da1eed1d74360287613b624 (diff) | |
download | strongswan-acdcb91e07ebff0cff1325dcd4c1ddafb427f637.tar.bz2 strongswan-acdcb91e07ebff0cff1325dcd4c1ddafb427f637.tar.xz |
testing: Cache packages downloaded with pip for strongTNC
This way no network connections is required to rebuild the root/guest images.
Diffstat (limited to 'testing')
-rw-r--r-- | testing/scripts/recipes/015_strongTNC.mk | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/testing/scripts/recipes/015_strongTNC.mk b/testing/scripts/recipes/015_strongTNC.mk index 6746b9145..0dad6c88e 100644 --- a/testing/scripts/recipes/015_strongTNC.mk +++ b/testing/scripts/recipes/015_strongTNC.mk @@ -3,6 +3,7 @@ PKG = strongTNC ZIP = $(PKG)-master.zip SRC = https://github.com/strongswan/$(PKG)/archive/master.zip +DEPS = $(PKG)-deps all: install @@ -12,6 +13,10 @@ $(ZIP): $(PKG)-master: $(ZIP) unzip -u $(ZIP) -install: $(PKG)-master - cd $(PKG)-master && pip install -r requirements.txt +$(DEPS): $(PKG)-master + 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 |