diff options
author | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2008-04-13 22:46:02 +0000 |
---|---|---|
committer | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2008-04-13 22:46:02 +0000 |
commit | 0b89b1a938ea18c4828b7a4e186efe0dade7d3a9 (patch) | |
tree | fdef0821e53b630624c69ed91cada6ca5cc8d890 /config/global.in | |
parent | 2dffee230ad83bcc4614e0e1bdb9d20d53b80574 (diff) | |
download | crosstool-ng-0b89b1a938ea18c4828b7a4e186efe0dade7d3a9.tar.gz crosstool-ng-0b89b1a938ea18c4828b7a4e186efe0dade7d3a9.tar.bz2 crosstool-ng-0b89b1a938ea18c4828b7a4e186efe0dade7d3a9.zip |
Allow using an HTTP proxy to tunnel FTP and HTTP requests.
scripts/crosstool.sh | 14 14 0 0 +++++++++++++
config/global.in | 54 54 0 0 +++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 68 insertions(+)
Diffstat (limited to 'config/global.in')
-rw-r--r-- | config/global.in | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/config/global.in b/config/global.in index d0744f35..b971ee6c 100644 --- a/config/global.in +++ b/config/global.in @@ -246,6 +246,60 @@ config ONLY_DOWNLOAD Usefull to pre-retrieve the tarballs before going off-line. +choice + bool + prompt "Proxy type" + default USE_NO_PROXY + +config USE_NO_PROXY + bool + prompt "No proxy" + help + Select this option if you have a direct connection to the internet, + or if you already set the environment adequately. + +config USE_HTTP_PROXY + bool + prompt "HTTP proxy" + help + Use an HTTP proxy to connect to to the internet. + Onlt the http and ftp protocols will be tunneled through this + proxy. + + Alternatively to setting this options, you can set and export + the following variable 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 USE_HTTP_PROXY + +config HTTP_PROXY_HOST + string + prompt "HTTP proxy hostname/IP" + +config HTTP_PROXY_PORT + int + prompt "HTTP proxy port" + +config HTTP_PROXY_USER + string + prompt "HTTP proxy user name" + +config HTTP_PROXY_PASSWD + string + prompt "HTTP proxy password" + +endif # USE_HTTP_PROXY + +endchoice + +# Force restore indentation config FOOBAR if ! ONLY_DOWNLOAD |