cached the target rpms on mirror.onelab.eu
authorThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Thu, 1 Jul 2010 12:22:25 +0000 (14:22 +0200)
committerThierry Parmentelat <thierry.parmentelat@sophia.inria.fr>
Thu, 1 Jul 2010 12:22:25 +0000 (14:22 +0200)
Makefile

index 221dd51..cb9617c 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -4,7 +4,8 @@
 WEBFETCH               := curl -H Pragma: -O -R -S --fail --show-error
 SHA1SUM                        := sha1sum
 
 WEBFETCH               := curl -H Pragma: -O -R -S --fail --show-error
 SHA1SUM                        := sha1sum
 
-REPO :=        http://pkg.mytestbed.net/omf-5.3-federation-v1.1/yum/base/8/i386/
+#REPO :=       http://pkg.mytestbed.net/omf-5.3-federation-v1.1/yum/base/8/i386/
+REPO :=        http://mirror.onelab.eu/third-party/omf-5.3-federation-v1.1
 
 ALL += omf-resctl
 omf-resctl-URL         := $(REPO)/omf-resctl-5.3-1ubuntu2-2.noarch.rpm
 
 ALL += omf-resctl
 omf-resctl-URL         := $(REPO)/omf-resctl-5.3-1ubuntu2-2.noarch.rpm
@@ -65,6 +66,14 @@ clean:
        rm -f $(CLEAN)
 .PHONY: clean
 
        rm -f $(CLEAN)
 .PHONY: clean
 
+repobase:=$(subst http://pkg.mytestbed.net/,,$(subst /yum/base/8/i386/,,$(REPO)))
+# this echoes a script that can be ran on the mirror
+mirror: 
+       @( echo mkdir -p $(repobase); echo cd $(repobase) ; \
+         $(foreach target,$(ALL), echo curl -O $(REPO)/$($(target)) ; ) )
+
+.PHONY: mirror
+
 #################### convenience, for debugging only
 # make +foo : prints the value of $(foo)
 # make ++foo : idem but verbose, i.e. foo=$(foo)
 #################### convenience, for debugging only
 # make +foo : prints the value of $(foo)
 # make ++foo : idem but verbose, i.e. foo=$(foo)