# -*- 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/rancher/rke 1.7.1 v
# Delete this on next update to use golang PortGroup's default ('archive')
github.tarball_from tarball
revision            0
categories          devel
license             Apache-2
maintainers         {emcrisostomo @emcrisostomo} \
                    openmaintainer

description         Rancher Kubernetes Engine (RKE), an extremely simple, \
                    lightning fast Kubernetes distribution that runs \
                    entirely within containers.
long_description    Rancher Kubernetes Engine (RKE) is a CNCF-certified \
                    Kubernetes distribution that runs entirely within \
                    Docker containers. It works on bare-metal and \
                    virtualized servers. RKE solves the problem of \
                    installation complexity, a common issue in the \
                    Kubernetes community.  With RKE, the installation \
                    and operation of Kubernetes is both simplified and \
                    easily automated, and it’s entirely independent of \
                    the operating system and platform you’re running. \
                    As long as you can run a supported version of \
                    Docker, you can deploy and run Kubernetes with RKE.

checksums           rmd160  a25dc16233916fbdb63a15bc75665eb359916737 \
                    sha256  5c6dfbc342488bbb3d922d594279523c181cacce0eba297a800edad994da678b \
                    size    3427675

# Allow deps to fetched at build time
go.offline_build no
build.target        github.com/rancher/rke

pre-build {
    build.cmd ${go.bin} build -ldflags \
        "\"-w -X main.VERSION=v${version}\""
}

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

github.livecheck.regex  {([^"r]+)}
