# -*- 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.2 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  62dbb4dabab6465213a7ced08c74e6c7bbc67c42 \
                    sha256  7beafef432baecf76ef76f2ae022b5ada4ea7fad54e02ae7d192db85b42a496f \
                    size    6985625

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