diff options
author | P. J. McDermott <pj@pehjota.net> | 2014-06-11 22:08:42 (EDT) |
---|---|---|
committer | P. J. McDermott <pj@pehjota.net> | 2014-06-11 22:14:01 (EDT) |
commit | 923554c1e22a82dcea06f1d9d47b6eae619250aa (patch) | |
tree | 1716decfcec6680bfc801392f621d6d6cd07b751 | |
parent | f1247245ed43288b283b3d79de15cd3ced6edc54 (diff) |
Add source and nop targets and keyring.
-rwxr-xr-x | build | 6 | ||||
-rw-r--r-- | keyring.gpg | bin | 0 -> 6637 bytes | |||
-rw-r--r-- | source.mk | 19 |
3 files changed, 25 insertions, 0 deletions
@@ -0,0 +1,6 @@ +#!/usr/bin/make -f + +include ../source.mk + +nop: + @: diff --git a/keyring.gpg b/keyring.gpg Binary files differnew file mode 100644 index 0000000..86d0044 --- /dev/null +++ b/keyring.gpg diff --git a/source.mk b/source.mk new file mode 100644 index 0000000..88bc72c --- /dev/null +++ b/source.mk @@ -0,0 +1,19 @@ +upstream_archive = $(OPK_SOURCE)-$(OPK_SOURCE_VERSION_UPSTREAM).tar.gz +upstream_url = http://ftp.gnu.org/pub/gnu/$(OPK_SOURCE)/$(upstream_archive) +source_archive = ../$(OPK_SOURCE)-$(OPK_SOURCE_VERSION_UPSTREAM).orig.tar.gz +keys = A9C09E30 + +$(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; \ + rm -f ../keyring.gpg~; \ + gpg --verify --keyring ../keyring.gpg \ + '$(upstream_archive).sig'; \ + fi + mv '$(upstream_archive)' '$(source_archive)' + +source: $(source_archive) |