# -*- 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.1.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  53c30f32ba11aa56bd40961b87c09ff98064394d \
                    sha256  485ec335cbf51ff418590a94033aae7b8e8d10c73ff9c61243602a27bfd9f9f0 \
                    size    163731

depends_lib-append  port:curl \
                    port:zlib

platform darwin {
    configure.cppflags-append -DETH_ALEN=ETHER_ADDR_LEN
}

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}
}

