summaryrefslogtreecommitdiffhomepage
path: root/pkg/contrib
diff options
context:
space:
mode:
authorKonstantin Pavlov <thresh@nginx.com>2024-06-26 21:25:33 -0700
committerKonstantin Pavlov <pavlov.konstantin@gmail.com>2024-07-10 16:18:14 -0700
commit6ca27c326622432c12050c3162dedc5e458adbd5 (patch)
tree82d7f0a9c474f245dd7c062fb34fc81486dc7879 /pkg/contrib
parent706ea1a6890ac243d0aded8cfbcbd152affc8701 (diff)
downloadunit-6ca27c326622432c12050c3162dedc5e458adbd5.tar.gz
unit-6ca27c326622432c12050c3162dedc5e458adbd5.tar.bz2
contrib: make sha512sum check compatible with FreeBSD 14+
FreeBSD introduced sha512sum binary in version 14, but with slightly incompatible flags as compared to Linux version. This change makes it work in both worlds.
Diffstat (limited to 'pkg/contrib')
-rw-r--r--pkg/contrib/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/contrib/Makefile b/pkg/contrib/Makefile
index d4f072d2..0f412b20 100644
--- a/pkg/contrib/Makefile
+++ b/pkg/contrib/Makefile
@@ -51,7 +51,7 @@ XZ ?= $(error XZ (LZMA) compressor not found)
endif
ifeq ($(shell sha512sum --version >/dev/null 2>&1 || echo FAIL),)
-SHA512SUM = sha512sum --check
+SHA512SUM = sha512sum -c -
else ifeq ($(shell shasum --version >/dev/null 2>&1 || echo FAIL),)
SHA512SUM = shasum -a 512 --check
else ifeq ($(shell openssl version >/dev/null 2>&1 || echo FAIL),)