pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mk If USE_DIGEST is "no", then skip the check for an u...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/ece24770c995
branches:  trunk
changeset: 470963:ece24770c995
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Sat Mar 13 20:54:16 2004 +0000

description:
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:

 mk/bsd.pkg.mk |  8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diffs (31 lines):

diff -r 5be614ae2d17 -r ece24770c995 mk/bsd.pkg.mk
--- a/mk/bsd.pkg.mk     Sat Mar 13 20:51:01 2004 +0000
+++ b/mk/bsd.pkg.mk     Sat Mar 13 20:54:16 2004 +0000
@@ -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 @@
 # 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 @@
                ${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)



Home | Main Index | Thread Index | Old Index