# -*- 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/smallstep/certificates 0.28.4 v
name                step-ca
revision            0

description         A private certificate authority (X.509 & SSH) & ACME \
                    server for secure automated certificate management, so \
                    you can use TLS everywhere & SSO for SSH.

long_description    step-ca is an online Certificate Authority (CA) for secure, \
                    automated X.509 and SSH certificate management. It's the \
                    server counterpart to step CLI. It is secured with TLS, and \
                    it offers several configurable certificate provisioners, \
                    flexible certificate templating, and pluggable database backends \
                    to suit a wide variety of contexts and workflows. It employs sane \
                    default algorithms and attributes, so you don't have to be a \
                    security engineer to use it securely.

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

# Allow fetching deps at build time
go.offline_build no

checksums           rmd160  f93c9e073d70418a652a98c598290bfd3d0c419d \
                    sha256  0914b952f3aed3dc868c61c5acd49a77ceaa065c016359a22093e3d2ddcf49d5 \
                    size    890184

build.cmd           make
build.target        build GO_ENVS="CGO_ENABLED=1"

destroot {
    foreach stepca_bin [glob ${worksrcpath}/bin/step-*] {
        xinstall -m 0755 ${stepca_bin} ${destroot}${prefix}/bin/
    }
}

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