config/global/download_extract.in
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Thu Apr 17 20:26:25 2008 +0000 (2008-04-17)
changeset 446 d205527c5e01
parent 445 config/download_extract.in@17aa08b441f2
child 450 4765aa0bd896
permissions -rw-r--r--
Move config files around, and clean up the mess in the config/ directory.

config/kernel/kernel_linux.in | 12 6 6 0 +-
config/paths.in | 89 0 89 0 ----------------
config/kernel_linux_headers_install.in | 168 0 168 0 ------------------------------
config/kernel.in | 2 1 1 0
config/kernel_linux_headers_copy.in | 42 0 42 0 --------
config/cc.in | 2 1 1 0
config/logging.in | 110 0 110 0 --------------------
config/build-behave.in | 45 0 45 0 --------
config/libc_uClibc.in | 101 0 101 0 ------------------
config/kernel_linux_headers_sanitised.in | 62 0 62 0 -----------
config/ct-behave.in | 82 0 82 0 ---------------
config/kernel_linux.in | 134 0 134 0 ------------------------
config/global.in | 10 5 5 0 +-
config/download_extract.in | 171 0 171 0 -------------------------------
config/cc_gcc.in | 130 0 130 0 ------------------------
config/libc_glibc.in | 124 0 124 0 ----------------------
config/libc.in | 4 2 2 0
17 files changed, 15 insertions(+), 1273 deletions(-)
     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 USE_NO_PROXY
    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 0
    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"
    78     help
    79       Use a Socks 4/5 proxy to connect to the internet.
    80       All protocols can get tunneled through this kind of proxy (depending
    81       on your proxy configuration, so;e do not allow all protocols, but
    82       chances are that protocols needed by crosstool-NG are allowed).
    83 
    84       Alternatively to setting this option, you can set and export the
    85       following variable in your environment:
    86         LD_PRELOAD=/path/to/your/tsocks-library.so
    87 
    88       In any case, wether you set this option or you export the aforementionned
    89       variable, you will _have_ to  configure the /etc/tsocks.conf file
    90       accordingly to your network setup.
    91 
    92       This option makes use of the tsocks library. You will have to have tsocks
    93       installed on your system, of course.
    94 
    95       If you think you do not know what tsocks is, or how to configure it,
    96       chances are that you do not need to set this option.
    97 
    98 if PROXY_TYPE_SOCKS
    99 
   100 choice
   101     bool
   102     prompt "type"
   103     default PROXY_TYPE_SOCKS_5
   104 
   105 config PROXY_TYPE_SOCKS_5
   106     bool
   107     prompt "SOCKS 5"
   108 
   109 config PROXY_TYPE_SOCKS_4
   110     bool
   111     prompt "SOCKS 4"
   112 
   113 endchoice
   114 
   115 config PROXY_HOST
   116     string
   117     prompt "hostname/IP"
   118 
   119 config PROXY_PORT
   120     int
   121     prompt "port"
   122     default 0
   123 
   124 config PROXY_USER
   125     string
   126     prompt "user name"
   127 
   128 config PROXY_PASS
   129     string
   130     prompt "password"
   131 
   132 endif # USE_SOCKS_PROXY
   133 
   134 endchoice
   135 
   136 config PROXY_TYPE
   137     string
   138     default "none" if PROXY_TYPE_NONE
   139     default "HTTP" if PROXY_TYPE_HTTP
   140     default "socks5" if PROXY_TYPE_SOCKS_5
   141     default "socks4" if PROXY_TYPE_SOCKS_4
   142 
   143 # Force restore indentation
   144 config BREAK_INDENT
   145     bool
   146     default n
   147 
   148 if ! ONLY_DOWNLOAD
   149 
   150 comment "Extracting"
   151 
   152 config FORCE_EXTRACT
   153     bool
   154     prompt "Force extractions"
   155     default n
   156     help
   157       Force extraction of already exctracted tarballs.
   158       
   159       Usefull if you suspect a previous extract did not complete (eg. broken
   160       tarball), or you added a new set of patches for this component.
   161 
   162 config ONLY_EXTRACT
   163     bool
   164     prompt "Stop after extracting tarballs"
   165     default n
   166     help
   167       Exit after unpacking and patching tarballs.
   168       
   169       Usefull to look at the code before doing the build itself.
   170 
   171 endif # ! ONLY_DOWNLOAD