summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2004-03-13 20:54:16 +0000
committerjlam <jlam@pkgsrc.org>2004-03-13 20:54:16 +0000
commit2a0cb9c8751bbb210821f2e17ca1a62b3fb2872b (patch)
treecaaaa78f4f60dd18010b46b472ab4ba197e07b87 /mk
parentf6124754613227e4140d9cbbfc396217bdcd6b17 (diff)
downloadpkgsrc-2a0cb9c8751bbb210821f2e17ca1a62b3fb2872b.tar.gz
If USE_DIGEST is "no", then skip the check for an up-to-date digest.
XXX These changes should be removed once we have a working XXX pkgsrc/bootstrap.
Diffstat (limited to 'mk')
-rw-r--r--mk/bsd.pkg.mk8
1 files changed, 7 insertions, 1 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk
index 92a44411d54..3c3e2ca7fab 100644
--- a/mk/bsd.pkg.mk
+++ b/mk/bsd.pkg.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.mk,v 1.1421 2004/03/13 19:43:03 jlam Exp $
+# $NetBSD: bsd.pkg.mk,v 1.1422 2004/03/13 20:54:16 jlam Exp $
#
# This file is in the public domain.
#
@@ -763,8 +763,11 @@ MESSAGE_SUBST_SED= ${MESSAGE_SUBST:S/=/}!/:S/$/!g/:S/^/ -e s!\\\${/}
# Latest version of digest(1) required for pkgsrc
DIGEST_REQD= 20010302
+USE_DIGEST?= yes
+
.PHONY: uptodate-digest
uptodate-digest:
+.if !empty(USE_DIGEST:M[nN][oO])
${_PKG_SILENT}${_PKG_DEBUG} \
if [ -f ${DISTINFO_FILE} -a \( ! -f ${DIGEST} -o ${DIGEST_VERSION} -lt ${DIGEST_REQD} \) ]; then \
{ cd ${_PKGSRCDIR}/pkgtools/digest; \
@@ -775,6 +778,9 @@ uptodate-digest:
${MAKE} ${MAKEFLAGS} ${DEPENDS_TARGET}; \
${MAKE} ${MAKEFLAGS} clean; } \
fi
+.else
+ @${DO_NADA}
+.endif
# Latest version of pkgtools required for correct pkgsrc operation.
.if defined(_OPSYS_PKGTOOLS_REQD)