scripts/build/tools.sh
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Fri Apr 18 22:16:28 2008 +0000 (2008-04-18)
changeset 451 8a72f9bcf675
parent 148 567f1673d59d
child 479 05c62432ec19
permissions -rw-r--r--
Using SOCKS 4/5 proxy is no easy task:
- a machine may well be able to reach the proxy, even if it is not on the same sub-net(s) as the machine itself (absolutely legitimate)
- tsocks.conf needs a list of so-called 'local' networks that can be reached without the need for a SOCKS connection
- SOCKS proxies are expected to be in 'local' networks
- there is absolutely NO way to tell what networks are local, besides the sub-net(s) the machine is in

Therefore, appropriate configuration of SOCKS 4/5 configuration is really complex, and attempts to correctly overcome this issue are doomed.

/trunk/scripts/crosstool.sh | 52 46 6 0 ++++++++++++++++++++++++++++++++++----
/trunk/config/global/download_extract.in | 39 31 8 0 +++++++++++++++++++++++------
2 files changed, 77 insertions(+), 14 deletions(-)
yann@148
     1
# Wrapper to build the tools facilities
yann@148
     2
yann@148
     3
# List all tools facilities, and parse their scripts
yann@148
     4
CT_TOOLS_FACILITY_LIST=
yann@182
     5
for f in "${CT_LIB_DIR}/scripts/build/tools/"*.sh; do
yann@148
     6
    is_enabled=
yann@148
     7
    . "${f}"
yann@148
     8
    f=`basename "${f}" .sh`
yann@148
     9
    if [ "${is_enabled}" = "y" ]; then
yann@148
    10
        CT_TOOLS_FACILITY_LIST="${CT_TOOLS_FACILITY_LIST} ${f}"
yann@148
    11
    fi
yann@148
    12
done
yann@148
    13
yann@148
    14
# Download the tools facilities
yann@148
    15
do_tools_get() {
yann@148
    16
    for f in ${CT_TOOLS_FACILITY_LIST}; do
yann@148
    17
        do_tools_${f}_get
yann@148
    18
    done
yann@148
    19
}
yann@148
    20
yann@148
    21
# Extract and patch the tools facilities
yann@148
    22
do_tools_extract() {
yann@148
    23
    for f in ${CT_TOOLS_FACILITY_LIST}; do
yann@148
    24
        do_tools_${f}_extract
yann@148
    25
    done
yann@148
    26
}
yann@148
    27
yann@148
    28
# Build the tools facilities
yann@148
    29
do_tools() {
yann@148
    30
    for f in ${CT_TOOLS_FACILITY_LIST}; do
yann@148
    31
        do_tools_${f}_build
yann@148
    32
    done
yann@148
    33
}
yann@148
    34