Commit 410baaba authored by Andrey V.Kosteltsev's avatar Andrey V.Kosteltsev

Added check GNU signatures for 'gdb'

parent b0874642
......@@ -9,33 +9,44 @@
url = http://ftpmirror.gnu.org/gdb
tarballs = gdb-6.4a.tar.bz2
tarballs += gdb-6.5a.tar.bz2
tarballs += gdb-7.0a.tar.bz2
tarballs += gdb-7.2a.tar.bz2
tarballs += gdb-7.5.tar.bz2
keyring = ../gnu-keyring.gpg
signatures = gdb-6.4a.tar.bz2.sig
signatures += gdb-6.5a.tar.bz2.sig
signatures += gdb-7.0a.tar.bz2.sig
signatures += gdb-7.2a.tar.bz2.sig
signatures += gdb-7.5.tar.bz2.sig
versions = 6.4a 6.5a 7.0a 7.2a 7.5
all: $(tarballs) $(signatures)
tarballs = $(addsuffix .tar.bz2, $(addprefix gdb-, $(versions)))
signatures = $(addsuffix .sig, $(tarballs))
sha1s = $(addsuffix .sha1sum, $(tarballs))
all: $(keyring) $(signatures) $(sha1s)
.PHONY: downloads_clean
$(keyring):
@cd .. ; $(MAKE) all
$(tarballs):
@echo -e "\n======= Downloading source tarballs ======="
@echo -e "\n======= Downloading source tarballs =======\n"
@for tarball in $(tarballs) ; do \
wget -N $(url)/$$tarball ; \
done
$(signatures):
@echo -e "\n======= Downloading tarball signatures ======="
@for signature in $(signatures) ; do \
$(signatures): %.tar.bz2.sig : %.tar.bz2
@for signature in $@ ; do \
echo -e "\n======= Downloading '$$signature' signature =======\n" ; \
wget -N $(url)/$$signature ; \
touch $$signature ; \
gpg --verify --keyring ../gnu-keyring.gpg $$signature ; ret="$$?" ; \
if [ "$$ret" == "1" ]; then \
echo -e "\n======= ERROR: Bad '$$signature' Signature =======\n" ; \
exit 1 ; \
fi ; \
done
$(sha1s): %.tar.bz2.sha1sum : %.tar.bz2
@for tarball in $< ; do \
echo -e "\n======= Calculate '$$tarball' sha1sum =======\n" ; \
sha1sum --binary $$tarball > $$tarball.sha1sum ; \
done
downloads_clean:
@rm -rf $(tarballs) $(signatures)
@rm -rf $(tarballs) $(signatures) $(sha1s)
......@@ -4,7 +4,8 @@
# $ tree -fid .
#
SUBDIRS := GNU/EGLIBC/2.12.1 \
SUBDIRS := GNU \
GNU/EGLIBC/2.12.1 \
GNU/EGLIBC/2.16.1 \
GNU/binutils \
GNU/gcc \
......
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