Projects : bitcoin : bitcoin_permissive_mode
1 | SHA512=sha512sum |
2 | CHECKSUM_OR_DIE=grep " $@$$" Manifest.sha512 | $(SHA512) -c || (mv $@ $@.badsum && false) |
3 | DECODE_DEED=cat $@.asc | sed -e '1,/begin-base64/d' -e '/====/,$$d' | base64 -d > $@ |
4 | VERIFY_DEED_OR_DIE=gpg --verify $@.asc || (mv $@.asc $@.asc.badsig && false) |
5 | |
6 | TURDS = boost_1_52_0.tar.bz2 db-4.8.30.tar.gz openssl-1.0.1g.tar.gz |
7 | all: $(TURDS) |
8 | |
9 | check: |
10 | $(SHA512) -c Manifest.sha512 |
11 | |
12 | clean: |
13 | rm -f $(TURDS) boost_1_52_0.tar.bz2.asc db-4.8.30.tar.gz.asc openssl-1.0.1g.tar.gz.asc |
14 | |
15 | boost_1_52_0.tar.bz2: |
16 | ifdef ONLINE |
17 | curl -s http://deedbot.org/deed-422651-1.txt -o $@.asc |
18 | endif |
19 | $(VERIFY_DEED_OR_DIE) |
20 | $(DECODE_DEED) |
21 | $(CHECKSUM_OR_DIE) |
22 | |
23 | db-4.8.30.tar.gz: |
24 | ifdef ONLINE |
25 | curl -s http://deedbot.org/deed-422651-3.txt -o $@.asc |
26 | endif |
27 | $(VERIFY_DEED_OR_DIE) |
28 | $(DECODE_DEED) |
29 | $(CHECKSUM_OR_DIE) |
30 | |
31 | openssl-1.0.1g.tar.gz: |
32 | ifdef ONLINE |
33 | curl -s http://deedbot.org/deed-422651-4.txt -o $@.asc |
34 | endif |
35 | $(VERIFY_DEED_OR_DIE) |
36 | $(DECODE_DEED) |
37 | $(CHECKSUM_OR_DIE) |