summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2020-07-20 05:27:35 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2020-07-20 05:27:35 (EDT)
commit3504f5fe14409255d354e3b3071a0a099eb880b4 (patch)
tree81e75ea725afed8335a8f25d9c3dc4288df83225
Initial commit
-rw-r--r--.gitignore11
-rwxr-xr-xbuild10
-rw-r--r--changelog5
-rw-r--r--control3
-rw-r--r--format1
-rwxr-xr-xrelease13
-rw-r--r--source.mk27
7 files changed, 70 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..213a9bf
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,11 @@
+# Swap and backup files
+.*.sw*
+.sw*
+*~
+Session.vim
+
+# Source archives
+*-*.orig.tar.*
+
+# Work area
+tmp/
diff --git a/build b/build
new file mode 100755
index 0000000..db67b14
--- /dev/null
+++ b/build
@@ -0,0 +1,10 @@
+#!/usr/bin/make -f
+
+include ../source.mk
+
+nop:
+ @:
+
+build:
+
+install:
diff --git a/changelog b/changelog
new file mode 100644
index 0000000..15aa93c
--- /dev/null
+++ b/changelog
@@ -0,0 +1,5 @@
+wolfssl.24 (4.4.0-1) trunk
+
+ * Initial release.
+
+ -- Patrick McDermott <patrick.mcdermott@libiquity.com> Mon, 20 Jul 2020 04:32:20 -0400
diff --git a/control b/control
new file mode 100644
index 0000000..bbfa3e6
--- /dev/null
+++ b/control
@@ -0,0 +1,3 @@
+Maintainer: Patrick McDermott <patrick.mcdermott@libiquity.com>
+Build-Depends: opkbuild (>= 4.2.0), opkhelper-3.0 (>= 3.1.3), gpg, dirmngr
+Homepage: https://www.wolfssl.com/products/wolfssl/
diff --git a/format b/format
new file mode 100644
index 0000000..cd5ac03
--- /dev/null
+++ b/format
@@ -0,0 +1 @@
+2.0
diff --git a/release b/release
new file mode 100755
index 0000000..871cb4a
--- /dev/null
+++ b/release
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+set -eu
+
+read src ver <<-EOF
+ $(sed '1s/^\(.*\) (\(.*\)) .*$/\1 \2/; q;' changelog)
+ EOF
+
+sed '/^ -- .* /{ s/^\( -- .* \).*$/\1'"$(LC_ALL='POSIX' date \
+ '+%a, %d %b %Y %H:%M:%S %z')"'/; :l; n; b l; };' changelog >changelog~
+mv changelog~ changelog
+git commit -m "changelog: Release ${src} ${ver}" -- changelog
+git tag "${src}/${ver}" HEAD
diff --git a/source.mk b/source.mk
new file mode 100644
index 0000000..411515b
--- /dev/null
+++ b/source.mk
@@ -0,0 +1,27 @@
+us_ver = $(OPK_SOURCE_VERSION_UPSTREAM)-stable
+us_tar = v$(us_ver).tar.gz
+us_sig = wolfssl-$(us_ver).tar.gz.asc
+us_url_base = https://github.com/wolfSSL/wolfssl
+us_tar_url = $(us_url_base)/archive/$(us_tar)
+us_sig_url = $(us_url_base)/releases/download/v$(us_ver)/$(us_sig)
+source_archive = ../$(OPK_SOURCE)-$(OPK_SOURCE_VERSION_UPSTREAM).orig.tar.gz
+
+gpg = GNUPGHOME=gnupghome/ gpg --no-default-keyring --keyring ../keyring.gpg
+keys = \
+ 'A2A4 8E7B CB96 C5BE CB98 7314 EBC8 0E41 5CA2 9677'
+
+$(source_archive):
+ #wget -c '$(us_tar_url)' '$(us_sig_url)'
+ install -m 0700 -d gnupghome/
+ [ -e ../keyring.gpg ] || \
+ $(gpg) --keyserver hkps://keys.openpgp.org \
+ --recv-keys $(keys);
+ rm -f ../keyring.gpg~
+ if ! $(gpg) --verify '$(us_sig)' '$(us_tar)'; then \
+ rm -Rf gnupghome/; \
+ exit 1; \
+ fi
+ rm -Rf gnupghome/
+ mv '$(us_tar)' '$@'
+
+source: $(source_archive)