1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-24 00:45:52 +00:00

Bring this up to master r1.565.

This commit is contained in:
Mark Linimon 2007-04-26 06:44:51 +00:00
parent cde4269d0c
commit 29b7e35c2e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=190899

View File

@ -3469,7 +3469,7 @@ check-vulnerable:
# set alg to any of SIZE, MD5, SHA256 (or any other checksum algorithm):
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\#\#*/} \
DIR=${DIST_SUBDIR}; ${AWK} -v alg=$$alg -v file=$${DIR:+$$DIR/}$${file} \
'$$1 == alg && $$2 == "(" file ")" {print $$4}' ${MD5_FILE}
# Fetch
@ -4753,13 +4753,14 @@ checksum: fetch check-checksum-algorithms
cd ${DISTDIR}; OK="";\
for file in ${_CKSUMFILES}; do \
ignored="true"; \
_file=$${file#${DIST_SUBDIR}/*}; \
for alg in ${CHECKSUM_ALGORITHMS:U}; do \
ignore="false"; \
eval alg_executable=\$$$$alg; \
\
if [ $$alg_executable != "NO" ]; then \
MKSUM=`$$alg_executable < $$file`; \
CKSUM=`${DISTINFO_DATA}`; \
CKSUM=`file=$$_file; ${DISTINFO_DATA}`; \
else \
ignore="true"; \
fi; \
@ -4804,6 +4805,7 @@ checksum: fetch check-checksum-algorithms
done; \
\
for file in ${_IGNOREFILES}; do \
_file=$${file#${DIST_SUBDIR}/*}; \
ignored="true"; \
alreadymatched="false"; \
for alg in ${CHECKSUM_ALGORITHMS:U}; do \
@ -4811,7 +4813,7 @@ checksum: fetch check-checksum-algorithms
eval alg_executable=\$$$$alg; \
\
if [ $$alg_executable != "NO" ]; then \
CKSUM=`${DISTINFO_DATA}`; \
CKSUM=`file=$$_file; ${DISTINFO_DATA}`; \
else \
ignore="true"; \
fi; \