From 74f85818a6ae3c609ddfb38f0de09dcdf552f88b Mon Sep 17 00:00:00 2001 From: nia Date: Thu, 11 Feb 2021 10:50:11 +0100 Subject: [PATCH] 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 --- lib/Makefile | 2 ++ programs/Makefile | 2 ++ tests/playTests.sh | 1 + 3 files changed, 5 insertions(+) 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