From: nia Date: Thu, 11 Feb 2021 09:50:11 +0000 (+0100) Subject: Use standard md5 tool on NetBSD. X-Git-Tag: v1.4.9^2~4^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=74f85818a6ae3c609ddfb38f0de09dcdf552f88b;p=thirdparty%2Fzstd.git Use standard md5 tool on NetBSD. This avoids a GNU coreutils dependency. -n is used to match the output format of coreutils: http://man.netbsd.org/md5.1 --- diff --git a/lib/Makefile b/lib/Makefile index 9a3cc0096..39ff304f5 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -179,6 +179,8 @@ ifeq ($(UNAME), Darwin) HASH ?= md5 else ifeq ($(UNAME), FreeBSD) HASH ?= gmd5sum +else ifeq ($(UNAME), NetBSD) + HASH ?= md5 -n else ifeq ($(UNAME), OpenBSD) HASH ?= md5 endif diff --git a/programs/Makefile b/programs/Makefile index 31576ecc9..936f3c804 100644 --- a/programs/Makefile +++ b/programs/Makefile @@ -104,6 +104,8 @@ ifeq ($(UNAME), Darwin) HASH ?= md5 else ifeq ($(UNAME), FreeBSD) HASH ?= gmd5sum +else ifeq ($(UNAME), NetBSD) + HASH ?= md5 -n else ifeq ($(UNAME), OpenBSD) HASH ?= md5 endif diff --git a/tests/playTests.sh b/tests/playTests.sh index 20259bc2f..ec1692c21 100755 --- a/tests/playTests.sh +++ b/tests/playTests.sh @@ -114,6 +114,7 @@ esac case "$UNAME" in Darwin) MD5SUM="md5 -r" ;; FreeBSD) MD5SUM="gmd5sum" ;; + NetBSD) MD5SUM="md5 -n" ;; OpenBSD) MD5SUM="md5" ;; *) MD5SUM="md5sum" ;; esac