Commit 6db9b580 authored by Karel Slaný's avatar Karel Slaný

Sources of static libraries are downloaded using wget.

Removed old git-based mechanism.
parent ffc68b83
......@@ -11,10 +11,37 @@ if BUILD_64
all: built-unbound-64-stamp
endif
libs-archives-stamp:
-rm -rf libs-archives
git clone https://gitlab.labs.nic.cz/mstraka/dnssec-libs.git libs-archives
cd libs-archives; git checkout 3481ae7a05b277809f2e052c70659911e28f437f; cd ..
DOWNLOADER=wget
# openssl-1.0.1i openssl-1.0.2h
PKG_OPENSSL = openssl-1.0.1i
PKG_LDNS = ldns-1.6.17
# unbound-1.4.22 unbound-1.5.9
PKG_UNBOUND = unbound-1.4.22
ARCHIVE_OPENSSL = $(PKG_OPENSSL).tar.gz
ARCHIVE_LDNS = $(PKG_LDNS).tar.gz
ARCHIVE_UNBOUND = $(PKG_UNBOUND).tar.gz
libs-archives:
$(INSTALL) -d $@
openssl-archive-stamp: libs-archives
cd libs-archives; test -f $(ARCHIVE_OPENSSL) || $(DOWNLOADER) https://www.openssl.org/source/$(ARCHIVE_OPENSSL); cd ..
touch $@
ldns-archive-stamp: libs-archives
cd libs-archives; test -f $(ARCHIVE_LDNS) || $(DOWNLOADER) https://www.nlnetlabs.nl/downloads/ldns/$(ARCHIVE_LDNS); cd ..
touch $@
unbound-archive-stamp: libs-archives
cd libs-archives; test -f $(ARCHIVE_UNBOUND) || $(DOWNLOADER) https://www.unbound.net/downloads/$(ARCHIVE_UNBOUND); cd ..
touch $@
#git clone https://gitlab.labs.nic.cz/mstraka/dnssec-libs.git libs-archives
#cd libs-archives; git checkout 3481ae7a05b277809f2e052c70659911e28f437f; cd ..
libs-archives-stamp: openssl-archive-stamp ldns-archive-stamp unbound-archive-stamp
touch $@
libs-srcs-32-stamp: libs-archives-stamp
......@@ -29,32 +56,32 @@ libs-srcs-64-stamp: libs-archives-stamp
srcs-openssl-32-stamp: libs-srcs-32-stamp
-rm -rf libs-srcs-32/openssl*
cd libs-srcs-32; tar -xzf ../libs-archives/openssl*.tar.gz; mv openssl-* openssl; cd ..
cd libs-srcs-32; tar -xzf ../libs-archives/$(ARCHIVE_OPENSSL); mv openssl-* openssl; cd ..
touch $@
srcs-openssl-64-stamp: libs-srcs-64-stamp
-rm -rf libs-srcs-64/openssl*
cd libs-srcs-64; tar -xzf ../libs-archives/openssl*.tar.gz; mv openssl-* openssl; cd ..
cd libs-srcs-64; tar -xzf ../libs-archives/$(ARCHIVE_OPENSSL); mv openssl-* openssl; cd ..
touch $@
srcs-ldns-32-stamp: libs-srcs-32-stamp
-rm -rf libs-srcs-32/ldns*
cd libs-srcs-32; tar -xzf ../libs-archives/ldns*.tar.gz; mv ldns-* ldns; cd ..
cd libs-srcs-32; tar -xzf ../libs-archives/$(ARCHIVE_LDNS); mv ldns-* ldns; cd ..
touch $@
srcs-ldns-64-stamp: libs-srcs-64-stamp
-rm -rf libs-srcs-64/ldns*
cd libs-srcs-64; tar -xzf ../libs-archives/ldns*.tar.gz; mv ldns-* ldns; cd ..
cd libs-srcs-64; tar -xzf ../libs-archives/$(ARCHIVE_LDNS); mv ldns-* ldns; cd ..
touch $@
srcs-unbound-32-stamp: libs-srcs-32-stamp
-rm -rf libs-srcs-32/unbound*
cd libs-srcs-32; tar -xzf ../libs-archives/unbound*.tar.gz; mv unbound-* unbound; cd ..
cd libs-srcs-32; tar -xzf ../libs-archives/$(ARCHIVE_UNBOUND); mv unbound-* unbound; cd ..
touch $@
srcs-unbound-64-stamp: libs-srcs-64-stamp
-rm -rf libs-srcs-64/unbound*
cd libs-srcs-64; tar -xzf ../libs-archives/unbound*.tar.gz; mv unbound-* unbound; cd ..
cd libs-srcs-64; tar -xzf ../libs-archives/$(ARCHIVE_UNBOUND); mv unbound-* unbound; cd ..
touch $@
libs-built-32-stamp:
......@@ -160,6 +187,10 @@ CLEANFILES = \
built-unbound-64-stamp
DISTCLEANFILES = \
libs-archives \
openssl-archive-stamp \
ldns-archive-stamp \
unbound-archive-stamp \
libs-archives-stamp
clean-local:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment