From nobody Thu Nov 17 20:38:20 2022 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4NCsF91VfVz4dLGP; Thu, 17 Nov 2022 20:38:21 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4NCsF910dFz3ByD; Thu, 17 Nov 2022 20:38:21 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1668717501; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=QZo4h7x8p8Z4B74mzZB1truRZmaaSohcQ65YduolBuQ=; b=ZKJCMm6xmNBNrvsmARFwLBG+u/2z3uYlmmQlaaYElVLIL9aQ/d9L92PcGALIPSZZl/xdOd kFuLoIlzNWYKIcWKB8tz+OYEg0OTUUgeYqHz5KlCNpYxgMTO78F/HI5CnZTEwrDQGVm4EU 1vbWdb0FOpgXGEMMApnr3nZpZziTAb2COoc3MdRXojGLOF0xdAIupNdVpp1u50ex/fSRtv vzI2theHrIxYBc2BErYpQEnbWuyYv1yxO49RGR2T7PZ9QFoYjCbqFkB26J1yTE+9TWhAST pR61KlT4PsDKzLyBNGgjMcHmW94ZZbDdld7lU+IjlpwvxS9FQ2MMlwkNMAmg5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1668717501; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=QZo4h7x8p8Z4B74mzZB1truRZmaaSohcQ65YduolBuQ=; b=Ny0HeukP6v8XbZU9DOquGEm4P758syyAoZRGgwP1zP+0nSrCALd4gBQk5X4EVu1XFWNjyp BbXUjgqlUQ6VthKv5jL+UN6WaTvf8pB1reDVzkzgFtkEvuwINvXCJ/YSSWzOlfCWdxEV9+ 0zVkshzrR2WvQ0pYerLkTB+5A3mdNqtx0UkLsSnUm5V3EAKVrO/+XpnW++sgd3GFRN/wpp U5tnGgqc35VBSy9EB3AtYS7bTkuNyZwBidU60LdlybtBtuOpL5Cz9TlNhk6wDlNhVTWwRm 5bZaUfCAlBxuBMv8Hqdr2KBdc7QS9FH8zenhTdusHCXSXV2Qir5pWUli/umFgw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1668717501; a=rsa-sha256; cv=none; b=qf6pI6jYOy75qYRq+EfyZvBGorCajEjJ15sXeYQ2B8Q9X2ytZbSI9GxNCD2ddK5a8/dPRA SCE5BygbFQ/KWY0BSbM853rCswqNFmkveH5PFTUitHmR6JaXnZJD9wiwzqan+3ZArBAswG RnDUDnFHmB/OCN+j0UdWRC91xM+i1GbcUOrZcORAOzYTyQhfQNdi2+y5WMhqKrzLUJdepF 1GI9WD9Bz9mel/ys9jgykJa+cM5SvZBPGRscYgV3fBO72erPv3qyHxhfOPd4yrC5Abv6f1 6kywelCccmPNHs5J5JizJPSVpe7xMa+k5RU3SUmwaIUtqIlllGo/nDYuZyl/Mw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4NCsF874L8zvPS; Thu, 17 Nov 2022 20:38:20 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 2AHKcKIh067306; Thu, 17 Nov 2022 20:38:20 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2AHKcKYe067305; Thu, 17 Nov 2022 20:38:20 GMT (envelope-from git) Date: Thu, 17 Nov 2022 20:38:20 GMT Message-Id: <202211172038.2AHKcKYe067305@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Kevin Bowling Subject: git: ef05af24b96d - main - net/stc: New port - Syncthing CLI List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kbowling X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: ef05af24b96df5cf4b4a879b4e018ebc631e038f Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by kbowling: URL: https://cgit.FreeBSD.org/ports/commit/?id=ef05af24b96df5cf4b4a879b4e018ebc631e038f commit ef05af24b96df5cf4b4a879b4e018ebc631e038f Author: Kevin Bowling AuthorDate: 2022-11-17 20:37:33 +0000 Commit: Kevin Bowling CommitDate: 2022-11-17 20:37:33 +0000 net/stc: New port - Syncthing CLI --- net/Makefile | 1 + net/stc/Makefile | 26 ++++++++++++++++++++++++++ net/stc/distinfo | 11 +++++++++++ net/stc/pkg-descr | 5 +++++ 4 files changed, 43 insertions(+) diff --git a/net/Makefile b/net/Makefile index 562d45659075..bcfc9d5d68e7 100644 --- a/net/Makefile +++ b/net/Makefile @@ -1457,6 +1457,7 @@ SUBDIR += ssldump SUBDIR += sslh SUBDIR += ssspl + SUBDIR += stc SUBDIR += stone SUBDIR += storj SUBDIR += stund diff --git a/net/stc/Makefile b/net/stc/Makefile new file mode 100644 index 000000000000..7329086caf0f --- /dev/null +++ b/net/stc/Makefile @@ -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 + diff --git a/net/stc/distinfo b/net/stc/distinfo new file mode 100644 index 000000000000..f8d8bced0bbe --- /dev/null +++ b/net/stc/distinfo @@ -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 diff --git a/net/stc/pkg-descr b/net/stc/pkg-descr new file mode 100644 index 000000000000..db0832115093 --- /dev/null +++ b/net/stc/pkg-descr @@ -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.