config/global/download.in
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Fri Jul 25 14:08:03 2008 +0000 (2008-07-25)
changeset 722 37968404e9b9
parent 695 320862b2d6f1
child 754 b13657cd64b3
permissions -rw-r--r--
When dumping the DokuWiki table of samples, don't leave the kernel headers version empty if using a custom headers set., and say so.

/trunk/scripts/showSamples.sh | 6 5 1 0 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
yann@693
     1
# Options specific to downloading packages
yann@693
     2
yann@693
     3
comment "Downloading"
yann@693
     4
yann@693
     5
config FORCE_DOWNLOAD
yann@693
     6
    bool
yann@693
     7
    prompt "Force downloads"
yann@693
     8
    default n
yann@693
     9
    help
yann@693
    10
      Force downloading tarballs, even if one already exists.
yann@693
    11
      
yann@693
    12
      Usefull if you suspect a tarball to be damaged.
yann@693
    13
yann@695
    14
menuconfig USE_LAN_MIRROR
yann@693
    15
    bool
yann@695
    16
    prompt "Use LAN mirror"
yann@693
    17
    default n
yann@693
    18
    help
yann@695
    19
      If you have a machine on your LAN that mirrors some of the needed
yann@695
    20
      tarballs, you can say 'Y' here, and configure adequate values in
yann@695
    21
      the following options.
yann@693
    22
      
yann@695
    23
      Tarballs will be be preferably fetched from the LAN mirror, and if
yann@695
    24
      not found there, standard places will be searched for.
yann@693
    25
yann@695
    26
if USE_LAN_MIRROR
yann@695
    27
yann@695
    28
choice
yann@695
    29
    bool
yann@695
    30
    prompt "Server type:"
yann@695
    31
yann@695
    32
config LAN_MIRROR_HTTP
yann@695
    33
    bool
yann@695
    34
    prompt "http"
yann@695
    35
yann@695
    36
config LAN_MIRROR_FTP
yann@695
    37
    bool
yann@695
    38
    prompt "ftp"
yann@695
    39
yann@695
    40
endchoice # Server type
yann@695
    41
yann@695
    42
config LAN_MIRROR_SCHEME
yann@695
    43
    string
yann@695
    44
    default "http"  if LAN_MIRROR_HTTP
yann@695
    45
    default "ftp"   if LAN_MIRROR_FTP
yann@695
    46
yann@695
    47
config LAN_MIRROR_HOSTNAME
yann@695
    48
    string
yann@695
    49
    prompt "hostname"
yann@695
    50
    depends on EXPERIMENTAL
yann@695
    51
    default  "localhost"
yann@693
    52
    help
yann@695
    53
      Enter here the hostname on your LAN mirror.
yann@693
    54
yann@695
    55
config LAN_MIRROR_PATTERNS
yann@695
    56
    string
yann@695
    57
    prompt "locations patterns (READ HELP!)"
yann@695
    58
    default "/downloads /downloads/%pkg /downloads/%pkg/%ver /downloads/%pkg-%ver"
yann@695
    59
    help
yann@695
    60
      A space-separated list of patterns to find the tarballs on the
yann@695
    61
      LAN mirror.
yann@693
    62
yann@695
    63
      You can use the following 'variables', and they'll get replaced by
yann@695
    64
      adequate values:
yann@695
    65
        %pkg : name of the package
yann@695
    66
        %ver : version of the package
yann@693
    67
yann@695
    68
      Thus for gcc-4.2.4, %pkg will be replaced with 'gcc', and %ver with
yann@695
    69
      '4.2.4' (both without quotes). Thus if you entered the default
yann@695
    70
      pattern: "/downloads/%pkg/ /downloads/%pkg/%ver /downloads/%pkg-%ver"
yann@695
    71
      the tarball for gcc-4.2.4 would be searched for in:
yann@695
    72
        /downloads/gcc/
yann@695
    73
        /downloads/gcc/4.2.4/
yann@695
    74
        /downloads/gcc-4.2.4/
yann@693
    75
yann@695
    76
      Of course, if the files on the LAN mirror are really arranged in weird
yann@695
    77
      ways, entering a list of patterns will be tedious... But see below.
yann@695
    78
yann@695
    79
config LAN_MIRROR_LS_R
yann@695
    80
    bool
yann@695
    81
    prompt "Use ls-lr.gz et al."
