# -*- 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           github 1.0
PortGroup           makefile 1.0
PortGroup           openssl 1.0

github.setup        ZerBea hcxtools 8.0.0
github.tarball_from archive
revision            0

categories          security net
license             MIT
maintainers         {i0ntempest @i0ntempest} openmaintainer

description         Tools to convert wireless captures to hash formats
long_description    A suite of tools to convert and inspect wireless capture \
                    files and hash files for use with Hashcat and John the \
                    Ripper. Includes hcxpcapngtool, hcxhashtool, hcxhash2cap, \
                    and related utilities.

checksums           rmd160  cdbb53633faca58cac0cc669dbf123094c998133 \
                    sha256  4cc9dfe7ab2c7d5cc5f39f887741499b146ee14d0a50bda8113025a0041b3c1e \
                    size    164699

depends_lib-append  port:curl \
                    port:zlib

openssl.branch      3
openssl.configure   pkgconfig

post-destroot {
    xinstall -m 0644 ${worksrcpath}/man/hcxtools.1 \
        ${destroot}${prefix}/share/man/man1
    set docdir ${destroot}${prefix}/share/doc/${name}
    xinstall -d ${docdir}
    xinstall -m 0644 ${worksrcpath}/README.md ${worksrcpath}/changelog \
        ${worksrcpath}/license.txt ${docdir}
}

