config/global/download_extract.in
changeset 446 d205527c5e01
parent 445 17aa08b441f2
child 450 4765aa0bd896
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/config/global/download_extract.in	Thu Apr 17 20:26:25 2008 +0000
     1.3 @@ -0,0 +1,171 @@
     1.4 +# Options specific to downloading and extracting packages
     1.5 +
     1.6 +comment "Downloading"
     1.7 +
     1.8 +config FORCE_DOWNLOAD
     1.9 +    bool
    1.10 +    prompt "Force downloads"
    1.11 +    default n
    1.12 +    help
    1.13 +      Force downloading tarballs, even if one already exists.
    1.14 +      
    1.15 +      Usefull if you suspect a tarball to be damaged.
    1.16 +
    1.17 +config ONLY_DOWNLOAD
    1.18 +    bool
    1.19 +    prompt "Stop after downloading tarballs"
    1.20 +    default n
    1.21 +    help
    1.22 +      Only download the tarballs. Exit once it done.
    1.23 +      
    1.24 +      Usefull to pre-retrieve the tarballs before going off-line.
    1.25 +
    1.26 +choice
    1.27 +    bool
    1.28 +    prompt "Proxy type"
    1.29 +    default USE_NO_PROXY
    1.30 +
    1.31 +config PROXY_TYPE_NONE
    1.32 +    bool
    1.33 +    prompt "No proxy"
    1.34 +    help
    1.35 +      Select this option if you have a direct connection to the internet,
    1.36 +      or if you already set the environment adequately.
    1.37 +
    1.38 +config PROXY_TYPE_HTTP
    1.39 +    bool
    1.40 +    prompt "HTTP proxy"
    1.41 +    help
    1.42 +      Use an HTTP proxy to connect to to the internet.
    1.43 +      Only the http and ftp protocols will be tunneled through this
    1.44 +      proxy.
    1.45 +
    1.46 +      Alternatively to setting this option, you can set and export the
    1.47 +      following variables in your environment:
    1.48 +        ftp_proxy=http://user:passwd@proxy.server:port/
    1.49 +        http_proxy=http://user:passwd@proxy.server:port/
    1.50 +        https_proxy=http://user:passwd@proxy.server:port/
    1.51 +
    1.52 +# Haha! Here is an interesting feature/bug of mconf!
    1.53 +# The following config entries will be shown out-side the
    1.54 +# choice menu!
    1.55 +# To add a third entry in the choice menu, add it after the
    1.56 +# if...endif conditional below, and so on for a fourth entry...
    1.57 +if PROXY_TYPE_HTTP
    1.58 +
    1.59 +config PROXY_HOST
    1.60 +    string
    1.61 +    prompt "hostname/IP"
    1.62 +
    1.63 +config PROXY_PORT
    1.64 +    int
    1.65 +    prompt "port"
    1.66 +    default 0
    1.67 +    
    1.68 +config PROXY_USER
    1.69 +    string
    1.70 +    prompt "user name"
    1.71 +
    1.72 +config PROXY_PASS
    1.73 +    string
    1.74 +    prompt "password"
    1.75 +
    1.76 +endif # USE_HTTP_PROXY
    1.77 +
    1.78 +config PROXY_TYPE_SOCKS
    1.79 +    bool
    1.80 +    prompt "SOCKS 4/5 proxy"
    1.81 +    help
    1.82 +      Use a Socks 4/5 proxy to connect to the internet.
    1.83 +      All protocols can get tunneled through this kind of proxy (depending
    1.84 +      on your proxy configuration, so;e do not allow all protocols, but
    1.85 +      chances are that protocols needed by crosstool-NG are allowed).
    1.86 +
    1.87 +      Alternatively to setting this option, you can set and export the
    1.88 +      following variable in your environment:
    1.89 +        LD_PRELOAD=/path/to/your/tsocks-library.so
    1.90 +
    1.91 +      In any case, wether you set this option or you export the aforementionned
    1.92 +      variable, you will _have_ to  configure the /etc/tsocks.conf file
    1.93 +      accordingly to your network setup.
    1.94 +
    1.95 +      This option makes use of the tsocks library. You will have to have tsocks
    1.96 +      installed on your system, of course.
    1.97 +
    1.98 +      If you think you do not know what tsocks is, or how to configure it,
    1.99 +      chances are that you do not need to set this option.
   1.100 +
   1.101 +if PROXY_TYPE_SOCKS
   1.102 +
   1.103 +choice
   1.104 +    bool
   1.105 +    prompt "type"
   1.106 +    default PROXY_TYPE_SOCKS_5
   1.107 +
   1.108 +config PROXY_TYPE_SOCKS_5
   1.109 +    bool
   1.110 +    prompt "SOCKS 5"
   1.111 +
   1.112 +config PROXY_TYPE_SOCKS_4
   1.113 +    bool
   1.114 +    prompt "SOCKS 4"
   1.115 +
   1.116 +endchoice
   1.117 +
   1.118 +config PROXY_HOST
   1.119 +    string
   1.120 +    prompt "hostname/IP"
   1.121 +
   1.122 +config PROXY_PORT
   1.123 +    int
   1.124 +    prompt "port"
   1.125 +    default 0
   1.126 +
   1.127 +config PROXY_USER
   1.128 +    string
   1.129 +    prompt "user name"
   1.130 +
   1.131 +config PROXY_PASS
   1.132 +    string
   1.133 +    prompt "password"
   1.134 +
   1.135 +endif # USE_SOCKS_PROXY
   1.136 +
   1.137 +endchoice
   1.138 +
   1.139 +config PROXY_TYPE
   1.140 +    string
   1.141 +    default "none" if PROXY_TYPE_NONE
   1.142 +    default "HTTP" if PROXY_TYPE_HTTP
   1.143 +    default "socks5" if PROXY_TYPE_SOCKS_5
   1.144 +    default "socks4" if PROXY_TYPE_SOCKS_4
   1.145 +
   1.146 +# Force restore indentation
   1.147 +config BREAK_INDENT
   1.148 +    bool
   1.149 +    default n
   1.150 +
   1.151 +if ! ONLY_DOWNLOAD
   1.152 +
   1.153 +comment "Extracting"
   1.154 +
   1.155 +config FORCE_EXTRACT
   1.156 +    bool
   1.157 +    prompt "Force extractions"
   1.158 +    default n
   1.159 +    help
   1.160 +      Force extraction of already exctracted tarballs.
   1.161 +      
   1.162 +      Usefull if you suspect a previous extract did not complete (eg. broken
   1.163 +      tarball), or you added a new set of patches for this component.
   1.164 +
   1.165 +config ONLY_EXTRACT
   1.166 +    bool
   1.167 +    prompt "Stop after extracting tarballs"
   1.168 +    default n
   1.169 +    help
   1.170 +      Exit after unpacking and patching tarballs.
   1.171 +      
   1.172 +      Usefull to look at the code before doing the build itself.
   1.173 +
   1.174 +endif # ! ONLY_DOWNLOAD