diff options
author | joerg <joerg@pkgsrc.org> | 2009-07-15 09:40:30 +0000 |
---|---|---|
committer | joerg <joerg@pkgsrc.org> | 2009-07-15 09:40:30 +0000 |
commit | 1edeec02cacb05038db7ba7e745d7fb0b653edc9 (patch) | |
tree | b4a3261225d0d48402879ac82ac9278a7dae746a /mk/fetch | |
parent | 3ada01f0633be599c73e598835f341759fe516d1 (diff) | |
download | pkgsrc-1edeec02cacb05038db7ba7e745d7fb0b653edc9.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/fetch')
-rw-r--r-- | mk/fetch/bsd.fetch.mk | 5 | ||||
-rw-r--r-- | mk/fetch/fetch.mk | 12 |
2 files changed, 15 insertions, 2 deletions
diff --git a/mk/fetch/bsd.fetch.mk b/mk/fetch/bsd.fetch.mk index b6b7a7e3bf5..31b4b98b5c6 100644 --- a/mk/fetch/bsd.fetch.mk +++ b/mk/fetch/bsd.fetch.mk @@ -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 --git a/mk/fetch/fetch.mk b/mk/fetch/fetch.mk index c3000adcb60..c98c5f6f835 100644 --- a/mk/fetch/fetch.mk +++ b/mk/fetch/fetch.mk @@ -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 @@ show-distfiles: 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 |