# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

PortSystem          1.0

name                tcpick
version             0.2.1
revision            2
checksums           rmd160  8d4dd48c639e52ef681cd64c366a99c296171f06 \
                    sha256  cf3c3814518f5565df3884d07e1e3015d88ac1dbfe3885635dd6e67d6ce46dd2 \
                    size    175871

categories          net
license             GPL-2+
maintainers         nomaintainer

description         a tcp stream sniffer, tracker and capturer
long_description \
    tcpick is a textmode sniffer libpcap-based that can track, \
    reassemble and reorder tcp streams. Tcpick is able to save \
    the captured flows in different files or displays them in \
    the terminal, and so it is useful to sniff files that are \
    transmitted via ftp or http. It can display all the stream \
    on the terminal, when the connection is closed in different \
    display modes like hexdump, hexdump + ascii, only printable \
    charachters, raw mode and so on. Available a color mode \
    too, helpful to read and understand better the output of \
    the program. Actually it can handle several interfaces, \
    including ethernet cards and ppp. It is useful to keep \
    track of what users of a network are doing, and is usable \
    with textmode tools like grep, sed, awk.

homepage            http://tcpick.sourceforge.net/
master_sites        sourceforge:project/${name}/${name}/${version}

depends_lib         port:libpcap

patch.pre_args-replace  -p0 -p1
patchfiles-append   implicit.patch

# More patches from tcpick_0.2.1-10.debian.tar.xz
patchfiles-append   avoid-implicitly-converted-pointers.patch \
                    fix-spelling-errors.patch \
                    CVE-2006-0048.patch \
                    fix-double-free-error.patch \
                    fix-infinite-loop-on-powerpc.patch \
                    fix-man-invocation.patch \
                    fix-build-with-gcc5.patch \
                    set-timestamp-pcap-header-structure.patch \
                    fix-gcc-10.patch

configure.args      --mandir=${prefix}/share/man
