summaryrefslogtreecommitdiff
path: root/mk/bsd.pkg.defaults.mk
diff options
context:
space:
mode:
authorxtraeme <xtraeme>2004-07-27 03:59:26 +0000
committerxtraeme <xtraeme>2004-07-27 03:59:26 +0000
commit036329fc2c0b8f79d9c5e844fe4995108cf55b3b (patch)
treeea567b7d7e205cca5c6d71420e9339e8016d0cb1 /mk/bsd.pkg.defaults.mk
parent77e4602ff3f43be6005218c416c1ad5a8c408e24 (diff)
downloadpkgsrc-036329fc2c0b8f79d9c5e844fe4995108cf55b3b.tar.gz
Add support to resume transfers, by default it will be disabled if
$http_proxy or $ftp_proxy are defined (for the moment, NetBSD's ftp(1) doesn't support this). While I'm here, move FETCH_CMD from bsd.pkg.mk to bsd.pkg.defaults.mk, and add the new variable FETCH_RESUME_ARGS (-R by default with ftp(1) from NetBSD/pkgsrc). If you want to use wget to resume transfers, you should use something like: FETCH_CMD=wget FETCH_RESUME_ARGS=-c
Diffstat (limited to 'mk/bsd.pkg.defaults.mk')
-rw-r--r--mk/bsd.pkg.defaults.mk17
1 files changed, 16 insertions, 1 deletions
diff --git a/mk/bsd.pkg.defaults.mk b/mk/bsd.pkg.defaults.mk
index 137f9643cf1..2fc5359dbd6 100644
--- a/mk/bsd.pkg.defaults.mk
+++ b/mk/bsd.pkg.defaults.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.defaults.mk,v 1.264 2004/07/25 06:51:33 grant Exp $
+# $NetBSD: bsd.pkg.defaults.mk,v 1.265 2004/07/27 03:59:26 xtraeme Exp $
#
# A file providing defaults for pkgsrc and the packages collection.
@@ -212,6 +212,21 @@ DEFAULT_VIEW?= ""
# This is the default view to which packages are added after installation.
# Default: "" (the empty view)
+.if exists(${LOCALBASE}/bin/ftp)
+FETCH_CMD?= ${LOCALBASE}/bin/ftp
+.else
+FETCH_CMD?= /usr/bin/ftp
+.endif
+# Default program to fetch the files with pkgsrc.
+# Default: NetBSD's ftp(1).
+# Possible: any.
+
+FETCH_RESUME_ARGS?= -R
+# Default argument to resume transferencies on pkgsrc, when using ftp(1)
+# from NetBSD/pkgsrc.
+# Default: -R
+# Possible: depends on your FETCH_CMD value.
+
PKG_INSTALLATION_PREFS?= overwrite pkgviews
# This is a whitespace-separated list of installation types to try when
# building a package, in order of preference.