summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.gitignore10
-rwxr-xr-xbuild19
-rw-r--r--changelog5
-rw-r--r--control4
-rw-r--r--copyright34
-rw-r--r--format1
-rwxr-xr-xrelease13
-rw-r--r--source.mk26
8 files changed, 112 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..dd90d0e
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,10 @@
+# Vim swap and other dot files
+.*
+!.gitignore
+
+# Source archives
+*-*.orig.tar.*
+keyring.gpg
+
+# Work area
+tmp/
diff --git a/build b/build
new file mode 100755
index 0000000..57b9ea8
--- /dev/null
+++ b/build
@@ -0,0 +1,19 @@
+#!/usr/bin/make -f
+
+include ../source.mk
+
+nop:
+ @:
+
+build:
+ oh-autoconfigure -- \
+ --with-ca-certificates-dir=/etc/x509/server-auth
+ oh-autobuild
+ touch $@
+
+install: build
+ oh-autoinstall
+ oh-fixperms
+ oh-strip
+ oh-installfiles
+ oh-shlibdeps
diff --git a/changelog b/changelog
new file mode 100644
index 0000000..a9ccda2
--- /dev/null
+++ b/changelog
@@ -0,0 +1,5 @@
+wolfutil (1.0.0-1) trunk
+
+ * Initial release.
+
+ -- Patrick McDermott <patrick.mcdermott@libiquity.com> Sun, 09 Aug 2020 17:48:15 -0400
diff --git a/control b/control
new file mode 100644
index 0000000..5d0ef13
--- /dev/null
+++ b/control
@@ -0,0 +1,4 @@
+Maintainer: Patrick McDermott <patrick.mcdermott@libiquity.com>
+Build-Depends: opkbuild (>= 4.2.0), opkhelper-3.0 (>= 3.1.3), gpg, dirmngr,
+ libwolfssl.24-dev, pkgconf,
+Homepage: http://www.proteanos.com/dev/wolfutil/
diff --git a/copyright b/copyright
new file mode 100644
index 0000000..de83e30
--- /dev/null
+++ b/copyright
@@ -0,0 +1,34 @@
+Upstream Source
+===============
+
+Copyright (C) 2019 Libiquity LLC
+
+This file is part of wolfutil.
+
+wolfutil is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 2 of the License, or
+(at your option) any later version.
+
+wolfutil is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+GNU General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with wolfutil. If not, see <http://www.gnu.org/licenses/>.
+
+On this system, a copy of the GNU General Public License may be found at
+<file:///usr/share/common-licenses/GPL-3>.
+
+
+Distribution Packaging
+======================
+
+Copyright (C) 2019-2020 Patrick McDermott
+
+These files may be reproduced, distributed, modified, and otherwise dealt in
+under the terms of the Expat License.
+
+On this system, a copy of the Expat License may be found at
+<file:///usr/share/common-licenses/Expat>.
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..303715a
--- /dev/null
+++ b/source.mk
@@ -0,0 +1,26 @@
+upstream_version = $$(printf '%s\n' '$(OPK_SOURCE_VERSION_UPSTREAM)' | \
+ tr '~' '-')
+upstream_archive = $(OPK_SOURCE)-$(upstream_version).tar.xz
+upstream_url_base = http://files.proteanos.com/pub/$(OPK_SOURCE)
+upstream_url = $(upstream_url_base)/$(upstream_version)/$(upstream_archive)
+source_archive = ../$(OPK_SOURCE)-$(OPK_SOURCE_VERSION_UPSTREAM).orig.tar.xz
+
+gpg = GNUPGHOME=gnupghome/ gpg --no-default-keyring --keyring ../keyring.gpg
+keys = \
+ '2250 31F0 47FF E516 63ED 516F 1A45 9ECD E4D6 04BE'
+
+$(source_archive):
+ wget -c "$(upstream_url)" "$(upstream_url).asc"
+ install -m 0700 -d gnupghome/
+ [ -e ../keyring.gpg ] || \
+ $(gpg) --keyserver hkp://pool.sks-keyservers.net \
+ --recv-keys $(keys); \
+ rm -f ../keyring.gpg~; \
+ if ! $(gpg) --verify "$(upstream_archive).asc"; then \
+ rm -Rf gnupghome/; \
+ exit 1; \
+ fi
+ rm -Rf gnupghome/
+ mv "$(upstream_archive)" '$(source_archive)'
+
+source: $(source_archive)