mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
77 lines
3.7 KiB
Tcl
77 lines
3.7 KiB
Tcl
# -*- 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/subpop/mqttcli 0.2.8 v
|
|
revision 0
|
|
|
|
categories net
|
|
maintainers {sub-pop.net:link @subpop} openmaintainer
|
|
license GPL-3
|
|
|
|
description A simple MQTT command-line client
|
|
|
|
long_description mqttcli is a program that provides two subcommands (pub \
|
|
and sub) that allow command-line level access to an MQTT \
|
|
broker. \
|
|
sub subscribes to a topic and prints messages received to \
|
|
standard output. pub publishes the provided message to the \
|
|
provided topic. Both programs accept flags that can be \
|
|
provided as a config file.
|
|
|
|
checksums ${distname}${extract.suffix} \
|
|
rmd160 a1820ee71c2807c29ae854f513568b327a3d7777 \
|
|
sha256 e0d5359b1419d3e9509eea117c75ef4f8a22fc8e721856ce40ff956633d648a1 \
|
|
size 18178
|
|
|
|
depends_build-append port:asciidoc
|
|
|
|
build.target -o ${worksrcpath} ./cmd/sub ./cmd/pub
|
|
|
|
go.vendors golang.org/x/sync \
|
|
lock v0.17.0 \
|
|
rmd160 a00dd5b2e9d83097a0edf5cfd66eed7531542c28 \
|
|
sha256 9c955ca0cbae984640296cc3c0b01af9ee5a0ad21704e8022436db147b3db955 \
|
|
size 18199 \
|
|
golang.org/x/net \
|
|
lock v0.44.0 \
|
|
rmd160 b6fb6b5002931b96c4341859d1ad073e3973058f \
|
|
sha256 03b6ddb47443917a61c46248172971fba6378ea5d0219bc680af1fef976b5993 \
|
|
size 1503115 \
|
|
github.com/sgreben/flagvar \
|
|
lock v1.10.2 \
|
|
rmd160 c93a7f5339770c4221c61a0dacb80c4820d41b75 \
|
|
sha256 e2c89471f0c78afce6509070de1722dc4519842d2b3346bf90b6ee24a085261d \
|
|
size 17635 \
|
|
github.com/peterbourgon/ff \
|
|
lock v3.4.0 \
|
|
rmd160 758175c6809dfdd2a5b89c087271d1674f400477 \
|
|
sha256 cbb5a4f0e9eab6a47b4ab3f6376563d43e9dd117323e0bce4d901392cae43e9c \
|
|
size 30999 \
|
|
github.com/gorilla/websocket \
|
|
lock v1.5.3 \
|
|
rmd160 3c38c85e08c20fe93c0100bf884feb8fe45fbaed \
|
|
sha256 bbdca57ccb9369617abde8372d36f0b2ef7cf6208debdbb9ade97808d2ce42a7 \
|
|
size 54891 \
|
|
github.com/gobwas/glob \
|
|
lock v0.2.3 \
|
|
rmd160 1f472cf991498a8091446eb788fe85e0c5403185 \
|
|
sha256 2de3694ee0ff41a96b66f9aa3eec51048e620cdd09acc8685f18c3abcd6e14ae \
|
|
size 25971 \
|
|
github.com/eclipse/paho.mqtt.golang \
|
|
lock v1.5.1 \
|
|
rmd160 582568132dcbfaf1fb109f9332b04eafceda5050 \
|
|
sha256 66547f11ce6f568a9f0566d7704ffb5dff492e7c7048442b080bc0daf5c76d30 \
|
|
size 118646
|
|
|
|
post-build {
|
|
system "a2x --doctype manpage --format manpage --destination-dir ${worksrcpath} ${worksrcpath}/doc/sub.adoc"
|
|
system "a2x --doctype manpage --format manpage --destination-dir ${worksrcpath} ${worksrcpath}/doc/pub.adoc"
|
|
}
|
|
|
|
destroot {
|
|
xinstall -W ${worksrcpath} pub sub ${destroot}${prefix}/bin/
|
|
xinstall -W ${worksrcpath} -m 0644 pub.1 sub.1 ${destroot}${prefix}/share/man/man1/
|
|
}
|