# -*- 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                dnscap
version             141
categories          net
platforms           darwin
maintainers         nomaintainer
license             ISC

description         DNS network traffic capture utility
long_description    ${description}

homepage            https://dnscap.dns-oarc.net/
master_sites        ${homepage}

checksums           sha1    b034dcb8aeb6ecbf5c3d12e3dc82dcee40a6e382 \
                    rmd160  5bdb8851fda74904347106fcc0a9c9dfa719f63c

patchfiles          patch-dump_dns.c.diff

depends_lib         port:libpcap port:libbind

destroot {
    xinstall -W ${worksrcpath} ${name} ${destroot}${prefix}/bin/
    xinstall -W ${worksrcpath} ${name}.1 ${destroot}${prefix}/share/man/man1/
}

livecheck.url       ${master_sites}
livecheck.type      regex
livecheck.regex     ${name}-(\\d+)