summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. 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)
commit923554c1e22a82dcea06f1d9d47b6eae619250aa (patch)
tree1716decfcec6680bfc801392f621d6d6cd07b751
parentf1247245ed43288b283b3d79de15cd3ced6edc54 (diff)
Add source and nop targets and keyring.
-rwxr-xr-xbuild6
-rw-r--r--keyring.gpgbin0 -> 6637 bytes
-rw-r--r--source.mk19
3 files changed, 25 insertions, 0 deletions
diff --git a/build b/build
new file mode 100755
index 0000000..2a40656
--- /dev/null
+++ b/build
@@ -0,0 +1,6 @@
+#!/usr/bin/make -f
+
+include ../source.mk
+
+nop:
+ @:
diff --git a/keyring.gpg b/keyring.gpg
new file mode 100644
index 0000000..86d0044
--- /dev/null
+++ b/keyring.gpg
Binary files differ
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)