summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2019-04-07 19:37:56 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2019-04-07 19:37:56 (EDT)
commite3b54b98681fd02efad3c987b7e9697eb235fda5 (patch)
treebeb949f18041b36a8dc2b2ec71e109071414fd63
parent930169f779d0f41aff98e0067763088d811a4f41 (diff)
Revert "source.mk: "Remove""
This reverts commit adabeec90690b1e56d0bb697f264aeb719cafa3b.
-rw-r--r--source.mk22
1 files changed, 21 insertions, 1 deletions
diff --git a/source.mk b/source.mk
index c18a78c..a9117a3 100644
--- a/source.mk
+++ b/source.mk
@@ -1 +1,21 @@
-# Removed until upstream makes a new release
+upstream_archive = $(OPK_SOURCE)-$(OPK_SOURCE_VERSION_UPSTREAM).tar.gz
+upstream_url = http://ftp.gnu.org/gnu/$(OPK_SOURCE)/$(upstream_archive)
+source_archive = ../$(OPK_SOURCE)-$(OPK_SOURCE_VERSION_UPSTREAM).orig.tar.gz
+keys = \
+ '6CEF 9231 D6BF 2594 FABA 779E F7E8 72FE B971 54D3' \
+ '7768 CE4B 75E5 236F 1A37 4CEE C4C9 27CD 5D1B 36D7' \
+ '155D 3FC5 00C8 3448 6D1E EA67 7FD9 FCCB 000B EEEE'
+
+$(source_archive):
+ wget -c '$(upstream_url)'
+ set -e; if gpg --version >/dev/null 2>&1; then \
+ wget -c '$(upstream_url).sig'; \
+ [ -e ../keyring.gpg ] || \
+ gpg --keyring ../keyring.gpg --no-default-keyring \
+ --recv-keys $(keys) || true; \
+ gpg --verify --keyring ../keyring.gpg \
+ '$(upstream_archive).sig'; \
+ fi
+ mv '$(upstream_archive)' '$(source_archive)'
+
+source: $(source_archive)