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
dev
nia 2021-02-11 10:50:11 +01:00
parent a294a19990
commit 74f85818a6
3 changed files with 5 additions and 0 deletions

View File

@ -179,6 +179,8 @@ ifeq ($(UNAME), Darwin)
HASH ?= md5 HASH ?= md5
else ifeq ($(UNAME), FreeBSD) else ifeq ($(UNAME), FreeBSD)
HASH ?= gmd5sum HASH ?= gmd5sum
else ifeq ($(UNAME), NetBSD)
HASH ?= md5 -n
else ifeq ($(UNAME), OpenBSD) else ifeq ($(UNAME), OpenBSD)
HASH ?= md5 HASH ?= md5
endif endif

View File

@ -104,6 +104,8 @@ ifeq ($(UNAME), Darwin)
HASH ?= md5 HASH ?= md5
else ifeq ($(UNAME), FreeBSD) else ifeq ($(UNAME), FreeBSD)
HASH ?= gmd5sum HASH ?= gmd5sum
else ifeq ($(UNAME), NetBSD)
HASH ?= md5 -n
else ifeq ($(UNAME), OpenBSD) else ifeq ($(UNAME), OpenBSD)
HASH ?= md5 HASH ?= md5
endif endif

View File

@ -114,6 +114,7 @@ esac
case "$UNAME" in case "$UNAME" in
Darwin) MD5SUM="md5 -r" ;; Darwin) MD5SUM="md5 -r" ;;
FreeBSD) MD5SUM="gmd5sum" ;; FreeBSD) MD5SUM="gmd5sum" ;;
NetBSD) MD5SUM="md5 -n" ;;
OpenBSD) MD5SUM="md5" ;; OpenBSD) MD5SUM="md5" ;;
*) MD5SUM="md5sum" ;; *) MD5SUM="md5sum" ;;
esac esac