# -*- 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/StackExchange/dnscontrol 4.27.1 v
go.offline_build    no
revision            0

checksums           rmd160  40c06a114111050948ef1b51949fadd00f98a0da \
                    sha256  42d4202658f7173b15110ce3201efbf25efdf2910cd75ee60a57a4435c8eb8e6 \
                    size    5105948

homepage            https://dnscontrol.org

description         Synchronize your DNS to multiple providers from a simple DSL

long_description    \
    DNSControl is a system for maintaining DNS zones. It has two parts: a \
    domain specific language (DSL) for describing DNS zones plus software \
    that processes the DSL and pushes the resulting zones to DNS providers \
    such as Route53, Cloudflare, and Gandi. It can send the same DNS records \
    to multiple providers. It even generates the most beautiful BIND zone \
    files ever. It runs anywhere Go runs (Linux, macOS, Windows). The \
    provider model is extensible, so more providers can be added.

livecheck.url       ${github.homepage}/releases

categories          sysutils
installs_libs       no
license             MIT
maintainers         nomaintainer


build.args-append   -ldflags \"-s -w \
                                -X main.Version=${version} \
                                -X main.SHA=MacPorts \
                            \"

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