# -*- 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/iximiuz/cdebug 0.0.19 v
go.offline_build    no
go.toolchain_min    1.25.0
revision            0

description         A swiss army knife of container debugging

long_description    \
    {*}${description}. With this tool you can troubleshoot containers lacking \
    shell and/or debugging tools, forward unpublished or even localhost ports \
    to your host system, expose endpoints from the host system to containers \
    & Kubernetes networks, handily export image's and/or container's \
    filesystem to local folders, and more.

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

checksums           rmd160  574a27a8472e0709d3df76577cc9bb6fe357dc41 \
                    sha256  9bc1779fb342029e2e7b53ac4708ac939d2d55914974752cd64b040617c3b496 \
                    size    328857

build.args-append   \
    -ldflags=\" -X \'main.version=${github.tag_prefix}${version}\' \"

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