From 7ac568ac0a1cd10907ffcb7b648847f2eefc8c88 Mon Sep 17 00:00:00 2001
From: Koichiro Iwao
Date: Tue, 16 Jun 2020 02:19:24 +0000
Subject: [PATCH] New port: net/librespeed-cli: Command line client for
LibreSeed
This is the CLI part of LibreSpeed which is a very lightweight speedtest.
With the CLI it's possible to run a speedtest from the command line interface.
The server part can be found in www/librespeed.
WWW: https://github.com/librespeed/speedtest-cli
PR: 246609
Submitted by: Dries Michiels
---
net/Makefile | 1 +
net/librespeed-cli/Makefile | 37 ++++++++++++++++++++++++++++++++++++
net/librespeed-cli/distinfo | 33 ++++++++++++++++++++++++++++++++
net/librespeed-cli/pkg-descr | 5 +++++
4 files changed, 76 insertions(+)
create mode 100644 net/librespeed-cli/Makefile
create mode 100644 net/librespeed-cli/distinfo
create mode 100644 net/librespeed-cli/pkg-descr
diff --git a/net/Makefile b/net/Makefile
index 6d1d676dd4bb..2997c46954f0 100644
--- a/net/Makefile
+++ b/net/Makefile
@@ -395,6 +395,7 @@
SUBDIR += libproxy-python
SUBDIR += libproxy-webkit3
SUBDIR += librdkafka
+ SUBDIR += librespeed-cli
SUBDIR += librespeed-go
SUBDIR += librsync
SUBDIR += libsignal
diff --git a/net/librespeed-cli/Makefile b/net/librespeed-cli/Makefile
new file mode 100644
index 000000000000..6cee13542189
--- /dev/null
+++ b/net/librespeed-cli/Makefile
@@ -0,0 +1,37 @@
+# $FreeBSD$
+
+PORTNAME= librespeed-cli
+DISTVERSIONPREFIX= v
+DISTVERSION= 1.0.6
+CATEGORIES= net www
+
+MAINTAINER= driesm.michiels@gmail.com
+COMMENT= CLI interface to run librespeed speedtests
+
+LICENSE= LGPL3
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+USES= go:modules
+
+USE_GITHUB= YES
+GH_ACCOUNT= librespeed
+GH_PROJECT= speedtest-cli
+GH_TUPLE= briandowns:spinner:v1.9.0:briandowns_spinner/vendor/github.com/briandowns/spinner \
+ cpuguy83:go-md2man:f79a8a8ca69d:cpuguy83_go_md2man_v2/vendor/github.com/cpuguy83/go-md2man/v2 \
+ fatih:color:v1.7.0:fatih_color/vendor/github.com/fatih/color \
+ gocarina:gocsv:87c60d755c58:gocarina_gocsv/vendor/github.com/gocarina/gocsv \
+ golang:net:0de0cce0169b:golang_net/vendor/golang.org/x/net \
+ golang:sys:953cdadca894:golang_sys/vendor/golang.org/x/sys \
+ konsorten:go-windows-terminal-sequences:v1.0.1:konsorten_go_windows_terminal_sequences/vendor/github.com/konsorten/go-windows-terminal-sequences \
+ maddie:go-ping:5e9a13ec8da6:maddie_go_ping/vendor/github.com/sparrc/go-ping \
+ mattn:go-colorable:v0.1.2:mattn_go_colorable/vendor/github.com/mattn/go-colorable \
+ mattn:go-isatty:v0.0.8:mattn_go_isatty/vendor/github.com/mattn/go-isatty \
+ russross:blackfriday:v2.0.1:russross_blackfriday_v2/vendor/github.com/russross/blackfriday/v2 \
+ shurcooL:sanitized_anchor_name:v1.0.0:shurcool_sanitized_anchor_name/vendor/github.com/shurcooL/sanitized_anchor_name \
+ sirupsen:logrus:v1.4.2:sirupsen_logrus/vendor/github.com/sirupsen/logrus \
+ stretchr:testify:v1.3.0:stretchr_testify/vendor/github.com/stretchr/testify \
+ urfave:cli:v2.1.1:urfave_cli_v2/vendor/github.com/urfave/cli/v2
+
+PLIST_FILES= bin/librespeed-cli
+
+.include
diff --git a/net/librespeed-cli/distinfo b/net/librespeed-cli/distinfo
new file mode 100644
index 000000000000..8c9a46e0db0d
--- /dev/null
+++ b/net/librespeed-cli/distinfo
@@ -0,0 +1,33 @@
+TIMESTAMP = 1589984366
+SHA256 (librespeed-speedtest-cli-v1.0.6_GH0.tar.gz) = da126f60086805e7939cb5d5b7b34ed2892e24deeddcb2e9f7c91a82d260d2f7
+SIZE (librespeed-speedtest-cli-v1.0.6_GH0.tar.gz) = 23867
+SHA256 (briandowns-spinner-v1.9.0_GH0.tar.gz) = 1fee58fd24d4211cf6eeebfe2970be20c8b8bd4cf864e62e89fe4321f2a2a1ad
+SIZE (briandowns-spinner-v1.9.0_GH0.tar.gz) = 1324438
+SHA256 (cpuguy83-go-md2man-f79a8a8ca69d_GH0.tar.gz) = c117a3e3741ea39016b678b24db19b1f766277bac7c1c6d721237bb159610178
+SIZE (cpuguy83-go-md2man-f79a8a8ca69d_GH0.tar.gz) = 52020
+SHA256 (fatih-color-v1.7.0_GH0.tar.gz) = 4650d7aa3feed266fc85d91dc34ca9cffdf7ee03ea29bf2cbf84bbecc75fb755
+SIZE (fatih-color-v1.7.0_GH0.tar.gz) = 816449
+SHA256 (gocarina-gocsv-87c60d755c58_GH0.tar.gz) = b20c5aa4016d3491bc33b981b00c357ac75604e1613e399672153de6a5cd06ed
+SIZE (gocarina-gocsv-87c60d755c58_GH0.tar.gz) = 18664
+SHA256 (golang-net-0de0cce0169b_GH0.tar.gz) = 74c2cbbb7d9fbbb024dea88d3003939d5e394f0e01dbbf8c431fd90a82f1cd56
+SIZE (golang-net-0de0cce0169b_GH0.tar.gz) = 1172526
+SHA256 (golang-sys-953cdadca894_GH0.tar.gz) = fb56f244784dac7e7f66fc0ff9f5ff6adbd49ccb8f3625285e6e39254b64c12f
+SIZE (golang-sys-953cdadca894_GH0.tar.gz) = 1353286
+SHA256 (konsorten-go-windows-terminal-sequences-v1.0.1_GH0.tar.gz) = e36c5a5de388bf72db3037b47f025b09e574be8d0bc74b3e44c960cba0880e87
+SIZE (konsorten-go-windows-terminal-sequences-v1.0.1_GH0.tar.gz) = 1909
+SHA256 (maddie-go-ping-5e9a13ec8da6_GH0.tar.gz) = ebff26ac1d336ca0ec6c6ebdf956e44341ec31e7f2e7dae400a93a8196e16a8b
+SIZE (maddie-go-ping-5e9a13ec8da6_GH0.tar.gz) = 8734
+SHA256 (mattn-go-colorable-v0.1.2_GH0.tar.gz) = a7189bd9005c571303b117261955ce53b0e2aa89fe415e2289659be343fe1651
+SIZE (mattn-go-colorable-v0.1.2_GH0.tar.gz) = 8518
+SHA256 (mattn-go-isatty-v0.0.8_GH0.tar.gz) = 4f40edb394582f49ac6330bc807be93018216ef485eb65f00adcf61b670d4f3e
+SIZE (mattn-go-isatty-v0.0.8_GH0.tar.gz) = 3564
+SHA256 (russross-blackfriday-v2.0.1_GH0.tar.gz) = 5a0f38a36b6f3b2d59b72d713451a895a4d3a4406b3533882483782e37797cff
+SIZE (russross-blackfriday-v2.0.1_GH0.tar.gz) = 79613
+SHA256 (shurcooL-sanitized_anchor_name-v1.0.0_GH0.tar.gz) = 7e11964980f9b8595c17bc8970f0174621afe464920e38df7f8d77e45058388f
+SIZE (shurcooL-sanitized_anchor_name-v1.0.0_GH0.tar.gz) = 2143
+SHA256 (sirupsen-logrus-v1.4.2_GH0.tar.gz) = 67f2ddf467b7e63d2d2529d227946a331e245aeef7e2e4521ae82647b5ef84d9
+SIZE (sirupsen-logrus-v1.4.2_GH0.tar.gz) = 41373
+SHA256 (stretchr-testify-v1.3.0_GH0.tar.gz) = 0cd9c199a72b8d80621624b37c0ed5ac724352d458506a31dfa86710551e7fc5
+SIZE (stretchr-testify-v1.3.0_GH0.tar.gz) = 102859
+SHA256 (urfave-cli-v2.1.1_GH0.tar.gz) = 34f73ae3149de5102dd60c54c0d69e74c8c151ecc42ed788f37fc0b85ec511cc
+SIZE (urfave-cli-v2.1.1_GH0.tar.gz) = 89967
diff --git a/net/librespeed-cli/pkg-descr b/net/librespeed-cli/pkg-descr
new file mode 100644
index 000000000000..e0d547be826b
--- /dev/null
+++ b/net/librespeed-cli/pkg-descr
@@ -0,0 +1,5 @@
+This is the CLI part of LibreSpeed which is a very lightweight speedtest.
+With the CLI it's possible to run a speedtest from the command line interface.
+The server part can be found in www/librespeed.
+
+WWW: https://github.com/librespeed/speedtest-cli