From: Tobias Brunner Date: Mon, 2 Jun 2014 15:45:42 +0000 (+0200) Subject: testing: Cache packages downloaded with pip for strongTNC X-Git-Tag: 5.2.0dr6~27 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=acdcb91e07ebff0cff1325dcd4c1ddafb427f637;p=thirdparty%2Fstrongswan.git testing: Cache packages downloaded with pip for strongTNC This way no network connections is required to rebuild the root/guest images. --- diff --git a/testing/scripts/recipes/015_strongTNC.mk b/testing/scripts/recipes/015_strongTNC.mk index 6746b9145d..0dad6c88ec 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