pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mk Add depends-fetch and depends-checksum. They work like
details: https://anonhg.NetBSD.org/pkgsrc/rev/2f7f7ded319d
branches: trunk
changeset: 395867:2f7f7ded319d
user: joerg <joerg%pkgsrc.org@localhost>
date: Wed Jul 15 09:40:30 2009 +0000
description:
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:
mk/checksum/bsd.checksum.mk | 5 ++++-
mk/checksum/checksum.mk | 12 +++++++++++-
mk/fetch/bsd.fetch.mk | 5 ++++-
mk/fetch/fetch.mk | 12 +++++++++++-
4 files changed, 30 insertions(+), 4 deletions(-)
diffs (84 lines):
diff -r 3b715c252b6f -r 2f7f7ded319d mk/checksum/bsd.checksum.mk
--- a/mk/checksum/bsd.checksum.mk Wed Jul 15 09:31:20 2009 +0000
+++ b/mk/checksum/bsd.checksum.mk Wed Jul 15 09:40:30 2009 +0000
@@ -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 -r 3b715c252b6f -r 2f7f7ded319d mk/checksum/checksum.mk
--- a/mk/checksum/checksum.mk Wed Jul 15 09:31:20 2009 +0000
+++ b/mk/checksum/checksum.mk Wed Jul 15 09:40:30 2009 +0000
@@ -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 @@
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
diff -r 3b715c252b6f -r 2f7f7ded319d mk/fetch/bsd.fetch.mk
--- a/mk/fetch/bsd.fetch.mk Wed Jul 15 09:31:20 2009 +0000
+++ b/mk/fetch/bsd.fetch.mk Wed Jul 15 09:40:30 2009 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.fetch.mk,v 1.6 2007/10/30 23:35:51 rillig Exp $
+# $NetBSD: bsd.fetch.mk,v 1.7 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 "fetch" step.
@@ -12,6 +12,9 @@
# Prints a shell script to the standard output that will download
# the distfiles.
#
+# depends-fetch:
+# Run fetch for the current package and all dependencies.
+#
# The following targets may be overridden in a package Makefile:
#
# pre-fetch:
diff -r 3b715c252b6f -r 2f7f7ded319d mk/fetch/fetch.mk
--- a/mk/fetch/fetch.mk Wed Jul 15 09:31:20 2009 +0000
+++ b/mk/fetch/fetch.mk Wed Jul 15 09:40:30 2009 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: fetch.mk,v 1.42 2009/03/17 22:13:36 rillig Exp $
+# $NetBSD: fetch.mk,v 1.43 2009/07/15 09:40:30 joerg Exp $
_MASTER_SITE_BACKUP= ${MASTER_SITE_BACKUP:=${DIST_SUBDIR}${DIST_SUBDIR:D/}}
_MASTER_SITE_OVERRIDE= ${MASTER_SITE_OVERRIDE:=${DIST_SUBDIR}${DIST_SUBDIR:D/}}
@@ -311,3 +311,13 @@
done
. endif
.endif
+
+.PHONY: depends-fetch
+depends-fetch:
+ ${RUN} \
+ ${_DEPENDS_WALK_CMD} ${PKGPATH} | \
+ while read dir; do \
+ ${ECHO} "===> Checksumming for $${dir}" && \
+ cd ${.CURDIR}/../../$$dir && \
+ ${RECURSIVE_MAKE} ${MAKEFLAGS} fetch; \
+ done
Home |
Main Index |
Thread Index |
Old Index