1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/config/global/download.in Sat Jul 19 21:22:58 2008 +0000
1.3 @@ -0,0 +1,183 @@
1.4 +# Options specific to downloading packages
1.5 +
1.6 +comment "Downloading"
1.7 +
1.8 +config FORCE_DOWNLOAD
1.9 + bool
1.10 + prompt "Force downloads"
1.11 + default n
1.12 + help
1.13 + Force downloading tarballs, even if one already exists.
1.14 +
1.15 + Usefull if you suspect a tarball to be damaged.
1.16 +
1.17 +config ONLY_DOWNLOAD
1.18 + bool
1.19 + prompt "Stop after downloading tarballs"
1.20 + default n
1.21 + help
1.22 + Only download the tarballs. Exit once it done.
1.23 +
1.24 + Usefull to pre-retrieve the tarballs before going off-line.
1.25 +
1.26 +config CONNECT_TIMEOUT
1.27 + int
1.28 + prompt "connection timeout"
1.29 + default 10
1.30 + help
1.31 + From the curl manual:
1.32 + Maximum time in seconds that you allow the connection to the server to take.
1.33 +
1.34 + The scenario is as follows;
1.35 + - some enterprise networks have firewalls that prohibit FTP traffic, while
1.36 + still allowing HTTP
1.37 + - most download sites have http:// equivalent for the ftp:// URL
1.38 + - after this number of seconds, it is considered that the connection could
1.39 + not be established, and the next URL in the list is tried, until we reach
1.40 + an URL that will go through the firewall, most probably an http:// URL.
1.41 +
1.42 + If you have a slow network, you'd better set this value higher than the default
1.43 + 10s. If you know a firewall is blocking connections, but your network is globally
1.44 + fast, you can try to lower this value to jump more quickly to allowed URLs. YMMV.
1.45 +
1.46 + Note that this value applies equally to wget if you have that installed.
1.47 +
1.48 + Of course, you'd be better off to use a proxy, as offered by the following
1.49 + choice of options.
1.50 +
1.51 +choice
1.52 + bool
1.53 + prompt "Proxy type"
1.54 + default PROXY_TYPE_NONE
1.55 +
1.56 +config PROXY_TYPE_NONE
1.57 + bool
1.58 + prompt "No proxy"
1.59 + help
1.60 + Select this option if you have a direct connection to the internet,
1.61 + or if you already set the environment adequately.
1.62 +
1.63 +config PROXY_TYPE_HTTP
1.64 + bool
1.65 + prompt "HTTP proxy"
1.66 + help
1.67 + Use an HTTP proxy to connect to to the internet.
1.68 + Only the http and ftp protocols will be tunneled through this
1.69 + proxy.
1.70 +
1.71 + Alternatively to setting this option, you can set and export the
1.72 + following variables in your environment:
1.73 + ftp_proxy=http://user:passwd@proxy.server:port/
1.74 + http_proxy=http://user:passwd@proxy.server:port/
1.75 + https_proxy=http://user:passwd@proxy.server:port/
1.76 +
1.77 +# Haha! Here is an interesting feature/bug of mconf!
1.78 +# The following config entries will be shown out-side the
1.79 +# choice menu!
1.80 +# To add a third entry in the choice menu, add it after the
1.81 +# if...endif conditional below, and so on for a fourth entry...
1.82 +if PROXY_TYPE_HTTP
1.83 +
1.84 +config PROXY_HOST
1.85 + string
1.86 + prompt "hostname/IP"
1.87 +
1.88 +config PROXY_PORT
1.89 + int
1.90 + prompt "port"
1.91 + default 8080
1.92 +
1.93 +config PROXY_USER
1.94 + string
1.95 + prompt "user name"
1.96 +
1.97 +config PROXY_PASS
1.98 + string
1.99 + prompt "password"
1.100 +
1.101 +endif # USE_HTTP_PROXY
1.102 +
1.103 +config PROXY_TYPE_SOCKS
1.104 + bool
1.105 + prompt "SOCKS 4/5 proxy (EXPERIMENTAL)"
1.106 + depends on EXPERIMENTAL
1.107 + help
1.108 + Use a Socks 4/5 proxy to connect to the internet.
1.109 + All protocols can get tunneled through this kind of proxy (depending
1.110 + on your proxy configuration, some do not allow all protocols, but
1.111 + chances are that protocols needed by crosstool-NG are allowed).
1.112 +
1.113 + Alternatively to setting this option, you can configure tsocks
1.114 + system-wide, and set and export the following variable in your
1.115 + environment:
1.116 + LD_PRELOAD=/path/to/your/tsocks-library.so
1.117 +
1.118 + This option makes use of the tsocks library. You will have to have tsocks
1.119 + installed on your system, of course.
1.120 +
1.121 + If you think you do not know what tsocks is, or how to configure it,
1.122 + chances are that you do not need to set this option.
1.123 +
1.124 +if PROXY_TYPE_SOCKS
1.125 +
1.126 +choice
1.127 + bool
1.128 + prompt "type"
1.129 + default PROXY_TYPE_SOCKS_SYS
1.130 +
1.131 +config PROXY_TYPE_SOCKS_SYS
1.132 + bool
1.133 + prompt "Use system settings"
1.134 + help
1.135 + Use that if tsocks is already configured on your system.
1.136 +
1.137 +config PROXY_TYPE_SOCKS_AUTO
1.138 + bool
1.139 + prompt "Auto"
1.140 + help
1.141 + crosstool-NG will attempt to guess what type of SOCKS version
1.142 + the proxy speaks.
1.143 +
1.144 +config PROXY_TYPE_SOCKS_4
1.145 + bool
1.146 + prompt "SOCKS 4"
1.147 +
1.148 +config PROXY_TYPE_SOCKS_5
1.149 + bool
1.150 + prompt "SOCKS 5"
1.151 +
1.152 +endchoice
1.153 +
1.154 +if ! PROXY_TYPE_SOCKS_SYS
1.155 +
1.156 +config PROXY_HOST
1.157 + string
1.158 + prompt "hostname/IP"
1.159 +
1.160 +config PROXY_PORT
1.161 + int
1.162 + prompt "port"
1.163 + default 1080
1.164 +
1.165 +config PROXY_USER
1.166 + string
1.167 + prompt "user name"
1.168 +
1.169 +config PROXY_PASS
1.170 + string
1.171 + prompt "password"
1.172 +
1.173 +endif # ! PROXY_TYPE_SOCKS_SYS
1.174 +
1.175 +endif # USE_SOCKS_PROXY
1.176 +
1.177 +endchoice
1.178 +
1.179 +config PROXY_TYPE
1.180 + string
1.181 + default "none" if PROXY_TYPE_NONE
1.182 + default "http" if PROXY_TYPE_HTTP
1.183 + default "sockssys" if PROXY_TYPE_SOCKS_SYS
1.184 + default "socksauto" if PROXY_TYPE_SOCKS_AUTO
1.185 + default "socks4" if PROXY_TYPE_SOCKS_4
1.186 + default "socks5" if PROXY_TYPE_SOCKS_5