net/stc: New port - Syncthing CLI

This commit is contained in:
Kevin Bowling 2022-11-17 13:37:33 -07:00
parent 3addd2c76f
commit ef05af24b9
4 changed files with 43 additions and 0 deletions

View File

@ -1457,6 +1457,7 @@
SUBDIR += ssldump
SUBDIR += sslh
SUBDIR += ssspl
SUBDIR += stc
SUBDIR += stone
SUBDIR += storj
SUBDIR += stund

26
net/stc/Makefile Normal file
View File

@ -0,0 +1,26 @@
PORTNAME= stc
PORTVERSION= 1.4
CATEGORIES= net
MAINTAINER= kbowling@FreeBSD.org
COMMENT= Syncthing CLI Tool
WWW= https://github.com/tenox7/stc
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= go:modules
USE_GITHUB= yes
GH_ACCOUNT= tenox7
GH_TUPLE= dustin:go-humanize:v1.0.0:dustin_go_humanize/vendor/github.com/dustin/go-humanize \
go-resty:resty:v2.7.0:go_resty_resty_v2/vendor/github.com/go-resty/resty/v2 \
golang:net:99673261e6eb:golang_net/vendor/golang.org/x/net \
hako:durafmt:5c1018a4e16b:hako_durafmt/vendor/github.com/hako/durafmt
PLIST_FILES= bin/stc
post-patch:
@${REINPLACE_CMD} -e 's|"homedir", ""|"homedir", "${LOCALBASE}/etc/syncthing"|' ${WRKSRC}/stc.go
.include <bsd.port.mk>

11
net/stc/distinfo Normal file
View File

@ -0,0 +1,11 @@
TIMESTAMP = 1668716754
SHA256 (tenox7-stc-1.4_GH0.tar.gz) = 5bae51e0fa34311c1ec9e2798badc6fb8b6333485d295beb8631936faeaeb1dc
SIZE (tenox7-stc-1.4_GH0.tar.gz) = 10810
SHA256 (dustin-go-humanize-v1.0.0_GH0.tar.gz) = e4540bd50ac855143b4f2e509313079c50cf5d8774f09cc10dbca5ae9803d8ba
SIZE (dustin-go-humanize-v1.0.0_GH0.tar.gz) = 17260
SHA256 (go-resty-resty-v2.7.0_GH0.tar.gz) = 9afa2ab22afb81b4ff7275f5a2cb055b1bf3b19ff9506036f35c85ec0465beee
SIZE (go-resty-resty-v2.7.0_GH0.tar.gz) = 2644943
SHA256 (golang-net-99673261e6eb_GH0.tar.gz) = d510c40d6888589063dd5a9c6c08aee8c6b841d7ba46098758ada330e0adc923
SIZE (golang-net-99673261e6eb_GH0.tar.gz) = 1262432
SHA256 (hako-durafmt-5c1018a4e16b_GH0.tar.gz) = dde0e91c9bb3b662c74b86ef6ae28f72f795a59051ba5b8254ba0402ce714ccf
SIZE (hako-durafmt-5c1018a4e16b_GH0.tar.gz) = 9790

5
net/stc/pkg-descr Normal file
View File

@ -0,0 +1,5 @@
Stc is a command line tool for Syncthing. It can be used to quickly check
status of Syncthing from a terminal / command line without need of a Web
Browser. For example on a remote machine over ssh, without port forwarding or
if you have large number of machines to query. Also run from a script,
crontab, scheduled task, etc.