yann@693: # Options specific to downloading packages yann@693: yann@693: comment "Downloading" yann@693: yann@693: config FORCE_DOWNLOAD yann@693: bool yann@693: prompt "Force downloads" yann@693: default n yann@693: help yann@693: Force downloading tarballs, even if one already exists. yann@693: yann@693: Usefull if you suspect a tarball to be damaged. yann@693: yann@693: config ONLY_DOWNLOAD yann@693: bool yann@693: prompt "Stop after downloading tarballs" yann@693: default n yann@693: help yann@693: Only download the tarballs. Exit once it done. yann@693: yann@693: Usefull to pre-retrieve the tarballs before going off-line. yann@693: yann@693: config CONNECT_TIMEOUT yann@693: int yann@693: prompt "connection timeout" yann@693: default 10 yann@693: help yann@693: From the curl manual: yann@693: Maximum time in seconds that you allow the connection to the server to take. yann@693: yann@693: The scenario is as follows; yann@693: - some enterprise networks have firewalls that prohibit FTP traffic, while yann@693: still allowing HTTP yann@693: - most download sites have http:// equivalent for the ftp:// URL yann@693: - after this number of seconds, it is considered that the connection could yann@693: not be established, and the next URL in the list is tried, until we reach yann@693: an URL that will go through the firewall, most probably an http:// URL. yann@693: yann@693: If you have a slow network, you'd better set this value higher than the default yann@693: 10s. If you know a firewall is blocking connections, but your network is globally yann@693: fast, you can try to lower this value to jump more quickly to allowed URLs. YMMV. yann@693: yann@693: Note that this value applies equally to wget if you have that installed. yann@693: yann@693: Of course, you'd be better off to use a proxy, as offered by the following yann@693: choice of options. yann@693: yann@693: choice yann@693: bool yann@693: prompt "Proxy type" yann@693: default PROXY_TYPE_NONE yann@693: yann@693: config PROXY_TYPE_NONE yann@693: bool yann@693: prompt "No proxy" yann@693: help yann@693: Select this option if you have a direct connection to the internet, yann@693: or if you already set the environment adequately. yann@693: yann@693: config PROXY_TYPE_HTTP yann@693: bool yann@693: prompt "HTTP proxy" yann@693: help yann@693: Use an HTTP proxy to connect to to the internet. yann@693: Only the http and ftp protocols will be tunneled through this yann@693: proxy. yann@693: yann@693: Alternatively to setting this option, you can set and export the yann@693: following variables in your environment: yann@693: ftp_proxy=http://user:passwd@proxy.server:port/ yann@693: http_proxy=http://user:passwd@proxy.server:port/ yann@693: https_proxy=http://user:passwd@proxy.server:port/ yann@693: yann@693: # Haha! Here is an interesting feature/bug of mconf! yann@693: # The following config entries will be shown out-side the yann@693: # choice menu! yann@693: # To add a third entry in the choice menu, add it after the yann@693: # if...endif conditional below, and so on for a fourth entry... yann@693: if PROXY_TYPE_HTTP yann@693: yann@693: config PROXY_HOST yann@693: string yann@693: prompt "hostname/IP" yann@693: yann@693: config PROXY_PORT yann@693: int yann@693: prompt "port" yann@693: default 8080 yann@693: yann@693: config PROXY_USER yann@693: string yann@693: prompt "user name" yann@693: yann@693: config PROXY_PASS yann@693: string yann@693: prompt "password" yann@693: yann@693: endif # USE_HTTP_PROXY yann@693: yann@693: config PROXY_TYPE_SOCKS yann@693: bool yann@693: prompt "SOCKS 4/5 proxy (EXPERIMENTAL)" yann@693: depends on EXPERIMENTAL yann@693: help yann@693: Use a Socks 4/5 proxy to connect to the internet. yann@693: All protocols can get tunneled through this kind of proxy (depending yann@693: on your proxy configuration, some do not allow all protocols, but yann@693: chances are that protocols needed by crosstool-NG are allowed). yann@693: yann@693: Alternatively to setting this option, you can configure tsocks yann@693: system-wide, and set and export the following variable in your yann@693: environment: yann@693: LD_PRELOAD=/path/to/your/tsocks-library.so yann@693: yann@693: This option makes use of the tsocks library. You will have to have tsocks yann@693: installed on your system, of course. yann@693: yann@693: If you think you do not know what tsocks is, or how to configure it, yann@693: chances are that you do not need to set this option. yann@693: yann@693: if PROXY_TYPE_SOCKS yann@693: yann@693: choice yann@693: bool yann@693: prompt "type" yann@693: default PROXY_TYPE_SOCKS_SYS yann@693: yann@693: config PROXY_TYPE_SOCKS_SYS yann@693: bool yann@693: prompt "Use system settings" yann@693: help yann@693: Use that if tsocks is already configured on your system. yann@693: yann@693: config PROXY_TYPE_SOCKS_AUTO yann@693: bool yann@693: prompt "Auto" yann@693: help yann@693: crosstool-NG will attempt to guess what type of SOCKS version yann@693: the proxy speaks. yann@693: yann@693: config PROXY_TYPE_SOCKS_4 yann@693: bool yann@693: prompt "SOCKS 4" yann@693: yann@693: config PROXY_TYPE_SOCKS_5 yann@693: bool yann@693: prompt "SOCKS 5" yann@693: yann@693: endchoice yann@693: yann@693: if ! PROXY_TYPE_SOCKS_SYS yann@693: yann@693: config PROXY_HOST yann@693: string yann@693: prompt "hostname/IP" yann@693: yann@693: config PROXY_PORT yann@693: int yann@693: prompt "port" yann@693: default 1080 yann@693: yann@693: config PROXY_USER yann@693: string yann@693: prompt "user name" yann@693: yann@693: config PROXY_PASS yann@693: string yann@693: prompt "password" yann@693: yann@693: endif # ! PROXY_TYPE_SOCKS_SYS yann@693: yann@693: endif # USE_SOCKS_PROXY yann@693: yann@693: endchoice yann@693: yann@693: config PROXY_TYPE yann@693: string yann@693: default "none" if PROXY_TYPE_NONE yann@693: default "http" if PROXY_TYPE_HTTP yann@693: default "sockssys" if PROXY_TYPE_SOCKS_SYS yann@693: default "socksauto" if PROXY_TYPE_SOCKS_AUTO yann@693: default "socks4" if PROXY_TYPE_SOCKS_4 yann@693: default "socks5" if PROXY_TYPE_SOCKS_5