summaryrefslogtreecommitdiffhomepage
path: root/pkg/shasum.mak
diff options
context:
space:
mode:
authorAndrei Belov <defan@nginx.com>2020-04-16 18:27:26 +0300
committerAndrei Belov <defan@nginx.com>2020-04-16 18:27:26 +0300
commit74f32d26b91f49d3392605e81c1597b375890b60 (patch)
treeadfc67dfc86461441bde65512f745ce27bd6ea28 /pkg/shasum.mak
parent2ff9df10ef1df43c935c870175e52473dad2c21a (diff)
parent9877087756144d3bdf343d0d4e91e1efbcc62c93 (diff)
downloadunit-74f32d26b91f49d3392605e81c1597b375890b60.tar.gz
unit-74f32d26b91f49d3392605e81c1597b375890b60.tar.bz2
Merged with the default branch.1.17.0-1
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