config/global/download.in
changeset 754 b13657cd64b3
parent 696 d8cb632212ee
child 1021 fa97295ee307
     1.1 --- a/config/global/download.in	Sat Jul 19 22:46:44 2008 +0000
     1.2 +++ b/config/global/download.in	Fri Aug 01 09:23:58 2008 +0000
     1.3 @@ -11,93 +11,14 @@
     1.4        
     1.5        Usefull if you suspect a tarball to be damaged.
     1.6  
     1.7 -menuconfig USE_LAN_MIRROR
     1.8 -    bool
     1.9 -    prompt "Use LAN mirror"
    1.10 -    default n
    1.11 -    help
    1.12 -      If you have a machine on your LAN that mirrors some of the needed
    1.13 -      tarballs, you can say 'Y' here, and configure adequate values in
    1.14 -      the following options.
    1.15 -      
    1.16 -      Tarballs will be be preferably fetched from the LAN mirror, and if
    1.17 -      not found there, standard places will be searched for.
    1.18 -
    1.19 -if USE_LAN_MIRROR
    1.20 -
    1.21 -choice
    1.22 -    bool
    1.23 -    prompt "Server type:"
    1.24 -
    1.25 -config LAN_MIRROR_HTTP
    1.26 -    bool
    1.27 -    prompt "http"
    1.28 -
    1.29 -config LAN_MIRROR_FTP
    1.30 -    bool
    1.31 -    prompt "ftp"
    1.32 -
    1.33 -endchoice # Server type
    1.34 -
    1.35 -config LAN_MIRROR_SCHEME
    1.36 -    string
    1.37 -    default "http"  if LAN_MIRROR_HTTP
    1.38 -    default "ftp"   if LAN_MIRROR_FTP
    1.39 -
    1.40 -config LAN_MIRROR_HOSTNAME
    1.41 -    string
    1.42 -    prompt "hostname"
    1.43 -    depends on EXPERIMENTAL
    1.44 -    default  "localhost"
    1.45 -    help
    1.46 -      Enter here the hostname on your LAN mirror.
    1.47 -
    1.48 -config LAN_MIRROR_PATTERNS
    1.49 -    string
    1.50 -    prompt "locations patterns (READ HELP!)"
    1.51 -    default "/downloads /downloads/%pkg /downloads/%pkg/%ver /downloads/%pkg-%ver"
    1.52 -    help
    1.53 -      A space-separated list of patterns to find the tarballs on the
    1.54 -      LAN mirror.
    1.55 -
    1.56 -      You can use the following 'variables', and they'll get replaced by
    1.57 -      adequate values:
    1.58 -        %pkg : name of the package
    1.59 -        %ver : version of the package
    1.60 -
    1.61 -      Thus for gcc-4.2.4, %pkg will be replaced with 'gcc', and %ver with
    1.62 -      '4.2.4' (both without quotes). Thus if you entered the default
    1.63 -      pattern: "/downloads/%pkg/ /downloads/%pkg/%ver /downloads/%pkg-%ver"
    1.64 -      the tarball for gcc-4.2.4 would be searched for in:
    1.65 -        /downloads/gcc/
    1.66 -        /downloads/gcc/4.2.4/
    1.67 -        /downloads/gcc-4.2.4/
    1.68 -
    1.69 -      Of course, if the files on the LAN mirror are really arranged in weird
    1.70 -      ways, entering a list of patterns will be tedious... But see below.
    1.71 -
    1.72 -config LAN_MIRROR_LS_R
    1.73 -    bool
    1.74 -    prompt "Use ls-lr.gz et al."
    1.75 -    default n
    1.76 -    help
    1.77 -      If the tarball was not found at any of the above locations, see if the
    1.78 -      server has a ls-lr.gz (or similar) file, and use that file to see if
    1.79 -      the tarball is listed somewhere in that file.
    1.80 -
    1.81 -      Common file names looked for are:
    1.82 -        ls-lrRt.txt     (used at ftp.gnu.org)
    1.83 -        find.txt        (ditto)
    1.84 -        ls-lR
    1.85 -
    1.86 -endif # USE_LAN_MIRROR
    1.87 -
    1.88  menuconfig USE_PROXY
    1.89      bool
    1.90 -    prompt "Proxy settings"
    1.91 +    prompt "Use a proxy"
    1.92      default n
    1.93      help
    1.94        Say 'Y' here if you need to use a proxy to connect to the internet.
    1.95 +      
    1.96 +      You can then choose between an HTTP or a SOCKS 4/5 proxy.
    1.97  
    1.98  if USE_PROXY
    1.99  
   1.100 @@ -112,7 +33,7 @@
   1.101        Use an HTTP proxy to connect to to the internet.
   1.102        Only the http and ftp protocols will be tunneled through this
   1.103        proxy.
   1.104 -
   1.105 +      
   1.106        Alternatively to setting this option, you can set and export the
   1.107        following variables in your environment:
   1.108          ftp_proxy=http://user:passwd@proxy.server:port/
   1.109 @@ -150,18 +71,18 @@
   1.110      prompt "SOCKS 4/5 proxy"
   1.111      help
   1.112        Use a Socks 4/5 proxy to connect to the internet.
   1.113 -      All protocols can get tunneled through this kind of proxy (depending
   1.114 -      on your proxy configuration, some do not allow all protocols, but
   1.115 -      chances are that protocols needed by crosstool-NG are allowed).
   1.116 -
   1.117 +      All protocols can get tunneled through this kind of proxy (your
   1.118 +      proxy configuration may not allow all protocols, but chances are
   1.119 +      that protocols needed by crosstool-NG are allowed).
   1.120 +      
   1.121        Alternatively to setting this option, you can configure tsocks
   1.122        system-wide, and set and export the following variable in your
   1.123        environment:
   1.124          LD_PRELOAD=/path/to/your/tsocks-library.so
   1.125 -
   1.126 +      
   1.127        This option makes use of the tsocks library. You will have to have tsocks
   1.128        installed on your system, of course.
   1.129 -
   1.130 +      
   1.131        If you think you do not know what tsocks is, or how to configure it,
   1.132        chances are that you do not need to set this option.
   1.133  
   1.134 @@ -220,7 +141,7 @@
   1.135  
   1.136  endchoice
   1.137  
   1.138 -endif # Proxy settings
   1.139 +endif # USE_PROXY
   1.140  
   1.141  config PROXY_TYPE
   1.142      string
   1.143 @@ -231,6 +152,90 @@
   1.144      default "socks4"    if PROXY_TYPE_SOCKS_4
   1.145      default "socks5"    if PROXY_TYPE_SOCKS_5
   1.146  
   1.147 +menuconfig USE_LAN_MIRROR
   1.148 +    bool
   1.149 +    prompt "Use LAN mirror"
   1.150 +    default n
   1.151 +    help
   1.152 +      If you have a machine on your LAN that mirrors some of the needed
   1.153 +      tarballs, you can say 'Y' here, and configure adequate values in
   1.154 +      the following options.
   1.155 +      
   1.156 +      Tarballs will be be preferably fetched from the LAN mirror, and if
   1.157 +      not found there, standard places will be searched for.
   1.158 +      
   1.159 +      Obviously, nothing prevents you from using a mirror that is in fact
   1.160 +      *not* on your LAN, for example on another subnet of your company's
   1.161 +      network, or a mirror on the Internet.
   1.162 +
   1.163 +if USE_LAN_MIRROR
   1.164 +
   1.165 +config LAN_MIRROR_USE_PROXY
   1.166 +    bool
   1.167 +    prompt "Use the proxy"
   1.168 +    default n
   1.169 +    depends on USE_PROXY
   1.170 +    help
   1.171 +      Say 'Y' here if you need to use the proxy to connect to the LAN mirror.
   1.172 +      
   1.173 +      You'll need to say 'Y' if the LAN mirror is not really on your LAN.
   1.174 +
   1.175 +choice
   1.176 +    bool
   1.177 +    prompt "Server type:"
   1.178 +
   1.179 +config LAN_MIRROR_HTTP
   1.180 +    bool
   1.181 +    prompt "http"
   1.182 +
   1.183 +config LAN_MIRROR_FTP
   1.184 +    bool
   1.185 +    prompt "ftp"
   1.186 +
   1.187 +endchoice # Server type
   1.188 +
   1.189 +config LAN_MIRROR_SCHEME
   1.190 +    string
   1.191 +    default "http"  if LAN_MIRROR_HTTP
   1.192 +    default "ftp"   if LAN_MIRROR_FTP
   1.193 +
   1.194 +config LAN_MIRROR_HOSTNAME
   1.195 +    string
   1.196 +    prompt "hostname"
   1.197 +    default ""
   1.198 +    help
   1.199 +      Enter here the hostname on your LAN mirror.
   1.200 +
   1.201 +config LAN_MIRROR_BASE
   1.202 +    string
   1.203 +    prompt "Base directory"
   1.204 +    default ""
   1.205 +    help
   1.206 +      This is the base directory searched for for tarballs. If you enter
   1.207 +      /mirror, then the search is performed in the following directories
   1.208 +      on the server:
   1.209 +        /mirror/<name>/
   1.210 +        /mirror/
   1.211 +      
   1.212 +      where <name> is replaced with the actual package name.
   1.213 +
   1.214 +config LAN_MIRROR_LS_R
   1.215 +    bool
   1.216 +#    prompt "Use ls-lR et al."
   1.217 +    depends on EXPERIMENTAL
   1.218 +    default n
   1.219 +    help
   1.220 +      If the tarball was not found at the above location, see if the server
   1.221 +      has a ls-lr.gz (or similar) file, and use that file to see if the
   1.222 +      tarball is listed somewhere in that file.
   1.223 +      
   1.224 +      Common file names looked for are:
   1.225 +        ls-lrRt.txt     (used at ftp.gnu.org)
   1.226 +        find.txt        (ditto)
   1.227 +        ls-lR
   1.228 +
   1.229 +endif # USE_LAN_MIRROR
   1.230 +
   1.231  config CONNECT_TIMEOUT
   1.232      int
   1.233      prompt "connection timeout"
   1.234 @@ -238,7 +243,7 @@
   1.235      help
   1.236        From the curl manual:
   1.237          Maximum time in seconds that you allow the connection to the server to take.
   1.238 -
   1.239 +      
   1.240        The scenario is as follows;
   1.241          - some enterprise networks have firewalls that prohibit FTP traffic, while
   1.242            still allowing HTTP
   1.243 @@ -246,13 +251,13 @@
   1.244          - after this number of seconds, it is considered that the connection could
   1.245            not be established, and the next URL in the list is tried, until we reach
   1.246            an URL that will go through the firewall, most probably an http:// URL.
   1.247 -
   1.248 +      
   1.249        If you have a slow network, you'd better set this value higher than the default
   1.250        10s. If you know a firewall is blocking connections, but your network is globally
   1.251        fast, you can try to lower this value to jump more quickly to allowed URLs. YMMV.
   1.252 -
   1.253 +      
   1.254        Note that this value applies equally to wget if you have that installed.
   1.255 -
   1.256 +      
   1.257        Of course, you'd be better off to use a proxy, as offered by the previous
   1.258        option.
   1.259