yann@695
    82
    default n
yann@695
    83
    help
yann@695
    84
      If the tarball was not found at any of the above locations, see if the
yann@695
    85
      server has a ls-lr.gz (or similar) file, and use that file to see if
yann@695
    86
      the tarball is listed somewhere in that file.
yann@695
    87
yann@695
    88
      Common file names looked for are:
yann@695
    89
        ls-lrRt.txt     (used at ftp.gnu.org)
yann@695
    90
        find.txt        (ditto)
yann@695
    91
        ls-lR
yann@695
    92
yann@695
    93
endif # USE_LAN_MIRROR
yann@695
    94
yann@695
    95
menuconfig USE_PROXY
yann@695
    96
    bool
yann@695
    97
    prompt "Proxy settings"
yann@695
    98
    default n
yann@695
    99
    help
yann@695
   100
      Say 'Y' here if you need to use a proxy to connect to the internet.
yann@695
   101
yann@695
   102
if USE_PROXY
yann@693
   103
yann@693
   104
choice
yann@693
   105
    bool
yann@693
   106
    prompt "Proxy type"
yann@693
   107
yann@693
   108
config PROXY_TYPE_HTTP
yann@693
   109
    bool
yann@693
   110
    prompt "HTTP proxy"
yann@693
   111
    help
yann@693
   112
      Use an HTTP proxy to connect to to the internet.
yann@693
   113
      Only the http and ftp protocols will be tunneled through this
yann@693
   114
      proxy.
yann@693
   115
yann@693
   116
      Alternatively to setting this option, you can set and export the
yann@693
   117
      following variables in your environment:
yann@693
   118
        ftp_proxy=http://user:passwd@proxy.server:port/
yann@693
   119
        http_proxy=http://user:passwd@proxy.server:port/
yann@693
   120
        https_proxy=http://user:passwd@proxy.server:port/
yann@693
   121
yann@693
   122
# Haha! Here is an interesting feature/bug of mconf!
yann@693
   123
# The following config entries will be shown out-side the
yann@693
   124
# choice menu!
yann@693
   125
# To add a third entry in the choice menu, add it after the
yann@693
   126
# if...endif conditional below, and so on for a fourth entry...
yann@693
   127
if PROXY_TYPE_HTTP
yann@693
   128
yann@693
   129
config PROXY_HOST
yann@693
   130
    string
yann@693
   131
    prompt "hostname/IP"
yann@693
   132
yann@693
   133
config PROXY_PORT
yann@693
   134
    int
yann@693
   135
    prompt "port"
yann@693
   136
    default 8080
yann@693
   137
    
yann@693
   138
config PROXY_USER
yann@693
   139
    string
yann@693
   140
    prompt "user name"
yann@693
   141
yann@693
   142
config PROXY_PASS
yann@693
   143
    string
yann@693
   144
    prompt "password"
yann@693
   145
yann@693
   146
endif # USE_HTTP_PROXY
yann@693
   147
yann@693
   148
config PROXY_TYPE_SOCKS
yann@693
   149
    bool
yann@696
   150
    prompt "SOCKS 4/5 proxy"
yann@693
   151
    help
yann@693
   152
      Use a Socks 4/5 proxy to connect to the internet.
yann@693
   153
      All protocols can get tunneled through this kind of proxy (depending
yann@693
   154
      on your proxy configuration, some do not allow all protocols, but
yann@693
   155
      chances are that protocols needed by crosstool-NG are allowed).
yann@693
   156
yann@693
   157
      Alternatively to setting this option, you can configure tsocks
yann@693
   158
      system-wide, and set and export the following variable in your
yann@693
   159
      environment:
yann@693
   160
        LD_PRELOAD=/path/to/your/tsocks-library.so
yann@693
   161
yann@693
   162
      This option makes use of the tsocks library. You will have to have tsocks
yann@693
   163
      installed on your system, of course.
yann@693
   164
yann@693
   165
      If you think you do not know what tsocks is, or how to configure it,
yann@693
   166
      chances are that you do not need to set this option.
yann@693
   167
yann@693
   168
if PROXY_TYPE_SOCKS
yann@693
   169
yann@693
   170
choice
yann@693
   171
    bool
yann@693
   172
    prompt "type"
yann@693
   173
    default PROXY_TYPE_SOCKS_SYS
yann@693
   174
