git: ec44ccc6b369 - main - databases/influxdb2-cli: New port

From: Dries Michiels <driesm_at_FreeBSD.org>
Date: Wed, 26 Jan 2022 17:33:47 UTC
The branch main has been updated by driesm:

URL: https://cgit.FreeBSD.org/ports/commit/?id=ec44ccc6b369cb1e9cfa06d6d2e7c429f966c4bc

commit ec44ccc6b369cb1e9cfa06d6d2e7c429f966c4bc
Author:     Dries Michiels <driesm@FreeBSD.org>
AuthorDate: 2021-09-16 07:24:15 +0000
Commit:     Dries Michiels <driesm@FreeBSD.org>
CommitDate: 2022-01-26 17:30:16 +0000

    databases/influxdb2-cli: New port
    
    CLI for managing resources in InfluxDB v2.
    
    Approved by:            0mp (mentor)
    Diferential Revision:   https://reviews.freebsd.org/D33582
---
 databases/Makefile                |  1 +
 databases/influxdb2-cli/Makefile  | 21 +++++++++++++++++++++
 databases/influxdb2-cli/distinfo  |  5 +++++
 databases/influxdb2-cli/pkg-descr |  3 +++
 4 files changed, 30 insertions(+)

diff --git a/databases/Makefile b/databases/Makefile
index 32118712a0fe..dbb3fe11801f 100644
--- a/databases/Makefile
+++ b/databases/Makefile
@@ -114,6 +114,7 @@
     SUBDIR += hiredis
     SUBDIR += hsqldb
     SUBDIR += influxdb
+    SUBDIR += influxdb2-cli
     SUBDIR += innotop
     SUBDIR += iowow
     SUBDIR += ip4r
diff --git a/databases/influxdb2-cli/Makefile b/databases/influxdb2-cli/Makefile
new file mode 100644
index 000000000000..225bc516012a
--- /dev/null
+++ b/databases/influxdb2-cli/Makefile
@@ -0,0 +1,21 @@
+PORTNAME=	influxdb2-cli
+DISTVERSIONPREFIX=	v
+DISTVERSION=	2.1.1
+CATEGORIES=	databases net-mgmt
+
+MAINTAINER=	driesm@FreeBSD.org
+COMMENT=	CLI for managing resources in InfluxDB v2
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+USES=		go:modules
+
+GO_MODULE=	github.com/influxdata/influx-cli/v2
+GO_TARGET=	./cmd/influx
+
+CONFLICTS_INSTALL=	influxdb
+
+PLIST_FILES=	bin/influx
+
+.include <bsd.port.mk>
diff --git a/databases/influxdb2-cli/distinfo b/databases/influxdb2-cli/distinfo
new file mode 100644
index 000000000000..bc5ba7d871a9
--- /dev/null
+++ b/databases/influxdb2-cli/distinfo
@@ -0,0 +1,5 @@
+TIMESTAMP = 1639993453
+SHA256 (go/databases_influxdb2-cli/influxdb2-cli-v2.1.1/v2.1.1.mod) = 5cbb0fcbd9b6d69f9e91a0c7d2431f352f2ac9a02de3b1eba81717c1a64c39bb
+SIZE (go/databases_influxdb2-cli/influxdb2-cli-v2.1.1/v2.1.1.mod) = 750
+SHA256 (go/databases_influxdb2-cli/influxdb2-cli-v2.1.1/v2.1.1.zip) = fc9c7bd3baa99f72012275395e4cd54a7e06d3cd36393b516de0b77a26c36605
+SIZE (go/databases_influxdb2-cli/influxdb2-cli-v2.1.1/v2.1.1.zip) = 707160
diff --git a/databases/influxdb2-cli/pkg-descr b/databases/influxdb2-cli/pkg-descr
new file mode 100644
index 000000000000..bc3a4a313234
--- /dev/null
+++ b/databases/influxdb2-cli/pkg-descr
@@ -0,0 +1,3 @@
+CLI for managing resources in InfluxDB v2.
+
+WWW: https://github.com/influxdata/influx-cli