1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-17 08:01:36 +00:00

net/ipinfo-cli: New port

Official Command Line Interface for the IPinfo API.

PR:	255983
This commit is contained in:
Gabriel Dutra 2021-08-13 20:23:27 -04:00 committed by Guangyuan Yang
parent bed9a4de0e
commit c6c9e96452
4 changed files with 86 additions and 0 deletions

View File

@ -276,6 +276,7 @@
SUBDIR += ip6_int
SUBDIR += ipdecap
SUBDIR += ipgrab
SUBDIR += ipinfo-cli
SUBDIR += ipsumdump
SUBDIR += ipsvd
SUBDIR += ipxe

42
net/ipinfo-cli/Makefile Normal file
View File

@ -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>

39
net/ipinfo-cli/distinfo Normal file
View File

@ -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

4
net/ipinfo-cli/pkg-descr Normal file
View File

@ -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