# -*- 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

github.setup        drwetter testssl.sh 3.2.3 v
github.tarball_from archive
name                testssl
revision            0
categories          security
platforms           any
supported_archs     noarch
license             GPL-2
maintainers         {makr @mohd-akram} openmaintainer

description         Test TLS/SSL encryption anywhere on any port

long_description    testssl.sh is a free command line tool which checks a \
                    server's service on any port for the support of TLS/SSL \
                    ciphers, protocols as well as some cryptographic flaws.

homepage            https://testssl.sh

checksums           rmd160  c74c2de82572037ad041f2da401e9b5c634175e8 \
                    sha256  1c4bb10185a67592164eb870c717b8bdd03f290c8d68f9a8c658335ff5ac8b91 \
                    size    6996856

use_configure       no
build               {}

destroot {
    xinstall -d ${destroot}${prefix}/libexec/${name}
    copy ${worksrcpath}/testssl.sh ${worksrcpath}/etc \
        ${destroot}${prefix}/libexec/${name}
    ln -s ../libexec/${name}/testssl.sh ${destroot}${prefix}/bin/testssl.sh
    copy ${worksrcpath}/doc/testssl.1 ${destroot}${prefix}/share/man/man1/
}

github.livecheck.regex  {([0-9.]+)}
