config/global/download.in
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sun Apr 19 16:34:59 2009 +0000 (2009-04-19)
changeset 1292 546d2ed3410b
parent 1131 b62d14d45fc4
child 1294 6fe8df60cfa4
permissions -rw-r--r--
Get rid of the proxy settings, once and for all.
They have nothing to do in here, just let the user
configure his/her system appropriately.

-------- diffstat follows --------
/trunk/scripts/build/libc/eglibc.sh | 1 0 1 0 -
/trunk/scripts/functions | 100 0 100 0 -----------------------------
/trunk/config/global/download.in | 148 0 148 0 -------------------------------------------
3 files changed, 249 deletions(-)
     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 menuconfig USE_MIRROR
    31     bool
    32     prompt "Use LAN 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       Tarballs will be be preferably fetched from the LAN mirror, and if
    40       not found there, standard places will be searched for.
    41       
    42       Obviously, nothing prevents you from using a mirror that is in fact
    43       *not* on your LAN, for example on another subnet of your company's
    44       network, or a mirror on the Internet.
    45       
    46       I (Yann E. MORIN) have set up such a mirror to host snapshots of
    47       some components, when those snapshots are volatile on the upstream
    48       servers. The mirror is *slow*, because it is hosted behind an ADSL
    49       line. For the time being, I haven't set up bandwidth limitations,
    50       but should the mirror be abused, I will. Please avoid using my
    51       machine when you can...
    52       The mirror is available as (fill in those values in the fields
    53       below):
    54         host name: ymorin.is-a-geek.org
    55         base dir : /mirrors
    56 
    57 if USE_MIRROR
    58 
    59 config PREFER_MIRROR
    60     bool
    61     prompt "Prefer the LAN mirror"
    62     default n
    63     help
    64       Say 'Y' here if you prefer the LAN miror over the upstream sources.
    65 
    66 choice
    67     bool
    68     prompt "Server type:"
    69 
    70 config MIRROR_HTTP
    71     bool
    72     prompt "http"
    73 
    74 config MIRROR_FTP
    75     bool
    76     prompt "ftp"
    77 
    78 endchoice # Server type
    79 
    80 config MIRROR_SCHEME
    81     string
    82     default "http"  if MIRROR_HTTP
    83     default "ftp"   if MIRROR_FTP
    84 
    85 config MIRROR_HOSTNAME
    86     string
    87     prompt "hostname"
    88     default ""
    89     help
    90       Enter here the hostname on your LAN mirror.
    91 
    92 config MIRROR_BASE
    93     string
    94     prompt "Base directory"
    95     default ""
    96     help
    97       This is the base directory searched for for tarballs. If you enter
    98       /mirror, then the search is performed in the following directories
    99       on the server:
   100         /mirror/<name>/
   101         /mirror/
   102       
   103       where <name> is replaced with the actual package name.
   104 
   105 config MIRROR_LS_R
   106     bool
   107 #    prompt "Use ls-lR et al."
   108     depends on EXPERIMENTAL
   109     default n
   110     help
   111       If the tarball was not found at the above location, see if the server
   112       has a ls-lr.gz (or similar) file, and use that file to see if the
   113       tarball is listed somewhere in that file.
   114       
   115       Common file names looked for are:
   116         ls-lrRt.txt     (used at ftp.gnu.org)
   117         find.txt        (ditto)
   118         ls-lR
   119 
   120 endif # USE_MIRROR
   121 
   122 config CONNECT_TIMEOUT
   123     int
   124     prompt "connection timeout"
   125     default 10
   126     help
   127       From the curl manual:
   128         Maximum time in seconds that you allow the connection to the server to take.
   129       
   130       The scenario is as follows;
   131         - some enterprise networks have firewalls that prohibit FTP traffic, while
   132           still allowing HTTP
   133         - most download sites have http:// equivalent for the ftp:// URL
   134         - after this number of seconds, it is considered that the connection could
   135           not be established, and the next URL in the list is tried, until we reach
   136           an URL that will go through the firewall, most probably an http:// URL.
   137       
   138       If you have a slow network, you'd better set this value higher than the default
   139       10s. If you know a firewall is blocking connections, but your network is globally
   140       fast, you can try to lower this value to jump more quickly to allowed URLs. YMMV.
   141       
   142       Note that this value applies equally to wget if you have that installed.
   143 
   144 config ONLY_DOWNLOAD
   145     bool
   146     prompt "Stop after downloading tarballs"
   147     default n
   148     help
   149       Only download the tarballs. Exit once it done.
   150       
   151       Usefull to pre-retrieve the tarballs before going off-line.
   152 
   153 endif # ! FORBID_DOWNLOAD