diff options
author | xtraeme <xtraeme@pkgsrc.org> | 2004-10-26 21:14:59 +0000 |
---|---|---|
committer | xtraeme <xtraeme@pkgsrc.org> | 2004-10-26 21:14:59 +0000 |
commit | 699c6b9a0dae9f174e7e1acd8a5bfadff5194d47 (patch) | |
tree | 4e3539641ba56f3d115b750c1f265c7c2582ed5c /mk/defaults | |
parent | 9afebc87c1433c787dfbefac396855da2f46d9de (diff) | |
download | pkgsrc-699c6b9a0dae9f174e7e1acd8a5bfadff5194d47.tar.gz |
2nd round for PKG_RESUME_TRANSFERS:
* Add FETCH_OUTPUT_ARGS (new option, defaults to "-o" with NetBSD's ftp(1))
* Use FETCH_OUTPUT_ARGS to move the file transfer to a temporary name
on ${DISTDIR}/${DIST_SUBDIR} with extension ".temp"
* If temporary file matches the checksum recorded in distinfo, move it
to the original name (removing temp file)
For example, if you want to use PKG_RESUME_TRANSFERS with wget
(pkgsrc/net/wget), the following vars should be defined in mk.conf:
FETCH_CMD=wget
FETCH_RESUME_ARGS=-c
FETCH_OUTPUT_ARGS=-O
No need to set these vars when using defaults (NetBSD's ftp(1))
Diffstat (limited to 'mk/defaults')
-rw-r--r-- | mk/defaults/mk.conf | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/mk/defaults/mk.conf b/mk/defaults/mk.conf index eb7d99de954..c4854dc5c74 100644 --- a/mk/defaults/mk.conf +++ b/mk/defaults/mk.conf @@ -1,4 +1,4 @@ -# $NetBSD: mk.conf,v 1.9 2004/10/21 17:00:10 tv Exp $ +# $NetBSD: mk.conf,v 1.10 2004/10/26 21:14:59 xtraeme Exp $ # # A file providing defaults for pkgsrc and the packages collection. @@ -257,6 +257,16 @@ FETCH_RESUME_ARGS?= # empty # 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 in PLISTs into the # represented library names. |