summaryrefslogtreecommitdiff
path: root/mk/defaults
diff options
context:
space:
mode:
authorxtraeme <xtraeme@pkgsrc.org>2004-10-26 21:14:59 +0000
committerxtraeme <xtraeme@pkgsrc.org>2004-10-26 21:14:59 +0000
commit45b3b684a4702b360dce78fe18e03807b4ad72c3 (patch)
tree4e3539641ba56f3d115b750c1f265c7c2582ed5c /mk/defaults
parentcb57ccecd549670da40b7d3ff6ce4a682a33b8ad (diff)
downloadpkgsrc-45b3b684a4702b360dce78fe18e03807b4ad72c3.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.conf12
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.