# -*- 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           github 1.0
PortGroup           golang 1.0

go.setup            github.com/Septrum101/zteOnu 0.1.3 v
name                zteonu
revision            0

categories          net sysutils
maintainers         @wu21-web openmaintainer
license             AGPL-3

description         A tool that can open ZTE onu device factory mode
long_description    zteOnu opens factory mode on ZTE ONU devices through the \
                    webFac interface and can enable permanent telnet access.

checksums           rmd160  cd564f56eb8b624cf6b234f7d9cce985c1e4d558 \
                    sha256  fa35ffc5681c4944298cc54dfa0507e9895ba9d097046d0e7465bb23eeb3551a \
                    size    31607

go.package          github.com/septrum101/zteOnu
go.offline_build    no
go.toolchain_min    1.26

build.pre_args      -trimpath -o ${name} -ldflags '-s -w -X ${go.package}/version.version=${version}'

destroot {
    xinstall -m 0755 ${worksrcpath}/${name} ${destroot}${prefix}/bin
    xinstall -d ${destroot}${prefix}/share/doc/${name}
    xinstall -m 0644 -W ${worksrcpath} LICENSE README.md \
        ${destroot}${prefix}/share/doc/${name}
}
