config/global/download.in
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sat Jan 29 00:57:02 2011 +0100 (2011-01-29)
changeset 2285 7d1e018167b5
parent 2078 2895108fcec5
child 2484 d1a8c2ae7946
permissions -rw-r--r--
comptools: add make-3.81

Since the advent of make-3.82, some packages now break due to changes
in make-3.82, being stricter than 3.81 when interpreting the Makefiles.

This has bugged us a bit too much so far, and I believe fixing all
of them is a long road, while simply building make-3.81 is the easiest
route for now.

Of course, in the long term, packages will get fixed upstream, and we
should back-port the fixes to old versions, and get rid of building
make-3.81. In the meantime...

Reported several times on the mailing list.

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     default n
     9     help
    10       Normally, crosstool-NG will try to download missing tarballs (or
    11       checkout from CVS/SVN...).
    12       If you do not have network connectivity when you run crosstool-NG,
    13       and some files are missing, it can be a long time before crosstool-NG
    14       fails.
    15       
    16       Saying 'y' here will prevent crosstool-NG from downloading missing
    17       files, thus failing early so that you don't get stuck.
    18 
    19 if ! FORBID_DOWNLOAD
    20 
    21 config FORCE_DOWNLOAD
    22     bool
    23     prompt "Force downloads"
    24     default n
    25     help
    26       Force downloading tarballs, even if one already exists.
    27       
    28       Usefull if you suspect a tarball to be damaged.
    29 
    30 config USE_MIRROR
    31     bool
    32     prompt "Use a mirror"
    33     default n
    34     help
    35       If you have a machine on your LAN that mirrors some of the needed
    36       tarballs, you can say 'Y' here, and configure adequate values in
    37       the following options.
    38       
    39       Obviously, nothing prevents you from using a mirror that is in fact
    40       *not* on your LAN, for example on another subnet of your company's
    41       network, or a mirror on the Internet.
    42 
    43 if USE_MIRROR
    44 
    45 config PREFER_MIRROR
    46     bool
    47     prompt "Prefer the mirror"
    48     default n
    49     help
    50       Say 'Y' here if you prefer the LAN miror over the upstream sources.
    51 
    52 config MIRROR_BASE_URL
    53     string
    54     prompt "Base URL"
    55     default "http://ymorin.is-a-geek.org/mirrors/"
    56     help
    57       This is the base URL searched in for tarballs.
    58       
    59       I (Yann E. MORIN) have set up such a mirror to host snapshots of
    60       some components, when those snapshots are volatile on the upstream
    61       servers. The mirror is *slow*, because it is hosted behind an ADSL
    62       line. For the time being, I haven't set up bandwidth limitations,
    63       but should the mirror be abused, I will. Please avoid using my
    64       machine when you can... Also, no guarantee is made as to its
    65       availability. Use at your own risks.
    66       
    67       The mirror is available at:
    68         http://ymorin.is-a-geek.org/mirrors/
    69 
    70 endif # USE_MIRROR
    71 
    72 config CONNECT_TIMEOUT
    73     int
    74     prompt "Connection timeout"
    75     default 10
    76     help
    77       From the curl manual:
    78         Maximum time in seconds that you allow the connection to the server to take.
    79       
    80       The scenario is as follows;
    81         - some enterprise networks have firewalls that prohibit FTP traffic, while
    82           still allowing HTTP
    83         - most download sites have http:// equivalent for the ftp:// URL
    84         - after this number of seconds, it is considered that the connection could
    85           not be established, and the next URL in the list is tried, until we reach
    86           an URL that will go through the firewall, most probably an http:// URL.
    87       
    88       If you have a slow network, you'd better set this value higher than the default
    89       10s. If you know a firewall is blocking connections, but your network is globally
    90       fast, you can try to lower this value to jump more quickly to allowed URLs. YMMV.
    91       
    92       Note that this value applies equally to wget if you have that installed.
    93 
    94 config ONLY_DOWNLOAD
    95     bool
    96     prompt "Stop after downloading tarballs"
    97     default n
    98     help
    99       Only download the tarballs. Exit once it done.
   100       
   101       Usefull to pre-retrieve the tarballs before going off-line.
   102 
   103 endif # ! FORBID_DOWNLOAD