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