# -*- 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
PortGroup           golang 1.0

go.setup            github.com/gcla/termshark 2.4.0 v
go.package          github.com/gcla/termshark/v2
revision            0

homepage            https://termshark.io

description         A terminal UI for tshark, inspired by Wireshark

long_description    {*}${description}. Read pcap files or sniff live \
                    interfaces (where tshark is permitted), filter pcaps or \
                    live captures using Wireshark's display filters, \
                    reassemble and inspect TCP and UDP flows View network \
                    conversations by protocol, and copy ranges of packets to \
                    the clipboard from the terminal.

categories          net
installs_libs       no
license             MIT
maintainers         {gmail.com:herby.gillot @herbygillot} \
                    openmaintainer

checksums           rmd160  b6e07d7d8dac629f034bab6f435a8be47932c137 \
                    sha256  949c71866fcd2f9ed71a754ea9e3d1bdc23dee85969dcdc78180f1d18ca8b087 \
                    size    427503

depends_run-append  path:bin/tshark:wireshark3

# Allow Go to fetch deps at build time
go.offline_build no

build.pre_args      -ldflags '-X termshark.Version=v${version}'
build.args          ./cmd/termshark

destroot {
    xinstall -m 0755 ${worksrcpath}/${name} ${destroot}${prefix}/bin/
}
