summaryrefslogtreecommitdiffhomepage
path: root/pkg/shasum.mak
diff options
context:
space:
mode:
authorKonstantin Pavlov <thresh@nginx.com>2020-03-13 17:35:47 +0300
committerKonstantin Pavlov <thresh@nginx.com>2020-03-13 17:35:47 +0300
commit7181a661c5db59a40ba6b3ad0a3d8a571ad10877 (patch)
tree283ae28954c23b764ae66d08b090965c9ced8aa2 /pkg/shasum.mak
parentbaf92303987582d226fb90175f51c4cf8457cb96 (diff)
downloadunit-7181a661c5db59a40ba6b3ad0a3d8a571ad10877.tar.gz
unit-7181a661c5db59a40ba6b3ad0a3d8a571ad10877.tar.bz2
Added a target to export docker images as tarballs
Diffstat (limited to 'pkg/shasum.mak')
-rw-r--r--pkg/shasum.mak9
1 files changed, 9 insertions, 0 deletions
diff --git a/pkg/shasum.mak b/pkg/shasum.mak
new file mode 100644
index 00000000..39ec09e6
--- /dev/null
+++ b/pkg/shasum.mak
@@ -0,0 +1,9 @@
+ifeq ($(shell sha512sum --version >/dev/null 2>&1 || echo FAIL),)
+SHA512SUM = sha512sum
+else ifeq ($(shell shasum --version >/dev/null 2>&1 || echo FAIL),)
+SHA512SUM = shasum -a 512
+else ifeq ($(shell openssl version >/dev/null 2>&1 || echo FAIL),)
+SHA512SUM = openssl sha512
+else
+SHA512SUM = $(error no SHA-512 tool found!)
+endif