From 0b89b1a938ea18c4828b7a4e186efe0dade7d3a9 Mon Sep 17 00:00:00 2001 From: "Yann E. MORIN\"" Date: Sun, 13 Apr 2008 22:46:02 +0000 Subject: 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(+) --- scripts/crosstool.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'scripts') diff --git a/scripts/crosstool.sh b/scripts/crosstool.sh index 64e5859e..374f974c 100755 --- a/scripts/crosstool.sh +++ b/scripts/crosstool.sh @@ -307,6 +307,20 @@ if [ -z "${CT_RESTART}" ]; then [ ${CT_PARALLEL_JOBS} -ne 0 ] && PARALLELMFLAGS="${PARALLELMFLAGS} -j${CT_PARALLEL_JOBS}" [ ${CT_LOAD} -ne 0 ] && PARALLELMFLAGS="${PARALLELMFLAGS} -l${CT_LOAD}" + # Set environment for proxy access + if [ "${CT_USE_HTTP_PROXY}" = "y" ]; then + http_proxy="http://" + case "${CT_HTTP_PROXY_USER}:${CT_HTTP_PROXY_PASSWD}" in + :) ;; + :*) http_proxy="${http_proxy}:${CT_HTP_PROXY_PASSWD}@";; + *:) http_proxy="${http_proxy}${CT_HTTP_PROXY_USER}@";; + *:*) http_proxy="${http_proxy}${CT_HTTP_PROXY_USER}:${CT_HTP_PROXY_PASSWD}@";; + esac + export http_proxy="${http_proxy}${HTTP_PROXY_HOST}:${HTTP_PROXY_PORT}/" + export https_proxy="${http_proxy}" + export ftp_proxy="${http_proxy}" + fi + CT_DoStep EXTRA "Dumping internal crosstool-NG configuration" CT_DoLog EXTRA "Building a toolchain for:" CT_DoLog EXTRA " build = ${CT_BUILD}" -- cgit v1.2.3