diff options
-rw-r--r-- | .gitignore | 11 | ||||
-rwxr-xr-x | build | 10 | ||||
-rw-r--r-- | changelog | 5 | ||||
-rw-r--r-- | control | 3 | ||||
-rw-r--r-- | format | 1 | ||||
-rwxr-xr-x | release | 13 | ||||
-rw-r--r-- | source.mk | 27 |
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/ @@ -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 @@ -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/ @@ -0,0 +1 @@ +2.0 @@ -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) |