config/global/download.in
author "Antony N. Pavlov" <antony@niisi.msk.ru>
Sun Jul 17 16:53:40 2011 +0200 (2011-07-17)
changeset 2564 5d4e91c0343e
parent 2484 d1a8c2ae7946
child 2593 2472b2f24e3a
permissions -rw-r--r--
misc: fix more typos here and there...

Reported-by: "Antony N. Pavlov" <antony@niisi.msk.ru>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@anciens.enib.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 USE_MIRROR
    29     bool
    30     prompt "Use a mirror"
    31     help
    32       If you have a machine on your LAN that mirrors some of the needed
    33       tarballs, you can say 'Y' here, and configure adequate values in
    34       the following options.
    35       
    36       Obviously, nothing prevents you from using a mirror that is in fact
    37       *not* on your LAN, for example on another subnet of your company's
    38       network, or a mirror on the Internet.
    39 
    40 if USE_MIRROR
    41 
    42 config PREFER_MIRROR
    43     bool
    44     prompt "Prefer the mirror"
    45     help
    46       Say 'Y' here if you prefer the LAN mirror over the upstream sources.
    47 
    48 config MIRROR_BASE_URL
    49     string
    50     prompt "Base URL"
    51     default "http://ymorin.is-a-geek.org/mirrors/"
    52     help
    53       This is the base URL searched in for tarballs.
    54       
    55       I (Yann E. MORIN) have set up such a mirror to host snapshots of
    56       some components, when those snapshots are volatile on the upstream
    57       servers. The mirror is *slow*, because it is hosted behind an ADSL
    58       line. For the time being, I haven't set up bandwidth limitations,
    59       but should the mirror be abused, I will. Please avoid using my
    60       machine when you can... Also, no guarantee is made as to its
    61       availability. Use at your own risks.
    62       
    63       The mirror is available at:
    64         http://ymorin.is-a-geek.org/mirrors/
    65 
    66 endif # USE_MIRROR
    67 
    68 config CONNECT_TIMEOUT
    69     int
    70     prompt "Connection timeout"
    71     default 10
    72     help
    73       From the curl manual:
    74         Maximum time in seconds that you allow the connection to the server to take.
    75       
    76       The scenario is as follows;
    77         - some enterprise networks have firewalls that prohibit FTP traffic, while
    78           still allowing HTTP
    79         - most download sites have http:// equivalent for the ftp:// URL
    80         - after this number of seconds, it is considered that the connection could
    81           not be established, and the next URL in the list is tried, until we reach
    82           an URL that will go through the firewall, most probably an http:// URL.
    83       
    84       If you have a slow network, you'd better set this value higher than the default
    85       10s. If you know a firewall is blocking connections, but your network is globally
    86       fast, you can try to lower this value to jump more quickly to allowed URLs. YMMV.
    87       
    88       Note that this value applies equally to wget if you have that installed.
    89 
    90 config ONLY_DOWNLOAD
    91     bool
    92     prompt "Stop after downloading tarballs"
    93     help
    94       Only download the tarballs. Exit once it done.
    95       
    96       Useful to pre-retrieve the tarballs before going off-line.
    97 
    98 endif # ! FORBID_DOWNLOAD