# -*- 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/go-acme/lego 5.3.1 v
go.offline_build    no
go.toolchain_min    1.25.0
revision            0

homepage            https://go-acme.github.io/lego

description         Let's Encrypt client and ACME library written in Go

long_description    {*}${description}. Supports ACME v2 RFC 8555.  Allows \
                    registering with a CA, obtaining certificates (both from \
                    scratch, or with an existing CSR), renewing certificates, \
                    revoking certificates, SAN certificate support, support \
                    for ACME challenges (HTTP, DNS, TLS), certificate \
                    bundling, and more.

categories          security www
installs_libs       no
license             MIT
maintainers         {gmail.com:herby.gillot @herbygillot} \
                    openmaintainer

build.cmd           make
build.pre_args      VERSION=v${version}
build.args          build

checksums           rmd160  d24bce67876e38bde316bca757104388dd095675 \
                    sha256  4692d2481042349c758eb0f7ee04904c4e1c26afc145e25b0833a42777c5ee72 \
                    size    1280270

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