Changeset 5916995


Ignore:
Timestamp:
2009-06-07T19:40:45Z (10 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
25dfb16
Parents:
b6dd429
Message:

Fixed free port detection code in debian/config which was a bit limited
and also buggy.

Location:
debian
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • debian/changelog

    rb6dd429 r5916995  
    55  * Fixed bitlbee.deb dep in bitlbee-dev to deal with binary NMUs.
    66    (Closes: #531219)
    7 
    8  -- Wilmer van der Gaast <wilmer@gaast.net>  Sun, 07 Jun 2009 20:04:45 +0100
     7  * Fixed free port detection code in debian/config which was a bit limited
     8    and also buggy.
     9
     10 -- Wilmer van der Gaast <wilmer@gaast.net>  Sun, 07 Jun 2009 20:40:00 +0100
    911
    1012bitlbee (1.2.3-1) unstable; urgency=critical
  • debian/config

    rb6dd429 r5916995  
    77db_get bitlbee/serveport
    88if [ "$RET" = "stillhavetoask" ]; then
    9         if netstat -ltn | grep ':6667' 2> /dev/null > /dev/null; then
    10                 port=6668;
    11         else
    12                 port=6667;
    13         fi
     9        listens=$(netstat -ltn | awk '{print $4}')
     10        for port in 6667 6666 6668 6669; do
     11                if [ $(expr "$listens " : ".*:$port\s") = "0" ]; then
     12                        break
     13                fi
     14        done
    1415        db_set bitlbee/serveport $port;
    1516fi
Note: See TracChangeset for help on using the changeset viewer.