From 7a2c97d53fecacc96925c6584dd0b8db8ae097b9 Mon Sep 17 00:00:00 2001 From: jlam Date: Thu, 13 Jul 2006 14:02:34 +0000 Subject: * Add a new stage "bootstrap-depends" that happens before all other stages, and that installs dependencies listed in BOOTSTRAP_DEPENDS. The bootstrap-depends step works just like the normal depends step and honors the value of DEPENDS_TARGET. It's now possible to add dependencies solely to facilitate fetching the distfiles, e.g. BOOTSTRAP_DEPENDS+= curl-[0-9]*:../../www/curl * Teach the tools framework about ":bootstrap" as a tools modifier which indicates the tool should be added as a dependency via BOOTSTRAP_DEPENDS. * Add "digest" to the tools framework. * Use USE_TOOLS+=digest:bootstrap to force pkgsrc to install digest before anything else. Get rid of unused "uptodate-digest" target and related digest version-checking code. * Finish the refactoring work: split checksum-related code out of bsd.pkg.mk and into pkgsrc/mk/checksum and replace the "checksum" target command list with a script that does all the real work. * Make DIGEST_ALGORITHMS and PATCH_DIGEST_ALGORITHM into private variables by prepending them with an underscore. Also, rename _PATCH_DIGEST_ALGORITHM to _PATCH_DIGEST_ALGORITHMS and adjust the makepatchsum target to allow that variable to contain a list of algorithms, all of which are used when creating the patch checksums for ${DISTINFO_FILE}. --- mk/checksum/bsd.checksum.mk | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 mk/checksum/bsd.checksum.mk (limited to 'mk/checksum/bsd.checksum.mk') diff --git a/mk/checksum/bsd.checksum.mk b/mk/checksum/bsd.checksum.mk new file mode 100644 index 00000000000..d44a74a01f4 --- /dev/null +++ b/mk/checksum/bsd.checksum.mk @@ -0,0 +1,41 @@ +# $NetBSD: bsd.checksum.mk,v 1.1 2006/07/13 14:02:34 jlam Exp $ +# +# This Makefile fragment is included by bsd.pkg.mk and defines the +# relevant variables and targets for the "checksum" phase. +# +# The following are the "public" targets provided by this module: +# +# checksum, makesum, makepatchsum +# + +###################################################################### +### checksum, makesum, makepatchsum (PUBLIC) +###################################################################### +### checksum is a public target to checksum the fetched distfiles +### for the package. +### +### makesum is a public target to add checksums of the distfiles for +### the package to ${DISTINFO_FILE}. +### +### makepatchsum is a public target to add checksums of the patches +### for the package to ${DISTINFO_FILE}. +### +.if defined(NO_CHECKSUM) +.PHONY: checksum makesum makepatchsum +checksum makesum makepatchsum: + @${DO_NADA} +.else +. include "${PKGSRCDIR}/mk/checksum/checksum.mk" +.endif + +###################################################################### +### makedistinfo (PUBLIC) +###################################################################### +### makedistinfo is a public target to create ${DISTINFO_FILE}. +### +makedistinfo: makepatchsum makesum + @${DO_NADA} + +# Some short aliases for "makepatchsum" and "makedistinfo". +mps: makepatchsum +mdi: makedistinfo -- cgit v1.2.3