scripts/build/debug.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 96 aa1a9fbd6eb8
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@96
     1
# Wrapper to build the debug facilities
yann@96
     2
yann@96
     3
# List all debug facilities, and parse their scripts
yann@96
     4
CT_DEBUG_FACILITY_LIST=
yann@182
     5
for f in "${CT_LIB_DIR}/scripts/build/debug/"*.sh; do
yann@96
     6
    is_enabled=
yann@96
     7
    . "${f}"
yann@96
     8
    f=`basename "${f}" .sh`
yann@96
     9
    if [ "${is_enabled}" = "y" ]; then
yann@96
    10
        CT_DEBUG_FACILITY_LIST="${CT_DEBUG_FACILITY_LIST} ${f}"
yann@96
    11
    fi
yann@96
    12
done
yann@96
    13
yann@96
    14
# Download the debug facilities
yann@96
    15
do_debug_get() {
yann@96
    16
    for f in ${CT_DEBUG_FACILITY_LIST}; do
yann@96
    17
        do_debug_${f}_get
yann@96
    18
    done
yann@96
    19
}
yann@96
    20
yann@96
    21
# Extract and patch the debug facilities
yann@96
    22
do_debug_extract() {
yann@96
    23
    for f in ${CT_DEBUG_FACILITY_LIST}; do
yann@96
    24
        do_debug_${f}_extract
yann@96
    25
    done
yann@96
    26
}
yann@96
    27
yann@96
    28
# Build the debug facilities
yann@96
    29
do_debug() {
yann@96
    30
    for f in ${CT_DEBUG_FACILITY_LIST}; do
yann@96
    31
        do_debug_${f}_build
yann@96
    32
    done
yann@96
    33
}
yann@96
    34