aboutsummaryrefslogtreecommitdiff
path: root/ports-mgmt/portmk
diff options
context:
space:
mode:
authorMark Linimon <linimon@FreeBSD.org>2007-04-04 17:02:02 +0000
committerMark Linimon <linimon@FreeBSD.org>2007-04-04 17:02:02 +0000
commitc88358ae09b8095ccb17b2a8d8f31e950b63b982 (patch)
treeba0c00981ab0ce61927f768d788632c3adaf1808 /ports-mgmt/portmk
parent73594a5f4f114688889b33a05e7270f6f9f10a6f (diff)
downloadports-c88358ae09b8095ccb17b2a8d8f31e950b63b982.tar.gz
ports-c88358ae09b8095ccb17b2a8d8f31e950b63b982.zip
Notes
Diffstat (limited to 'ports-mgmt/portmk')
-rw-r--r--ports-mgmt/portmk/Mk/bsd.port.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/ports-mgmt/portmk/Mk/bsd.port.mk b/ports-mgmt/portmk/Mk/bsd.port.mk
index 796402aede13..a52264c87709 100644
--- a/ports-mgmt/portmk/Mk/bsd.port.mk
+++ b/ports-mgmt/portmk/Mk/bsd.port.mk
@@ -3468,8 +3468,8 @@ check-vulnerable:
.endif
# set alg to any of SIZE, MD5, SHA256 (or any other checksum algorithm):
-DISTINFO_DATA?= DIR=${DIST_SUBDIR}; ${AWK} -v alg=$$alg \
- -v file=$${DIR:+$$DIR/}$${file\#\#*/} \
+DISTINFO_DATA?= if [ \( -n "${DISABLE_SIZE}" -a -n "${NO_CHECKSUM}" \) -o ! -f "${MD5_FILE}" ]; then exit; fi; \
+ DIR=${DIST_SUBDIR}; ${AWK} -v alg=$$alg -v file=$${DIR:+$$DIR/}$${file\#\#*/} \
'$$1 == alg && $$2 == "(" file ")" {print $$4}' ${MD5_FILE}
# Fetch