config/global/download.in
author "Yann E. MORIN" <yann.morin.1998@free.fr>
Sat May 10 12:33:37 2014 +0200 (2014-05-10)
changeset 3308 b571b3566915
parent 3307 d7eaba5831d5
permissions -rw-r--r--
scripts: remove references to curl

It's been a while we're not using curl anymore.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
     1 # Options specific to downloading packages
     2 
     3 comment "Downloading"
     4 
     5 config FORBID_DOWNLOAD
     6     bool
     7     prompt "Forbid downloads"
     8     help
     9       Normally, crosstool-NG will try to download missing tarballs (or
    10       checkout from CVS/SVN...).
    11       If you do not have network connectivity when you run crosstool-NG,
    12       and some files are missing, it can be a long time before crosstool-NG
    13       fails.
    14       
    15       Saying 'y' here will prevent crosstool-NG from downloading missing
    16       files, thus failing early so that you don't get stuck.
    17 
    18 if ! FORBID_DOWNLOAD
    19 
    20 config FORCE_DOWNLOAD
    21     bool
    22     prompt "Force downloads"
    23     help
    24       Force downloading tarballs, even if one already exists.
    25       
    26       Useful if you suspect a tarball to be damaged.
    27 
    28 config CONNECT_TIMEOUT
    29     int
    30     prompt "Connection timeout"
    31     default 10
    32     help
    33       Maximum time in seconds that you allow the connection to the server to take.
    34       
    35       The scenario is as follows;
    36         - some enterprise networks have firewalls that prohibit FTP traffic, while
    37           still allowing HTTP
    38         - most download sites have http:// equivalent for the ftp:// URL
    39         - after this number of seconds, it is considered that the connection could
    40           not be established, and the next URL in the list is tried, until we reach
    41           an URL that will go through the firewall, most probably an http:// URL.
    42       
    43       If you have a slow network, you'd better set this value higher than the default
    44       10s. If you know a firewall is blocking connections, but your network is globally
    45       fast, you can try to lower this value to jump more quickly to allowed URLs. YMMV.
    46       
    47       If '-1' is specified, no timeout reconfiguration options are passed to wget.
    48 
    49 config ONLY_DOWNLOAD
    50     bool
    51     prompt "Stop after downloading tarballs"
    52     help
    53       Only download the tarballs. Exit once it done.
    54       
    55       Useful to pre-retrieve the tarballs before going off-line.
    56 
    57 config USE_MIRROR
    58     bool
    59     prompt "Use a mirror"
    60     help
    61       If you have a machine on your LAN that mirrors some of the needed
    62       tarballs, you can say 'Y' here, and configure adequate values in
    63       the following options.
    64       
    65       Obviously, nothing prevents you from using a mirror that is in fact
    66       *not* on your LAN, for example on another subnet of your company's
    67       network, or a mirror on the Internet.
    68 
    69 if USE_MIRROR
    70 
    71 config FORCE_MIRROR
    72     bool
    73     prompt "Only use mirror"
    74     help
    75       Only allow downloading from the mirror specified, other download locations
    76       will NOT be used, and the package will fail to be located if not present
    77       on the mirror provided
    78 
    79 config MIRROR_BASE_URL
    80     string
    81     prompt "Base URL"
    82     default "http://crosstool-ng.org/mirrors/"
    83     help
    84       This is the base URL searched in for tarballs.
    85       
    86       The crosstool-NG server hosts a few of the required components, but
    87       it is limited to volatile snashots (eg. uClibc) that are used in some
    88       samples, or to mirror some archives which upstream can be flaky (eg.
    89       mpfr), or for which upstream releases can be missing due to upstream
    90       not doing archives (eg. glibc-ports).
    91       
    92       The mirror is provided as-is, no guarantee is made as to the actual
    93       content of the archives, or to the availability of the mirror.
    94       
    95       Excercise caution, use at your own risks!
    96       
    97       The mirror is available at:
    98         http://crosstool-ng.org/mirrors/
    99 
   100 endif # USE_MIRROR
   101 
   102 endif # ! FORBID_DOWNLOAD