Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 14 Aug 2021 00:24:12 GMT
From:      Guangyuan Yang <ygy@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: c6c9e96452b6 - main - net/ipinfo-cli: New port
Message-ID:  <202108140024.17E0OC8L027078@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by ygy:

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

commit c6c9e96452b67777205d461a562a58af46963c30
Author:     Gabriel Dutra <0xdutra@gmail.com>
AuthorDate: 2021-08-14 00:23:27 +0000
Commit:     Guangyuan Yang <ygy@FreeBSD.org>
CommitDate: 2021-08-14 00:23:27 +0000

    net/ipinfo-cli: New port
    
    Official Command Line Interface for the IPinfo API.
    
    PR:     255983
---
 net/Makefile             |  1 +
 net/ipinfo-cli/Makefile  | 42 ++++++++++++++++++++++++++++++++++++++++++
 net/ipinfo-cli/distinfo  | 39 +++++++++++++++++++++++++++++++++++++++
 net/ipinfo-cli/pkg-descr |  4 ++++
 4 files changed, 86 insertions(+)

diff --git a/net/Makefile b/net/Makefile
index 381111a08ac7..46f4650893a3 100644
--- a/net/Makefile
+++ b/net/Makefile
@@ -276,6 +276,7 @@
     SUBDIR += ip6_int
     SUBDIR += ipdecap
     SUBDIR += ipgrab
+    SUBDIR += ipinfo-cli
     SUBDIR += ipsumdump
     SUBDIR += ipsvd
     SUBDIR += ipxe
