config/global.in
changeset 441 f1326505e3e5
parent 425 548b7aa23385
child 442 ab046c11fbf7
     1.1 --- a/config/global.in	Thu Feb 14 22:44:34 2008 +0000
     1.2 +++ b/config/global.in	Sun Apr 13 22:46:02 2008 +0000
     1.3 @@ -246,6 +246,60 @@
     1.4        
     1.5        Usefull to pre-retrieve the tarballs before going off-line.
     1.6  
     1.7 +choice
     1.8 +    bool
     1.9 +    prompt "Proxy type"
    1.10 +    default USE_NO_PROXY
    1.11 +
    1.12 +config USE_NO_PROXY
    1.13 +    bool
    1.14 +    prompt "No proxy"
    1.15 +    help
    1.16 +      Select this option if you have a direct connection to the internet,
    1.17 +      or if you already set the environment adequately.
    1.18 +
    1.19 +config USE_HTTP_PROXY
    1.20 +    bool
    1.21 +    prompt "HTTP proxy"
    1.22 +    help
    1.23 +      Use an HTTP proxy to connect to to the internet.
    1.24 +      Onlt the http and ftp protocols will be tunneled through this
    1.25 +      proxy.
    1.26 +
    1.27 +      Alternatively to setting this options, you can set and export
    1.28 +      the following variable in your environment:
    1.29 +        ftp_proxy=http://user:passwd@proxy.server:port/
    1.30 +        http_proxy=http://user:passwd@proxy.server:port/
    1.31 +        https_proxy=http://user:passwd@proxy.server:port/
    1.32 +
    1.33 +# Haha! Here is an interesting feature/bug of mconf!
    1.34 +# The following config entries will be shown out-side the
    1.35 +# choice menu!
    1.36 +# To add a third entry in the choice menu, add it after the
    1.37 +# if...endif conditional below, and so on for a fourth entry...
    1.38 +if USE_HTTP_PROXY
    1.39 +
    1.40 +config HTTP_PROXY_HOST
    1.41 +    string
    1.42 +    prompt "HTTP proxy hostname/IP"
    1.43 +
    1.44 +config HTTP_PROXY_PORT
    1.45 +    int
    1.46 +    prompt "HTTP proxy port"
    1.47 +    
    1.48 +config HTTP_PROXY_USER
    1.49 +    string
    1.50 +    prompt "HTTP proxy user name"
    1.51 +
    1.52 +config HTTP_PROXY_PASSWD
    1.53 +    string
    1.54 +    prompt "HTTP proxy password"
    1.55 +
    1.56 +endif # USE_HTTP_PROXY
    1.57 +
    1.58 +endchoice
    1.59 +
    1.60 +# Force restore indentation
    1.61  config FOOBAR
    1.62  
    1.63  if ! ONLY_DOWNLOAD