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