summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2020-08-09 18:33:57 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2020-08-09 18:56:39 (EDT)
commit2ca2d78ca7df4dcd9df2fdf446cc96cde3a6b3c9 (patch)
treeaf2a452285061988938d951ddd72dbad3813bfab
parentf3e28f70f5e3a5f242f3c65aac8c3d776bc4c435 (diff)
wolfutil: New package
-rw-r--r--wolfutil.pkg/control12
-rw-r--r--wolfutil.pkg/docs0
-rw-r--r--wolfutil.pkg/files1
-rw-r--r--wolfutil.pkg/postinst6
-rw-r--r--wolfutil.pkg/prerm5
5 files changed, 24 insertions, 0 deletions
diff --git a/wolfutil.pkg/control b/wolfutil.pkg/control
new file mode 100644
index 0000000..bd12835
--- /dev/null
+++ b/wolfutil.pkg/control
@@ -0,0 +1,12 @@
+Architecture: any
+Platform: all
+Section: util
+Depends: ${Shlib-Depends}
+Description: Command-line TLS client utility
+ wolfutil is a command-line tool for the wolfSSL embedded (SSL/)TLS
+ library. It is similar to the OpenSSL command-line tool, providing only
+ a limited `s_client` TLS client command. The primary goal is to provide
+ enough functionality for use by BusyBox's wget applet.
+ .
+ wolfutil's `s_client` command is designed to be stronger by default than
+ OpenSSL's, as the latter is only meant to be a "diagnostic tool".
diff --git a/wolfutil.pkg/docs b/wolfutil.pkg/docs
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/wolfutil.pkg/docs
diff --git a/wolfutil.pkg/files b/wolfutil.pkg/files
new file mode 100644
index 0000000..50a37cb
--- /dev/null
+++ b/wolfutil.pkg/files
@@ -0,0 +1 @@
+/usr/bin/wolfutil
diff --git a/wolfutil.pkg/postinst b/wolfutil.pkg/postinst
new file mode 100644
index 0000000..ec6c0f7
--- /dev/null
+++ b/wolfutil.pkg/postinst
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+if [ x"${1}" = x'configure' ]; then
+ update-alternatives --install /usr/bin/openssl openssl \
+ /usr/bin/wolfutil 10
+fi
diff --git a/wolfutil.pkg/prerm b/wolfutil.pkg/prerm
new file mode 100644
index 0000000..af2bd73
--- /dev/null
+++ b/wolfutil.pkg/prerm
@@ -0,0 +1,5 @@
+#!/bin/sh
+
+if [ x"${1}" = x'remove' ]; then
+ update-alternatives --remove openssl /usr/bin/wolfutil
+fi