diff options
author | jlam <jlam@pkgsrc.org> | 2006-07-18 22:41:06 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2006-07-18 22:41:06 +0000 |
commit | 833691e2fe99a4d0a17fe691b540eb538c8c14f0 (patch) | |
tree | a6f437d6ce334fc8ca166f678da32fda77be429a /mk/defaults | |
parent | 90632e9598416269bd2ff1e5d049d7978b14fea5 (diff) | |
download | pkgsrc-833691e2fe99a4d0a17fe691b540eb538c8c14f0.tar.gz |
Overhaul fetch module:
* All the smarts is now encapsulated in the "fetch" script. The fetch
script understands how to use the distinfo file (if specified) to
look up the size and checksums of the file to fetch and will use
that information to verify checksums of the fetched files or resume
transfers of interrupted fetches.
* Move the default settings for FETCH_RESUME_ARGS and FETCH_OUTPUT_ARGS
for "ftp" from mk/defaults/mk.conf into mk/fetch/fetch.mk. We rewrite
it to avoid needing conditional statements.
* Avoid spawning a new make(1) process just to mirror a distfile.
* Split out fetch-list targets into a separate file fetch-list.mk.
These targets should probably be moved into a standalone script.
* Fix distclean target to properly remove partial downloads.
Diffstat (limited to 'mk/defaults')
-rw-r--r-- | mk/defaults/mk.conf | 22 |
1 files changed, 1 insertions, 21 deletions
diff --git a/mk/defaults/mk.conf b/mk/defaults/mk.conf index 888eca2e423..61bdbb3b511 100644 --- a/mk/defaults/mk.conf +++ b/mk/defaults/mk.conf @@ -1,4 +1,4 @@ -# $NetBSD: mk.conf,v 1.124 2006/07/10 17:11:32 wiz Exp $ +# $NetBSD: mk.conf,v 1.125 2006/07/18 22:41:06 jlam Exp $ # # This file provides default values for variables that may be overridden @@ -273,26 +273,6 @@ FETCH_CMD?= /usr/bin/ftp # Default: NetBSD's ftp(1). # Possible: any. -.if ${FETCH_CMD:T} == "ftp" -FETCH_RESUME_ARGS?= -R -.else -FETCH_RESUME_ARGS?= # empty -.endif -# Used when PKG_RESUME_TRANSFERS is enabled, to specify default argument -# to resume transfers. -# Default: -R -# Possible: depends on your FETCH_CMD value. - -.if ${FETCH_CMD:T} == "ftp" -FETCH_OUTPUT_ARGS?= -o -.else -FETCH_OUTPUT_ARGS?= # empty -.endif -# Used when PKG_RESUME_TRANSFERS is enabled, to specify default argument -# in FETCH_CMD to fetch the file to a temporary name. -# Default: -o -# Possible: depends on your FETCH_CMD value. - LIBTOOLIZE_PLIST?= yes # This determines whether to expand libtool archives (.la files) in PLISTs # into the represented library names. |