2008-07-19 21:22:58 +00:00
|
|
|
# Options specific to downloading packages
|
2008-04-17 20:02:07 +00:00
|
|
|
|
|
|
|
comment "Downloading"
|
|
|
|
|
|
|
|
config FORCE_DOWNLOAD
|
|
|
|
bool
|
|
|
|
prompt "Force downloads"
|
|
|
|
default n
|
|
|
|
help
|
|
|
|
Force downloading tarballs, even if one already exists.
|
|
|
|
|
|
|
|
Usefull if you suspect a tarball to be damaged.
|
|
|
|
|
2008-07-19 22:45:17 +00:00
|
|
|
menuconfig USE_PROXY
|
2008-04-17 20:02:07 +00:00
|
|
|
bool
|
2008-08-01 09:23:58 +00:00
|
|
|
prompt "Use a proxy"
|
2008-07-19 22:45:17 +00:00
|
|
|
default n
|
2008-04-17 20:02:07 +00:00
|
|
|
help
|
2008-07-19 22:45:17 +00:00
|
|
|
Say 'Y' here if you need to use a proxy to connect to the internet.
|
2008-08-01 09:23:58 +00:00
|
|
|
|
|
|
|
You can then choose between an HTTP or a SOCKS 4/5 proxy.
|
2008-10-31 12:46:59 +00:00
|
|
|
|
|
|
|
**** NOTE ****
|
|
|
|
The settings below may not cover all possible proxy configurations!
|
|
|
|
You'd be better off setting proxy in the environment!
|
2008-07-19 22:45:17 +00:00
|
|
|
|
|
|
|
if USE_PROXY
|
|
|
|
|
|
|
|
choice
|
|
|
|
bool
|
|
|
|
prompt "Proxy type"
|
2008-04-17 20:02:07 +00:00
|
|
|
|
|
|
|
config PROXY_TYPE_HTTP
|
|
|
|
bool
|
|
|
|
prompt "HTTP proxy"
|
|
|
|
help
|
|
|
|
Use an HTTP proxy to connect to to the internet.
|
|
|
|
Only the http and ftp protocols will be tunneled through this
|
|
|
|
proxy.
|
2008-08-01 09:23:58 +00:00
|
|
|
|
2008-04-17 20:02:07 +00:00
|
|
|
Alternatively to setting this option, you can set and export the
|
|
|
|
following variables in your environment:
|
|
|
|
ftp_proxy=http://user:passwd@proxy.server:port/
|
|
|
|
http_proxy=http://user:passwd@proxy.server:port/
|
|
|
|
https_proxy=http://user:passwd@proxy.server:port/
|
|
|
|
|
|
|
|
# Haha! Here is an interesting feature/bug of mconf!
|
|
|
|
# The following config entries will be shown out-side the
|
|
|
|
# choice menu!
|
|
|
|
# To add a third entry in the choice menu, add it after the
|
|
|
|
# if...endif conditional below, and so on for a fourth entry...
|
|
|
|
if PROXY_TYPE_HTTP
|
|
|
|
|
|
|
|
config PROXY_HOST
|
|
|
|
string
|
|
|
|
prompt "hostname/IP"
|
|
|
|
|
|
|
|
config PROXY_PORT
|
|
|
|
int
|
|
|
|
prompt "port"
|
2008-04-20 16:46:17 +00:00
|
|
|
default 8080
|
2008-04-17 20:02:07 +00:00
|
|
|
|
|
|
|
config PROXY_USER
|
|
|
|
string
|
|
|
|
prompt "user name"
|
|
|
|
|
|
|
|
config PROXY_PASS
|
|
|
|
string
|
|
|
|
prompt "password"
|
|
|
|
|
|
|
|
endif # USE_HTTP_PROXY
|
|
|
|
|
|
|
|
config PROXY_TYPE_SOCKS
|
|
|
|
bool
|
2008-07-19 22:46:44 +00:00
|
|
|
prompt "SOCKS 4/5 proxy"
|
2008-04-17 20:02:07 +00:00
|
|
|
help
|
|
|
|
Use a Socks 4/5 proxy to connect to the internet.
|
2008-08-01 09:23:58 +00:00
|
|
|
All protocols can get tunneled through this kind of proxy (your
|
|
|
|
proxy configuration may not allow all protocols, but chances are
|
|
|
|
that protocols needed by crosstool-NG are allowed).
|
|
|
|
|
2008-04-20 16:46:17 +00:00
|
|
|
Alternatively to setting this option, you can configure tsocks
|
|
|
|
system-wide, and set and export the following variable in your
|
|
|
|
environment:
|
|
|
|
LD_PRELOAD=/path/to/your/tsocks-library.so
|
2008-08-01 09:23:58 +00:00
|
|
|
|
2008-04-17 20:02:07 +00:00
|
|
|
This option makes use of the tsocks library. You will have to have tsocks
|
|
|
|
installed on your system, of course.
|
2008-08-01 09:23:58 +00:00
|
|
|
|
2008-04-17 20:02:07 +00:00
|
|
|
If you think you do not know what tsocks is, or how to configure it,
|
|
|
|
chances are that you do not need to set this option.
|
|
|
|
|
|
|
|
if PROXY_TYPE_SOCKS
|
|
|
|
|
|
|
|
choice
|
|
|
|
bool
|
|
|
|
prompt "type"
|
2008-04-18 22:16:28 +00:00
|
|
|
default PROXY_TYPE_SOCKS_SYS
|
2008-04-17 20:02:07 +00:00
|
|
|
|
2008-04-18 22:16:28 +00:00
|
|
|
config PROXY_TYPE_SOCKS_SYS
|
2008-04-17 20:02:07 +00:00
|
|
|
bool
|
2008-04-18 22:16:28 +00:00
|
|
|
prompt "Use system settings"
|
|
|
|
help
|
2008-04-20 16:46:17 +00:00
|
|
|
Use that if tsocks is already configured on your system.
|
2008-04-18 22:16:28 +00:00
|
|
|
|
|
|
|
config PROXY_TYPE_SOCKS_AUTO
|
|
|
|
bool
|
2008-06-20 14:00:01 +00:00
|
|
|
prompt "Auto"
|
2008-04-18 22:16:28 +00:00
|
|
|
help
|
2008-04-20 16:46:17 +00:00
|
|
|
crosstool-NG will attempt to guess what type of SOCKS version
|
|
|
|
the proxy speaks.
|
2008-04-17 20:02:07 +00:00
|
|
|
|
|
|
|
config PROXY_TYPE_SOCKS_4
|
|
|
|
bool
|
2008-06-20 14:00:01 +00:00
|
|
|
prompt "SOCKS 4"
|
2008-04-17 20:02:07 +00:00
|
|
|
|
2008-04-18 22:16:28 +00:00
|
|
|
config PROXY_TYPE_SOCKS_5
|
|
|
|
bool
|
2008-06-20 14:00:01 +00:00
|
|
|
prompt "SOCKS 5"
|
2008-04-18 22:16:28 +00:00
|
|
|
|
2008-04-17 20:02:07 +00:00
|
|
|
endchoice
|
|
|
|
|
2008-04-18 22:16:28 +00:00
|
|
|
if ! PROXY_TYPE_SOCKS_SYS
|
|
|
|
|
2008-04-17 20:02:07 +00:00
|
|
|
config PROXY_HOST
|
|
|
|
string
|
|
|
|
prompt "hostname/IP"
|
|
|
|
|
|
|
|
config PROXY_PORT
|
|
|
|
int
|
|
|
|
prompt "port"
|
2008-04-20 16:46:17 +00:00
|
|
|
default 1080
|
2008-04-17 20:02:07 +00:00
|
|
|
|
|
|
|
config PROXY_USER
|
|
|
|
string
|
|
|
|
prompt "user name"
|
|
|
|
|
|
|
|
config PROXY_PASS
|
|
|
|
string
|
|
|
|
prompt "password"
|
|
|
|
|
2008-04-18 22:16:28 +00:00
|
|
|
endif # ! PROXY_TYPE_SOCKS_SYS
|
|
|
|
|
2008-04-17 20:02:07 +00:00
|
|
|
endif # USE_SOCKS_PROXY
|
|
|
|
|
|
|
|
endchoice
|
|
|
|
|
2008-08-01 09:23:58 +00:00
|
|
|
endif # USE_PROXY
|
2008-07-19 22:45:17 +00:00
|
|
|
|
2008-04-17 20:02:07 +00:00
|
|
|
config PROXY_TYPE
|
|
|
|
string
|
2008-07-19 22:45:17 +00:00
|
|
|
default "none" if ! USE_PROXY
|
2008-04-18 22:16:28 +00:00
|
|
|
default "http" if PROXY_TYPE_HTTP
|
|
|
|
default "sockssys" if PROXY_TYPE_SOCKS_SYS
|
|
|
|
default "socksauto" if PROXY_TYPE_SOCKS_AUTO
|
|
|
|
default "socks4" if PROXY_TYPE_SOCKS_4
|
|
|
|
default "socks5" if PROXY_TYPE_SOCKS_5
|
2008-07-19 22:45:17 +00:00
|
|
|
|
2008-10-31 18:27:27 +00:00
|
|
|
menuconfig USE_MIRROR
|
2008-08-01 09:23:58 +00:00
|
|
|
bool
|
|
|
|
prompt "Use LAN mirror"
|
|
|
|
default n
|
|
|
|
help
|
|
|
|
If you have a machine on your LAN that mirrors some of the needed
|
|
|
|
tarballs, you can say 'Y' here, and configure adequate values in
|
|
|
|
the following options.
|
|
|
|
|
|
|
|
Tarballs will be be preferably fetched from the LAN mirror, and if
|
|
|
|
not found there, standard places will be searched for.
|
|
|
|
|
|
|
|
Obviously, nothing prevents you from using a mirror that is in fact
|
|
|
|
*not* on your LAN, for example on another subnet of your company's
|
|
|
|
network, or a mirror on the Internet.
|
2008-10-31 18:27:27 +00:00
|
|
|
|
|
|
|
I (Yann E. MORIN) have set up such a mirror to host snapshots of
|
|
|
|
some components, when those snapshots are volatile on the upstream
|
|
|
|
servers. The mirror is *slow*, because it is hosted behind an ADSL
|
|
|
|
line. For the time being, I haven't set up bandwidth limitations,
|
|
|
|
but should the mirror be abused, I will. Please avoid using my
|
|
|
|
machine when you can...
|
|
|
|
The mirror is available as (fill in those values in the fields
|
|
|
|
below):
|
|
|
|
host name: ymorin.is-a-geek.org
|
|
|
|
base dir : /mirrors
|
|
|
|
|
|
|
|
if USE_MIRROR
|
|
|
|
|
|
|
|
config PREFER_MIRROR
|
2008-08-01 09:23:58 +00:00
|
|
|
bool
|
2008-10-31 18:27:27 +00:00
|
|
|
prompt "Prefer the LAN mirror"
|
2008-08-01 09:23:58 +00:00
|
|
|
default n
|
|
|
|
help
|
2008-10-31 18:27:27 +00:00
|
|
|
Say 'Y' here if you prefer the LAN miror over the upstream sources.
|
2008-08-01 09:23:58 +00:00
|
|
|
|
|
|
|
choice
|
|
|
|
bool
|
|
|
|
prompt "Server type:"
|
|
|
|
|
2008-10-31 18:27:27 +00:00
|
|
|
config MIRROR_HTTP
|
2008-08-01 09:23:58 +00:00
|
|
|
bool
|
|
|
|
prompt "http"
|
|
|
|
|
2008-10-31 18:27:27 +00:00
|
|
|
config MIRROR_FTP
|
2008-08-01 09:23:58 +00:00
|
|
|
bool
|
|
|
|
prompt "ftp"
|
|
|
|
|
|
|
|
endchoice # Server type
|
|
|
|
|
2008-10-31 18:27:27 +00:00
|
|
|
config MIRROR_SCHEME
|
2008-08-01 09:23:58 +00:00
|
|
|
string
|
2008-10-31 18:27:27 +00:00
|
|
|
default "http" if MIRROR_HTTP
|
|
|
|
default "ftp" if MIRROR_FTP
|
2008-08-01 09:23:58 +00:00
|
|
|
|
2008-10-31 18:27:27 +00:00
|
|
|
config MIRROR_HOSTNAME
|
2008-08-01 09:23:58 +00:00
|
|
|
string
|
|
|
|
prompt "hostname"
|
|
|
|
default ""
|
|
|
|
help
|
|
|
|
Enter here the hostname on your LAN mirror.
|
|
|
|
|
2008-10-31 18:27:27 +00:00
|
|
|
config MIRROR_BASE
|
2008-08-01 09:23:58 +00:00
|
|
|
string
|
|
|
|
prompt "Base directory"
|
|
|
|
default ""
|
|
|
|
help
|
|
|
|
This is the base directory searched for for tarballs. If you enter
|
|
|
|
/mirror, then the search is performed in the following directories
|
|
|
|
on the server:
|
|
|
|
/mirror/<name>/
|
|
|
|
/mirror/
|
|
|
|
|
|
|
|
where <name> is replaced with the actual package name.
|
|
|
|
|
2008-10-31 18:27:27 +00:00
|
|
|
config MIRROR_LS_R
|
2008-08-01 09:23:58 +00:00
|
|
|
bool
|
|
|
|
# prompt "Use ls-lR et al."
|
|
|
|
depends on EXPERIMENTAL
|
|
|
|
default n
|
|
|
|
help
|
|
|
|
If the tarball was not found at the above location, see if the server
|
|
|
|
has a ls-lr.gz (or similar) file, and use that file to see if the
|
|
|
|
tarball is listed somewhere in that file.
|
|
|
|
|
|
|
|
Common file names looked for are:
|
|
|
|
ls-lrRt.txt (used at ftp.gnu.org)
|
|
|
|
find.txt (ditto)
|
|
|
|
ls-lR
|
|
|
|
|
2008-10-31 18:27:27 +00:00
|
|
|
endif # USE_MIRROR
|
2008-08-01 09:23:58 +00:00
|
|
|
|
2008-07-19 22:45:17 +00:00
|
|
|
config CONNECT_TIMEOUT
|
|
|
|
int
|
|
|
|
prompt "connection timeout"
|
|
|
|
default 10
|
|
|
|
help
|
|
|
|
From the curl manual:
|
|
|
|
Maximum time in seconds that you allow the connection to the server to take.
|
2008-08-01 09:23:58 +00:00
|
|
|
|
2008-07-19 22:45:17 +00:00
|
|
|
The scenario is as follows;
|
|
|
|
- some enterprise networks have firewalls that prohibit FTP traffic, while
|
|
|
|
still allowing HTTP
|
|
|
|
- most download sites have http:// equivalent for the ftp:// URL
|
|
|
|
- after this number of seconds, it is considered that the connection could
|
|
|
|
not be established, and the next URL in the list is tried, until we reach
|
|
|
|
an URL that will go through the firewall, most probably an http:// URL.
|
2008-08-01 09:23:58 +00:00
|
|
|
|
2008-07-19 22:45:17 +00:00
|
|
|
If you have a slow network, you'd better set this value higher than the default
|
|
|
|
10s. If you know a firewall is blocking connections, but your network is globally
|
|
|
|
fast, you can try to lower this value to jump more quickly to allowed URLs. YMMV.
|
2008-08-01 09:23:58 +00:00
|
|
|
|
2008-07-19 22:45:17 +00:00
|
|
|
Note that this value applies equally to wget if you have that installed.
|
2008-08-01 09:23:58 +00:00
|
|
|
|
2008-07-19 22:45:17 +00:00
|
|
|
Of course, you'd be better off to use a proxy, as offered by the previous
|
|
|
|
option.
|
|
|
|
|
|
|
|
config ONLY_DOWNLOAD
|
|
|
|
bool
|
|
|
|
prompt "Stop after downloading tarballs"
|
|
|
|
default n
|
|
|
|
help
|
|
|
|
Only download the tarballs. Exit once it done.
|
|
|
|
|
|
|
|
Usefull to pre-retrieve the tarballs before going off-line.
|