~ubuntu-branches/ubuntu/raring/ncbi-tools6/raring

« back to all changes in this revision

Viewing changes to doc/fwd_check.sh

  • Committer: Package Import Robot
  • Author(s): Aaron M. Ucko
  • Date: 2011-09-05 18:55:02 UTC
  • mfrom: (1.1.11 upstream)
  • Revision ID: package-import@ubuntu.com-20110905185502-iuvmoe65ytljhckn
Tags: 6.1.20110713-1
* New upstream release.
* debian/*.symbols: update accordingly.
* make/makeshlb.unx: link libcn3dOGL.so against -lm for sqrt.
* doc/man/*.1: update for new release.
* debian/rules:
  - (VIB): add asnmacro, as upstream takes care to publish binaries thereof.
  - Retire obsolete multiarch-unaware checks for libpthread.
  - Fully modernize Debhelper usage; in particular, transition to overrides.
* debian/compat: advance to 9 per rules modernization.
* debian/ncbi-tools-bin.install: add asnmacro.
* make/makenet.unx: link asnmacro only against libraries it directly needs.
* doc/man/asnmacro.1: give asnmacro a man page.
* doc/man/Psequin.1: list it in SEE ALSO.
* network/id1arch/idfetch.c: revert redundant change (from #295110).
* Convert to multiarch.
  - debian/rules: Install libraries (and ncbithr.o) to multiarch directories.
  - debian/lib*.install: match multiarch library paths.
  - debian/control:
    + Build-Depends: debhelper (>= 8.1.3~), implying a recent dpkg-dev.
    + Set Multi-Arch: as appropriate across the board, and specify
      Pre-Depends: ${misc:Pre-Depends} for runtime libraries.
* debian/*.lintian-overrides: drop leading slashes for Lintian 2.5.x.
* debian/control: Standards-Version: 3.9.2 (already compliant).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /bin/sh
2
 
# $Id: fwd_check.sh,v 1.57 2010/06/02 14:57:10 lavr Exp $
 
2
# $Id: fwd_check.sh,v 1.72 2011/07/08 19:18:56 lavr Exp $
3
3
# Author:   Denis Vakatov (vakatov@ncbi,nlm.nih.gov)
4
4
# Modified: Anton Lavrentiev (lavr@ncbi.nlm.nih.gov)
5
5
#
21
21
{
22
22
cat <<EOF
23
23
;130.14.25.13   5555    RETIRED
24
 
10.10.150.7     5555    INTERNAL
25
 
130.14.25.26    5555    INTERNAL
 
24
10.10.150.44    5555    INTERNAL
 
25
130.14.24.219   5555    INTERNAL
26
26
130.14.29.112   5860    RESERVED
27
 
130.14.29.112   5861    RESERVED
 
27
130.14.29.112   5861    OK
28
28
130.14.29.112   5862    RESERVED
29
29
130.14.29.112   5863    RESERVED
30
 
130.14.29.112   5864    OK
31
 
130.14.29.112   5865    OK
 
30
130.14.29.112   5864    RESERVED
 
31
130.14.29.112   5865    RESERVED
32
32
130.14.29.112   5866    RESERVED
33
33
130.14.29.112   5867    OK
34
34
130.14.29.112   5868    OK
35
 
130.14.29.112   5869    OK
36
 
130.14.29.112   5870    RESERVED
 
35
130.14.29.112   5869    RESERVED
 
36
130.14.29.112   5870    OK
37
37
130.14.29.112   4444    RETIRED
38
 
130.14.29.112   4445    RESERVED
 
38
130.14.29.112   4445    OK
39
39
130.14.29.112   4446    RESERVED
40
40
130.14.29.112   4447    RESERVED
41
 
130.14.29.112   4448    OK
42
 
130.14.29.112   4449    OK
 
41
130.14.29.112   4448    RESERVED
 
42
130.14.29.112   4449    RESERVED
43
43
130.14.29.112   4450    RESERVED
44
44
130.14.29.112   4451    OK
45
45
130.14.29.112   4452    OK
46
 
130.14.29.112   4453    OK
47
 
130.14.29.112   4454    RESERVED
 
46
130.14.29.112   4453    RESERVED
 
47
130.14.29.112   4454    OK
 
48
130.14.29.112   443     FB-OK
 
49
130.14.29.112   22      FB-OK
48
50
165.112.7.12    5860    RESERVED
49
51
165.112.7.12    5861    RESERVED
50
52
165.112.7.12    5862    OK
72
74
while read x_host x_port x_status ; do
73
75
  test "`echo $x_host | grep -c '^[;]'`" != "0"  &&  continue
74
76
  if [ "$x_port" -lt "5860" -o "$x_port" -gt "5870" ]; then
75
 
    test "$x_status" = "RESERVED"  &&  continue
76
 
    if [ _"$HTTP_CAF" = _"" -o _"$HTTP_CAF_EXTERNAL" != _"" ]; then
77
 
      test _"$HTTP_NCBI_RELAY" = _"" &&  continue
 
77
    if [ "$x_port" -ne "22" -a "$x_port" -ne "443" ]; then
 
78
      test "$x_status" = "RESERVED"  &&  continue
 
79
      if [ _"$HTTP_CAF" = _"" -o _"$HTTP_CAF_EXTERNAL" != _"" ]; then
 
80
        test _"$HTTP_NCBI_RELAY" = _"" &&  continue
 
81
      fi
78
82
    fi
79
83
  fi
80
 
  if [ "$x_status" = "RETIRED" -o "$x_status" = "RESERVED" ]; then
 
84
  if [ "$x_status" = "RETIRED" -o "$x_status" = "RESERVED" -o "$x_status" = "PENDING" ]; then
81
85
    printf '%s\t%-8s\n'         "${x_host}:${x_port}"   "$x_status"
82
86
    continue
83
87
  fi
 
88
  unset fb_port
 
89
  test "$x_status" = "FB-OK" && fb_port="TRUE"
84
90
  test "$x_status" = "READYING"  &&  unset x_status
85
91
  ( echo ; test -z "$netcat" && sleep ${delay_sec} ) | ${netcat:-telnet} $x_host $x_port >$temp 2>&1 &
86
92
  pid=$!
87
93
  trap 'rm -f $temp; kill $pid >/dev/null 2>&1' 1 2 15
88
 
  ( sleep `expr $delay_sec + 2`  &&  kill $pid ) >/dev/null 2>&1 &
 
94
  ( sleep `expr $delay_sec + 1`  &&  kill $pid ) >/dev/null 2>&1 &
89
95
  guard=$!
90
96
  wait $pid >/dev/null 2>&1
91
97
  kill $guard >/dev/null 2>&1
104
110
    else
105
111
      x_status=''
106
112
    fi
107
 
    printf '%s\t%-8s%s\n'       "${x_host}:${x_port}"   "${x_status:-FAILED}"   "${x_reason:+   }${x_reason}"
 
113
    status=${x_status:-FAILED}
 
114
    test ! -z "$fb_port" && status="FB-$status"
 
115
    printf '%s\t%-8s%s\n'       "${x_host}:${x_port}"   "${status}"     "${x_reason:+   }${x_reason}"
108
116
  fi
109
117
  rm -f $temp
110
118
done 2>&1 | grep -v 'Terminated'