yann@693
   175
config PROXY_TYPE_SOCKS_SYS
yann@693
   176
    bool
yann@693
   177
    prompt "Use system settings"
yann@693
   178
    help
yann@693
   179
      Use that if tsocks is already configured on your system.
yann@693
   180
yann@693
   181
config PROXY_TYPE_SOCKS_AUTO
yann@693
   182
    bool
yann@693
   183
    prompt "Auto"
yann@693
   184
    help
yann@693
   185
      crosstool-NG will attempt to guess what type of SOCKS version
yann@693
   186
      the proxy speaks.
yann@693
   187
yann@693
   188
config PROXY_TYPE_SOCKS_4
yann@693
   189
    bool
yann@693
   190
    prompt "SOCKS 4"
yann@693
   191
yann@693
   192
config PROXY_TYPE_SOCKS_5
yann@693
   193
    bool
yann@693
   194
    prompt "SOCKS 5"
yann@693
   195
yann@693
   196
endchoice
yann@693
   197
yann@693
   198
if ! PROXY_TYPE_SOCKS_SYS
yann@693
   199
yann@693
   200
config PROXY_HOST
yann@693
   201
    string
yann@693
   202
    prompt "hostname/IP"
yann@693
   203
yann@693
   204
config PROXY_PORT
yann@693
   205
    int
yann@693
   206
    prompt "port"
yann@693
   207
    default 1080
yann@693
   208
yann@693
   209
config PROXY_USER
yann@693
   210
    string
yann@693
   211
    prompt "user name"
yann@693
   212
yann@693
   213
config PROXY_PASS
yann@693
   214
    string
yann@693
   215
    prompt "password"
yann@693
   216
yann@693
   217
endif # ! PROXY_TYPE_SOCKS_SYS
yann@693
   218
yann@693
   219
endif # USE_SOCKS_PROXY
yann@693
   220
yann@693
   221
endchoice
yann@693
   222
yann@695
   223
endif # Proxy settings
yann@695
   224
yann@693
   225
config PROXY_TYPE
yann@693
   226
    string
yann@695
   227
    default "none"      if ! USE_PROXY
yann@693
   228
    default "http"      if PROXY_TYPE_HTTP
yann@693
   229
    default "sockssys"  if PROXY_TYPE_SOCKS_SYS
yann@693
   230
    default "socksauto" if PROXY_TYPE_SOCKS_AUTO
yann@693
   231
    default "socks4"    if PROXY_TYPE_SOCKS_4
yann@693
   232
    default "socks5"    if PROXY_TYPE_SOCKS_5
yann@695
   233
yann@695
   234
config CONNECT_TIMEOUT
yann@695
   235
    int
yann@695
   236
    prompt "connection timeout"
yann@695
   237
    default 10
yann@695
   238
    help
yann@695
   239
      From the curl manual:
yann@695
   240
        Maximum time in seconds that you allow the connection to the server to take.
yann@695
   241
yann@695
   242
      The scenario is as follows;
yann@695
   243
        - some enterprise networks have firewalls that prohibit FTP traffic, while
yann@695
   244
          still allowing HTTP
yann@695
   245
        - most download sites have http:// equivalent for the ftp:// URL
yann@695
   246
        - after this number of seconds, it is considered that the connection could
yann@695
   247
          not be established, and the next URL in the list is tried, until we reach
yann@695
   248
          an URL that will go through the firewall, most probably an http:// URL.
yann@695
   249
yann@695
   250
      If you have a slow network, you'd better set this value higher than the default
yann@695
   251
      10s. If you know a firewall is blocking connections, but your network is globally
yann@695
   252
      fast, you can try to lower this value to jump more quickly to allowed URLs. YMMV.
yann@695
   253
yann@695
   254
      Note that this value applies equally to wget if you have that installed.
yann@695
   255
yann@695
   256
      Of course, you'd be better off to use a proxy, as offered by the previous
yann@695
   257
      option.
yann@695
   258
yann@695
   259
config ONLY_DOWNLOAD
yann@695
   260
    bool
yann@695
   261
    prompt "Stop after downloading tarballs"
yann@695
   262
    default n
yann@695
   263
    help
yann@695
   264
      Only download the tarballs. Exit once it done.
yann@695
   265
      
yann@695
   266
      Usefull to pre-retrieve the tarballs before going off-line.