summaryrefslogtreecommitdiff
path: root/mk/fetch.mk
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@uclibc-ng.org>2014-12-27 07:51:34 +0100
committerWaldemar Brodkorb <wbx@uclibc-ng.org>2014-12-27 07:51:34 +0100
commit92d7f6522617c947d635680d045f12a4ef77bcb4 (patch)
treec20dc2f36505542fdb19a2b9d1da1b33ad92fba8 /mk/fetch.mk
parent6a7c5ff345b197c1d5f0f845adb2bb0da9690075 (diff)
convert checksum check to sha256
Rename the variable name to PKG_HASH and use a 256 Bit SHA checksum to verify the integrity of distfiles. While there do some housekeeping and remove old packages.
Diffstat (limited to 'mk/fetch.mk')
-rw-r--r--mk/fetch.mk6
1 files changed, 3 insertions, 3 deletions
diff --git a/mk/fetch.mk b/mk/fetch.mk
index 2446a0720..93d6b5183 100644
--- a/mk/fetch.mk
+++ b/mk/fetch.mk
@@ -29,8 +29,8 @@ ${_CHECKSUM_COOKIE}: ${FULLDISTFILES}
-rm -rf ${WRKDIR}
ifneq ($(ADK_DISABLE_CHECKSUM),y)
@OK=n; \
- allsums="$(strip ${PKG_MD5SUM})"; \
- (md5sum ${FULLDISTFILES}; echo exit) | while read sum name; do \
+ allsums="$(strip ${PKG_HASH})"; \
+ (shasum -a 256 ${FULLDISTFILES}; echo exit) | while read sum name; do \
if [[ $$sum = exit ]]; then \
[[ $$OK = n ]] && echo >&2 "==> No distfile found!" || :; \
[[ $$OK = 1 ]] || exit 1; \
@@ -42,7 +42,7 @@ ifneq ($(ADK_DISABLE_CHECKSUM),y)
[[ $$OK = 0 ]] || OK=1; \
continue; \
fi; \
- echo >&2 "==> Checksum mismatch for $${name##*/} (MD5)"; \
+ echo >&2 "==> Checksum mismatch for $${name##*/} (SHA256)"; \
echo >&2 ":---> should be '$$cursum'"; \
echo >&2 ":---> really is '$$sum'"; \
OK=0; \