Move do_finish from scripts/functions to its own file in scipts/build/internals.sh.
/trunk/scripts/build/internals.sh | 907 4 903 0 ---------------------------------------------
/trunk/scripts/addToolVersion.sh | 8 4 4 0
/trunk/scripts/crosstool-NG.sh.in | 1 1 0 0 +
/trunk/scripts/functions | 48 0 48 0 --
4 files changed, 9 insertions(+), 955 deletions(-)
1 # Options specific to downloading packages
7 prompt "Forbid downloads"
10 Normally, crosstool-NG will try to download missing tarballs (or
11 checkout from CVS/SVN...).
12 If you do not have network connectivity when you run crosstool-NG,
13 and some files are missing, it can be a long time before crosstool-NG
16 Saying 'y' here will prevent crosstool-NG from downloading missing
17 files, thus failing early so that you don't get stuck.
23 prompt "Force downloads"
26 Force downloading tarballs, even if one already exists.
28 Usefull if you suspect a tarball to be damaged.
35 Say 'Y' here if you need to use a proxy to connect to the internet.
37 You can then choose between an HTTP or a SOCKS 4/5 proxy.
40 The settings below may not cover all possible proxy configurations!
41 You'd be better off setting proxy in the environment!
49 config PROXY_TYPE_HTTP
53 Use an HTTP proxy to connect to to the internet.
54 Only the http and ftp protocols will be tunneled through this
57 Alternatively to setting this option, you can set and export the
58 following variables in your environment:
59 ftp_proxy=http://user:passwd@proxy.server:port/
60 http_proxy=http://user:passwd@proxy.server:port/
61 https_proxy=http://user:passwd@proxy.server:port/
63 # Haha! Here is an interesting feature/bug of mconf!
64 # The following config entries will be shown out-side the
66 # To add a third entry in the choice menu, add it after the
67 # if...endif conditional below, and so on for a fourth entry...
87 endif # USE_HTTP_PROXY
89 config PROXY_TYPE_SOCKS
91 prompt "SOCKS 4/5 proxy"
93 Use a Socks 4/5 proxy to connect to the internet.
94 All protocols can get tunneled through this kind of proxy (your
95 proxy configuration may not allow all protocols, but chances are
96 that protocols needed by crosstool-NG are allowed).
98 Alternatively to setting this option, you can configure tsocks
99 system-wide, and set and export the following variable in your
101 LD_PRELOAD=/path/to/your/tsocks-library.so
103 This option makes use of the tsocks library. You will have to have tsocks
104 installed on your system, of course.
106 If you think you do not know what tsocks is, or how to configure it,
107 chances are that you do not need to set this option.
114 default PROXY_TYPE_SOCKS_SYS
116 config PROXY_TYPE_SOCKS_SYS
118 prompt "Use system settings"
120 Use that if tsocks is already configured on your system.
122 config PROXY_TYPE_SOCKS_AUTO
126 crosstool-NG will attempt to guess what type of SOCKS version
129 config PROXY_TYPE_SOCKS_4
133 config PROXY_TYPE_SOCKS_5
139 if ! PROXY_TYPE_SOCKS_SYS
158 endif # ! PROXY_TYPE_SOCKS_SYS
160 endif # USE_SOCKS_PROXY
168 default "none" if ! USE_PROXY
169 default "http" if PROXY_TYPE_HTTP
170 default "sockssys" if PROXY_TYPE_SOCKS_SYS
171 default "socksauto" if PROXY_TYPE_SOCKS_AUTO
172 default "socks4" if PROXY_TYPE_SOCKS_4
173 default "socks5" if PROXY_TYPE_SOCKS_5
175 menuconfig USE_MIRROR
177 prompt "Use LAN mirror"
180 If you have a machine on your LAN that mirrors some of the needed
181 tarballs, you can say 'Y' here, and configure adequate values in
182 the following options.
184 Tarballs will be be preferably fetched from the LAN mirror, and if
185 not found there, standard places will be searched for.
187 Obviously, nothing prevents you from using a mirror that is in fact
188 *not* on your LAN, for example on another subnet of your company's
189 network, or a mirror on the Internet.
191 I (Yann E. MORIN) have set up such a mirror to host snapshots of
192 some components, when those snapshots are volatile on the upstream
193 servers. The mirror is *slow*, because it is hosted behind an ADSL
194 line. For the time being, I haven't set up bandwidth limitations,
195 but should the mirror be abused, I will. Please avoid using my
196 machine when you can...
197 The mirror is available as (fill in those values in the fields
199 host name: ymorin.is-a-geek.org
206 prompt "Prefer the LAN mirror"
209 Say 'Y' here if you prefer the LAN miror over the upstream sources.
213 prompt "Server type:"
223 endchoice # Server type
227 default "http" if MIRROR_HTTP
228 default "ftp" if MIRROR_FTP
230 config MIRROR_HOSTNAME
235 Enter here the hostname on your LAN mirror.
239 prompt "Base directory"
242 This is the base directory searched for for tarballs. If you enter
243 /mirror, then the search is performed in the following directories
248 where <name> is replaced with the actual package name.
252 # prompt "Use ls-lR et al."
253 depends on EXPERIMENTAL
256 If the tarball was not found at the above location, see if the server
257 has a ls-lr.gz (or similar) file, and use that file to see if the
258 tarball is listed somewhere in that file.
260 Common file names looked for are:
261 ls-lrRt.txt (used at ftp.gnu.org)
267 config CONNECT_TIMEOUT
269 prompt "connection timeout"
272 From the curl manual:
273 Maximum time in seconds that you allow the connection to the server to take.
275 The scenario is as follows;
276 - some enterprise networks have firewalls that prohibit FTP traffic, while
278 - most download sites have http:// equivalent for the ftp:// URL
279 - after this number of seconds, it is considered that the connection could
280 not be established, and the next URL in the list is tried, until we reach
281 an URL that will go through the firewall, most probably an http:// URL.
283 If you have a slow network, you'd better set this value higher than the default
284 10s. If you know a firewall is blocking connections, but your network is globally
285 fast, you can try to lower this value to jump more quickly to allowed URLs. YMMV.
287 Note that this value applies equally to wget if you have that installed.
289 Of course, you'd be better off to use a proxy, as offered by the previous
294 prompt "Stop after downloading tarballs"
297 Only download the tarballs. Exit once it done.
299 Usefull to pre-retrieve the tarballs before going off-line.
301 endif # ! FORBID_DOWNLOAD