git://git.onelab.eu
/
libvirt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
e7f2e76
)
update src url and sha1sum
author
Mohamed Larabi
<mohamed.larabi@inria.fr>
Thu, 6 Feb 2014 23:40:32 +0000
(
00:40
+0100)
committer
Mohamed Larabi
<mohamed.larabi@inria.fr>
Thu, 6 Feb 2014 23:40:32 +0000
(
00:40
+0100)
Makefile
patch
|
blob
|
history
diff --git
a/Makefile
b/Makefile
index
a07837a
..
0dc601d
100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-4,10
+4,9
@@
SHA1SUM := sha1sum
# tried to download this on the fly using git archive at git://libvirt.org/libvirt.git
# but it feels like git archive is not supported/allowed there
ALL += libvirt
# tried to download this on the fly using git archive at git://libvirt.org/libvirt.git
# but it feels like git archive is not supported/allowed there
ALL += libvirt
-libvirt-URL1 := http://mirror.onelab.eu/third-party/libvirt-1.0.4.tar.gz
-libvirt-URL2 := http://planet-lab.org/third-party/libvirt-1.0.4.tar.gz
-libvirt-SHA1SUM := 45e74a9a4c3a88c98ac4ae5d8200ea65c42b6951
-libvirt := $(notdir $(libvirt-URL1))
+libvirt-URL := http://libvirt.org/sources/libvirt-1.2.1.tar.gz
+libvirt-SHA1SUM := ea8e237e0df9f1828ff4a7a649c42aa45af7ecd7
+libvirt := $(notdir $(libvirt-URL))
all: $(ALL)
.PHONY: all
all: $(ALL)
.PHONY: all
@@
-18,8
+17,7
@@
$(1): $($(1))
.PHONY: $(1)
$($(1)):
@if [ ! -e "$($(1))" ] ; then \
.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
+ { echo Using primary; echo "$(WEBFETCH) $($(1)-URL)" ; $(WEBFETCH) $($(1)-URL1) ; } ; 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'" ; \
@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'" ; \