summaryrefslogtreecommitdiff
path: root/mk/defaults
diff options
context:
space:
mode:
authormishka <mishka@pkgsrc.org>2006-10-08 11:37:38 +0000
committermishka <mishka@pkgsrc.org>2006-10-08 11:37:38 +0000
commit0f000d2afb8ebc96335dfd6d1e57c03d46ff23ce (patch)
tree2f32d219d3f6b0b70f5df9e1553b6fe54f1cb252 /mk/defaults
parentf2f83bdd3e8c8af21de113e9a831fca86be13b32 (diff)
downloadpkgsrc-0f000d2afb8ebc96335dfd6d1e57c03d46ff23ce.tar.gz
pkg/34695: Static list of package master sites may (and often will)
lead to overloads of very first distribution site. Moreover, if first site in the list is not available (often seen for sourceforge mirrors) you have to wait for timeout each time. To distribute load on master distribution sites and to make second problem not so annoying randomly intermix list of MASTER_SITES with MASTER_SORT_RANDOM feature. Any of MASTER_SORT and MASTER_SORT_REGEX can be applied later. The feature is turned ON by default and is disabled for PKG_DEVELOPERs or if MASTER_SORT_RANDOM=no.
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 68cd076ee5a..43f6f8cdb84 100644
--- a/mk/defaults/mk.conf
+++ b/mk/defaults/mk.conf
@@ -1,4 +1,4 @@
-# $NetBSD: mk.conf,v 1.132 2006/10/05 23:35:23 reed Exp $
+# $NetBSD: mk.conf,v 1.133 2006/10/08 11:37:38 mishka Exp $
#
# This file provides default values for variables that may be overridden
@@ -405,6 +405,16 @@ EXTRACT_USING?= nbtar
# Possible: Regexps as in awk(1)
# Default: none
+.if defined(PKG_DEVELOPER)
+MASTER_SORT_RANDOM?= NO
+.else
+MASTER_SORT_RANDOM?= YES
+.endif
+# If set to YES or yes, a list of master sites will be randomly intermixed.
+# Also, both MASTER_SORT and MASTER_SORT_REGEX may be applied later.
+# Possible: yes, no / not defined
+# Default: NO if PKG_DEVELOPER is defined, YES otherwise
+
#PATCH_DEBUG=
# Used to debug patches as they are applied
# Possible: defined, not defined