config/global/download_extract.in
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sat May 03 17:56:40 2008 +0000 (2008-05-03)
changeset 487 ef82cb824406
parent 452 15fdb2eb2db3
child 492 ef8ef3493392
permissions -rw-r--r--
One-liner to fix default proxy config.

/trunk/config/global/download_extract.in | 2 1 1 0 +-
1 file changed, 1 insertion(+), 1 deletion(-)
     1 # Options specific to downloading and extracting packages
     2 
     3 comment "Downloading"
     4 
     5 config FORCE_DOWNLOAD
     6     bool
     7     prompt "Force downloads"
     8     default n
     9     help
    10       Force downloading tarballs, even if one already exists.
    11       
    12       Usefull if you suspect a tarball to be damaged.
    13 
    14 config ONLY_DOWNLOAD
    15     bool
    16     prompt "Stop after downloading tarballs"
    17     default n
    18     help
    19       Only download the tarballs. Exit once it done.
    20       
    21       Usefull to pre-retrieve the tarballs before going off-line.
    22 
    23 choice
    24     bool
    25     prompt "Proxy type"
    26     default PROXY_TYPE_NONE
    27 
    28 config PROXY_TYPE_NONE
    29     bool
    30     prompt "No proxy"
    31     help
    32       Select this option if you have a direct connection to the internet,
    33       or if you already set the environment adequately.
    34 
    35 config PROXY_TYPE_HTTP
    36     bool
    37     prompt "HTTP proxy"
    38     help
    39       Use an HTTP proxy to connect to to the internet.
    40       Only the http and ftp protocols will be tunneled through this
    41       proxy.
    42 
    43       Alternatively to setting this option, you can set and export the
    44       following variables in your environment:
    45         ftp_proxy=http://user:passwd@proxy.server:port/
    46         http_proxy=http://user:passwd@proxy.server:port/
    47         https_proxy=http://user:passwd@proxy.server:port/
    48 
    49 # Haha! Here is an interesting feature/bug of mconf!
    50 # The following config entries will be shown out-side the
    51 # choice menu!
    52 # To add a third entry in the choice menu, add it after the
    53 # if...endif conditional below, and so on for a fourth entry...
    54 if PROXY_TYPE_HTTP
    55 
    56 config PROXY_HOST
    57     string
    58     prompt "hostname/IP"
    59 
    60 config PROXY_PORT
    61     int
    62     prompt "port"
    63     default 8080
    64     
    65 config PROXY_USER
    66     string
    67     prompt "user name"
    68 
    69 config PROXY_PASS
    70     string
    71     prompt "password"
    72 
    73 endif # USE_HTTP_PROXY
    74 
    75 config PROXY_TYPE_SOCKS
    76     bool
    77     prompt "SOCKS 4/5 proxy (EXPERIMENTAL)"
    78     depends on EXPERIMENTAL
    79     help
    80       Use a Socks 4/5 proxy to connect to the internet.
    81       All protocols can get tunneled through this kind of proxy (depending
    82       on your proxy configuration, so;e do not allow all protocols, but
    83       chances are that protocols needed by crosstool-NG are allowed).
    84 
    85       Please note that the proxy you are using MUST be on the same subnet
    86       as your machine. That is, it must be reachable without a hop through
    87       any gate. If this is not the case, then do NOT use this option, and
    88       setup tsocks system-wide.
    89 
    90       Alternatively to setting this option, you can configure tsocks
    91       system-wide, and set and export the following variable in your
    92       environment:
    93         LD_PRELOAD=/path/to/your/tsocks-library.so
    94 
    95       This option makes use of the tsocks library. You will have to have tsocks
    96       installed on your system, of course.
    97 
    98       If you think you do not know what tsocks is, or how to configure it,
    99       chances are that you do not need to set this option.
   100 
   101 if PROXY_TYPE_SOCKS
   102 
   103 choice
   104     bool
   105     prompt "type"
   106     default PROXY_TYPE_SOCKS_SYS
   107 
   108 config PROXY_TYPE_SOCKS_SYS
   109     bool
   110     prompt "Use system settings"
   111     help
   112       Use that if tsocks is already configured on your system.
   113 
   114 config PROXY_TYPE_SOCKS_AUTO
   115     bool
   116     prompt "Auto (BROKEN)"
   117     depends on BROKEN
   118     help
   119       crosstool-NG will attempt to guess what type of SOCKS version
   120       the proxy speaks.
   121 
   122 config PROXY_TYPE_SOCKS_4
   123     bool
   124     prompt "SOCKS 4 (BROKEN)"
   125     depends on BROKEN
   126 
   127 config PROXY_TYPE_SOCKS_5
   128     bool
   129     prompt "SOCKS 5 (BROKEN)"
   130     depends on BROKEN
   131 
   132 endchoice
   133 
   134 if ! PROXY_TYPE_SOCKS_SYS
   135 
   136 config PROXY_HOST
   137     string
   138     prompt "hostname/IP"
   139 
   140 config PROXY_PORT
   141     int
   142     prompt "port"
   143     default 1080
   144 
   145 config PROXY_USER
   146     string
   147     prompt "user name"
   148 
   149 config PROXY_PASS
   150     string
   151     prompt "password"
   152 
   153 endif # ! PROXY_TYPE_SOCKS_SYS
   154 
   155 endif # USE_SOCKS_PROXY
   156 
   157 endchoice
   158 
   159 config PROXY_TYPE
   160     string
   161     default "none"      if PROXY_TYPE_NONE
   162     default "http"      if PROXY_TYPE_HTTP
   163     default "sockssys"  if PROXY_TYPE_SOCKS_SYS
   164     default "socksauto" if PROXY_TYPE_SOCKS_AUTO
   165     default "socks4"    if PROXY_TYPE_SOCKS_4
   166     default "socks5"    if PROXY_TYPE_SOCKS_5
   167 
   168 # Force restore indentation
   169 config BREAK_INDENT
   170     bool
   171     default n
   172 
   173 if ! ONLY_DOWNLOAD
   174 
   175 comment "Extracting"
   176 
   177 config FORCE_EXTRACT
   178     bool
   179     prompt "Force extractions"
   180     default n
   181     help
   182       Force extraction of already exctracted tarballs.
   183       
   184       Usefull if you suspect a previous extract did not complete (eg. broken
   185       tarball), or you added a new set of patches for this component.
   186 
   187 config ONLY_EXTRACT
   188     bool
   189     prompt "Stop after extracting tarballs"
   190     default n
   191     help
   192       Exit after unpacking and patching tarballs.
   193       
   194       Usefull to look at the code before doing the build itself.
   195 
   196 endif # ! ONLY_DOWNLOAD