From e3b54b98681fd02efad3c987b7e9697eb235fda5 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Sun, 07 Apr 2019 19:37:56 -0400 Subject: Revert "source.mk: "Remove"" This reverts commit adabeec90690b1e56d0bb697f264aeb719cafa3b. --- 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) -- cgit v0.9.1