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

go.setup            github.com/zmap/zlint 3.6.5 v
go.offline_build    no
revision            0

description         \
    X.509 Certificate Linter focused on Web PKI standards and requirements.

long_description    \
    {*}${description} ZLint is a X.509 certificate linter written in Go that \
    checks for consistency with standards \(e.g. RFC 5280\) and other \
    relevant PKI requirements \(e.g. CA\/Browser Forum Baseline Requirements\).

categories          security
installs_libs       no
license             Apache-2
maintainers         {gmail.com:herby.gillot @herbygillot} \
                    openmaintainer

checksums           rmd160  709f436b6954ca40a701037e51a687a652416bfb \
                    sha256  ce73c3fb8daaad3b4a41473a970e80425d714477d2ef0a6b91829adc1875197b \
                    size    1930420

build.pre_args-append \
                    -C v3 \
                    -ldflags \"-X main.version=${version}\"
build.args          ./cmd/${name}

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

destroot {
    xinstall -m 0755 ${worksrcpath}/v3/${name} ${destroot}${prefix}/bin/
}