Setting tag libvirt-python-1.2.11-2
[libvirt-python.git] / Makefile
index e59159b..ce81773 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -2,10 +2,10 @@ WEBFETCH                := wget
 SHA1SUM                 := sha1sum
 
 ALL                     += libvirt-python
-libvirt-python-URL1    := http://mirror.onelab.eu/third-party/libvirt-python-1.2.1.tar.gz
-libvirt-python-URL2    := http://planet-lab.org/third-party/libvirt-python-1.2.1.tar.gz
-libvirt-python-SHA1SUM        := 874014e3b1b199919d40a34f12829fa1d610a2ea
-libvirt-python                := $(notdir $(libvirt-python-URL1))
+libvirt-python-URL1     := http://mirror.onelab.eu/third-party/libvirt-python-1.2.11.tar.gz
+libvirt-python-URL2     := http://planet-lab.org/third-party/libvirt-python-1.2.11.tar.gz
+libvirt-python-SHA1SUM  := e523be99b7ef6def64b0e7f1f715f8c67b72bbba
+libvirt-python          := $(notdir $(libvirt-python-URL1))
 
 all: $(ALL)
 .PHONY: all
@@ -15,18 +15,18 @@ define download_target
 $(1): $($(1))
 .PHONY: $(1)
 $($(1)): 
-        @if [ ! -e "$($(1))" ] ; then \
-        { echo Using primary; echo "$(WEBFETCH) $($(1)-URL1)" ; $(WEBFETCH) $($(1)-URL1) ; } || \
-        { echo Using secondary; echo "$(WEBFETCH) $($(1)-URL2)" ; $(WEBFETCH) $($(1)-URL2) ; } ; fi
-        @if [ ! -e "$($(1))" ] ; then echo "Could not download source file: $($(1)) does not exist" ; exit 1 ; fi
-        @if test "$$$$($(SHA1SUM) $($(1)) | awk '{print $$$$1}')" != "$($(1)-SHA1SUM)" ; then \
-            echo "sha1sum of the downloaded $($(1)) does not match the one from 'Makefile'" ; \
-            echo "Local copy: $$$$($(SHA1SUM) $($(1)))" ; \
-            echo "In Makefile: $($(1)-SHA1SUM)" ; \
-            false ; \
-        else \
-            ls -l $($(1)) ; \
-        fi
+       @if [ ! -e "$($(1))" ] ; then \
+       { echo Using primary; echo "$(WEBFETCH) $($(1)-URL1)" ; $(WEBFETCH) $($(1)-URL1) ; } || \
+       { echo Using secondary; echo "$(WEBFETCH) $($(1)-URL2)" ; $(WEBFETCH) $($(1)-URL2) ; } ; fi
+       @if [ ! -e "$($(1))" ] ; then echo "Could not download source file: $($(1)) does not exist" ; exit 1 ; fi
+       @if test "$$$$($(SHA1SUM) $($(1)) | awk '{print $$$$1}')" != "$($(1)-SHA1SUM)" ; then \
+           echo "sha1sum of the downloaded $($(1)) does not match the one from 'Makefile'" ; \
+           echo "Local copy: $$$$($(SHA1SUM) $($(1)))" ; \
+           echo "In Makefile: $($(1)-SHA1SUM)" ; \
+           false ; \
+       else \
+           ls -l $($(1)) ; \
+       fi
 endef
 
 $(eval $(call download_target,libvirt-python))
@@ -62,4 +62,3 @@ clean:
 +%: varname=$(subst +,,$@)
 +%:
                @echo "$($(varname))"
-