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.1dev
parent
a294a19990
commit
74f85818a6
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue