# -*- 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.0.9 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  b9c02bbb9967f0417664d79ef6dba4165f18de94 \
                    sha256  75ecbe4470e74f9ad17f4c4ac733be123b0f67d676ed24cc2b30adb41561e05f \
                    size    9381651

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