# -*- 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
PortGroup           legacysupport   1.1

go.setup            github.com/gravitational/teleport 13.2.3 v
# Delete this on next update to use golang PortGroup's default ('archive')
github.tarball_from tarball
revision            0

homepage            http://gravitational.com/teleport

description         Teleport SSH server and Certificate Authority

long_description    \
    Teleport is a modern SSH server and CA for managing clusters that \
    provides secure login with certificate-based access, 2-factor \
    authentication, session logging and replay, integration with Google Apps \
    and other OAuth identity providers, and a Web UI.  Built on the Golang \
    SSH library, and compatible with OpenSSH

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

# Build process requires a git checkout
fetch.type          git

# Allow Go to fetch dependencies during build
go.offline_build no

depends_build-append \
                    port:cargo \
                    port:cbindgen \
                    port:rust \
                    port:yarn

depends_lib-append  port:go \
                    port:zip

build.cmd           make
build.target        full
use_parallel_build  no

destroot {
    foreach i [glob ${worksrcpath}/build/*] {
        xinstall ${i} ${destroot}${prefix}/bin/
    }
}

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