Update this sample.
/trunk/samples/i686-nptl-linux-gnu/crosstool.config | 29 20 9 0 +++++++++++++++++++--------
1 file changed, 20 insertions(+), 9 deletions(-)
1 # Options specific to downloading packages
7 prompt "Force downloads"
10 Force downloading tarballs, even if one already exists.
12 Usefull if you suspect a tarball to be damaged.
19 Say 'Y' here if you need to use a proxy to connect to the internet.
21 You can then choose between an HTTP or a SOCKS 4/5 proxy.
24 The settings below may not cover all possible proxy configurations!
25 You'd be better off setting proxy in the environment!
33 config PROXY_TYPE_HTTP
37 Use an HTTP proxy to connect to to the internet.
38 Only the http and ftp protocols will be tunneled through this
41 Alternatively to setting this option, you can set and export the
42 following variables in your environment:
43 ftp_proxy=http://user:passwd@proxy.server:port/
44 http_proxy=http://user:passwd@proxy.server:port/
45 https_proxy=http://user:passwd@proxy.server:port/
47 # Haha! Here is an interesting feature/bug of mconf!
48 # The following config entries will be shown out-side the
50 # To add a third entry in the choice menu, add it after the
51 # if...endif conditional below, and so on for a fourth entry...
71 endif # USE_HTTP_PROXY
73 config PROXY_TYPE_SOCKS
75 prompt "SOCKS 4/5 proxy"
77 Use a Socks 4/5 proxy to connect to the internet.
78 All protocols can get tunneled through this kind of proxy (your
79 proxy configuration may not allow all protocols, but chances are
80 that protocols needed by crosstool-NG are allowed).
82 Alternatively to setting this option, you can configure tsocks
83 system-wide, and set and export the following variable in your
85 LD_PRELOAD=/path/to/your/tsocks-library.so
87 This option makes use of the tsocks library. You will have to have tsocks
88 installed on your system, of course.
90 If you think you do not know what tsocks is, or how to configure it,
91 chances are that you do not need to set this option.
98 default PROXY_TYPE_SOCKS_SYS
100 config PROXY_TYPE_SOCKS_SYS
102 prompt "Use system settings"
104 Use that if tsocks is already configured on your system.
106 config PROXY_TYPE_SOCKS_AUTO
110 crosstool-NG will attempt to guess what type of SOCKS version
113 config PROXY_TYPE_SOCKS_4
117 config PROXY_TYPE_SOCKS_5
123 if ! PROXY_TYPE_SOCKS_SYS
142 endif # ! PROXY_TYPE_SOCKS_SYS
144 endif # USE_SOCKS_PROXY
152 default "none" if ! USE_PROXY
153 default "http" if PROXY_TYPE_HTTP
154 default "sockssys" if PROXY_TYPE_SOCKS_SYS
155 default "socksauto" if PROXY_TYPE_SOCKS_AUTO
156 default "socks4" if PROXY_TYPE_SOCKS_4
157 default "socks5" if PROXY_TYPE_SOCKS_5
159 menuconfig USE_MIRROR
161 prompt "Use LAN mirror"
164 If you have a machine on your LAN that mirrors some of the needed
165 tarballs, you can say 'Y' here, and configure adequate values in
166 the following options.
168 Tarballs will be be preferably fetched from the LAN mirror, and if
169 not found there, standard places will be searched for.
171 Obviously, nothing prevents you from using a mirror that is in fact
172 *not* on your LAN, for example on another subnet of your company's
173 network, or a mirror on the Internet.
175 I (Yann E. MORIN) have set up such a mirror to host snapshots of
176 some components, when those snapshots are volatile on the upstream
177 servers. The mirror is *slow*, because it is hosted behind an ADSL
178 line. For the time being, I haven't set up bandwidth limitations,
179 but should the mirror be abused, I will. Please avoid using my
180 machine when you can...
181 The mirror is available as (fill in those values in the fields
183 host name: ymorin.is-a-geek.org
190 prompt "Prefer the LAN mirror"
193 Say 'Y' here if you prefer the LAN miror over the upstream sources.
197 prompt "Server type:"
207 endchoice # Server type
211 default "http" if MIRROR_HTTP
212 default "ftp" if MIRROR_FTP
214 config MIRROR_HOSTNAME
219 Enter here the hostname on your LAN mirror.
223 prompt "Base directory"
226 This is the base directory searched for for tarballs. If you enter
227 /mirror, then the search is performed in the following directories
232 where <name> is replaced with the actual package name.
236 # prompt "Use ls-lR et al."
237 depends on EXPERIMENTAL
240 If the tarball was not found at the above location, see if the server
241 has a ls-lr.gz (or similar) file, and use that file to see if the
242 tarball is listed somewhere in that file.
244 Common file names looked for are:
245 ls-lrRt.txt (used at ftp.gnu.org)
251 config CONNECT_TIMEOUT
253 prompt "connection timeout"
256 From the curl manual:
257 Maximum time in seconds that you allow the connection to the server to take.
259 The scenario is as follows;
260 - some enterprise networks have firewalls that prohibit FTP traffic, while
262 - most download sites have http:// equivalent for the ftp:// URL
263 - after this number of seconds, it is considered that the connection could
264 not be established, and the next URL in the list is tried, until we reach
265 an URL that will go through the firewall, most probably an http:// URL.
267 If you have a slow network, you'd better set this value higher than the default
268 10s. If you know a firewall is blocking connections, but your network is globally
269 fast, you can try to lower this value to jump more quickly to allowed URLs. YMMV.
271 Note that this value applies equally to wget if you have that installed.
273 Of course, you'd be better off to use a proxy, as offered by the previous
278 prompt "Stop after downloading tarballs"
281 Only download the tarballs. Exit once it done.
283 Usefull to pre-retrieve the tarballs before going off-line.