summaryrefslogtreecommitdiff
path: root/mk/checksum
diff options
context:
space:
mode:
authorjoerg <joerg>2009-07-15 09:40:30 +0000
committerjoerg <joerg>2009-07-15 09:40:30 +0000
commita4b6589df51796cfbb823a0cbedaa17bb481ab5d (patch)
treeb4a3261225d0d48402879ac82ac9278a7dae746a /mk/checksum
parent916f435e24e60ecaf686c0626745592278c11c6f (diff)
downloadpkgsrc-a4b6589df51796cfbb823a0cbedaa17bb481ab5d.tar.gz
Add depends-fetch and depends-checksum. They work like
show-depends-options, e.g. recurse. make fetch-list does not provide the same functionality as it doesn't deal well with broken mirror.
Diffstat (limited to 'mk/checksum')
-rw-r--r--mk/checksum/bsd.checksum.mk5
-rw-r--r--mk/checksum/checksum.mk12
2 files changed, 15 insertions, 2 deletions
diff --git a/mk/checksum/bsd.checksum.mk b/mk/checksum/bsd.checksum.mk
index 62294c7e38c..d8192c14f82 100644
--- a/mk/checksum/bsd.checksum.mk
+++ b/mk/checksum/bsd.checksum.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.checksum.mk,v 1.9 2008/05/22 16:27:22 joerg Exp $
+# $NetBSD: bsd.checksum.mk,v 1.10 2009/07/15 09:40:30 joerg Exp $
#
# This Makefile fragment is included by bsd.pkg.mk and defines the
# relevant variables and targets for the "checksum" phase.
@@ -14,6 +14,9 @@
# Same as "checksum" but is meant to run automatically by pkgsrc.
# This target does not run after the "extract" phase is complete.
#
+# depends-checksum:
+# Run checksum for the current package and all dependencies.
+#
# Public targets for pkgsrc developers:
#
# makesum:
diff --git a/mk/checksum/checksum.mk b/mk/checksum/checksum.mk
index cedb9656bfb..0ad01b53c23 100644
--- a/mk/checksum/checksum.mk
+++ b/mk/checksum/checksum.mk
@@ -1,4 +1,4 @@
-# $NetBSD: checksum.mk,v 1.14 2008/05/22 20:47:21 joerg Exp $
+# $NetBSD: checksum.mk,v 1.15 2009/07/15 09:40:30 joerg Exp $
#
# See bsd.checksum.mk for helpful comments.
#
@@ -114,3 +114,13 @@ makepatchsum:
else \
${MV} -f $$newfile ${DISTINFO_FILE}; \
fi
+
+.PHONY: depends-checksum
+depends-checksum:
+ ${RUN} \
+ ${_DEPENDS_WALK_CMD} ${PKGPATH} | \
+ while read dir; do \
+ ${ECHO} "===> Checksumming for $${dir}" && \
+ cd ${.CURDIR}/../../$$dir && \
+ ${RECURSIVE_MAKE} ${MAKEFLAGS} checksum; \
+ done