Skip to content

Commit

Permalink
contrib: make sha512sum check compatible with FreeBSD 14+
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
thresheek committed Jul 10, 2024
1 parent 706ea1a commit 6ca27c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/contrib/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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),)
Expand Down

0 comments on commit 6ca27c3

Please sign in to comment.