diff --git a/net/ipinfo-cli/Makefile b/net/ipinfo-cli/Makefile
new file mode 100644
index 000000000000..ba73f8d4660a
--- /dev/null
+++ b/net/ipinfo-cli/Makefile
@@ -0,0 +1,42 @@
+# Created by: Gabriel M. Dutra <0xdutra@gmail.com>
+
+PORTNAME=	ipinfo
+DISTVERSIONPREFIX=	ipinfo-
+DISTVERSION=	2.0.2
+CATEGORIES=	net
+
+MAINTAINER=	0xdutra@gmail.com
+COMMENT=	Official Command Line Interface for the IPinfo API
+
+LICENSE=	APACHE20
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+USES=	go:modules
+
+USE_GITHUB=	yes
+GH_PROJECT=	cli
+GO_TARGET=	./ipinfo
+
+GH_TUPLE=	\
+		davecgh:go-spew:v1.1.1:davecgh_go_spew/vendor/github.com/davecgh/go-spew \
+		fatih:color:v1.10.0:fatih_color/vendor/github.com/fatih/color \
+		go-yaml:yaml:496545a6307b:go_yaml_yaml/vendor/gopkg.in/yaml.v3 \
+		golang:sync:09787c993a3a:golang_sync/vendor/golang.org/x/sync \
+		golang:sys:ac73e9fd8988:golang_sys/vendor/golang.org/x/sys \
+		golang:term:2321bbc49cbf:golang_term/vendor/golang.org/x/term \
+		hashicorp:errwrap:v1.1.0:hashicorp_errwrap/vendor/github.com/hashicorp/errwrap \
+		hashicorp:go-multierror:v1.1.1:hashicorp_go_multierror/vendor/github.com/hashicorp/go-multierror \
+		ipinfo:go:v2.5.3:ipinfo_go_v2/vendor/github.com/ipinfo/go/v2 \
+		jszwec:csvutil:v1.4.0:jszwec_csvutil/vendor/github.com/jszwec/csvutil \
+		mattn:go-colorable:v0.1.8:mattn_go_colorable/vendor/github.com/mattn/go-colorable \
+		mattn:go-isatty:v0.0.12:mattn_go_isatty/vendor/github.com/mattn/go-isatty \
+		patrickmn:go-cache:v2.1.0:patrickmn_go_cache/vendor/github.com/patrickmn/go-cache \
+		pkg:browser:ce105d075bb4:pkg_browser/vendor/github.com/pkg/browser \
+		pmezard:go-difflib:v1.0.0:pmezard_go_difflib/vendor/github.com/pmezard/go-difflib \
+		posener:script:v1.1.5:posener_script/vendor/github.com/posener/script \
+		spf13:pflag:v1.0.5:spf13_pflag/vendor/github.com/spf13/pflag \
+		stretchr:testify:v1.7.0:stretchr_testify/vendor/github.com/stretchr/testify
+
+PLIST_FILES=	bin/${PORTNAME}
+
+.include <bsd.port.mk>
diff --git a/net/ipinfo-cli/distinfo b/net/ipinfo-cli/distinfo
new file mode 100644
index 000000000000..62b4039f82b5
--- /dev/null
+++ b/net/ipinfo-cli/distinfo
@@ -0,0 +1,39 @@
+TIMESTAMP = 1628885667
+SHA256 (ipinfo-cli-ipinfo-2.0.2_GH0.tar.gz) = 9a81a5dc28067975f706295cc65cbde0a5028e3d1117fbd2c520e71711825cea
+SIZE (ipinfo-cli-ipinfo-2.0.2_GH0.tar.gz) = 2323755
+SHA256 (davecgh-go-spew-v1.1.1_GH0.tar.gz) = 7d82b9bb7291adbe7498fe946920ab3e7fc9e6cbfc3b2294693fad00bf0dd17e
+SIZE (davecgh-go-spew-v1.1.1_GH0.tar.gz) = 42152
+SHA256 (fatih-color-v1.10.0_GH0.tar.gz) = a00342a7ffb8b119346dce56e152a111cbb9eab3970c429cc2ed4272aec2858e
+SIZE (fatih-color-v1.10.0_GH0.tar.gz) = 1267532
+SHA256 (go-yaml-yaml-496545a6307b_GH0.tar.gz) = ed0e11dc14bbbd4127031d7e8b9e58dad885e2c44a16359d2f64b71d1d1f692a
+SIZE (go-yaml-yaml-496545a6307b_GH0.tar.gz) = 90156
+SHA256 (golang-sync-09787c993a3a_GH0.tar.gz) = e533f53d11330b61d7e9bcbec255699992ab47636f1b45403db6f9b09c3d0aba
+SIZE (golang-sync-09787c993a3a_GH0.tar.gz) = 18734
+SHA256 (golang-sys-ac73e9fd8988_GH0.tar.gz) = 5566fd54f50981fc38d2bea63005ea73efb2a5b11bb45cdaace94628857531a6
+SIZE (golang-sys-ac73e9fd8988_GH0.tar.gz) = 1219356
+SHA256 (golang-term-2321bbc49cbf_GH0.tar.gz) = 72896f6aa3deb053da5b597ab072ba5c3540b29d0fb56f350397b7f94c010e21
+SIZE (golang-term-2321bbc49cbf_GH0.tar.gz) = 15281
+SHA256 (hashicorp-errwrap-v1.1.0_GH0.tar.gz) = 0d73891a7a179e50a142ac8832db97b17c792d29ae205b0e6aeedde4c43d51a4
+SIZE (hashicorp-errwrap-v1.1.0_GH0.tar.gz) = 8581
+SHA256 (hashicorp-go-multierror-v1.1.1_GH0.tar.gz) = 8d1bb3377310e8ffe4c7b5672c5de1eaed153402aebd15d6e5b9673c356a065f
+SIZE (hashicorp-go-multierror-v1.1.1_GH0.tar.gz) = 13803
+SHA256 (ipinfo-go-v2.5.3_GH0.tar.gz) = e118ad3c1721d92f2ca97e1cc0a0beda2ea931fc686e48bd78e77ba6b2d3ec20
+SIZE (ipinfo-go-v2.5.3_GH0.tar.gz) = 20240
+SHA256 (jszwec-csvutil-v1.4.0_GH0.tar.gz) = 984948ff98648adabbcf8579851f2b39ea9b28fa8ee5a101a7600195ea3b444e
+SIZE (jszwec-csvutil-v1.4.0_GH0.tar.gz) = 47069
+SHA256 (mattn-go-colorable-v0.1.8_GH0.tar.gz) = 1027954f9abbe06b6e117e3047af70204dd0eb4f8c27fcd459fb2574b279755f
+SIZE (mattn-go-colorable-v0.1.8_GH0.tar.gz) = 9571
+SHA256 (mattn-go-isatty-v0.0.12_GH0.tar.gz) = addbdc341d7685ed4cc8d2d8a8fd2bd9b784bde00d0ea99fb251039fc10c611c
+SIZE (mattn-go-isatty-v0.0.12_GH0.tar.gz) = 4548
+SHA256 (patrickmn-go-cache-v2.1.0_GH0.tar.gz) = 3ab025f2f580f8818a5357db52596fef1b0ad5945816a022c8b805ba46dc93be
+SIZE (patrickmn-go-cache-v2.1.0_GH0.tar.gz) = 13572
+SHA256 (pkg-browser-ce105d075bb4_GH0.tar.gz) = 796b05c5a0f081994403ad19158188a153ea2e72cdb14a458678fd5a7c34dbed
+SIZE (pkg-browser-ce105d075bb4_GH0.tar.gz) = 4194
+SHA256 (pmezard-go-difflib-v1.0.0_GH0.tar.gz) = 28f3dc1b5c0efd61203ab07233f774740d3bf08da4d8153fb5310db6cea0ebda
+SIZE (pmezard-go-difflib-v1.0.0_GH0.tar.gz) = 11398
+SHA256 (posener-script-v1.1.5_GH0.tar.gz) = 37aa5cc92a60219b60bafdf3bc7ebe0cbab692c977134f40c00ca18d9a45223f
+SIZE (posener-script-v1.1.5_GH0.tar.gz) = 17104
+SHA256 (spf13-pflag-v1.0.5_GH0.tar.gz) = 9a2cae1f8e8ab0d2cc8ebe468e871af28d9ac0962cf0520999e3ba85f0c7b808
+SIZE (spf13-pflag-v1.0.5_GH0.tar.gz) = 50796
+SHA256 (stretchr-testify-v1.7.0_GH0.tar.gz) = 560c0984072cb436b17bbce5699b205d5aa2beb58ef7a94530d7724b5739a8d6
+SIZE (stretchr-testify-v1.7.0_GH0.tar.gz) = 91073
diff --git a/net/ipinfo-cli/pkg-descr b/net/ipinfo-cli/pkg-descr
new file mode 100644
index 000000000000..b71e535147e5
--- /dev/null
+++ b/net/ipinfo-cli/pkg-descr
@@ -0,0 +1,4 @@
+ipinfo-cli allowing you to lookup IP deltails, ASN, IP geolocation,
+IP CIDR, IP range.
+
+WWW: https://github.com/ipinfo/cli



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202108140024.17E0OC8L027078>