# -*- 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/hashicorp/consul 1.21.4 v
go.offline_build    no
revision            0

homepage            https://www.consul.io

description         \
    Consul is a distributed service mesh to connect, secure, and configure \
    services across any runtime platform and public or private cloud.

long_description    \
    Consul is a service mesh solution providing a full featured control plane \
    with service discovery, configuration, and segmentation functionality. \
    Each of these features can be used individually as needed, or they can be \
    used together to build a full service mesh.  Consul requires a data plane \
    and supports both a proxy and native integration model. Consul ships with \
    a simple built-in proxy so that everything works out of the box, but also \
    supports 3rd party proxy integrations such as Envoy.

categories          net
installs_libs       no
# Hashicorp Terraform is now licensed under the BSL
# https://www.hashicorp.com/license-faq#aug-10-announcement
license             Commercial Permissive
maintainers         {gmail.com:herby.gillot @herbygillot} \
                    openmaintainer

# Consul's build process requires the git repository.
fetch.type          git

# The "dev" build target must be used to build just the binary for this
# platform, instead of for ALL platforms
# - https://www.consul.io/docs/install/index.html#compiling-from-source
build.cmd           make
build.target        dev

use_parallel_build  no

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

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