git: 3f72325f9d4c - main - sysutils/equinix-metal-cli: NEW PORT
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 17 May 2022 14:07:59 UTC
The branch main has been updated by dch: URL: https://cgit.FreeBSD.org/ports/commit/?id=3f72325f9d4c98975db0d627b90b3c1ecd870516 commit 3f72325f9d4c98975db0d627b90b3c1ecd870516 Author: Dave Cottlehuber <dch@FreeBSD.org> AuthorDate: 2022-05-17 14:07:51 +0000 Commit: Dave Cottlehuber <dch@FreeBSD.org> CommitDate: 2022-05-17 14:07:51 +0000 sysutils/equinix-metal-cli: NEW PORT A command-line interface to the Equinix Metal API Sponsored by: SkunkWerks, GmbH Sponsored by: Equinix Metal --- sysutils/Makefile | 1 + sysutils/equinix-metal-cli/Makefile | 24 +++++++++++ sysutils/equinix-metal-cli/Makefile.deps | 36 ++++++++++++++++ sysutils/equinix-metal-cli/distinfo | 73 ++++++++++++++++++++++++++++++++ sysutils/equinix-metal-cli/pkg-descr | 4 ++ sysutils/equinix-metal-cli/pkg-message | 23 ++++++++++ 6 files changed, 161 insertions(+) diff --git a/sysutils/Makefile b/sysutils/Makefile index 53e5eede79b3..df30dcd39039 100644 --- a/sysutils/Makefile +++ b/sysutils/Makefile @@ -332,6 +332,7 @@ SUBDIR += env4801 SUBDIR += envconsul SUBDIR += epazote + SUBDIR += equinix-metal-cli SUBDIR += etc_os-release SUBDIR += etcmerge SUBDIR += etcupdate diff --git a/sysutils/equinix-metal-cli/Makefile b/sysutils/equinix-metal-cli/Makefile new file mode 100644 index 000000000000..803fa5c9a7ed --- /dev/null +++ b/sysutils/equinix-metal-cli/Makefile @@ -0,0 +1,24 @@ +PORTNAME= equinix-metal-cli +DISTVERSIONPREFIX= v +DISTVERSION= 0.7.4 +CATEGORIES= sysutils + +MAINTAINER= dch@FreeBSD.org +COMMENT= Command line tool for Equinix Metal services + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +USES= go:modules +USE_GITHUB= yes +GH_ACCOUNT= equinix +GH_PROJECT= metal-cli + +.include "${.CURDIR}/Makefile.deps" + +GO_BUILDFLAGS= -ldflags "-X github.com/equinix/metal-cli/cmd.Version=v$(DISTVERSION)" +GO_TARGET= ./cmd/metal + +PLIST_FILES= bin/metal + +.include <bsd.port.mk> diff --git a/sysutils/equinix-metal-cli/Makefile.deps b/sysutils/equinix-metal-cli/Makefile.deps new file mode 100644 index 000000000000..bf5a75cefe8c --- /dev/null +++ b/sysutils/equinix-metal-cli/Makefile.deps @@ -0,0 +1,36 @@ +GH_TUPLE= \ + chzyer:logex:v1.1.10:chzyer_logex/vendor/github.com/chzyer/logex \ + chzyer:readline:2972be24d48e:chzyer_readline/vendor/github.com/chzyer/readline \ + chzyer:test:a1ea475d72b1:chzyer_test/vendor/github.com/chzyer/test \ + cpuguy83:go-md2man:v2.0.0:cpuguy83_go_md2man_v2/vendor/github.com/cpuguy83/go-md2man/v2 \ + fsnotify:fsnotify:v1.4.7:fsnotify_fsnotify/vendor/github.com/fsnotify/fsnotify \ + go-ini:ini:v1.51.0:go_ini_ini/vendor/gopkg.in/ini.v1 \ + go-yaml:yaml:v2.4.0:go_yaml_yaml/vendor/gopkg.in/yaml.v2 \ + golang:crypto:eec23a3978ad:golang_crypto/vendor/golang.org/x/crypto \ + golang:sys:665e8c7367d1:golang_sys/vendor/golang.org/x/sys \ + golang:term:6886f2dfbf5b:golang_term/vendor/golang.org/x/term \ + golang:text:v0.3.2:golang_text/vendor/golang.org/x/text \ + hashicorp:hcl:v1.0.0:hashicorp_hcl/vendor/github.com/hashicorp/hcl \ + inconshreveable:mousetrap:v1.0.0:inconshreveable_mousetrap/vendor/github.com/inconshreveable/mousetrap \ + juju:ansiterm:720a0952cc2a:juju_ansiterm/vendor/github.com/juju/ansiterm \ + kubernetes-sigs:yaml:v1.2.0:kubernetes_sigs_yaml/vendor/sigs.k8s.io/yaml \ + lunixbochs:vtclean:d14193dfc626:lunixbochs_vtclean/vendor/github.com/lunixbochs/vtclean \ + magiconair:properties:v1.8.1:magiconair_properties/vendor/github.com/magiconair/properties \ + manifoldco:promptui:v0.3.0:manifoldco_promptui/vendor/github.com/manifoldco/promptui \ + mattn:go-colorable:v0.0.9:mattn_go_colorable/vendor/github.com/mattn/go-colorable \ + mattn:go-isatty:v0.0.3:mattn_go_isatty/vendor/github.com/mattn/go-isatty \ + mattn:go-runewidth:v0.0.9:mattn_go_runewidth/vendor/github.com/mattn/go-runewidth \ + mitchellh:mapstructure:v1.1.2:mitchellh_mapstructure/vendor/github.com/mitchellh/mapstructure \ + olekukonko:tablewriter:v0.0.5:olekukonko_tablewriter/vendor/github.com/olekukonko/tablewriter \ + packethost:packngo:v0.20.0:packethost_packngo/vendor/github.com/packethost/packngo \ + pelletier:go-toml:v1.2.0:pelletier_go_toml/vendor/github.com/pelletier/go-toml \ + pkg:errors:v0.9.1:pkg_errors/vendor/github.com/pkg/errors \ + 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 \ + spf13:afero:v1.1.2:spf13_afero/vendor/github.com/spf13/afero \ + spf13:cast:v1.3.0:spf13_cast/vendor/github.com/spf13/cast \ + spf13:cobra:v1.1.3:spf13_cobra/vendor/github.com/spf13/cobra \ + spf13:jwalterweatherman:v1.0.0:spf13_jwalterweatherman/vendor/github.com/spf13/jwalterweatherman \ + spf13:pflag:v1.0.5:spf13_pflag/vendor/github.com/spf13/pflag \ + spf13:viper:v1.7.1:spf13_viper/vendor/github.com/spf13/viper \ + subosito:gotenv:v1.2.0:subosito_gotenv/vendor/github.com/subosito/gotenv diff --git a/sysutils/equinix-metal-cli/distinfo b/sysutils/equinix-metal-cli/distinfo new file mode 100644 index 000000000000..50d60fe44837 --- /dev/null +++ b/sysutils/equinix-metal-cli/distinfo @@ -0,0 +1,73 @@ +TIMESTAMP = 1652778754 +SHA256 (equinix-metal-cli-v0.7.4_GH0.tar.gz) = 06a1d802e3ab6012ab58ebc780ada20a46a2e70aaf5fd34449d864b8b0d56432 +SIZE (equinix-metal-cli-v0.7.4_GH0.tar.gz) = 72232 +SHA256 (chzyer-logex-v1.1.10_GH0.tar.gz) = 578a6e2cc10cd9e188b9edbd9dfb762dae7d49e47c4f46637e6c7626641a5cef +SIZE (chzyer-logex-v1.1.10_GH0.tar.gz) = 4343 +SHA256 (chzyer-readline-2972be24d48e_GH0.tar.gz) = 8f425cfb33fce61a137866c0a88117c68f49de79a61a341353fc97339c6b74da +SIZE (chzyer-readline-2972be24d48e_GH0.tar.gz) = 36825 +SHA256 (chzyer-test-a1ea475d72b1_GH0.tar.gz) = fe176a7cdbf71ade6977f351b411da51a69f9ac9e75278e69f6e6303dad0b68d +SIZE (chzyer-test-a1ea475d72b1_GH0.tar.gz) = 4006 +SHA256 (cpuguy83-go-md2man-v2.0.0_GH0.tar.gz) = 50537880d42fc28b9c2e9aaa36b137349d43cc73d46436a499f8c928cd2fc576 +SIZE (cpuguy83-go-md2man-v2.0.0_GH0.tar.gz) = 52021 +SHA256 (fsnotify-fsnotify-v1.4.7_GH0.tar.gz) = b7530d973d0ab0e58ad8ce1b9a4b963d6f57b3d72f2f9e13d49846976361b1cd +SIZE (fsnotify-fsnotify-v1.4.7_GH0.tar.gz) = 31139 +SHA256 (go-ini-ini-v1.51.0_GH0.tar.gz) = 6c98311d375afbe36a246c5d29acb5cb428634a4186e591ce9b7fe2fa4f2a471 +SIZE (go-ini-ini-v1.51.0_GH0.tar.gz) = 43536 +SHA256 (go-yaml-yaml-v2.4.0_GH0.tar.gz) = d8e94679e5fff6bd1a35e10241543929a5f3da44f701755babf99b3daf0faac0 +SIZE (go-yaml-yaml-v2.4.0_GH0.tar.gz) = 73209 +SHA256 (golang-crypto-eec23a3978ad_GH0.tar.gz) = bd882536660d6b65619c9d9b9334e9a5c55557613e56e1b485323a2293dfa2f8 +SIZE (golang-crypto-eec23a3978ad_GH0.tar.gz) = 1725798 +SHA256 (golang-sys-665e8c7367d1_GH0.tar.gz) = 19c3498496d91ac9c0c0226c9b832c23a0b042b9a707be811ef976e801d373f4 +SIZE (golang-sys-665e8c7367d1_GH0.tar.gz) = 1200405 +SHA256 (golang-term-6886f2dfbf5b_GH0.tar.gz) = e2e151fcf388487e6d70ce589408f9848a78843a790e3bae5409c86b10493bf9 +SIZE (golang-term-6886f2dfbf5b_GH0.tar.gz) = 14933 +SHA256 (golang-text-v0.3.2_GH0.tar.gz) = 0b9309698f5708531c5377ab1e29b423a6d9e20c55a8d386c3b8283428212f22 +SIZE (golang-text-v0.3.2_GH0.tar.gz) = 7168069 +SHA256 (hashicorp-hcl-v1.0.0_GH0.tar.gz) = 50632428210503070fd2fde748c88b7414bf84a6a0eadebf9d8e596a033bead2 +SIZE (hashicorp-hcl-v1.0.0_GH0.tar.gz) = 70658 +SHA256 (inconshreveable-mousetrap-v1.0.0_GH0.tar.gz) = 5edc7731c819c305623568e317aa253d342be3447def97f1fa9e10eb5ad819f6 +SIZE (inconshreveable-mousetrap-v1.0.0_GH0.tar.gz) = 2290 +SHA256 (juju-ansiterm-720a0952cc2a_GH0.tar.gz) = 5595c2dc8973aab36a69648d4d94cac75a9ff4a28eb074a7b82b030fc7edbf64 +SIZE (juju-ansiterm-720a0952cc2a_GH0.tar.gz) = 15417 +SHA256 (kubernetes-sigs-yaml-v1.2.0_GH0.tar.gz) = 80612b8cc63863556906f04df7eca89179bf81e5b3d1133c082bd7e5e35d5514 +SIZE (kubernetes-sigs-yaml-v1.2.0_GH0.tar.gz) = 92574 +SHA256 (lunixbochs-vtclean-d14193dfc626_GH0.tar.gz) = 9e35bb3474791049b2270f191a55ea7c89868ccd6f66e262cd7285a28b7a648d +SIZE (lunixbochs-vtclean-d14193dfc626_GH0.tar.gz) = 4253 +SHA256 (magiconair-properties-v1.8.1_GH0.tar.gz) = 4449df3d2be86608bfc997228f66f1cff57bf620cc5bf9ba44339c7e4c5612dd +SIZE (magiconair-properties-v1.8.1_GH0.tar.gz) = 29735 +SHA256 (manifoldco-promptui-v0.3.0_GH0.tar.gz) = 29f4a02ff6aca3e89c9f7e2e7b36f93d6a9280ba721411c6727205b162532bfd +SIZE (manifoldco-promptui-v0.3.0_GH0.tar.gz) = 19133 +SHA256 (mattn-go-colorable-v0.0.9_GH0.tar.gz) = 703db7bd13f84446bb06a7f075cf6b21d65b828cd6831dc9069e28b564bdfb87 +SIZE (mattn-go-colorable-v0.0.9_GH0.tar.gz) = 7593 +SHA256 (mattn-go-isatty-v0.0.3_GH0.tar.gz) = daf68970a6506650b05bac72082865f88d582ecdb74418b95ac5621d5392b633 +SIZE (mattn-go-isatty-v0.0.3_GH0.tar.gz) = 3364 +SHA256 (mattn-go-runewidth-v0.0.9_GH0.tar.gz) = 4f20a337ad06e071f29535afe9c5207d3e8840c8c86672bbc5f9837c6229c835 +SIZE (mattn-go-runewidth-v0.0.9_GH0.tar.gz) = 16714 +SHA256 (mitchellh-mapstructure-v1.1.2_GH0.tar.gz) = 53fbc06b125ff1c9c73a4eb1764346932671a29c67a45a92e2ebc6855635069b +SIZE (mitchellh-mapstructure-v1.1.2_GH0.tar.gz) = 20980 +SHA256 (olekukonko-tablewriter-v0.0.5_GH0.tar.gz) = 14a1294a8267facc9bc99a230b8871517e6db284ccc7e39030313befa124677f +SIZE (olekukonko-tablewriter-v0.0.5_GH0.tar.gz) = 19568 +SHA256 (packethost-packngo-v0.20.0_GH0.tar.gz) = 01189dcd872a9577826e72db34ff3eeb0a43310667381dcd91aaa09b5c0110bd +SIZE (packethost-packngo-v0.20.0_GH0.tar.gz) = 78597 +SHA256 (pelletier-go-toml-v1.2.0_GH0.tar.gz) = 1a5a620f680033f17e34148bee8f26d96d8c27ff1d7f56f0fe1c7253595b5244 +SIZE (pelletier-go-toml-v1.2.0_GH0.tar.gz) = 57496 +SHA256 (pkg-errors-v0.9.1_GH0.tar.gz) = 56bfd893023daa498508bfe161de1be83299fcf15376035e7df79cbd7d6fa608 +SIZE (pkg-errors-v0.9.1_GH0.tar.gz) = 13415 +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 (spf13-afero-v1.1.2_GH0.tar.gz) = 66554a6b09b0009340ae77c119d5a14e2460bb3aea56e75e138c87e621f3803b +SIZE (spf13-afero-v1.1.2_GH0.tar.gz) = 45309 +SHA256 (spf13-cast-v1.3.0_GH0.tar.gz) = e685282ea33f89e9354d148ad1886f532bcebe86b0b60a167988f7c6d081085f +SIZE (spf13-cast-v1.3.0_GH0.tar.gz) = 11085 +SHA256 (spf13-cobra-v1.1.3_GH0.tar.gz) = e5f93c61e1236e61c7fc45882d2a03b81f46ebebdf70628ebb64b0b5fe34f6fa +SIZE (spf13-cobra-v1.1.3_GH0.tar.gz) = 146580 +SHA256 (spf13-jwalterweatherman-v1.0.0_GH0.tar.gz) = 2ece12b964e0d230b10851555185d42d3c81b401efda044265ae716eb1d0bc2d +SIZE (spf13-jwalterweatherman-v1.0.0_GH0.tar.gz) = 6392 +SHA256 (spf13-pflag-v1.0.5_GH0.tar.gz) = 9a2cae1f8e8ab0d2cc8ebe468e871af28d9ac0962cf0520999e3ba85f0c7b808 +SIZE (spf13-pflag-v1.0.5_GH0.tar.gz) = 50796 +SHA256 (spf13-viper-v1.7.1_GH0.tar.gz) = de85215b50e9fbb2cdf63b0aa9df826a866dff8f718ba2dc3f5866e98d5bd39a +SIZE (spf13-viper-v1.7.1_GH0.tar.gz) = 82641 +SHA256 (subosito-gotenv-v1.2.0_GH0.tar.gz) = 5f6826992c11981018c77377f33dbc56d0be932e0d38a2f51e795c99725e7ba5 +SIZE (subosito-gotenv-v1.2.0_GH0.tar.gz) = 7359 diff --git a/sysutils/equinix-metal-cli/pkg-descr b/sysutils/equinix-metal-cli/pkg-descr new file mode 100644 index 000000000000..d9e04cdc3ec6 --- /dev/null +++ b/sysutils/equinix-metal-cli/pkg-descr @@ -0,0 +1,4 @@ +metal is a command line interface for the Equinix Metal API. Refer +to the comprehensive docs for usage instructions. + +WWW: https://github.com/equinix/metal-cli/blob/main/docs/metal.md diff --git a/sysutils/equinix-metal-cli/pkg-message b/sysutils/equinix-metal-cli/pkg-message new file mode 100644 index 000000000000..90a3fad3e19c --- /dev/null +++ b/sysutils/equinix-metal-cli/pkg-message @@ -0,0 +1,23 @@ +[ +{ type: install + message: <<EOM +You installed the Equinix Metal command-line tool. To use this tool, you +will need an account and an API token from https://console.equinix.com/ + +Then run: + +$ metal init +Equinix Metal API Tokens can be obtained through the portal at https://console.equinix.com/. +See https://metal.equinix.com/developers/docs/accounts/users/ for more details. + +Token (hidden): ... +Organization ID []: ...-...-... +Project ID []: ...-...-.. + +Writing ~/.config/equinix/metal.yaml + +Optionally, the token can be supplied via the METAL_AUTH_TOKEN +environment variable, instead of permanently in the file system. +EOM +} +]