config/libc/uClibc.in
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sat Apr 26 21:31:05 2008 +0000 (2008-04-26)
changeset 454 372b2f397baa
child 500 a8b11d75e253
permissions -rw-r--r--
Configure tsocks with a simple heuristic.

Consider the proxy has to be in a 'local' network. It means it is directly
reachable by the local machine, even if the local machine has to hop through
one or more gates to reach the proxy (often the case in enterprise networks
where class A 10.0.0.0/8 is in fact sub-divided into smaller networks, each
one of them in a different location, eg. 10.1.0.0/16 in a place, while
10.2.0.0/16 would be on the other side of the world). Not being in the same
subnet does not mean the proxy is not available.

So we will build a mask with at most high bits set, which defines a network
that has both the local machine and the proxy. Because a machine may have
more than one interface, build a mask for each of them, removing 127.0.0.1
which is added automagically by tsocks, and removing duplicate masks.

If all of this does not work, then it means the local machine can NOT in fact
reach the proxy, which in turn means the user mis-configured something (most
probably a typo...).

/trunk/scripts/crosstool.sh | 61 52 9 0 +++++++++++++++++++++++++++++++++++++++++++--------
1 file changed, 52 insertions(+), 9 deletions(-)
yann@448
     1
# uClibc options
yann@448
     2
yann@448
     3
choice
yann@448
     4
    bool
yann@448
     5
    prompt "uClibc version"
yann@448
     6
yann@448
     7
config LIBC_V_snapshot
yann@448
     8
    bool
yann@448
     9
    prompt "latest snapshot"
yann@448
    10
yann@448
    11
config LIBC_V_specific_date
yann@448
    12
    bool
yann@448
    13
    prompt "<specific date>"
yann@448
    14
yann@448
    15
config LIBC_V_0_9_28
yann@448
    16
    bool
yann@448
    17
    prompt "0.9.28 (OBSOLETE)"
yann@448
    18
    depends on OBSOLETE
yann@448
    19
yann@448
    20
config LIBC_V_0_9_28_1
yann@448
    21
    bool
yann@448
    22
    prompt "0.9.28.1 (OBSOLETE)"
yann@448
    23
    depends on OBSOLETE
yann@448
    24
yann@448
    25
config LIBC_V_0_9_28_2
yann@448
    26
    bool
yann@448
    27
    prompt "0.9.28.2 (OBSOLETE)"
yann@448
    28
    depends on OBSOLETE
yann@448
    29
yann@448
    30
config LIBC_V_0_9_28_3
yann@448
    31
    bool
yann@448
    32
    prompt "0.9.28.3"
yann@448
    33
yann@448
    34
config LIBC_V_0_9_29
yann@448
    35
    bool
yann@448
    36
    prompt "0.9.29"
yann@448
    37
yann@448
    38
# CT_INSERT_VERSION_ABOVE
yann@448
    39
# Don't remove above line!
yann@448
    40
endchoice
yann@448
    41
yann@448
    42
config LIBC_VERSION
yann@448
    43
    string
yann@448
    44
    prompt "Enter date (YYYYMMDD)" if LIBC_V_specific_date
yann@448
    45
    default "snapshot" if LIBC_V_snapshot
yann@448
    46
    default "0.9.28" if LIBC_V_0_9_28
yann@448
    47
    default "0.9.28.1" if LIBC_V_0_9_28_1
yann@448
    48
    default "0.9.28.2" if LIBC_V_0_9_28_2
yann@448
    49
    default "0.9.28.3" if LIBC_V_0_9_28_3
yann@448
    50
    default "0.9.29" if LIBC_V_0_9_29
yann@448
    51
# CT_INSERT_VERSION_STRING_ABOVE
yann@448
    52
# Don't remove above line!
yann@448
    53
    help
yann@448
    54
      Enter the date of the snapshot you want to use in the form: YYYYMMDD
yann@448
    55
      where YYYY is the 4-digit year, MM the 2-digit month and DD the 2-digit
yann@448
    56
      day in the month.
yann@448
    57
      
yann@448
    58
      Please note that uClibc site removes snapshots older than a month.
yann@448
    59
yann@448
    60
choice
yann@448
    61
    bool
yann@448
    62
    prompt "Debug level"
yann@448
    63
    default LIBC_UCLIBC_DEBUG_LEVEL_0
yann@448
    64
yann@448
    65
config LIBC_UCLIBC_DEBUG_LEVEL_0
yann@448
    66
    bool
yann@448
    67
    prompt "none"
yann@448
    68
yann@448
    69
config LIBC_UCLIBC_DEBUG_LEVEL_1
yann@448
    70
    bool
yann@448
    71
    prompt "minimal"
yann@448
    72
yann@448
    73
config LIBC_UCLIBC_DEBUG_LEVEL_2
yann@448
    74
    bool
yann@448
    75
    prompt "all"
yann@448
    76
yann@448
    77
endchoice
yann@448
    78
yann@448
    79
config LIBC_UCLIBC_DEBUG_LEVEL
yann@448
    80
    int
yann@448
    81
    default 0 if LIBC_UCLIBC_DEBUG_LEVEL_0
yann@448
    82
    default 1 if LIBC_UCLIBC_DEBUG_LEVEL_1
yann@448
    83
    default 2 if LIBC_UCLIBC_DEBUG_LEVEL_2
yann@448
    84
yann@448
    85
config LIBC_UCLIBC_CONFIG_FILE
yann@448
    86
    string
yann@448
    87
    prompt "Configuration file"
yann@448
    88
    default ""
yann@448
    89
    help
yann@448
    90
      Path to the configuration file.
yann@448
    91
      
yann@448
    92
      You _must_ provide one (for now).
yann@448
    93
yann@448
    94
config LIBC_UCLIBC_LOCALES
yann@448
    95
    bool
yann@448
    96
    prompt "Add support for locales"
yann@448
    97
    default n
yann@448
    98
    help
yann@448
    99
      Say y if you want uClibc to support localisation.
yann@448
   100
yann@448
   101
      Note that seems to be broken on recent uClibc releases.