1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-22 04:17:44 +00:00

CLI tool to manage your hosts file with ease. You can have multiple

profiles, enable/disable exactly what you need each time with a simple
interface.

WWW: https://guumaster.github.io/hostctl/

PR:		245552
Submitted by:	Lewis Cook <vulcan@wired.sh>
Approved by:	ehaupt (mentor)
This commit is contained in:
Hiroki Tagato 2020-05-21 05:40:11 +00:00
parent 8c9ea42010
commit 7a46f31ae2
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=536072
4 changed files with 110 additions and 0 deletions

View File

@ -470,6 +470,7 @@
SUBDIR += highlnk
SUBDIR += hilite
SUBDIR += host-setup
SUBDIR += hostctl
SUBDIR += hourglass
SUBDIR += hpacucli
SUBDIR += hploscripts

55
sysutils/hostctl/Makefile Normal file
View File

@ -0,0 +1,55 @@
# $FreeBSD$
PORTNAME= hostctl
DISTVERSIONPREFIX= v
DISTVERSION= 1.0.11
CATEGORIES= sysutils
MAINTAINER= vulcan@wired.sh
COMMENT= Command-line tool to manage your hosts file
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= go:modules
USE_GITHUB= yes
GH_ACCOUNT= guumaster
GH_TUPLE= Microsoft:go-winio:v0.4.14:microsoft_go_winio/vendor/github.com/Microsoft/go-winio \
cpuguy83:go-md2man:v2.0.0:cpuguy83_go_md2man/vendor/github.com/cpuguy83/go-md2man/v2 \
davecgh:go-spew:v1.1.1:davecgh_go_spew/vendor/github.com/davecgh/go-spew \
docker:distribution:v2.7.1:docker_distribution/vendor/github.com/docker/distribution \
moby:moby:v1.13.1:docker_docker/vendor/github.com/docker/docker \
docker:go-connections:v0.4.0:docker_go_connections/vendor/github.com/docker/go-connections \
docker:go-units:v0.4.0:docker_go_units/vendor/github.com/docker/go-units \
go-yaml:yaml:v2.2.8:go_yaml_yaml/vendor/gopkg.in/yaml.v2 \
golang:net:f3200d17e092:golang_net/vendor/golang.org/x/net \
golang:sys:59c9f1ba88fa:golang_sys/vendor/golang.org/x/sys \
golang:text:v0.3.2:golang_text/vendor/golang.org/x/text \
guumaster:tablewriter:v0.0.4-separator:guumaster_tablewriter/vendor/github.com/guumaster/tablewriter \
inconshreveable:mousetrap:v1.0.0:inconshreveable_mousetrap/vendor/github.com/inconshreveable/mousetrap \
mattn:go-runewidth:v0.0.7:mattn_go_runewidth/vendor/github.com/mattn/go-runewidth \
opencontainers:go-digest:v1.0.0-rc1:opencontainers_go_digest/vendor/github.com/opencontainers/go-digest \
pkg:errors:v0.8.1:pkg_errors/vendor/github.com/pkg/errors \
pmezard:go-difflib:v1.0.0:pmezard_go_difflib/vendor/github.com/pmezard/go-difflib \
russross:blackfriday:v2.0.1:russross_blackfriday/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.2.2:spf13_afero/vendor/github.com/spf13/afero \
spf13:cobra:v1.0.0:spf13_cobra/vendor/github.com/spf13/cobra \
spf13:pflag:v1.0.5:spf13_pflag/vendor/github.com/spf13/pflag \
stretchr:testify:v1.3.0:stretchr_testify/vendor/github.com/stretchr/testify
GO_TARGET= ./cmd/${PORTNAME}
GO_BUILDFLAGS= -ldflags "\
-s -w \
-X github.com/${GH_ACCOUNT}/${GH_PROJECT}/pkg/cmd.version=${DISTVERSION}"
PLIST_FILES= bin/${PORTNAME}
PORTDOCS= CODE_OF_CONDUCT.md CONTRIBUTING.md README.md
OPTIONS_DEFINE= DOCS
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>

49
sysutils/hostctl/distinfo Normal file
View File

@ -0,0 +1,49 @@
TIMESTAMP = 1589906239
SHA256 (guumaster-hostctl-v1.0.11_GH0.tar.gz) = 2e39eb64306168593248ea9b2505d22caca9fac1eff3c1e3bf1f0f966df36a8a
SIZE (guumaster-hostctl-v1.0.11_GH0.tar.gz) = 279244
SHA256 (Microsoft-go-winio-v0.4.14_GH0.tar.gz) = 379082e49fb22dfdd9a0ff57f8a6d6d7e97ba30fdc0159ef2f38dc4caa79fd8e
SIZE (Microsoft-go-winio-v0.4.14_GH0.tar.gz) = 118053
SHA256 (cpuguy83-go-md2man-v2.0.0_GH0.tar.gz) = 50537880d42fc28b9c2e9aaa36b137349d43cc73d46436a499f8c928cd2fc576
SIZE (cpuguy83-go-md2man-v2.0.0_GH0.tar.gz) = 52021
SHA256 (davecgh-go-spew-v1.1.1_GH0.tar.gz) = 7d82b9bb7291adbe7498fe946920ab3e7fc9e6cbfc3b2294693fad00bf0dd17e
SIZE (davecgh-go-spew-v1.1.1_GH0.tar.gz) = 42152
SHA256 (docker-distribution-v2.7.1_GH0.tar.gz) = 4c3609c102351f15c0386f619d48bb592f3100726b4bde86f3eba7739192ff55
SIZE (docker-distribution-v2.7.1_GH0.tar.gz) = 1996699
SHA256 (moby-moby-v1.13.1_GH0.tar.gz) = 0d24e814f7adf19dc281b29fef69d0dfec7994966de9aaed7d4207d3034b9ee0
SIZE (moby-moby-v1.13.1_GH0.tar.gz) = 7788124
SHA256 (docker-go-connections-v0.4.0_GH0.tar.gz) = e31dfcf72dd9b07bf6dc320671a78a142a1b7c6287a7282c034c8cd463bc8663
SIZE (docker-go-connections-v0.4.0_GH0.tar.gz) = 30770
SHA256 (docker-go-units-v0.4.0_GH0.tar.gz) = b411f15ca9b419880006f3944b8ec87dc3fe15cbba3beb6e04f2c03f9ea8370b
SIZE (docker-go-units-v0.4.0_GH0.tar.gz) = 11514
SHA256 (go-yaml-yaml-v2.2.8_GH0.tar.gz) = 9632d0760e9a07c414f2b2b6cd453d6225e42ecea77906883b23f1f1d0546045
SIZE (go-yaml-yaml-v2.2.8_GH0.tar.gz) = 72732
SHA256 (golang-net-f3200d17e092_GH0.tar.gz) = 5b7f3441206d18e92393ccfda8f9033d6c4500aeb31d45de1bbe2f0bccad0aed
SIZE (golang-net-f3200d17e092_GH0.tar.gz) = 1096621
SHA256 (golang-sys-59c9f1ba88fa_GH0.tar.gz) = d6a64829bde62e1d951e3eb171d2449ac9d401333fb112e5c74dd9195567f573
SIZE (golang-sys-59c9f1ba88fa_GH0.tar.gz) = 1050818
SHA256 (golang-text-v0.3.2_GH0.tar.gz) = 0b9309698f5708531c5377ab1e29b423a6d9e20c55a8d386c3b8283428212f22
SIZE (golang-text-v0.3.2_GH0.tar.gz) = 7168069
SHA256 (guumaster-tablewriter-v0.0.4-separator_GH0.tar.gz) = 7efae0d8b4348d0bf17fb7e22f1bcde637c791a6850a503beabf2cf17dce8acf
SIZE (guumaster-tablewriter-v0.0.4-separator_GH0.tar.gz) = 19447
SHA256 (inconshreveable-mousetrap-v1.0.0_GH0.tar.gz) = 5edc7731c819c305623568e317aa253d342be3447def97f1fa9e10eb5ad819f6
SIZE (inconshreveable-mousetrap-v1.0.0_GH0.tar.gz) = 2290
SHA256 (mattn-go-runewidth-v0.0.7_GH0.tar.gz) = 09270ddb93b2d77d4b3903bbadacbb3a3d4f0cce93c373fb21503840829d8697
SIZE (mattn-go-runewidth-v0.0.7_GH0.tar.gz) = 16089
SHA256 (opencontainers-go-digest-v1.0.0-rc1_GH0.tar.gz) = 3f511b32c46f60482644f0ad6a345f52e672c82164bfb08274f15f7c14cd3076
SIZE (opencontainers-go-digest-v1.0.0-rc1_GH0.tar.gz) = 19206
SHA256 (pkg-errors-v0.8.1_GH0.tar.gz) = 7a428967c6fc2e80cd84a0d9469ab6bd4dbe6b13493ba6294322a933a5a7e356
SIZE (pkg-errors-v0.8.1_GH0.tar.gz) = 11009
SHA256 (pmezard-go-difflib-v1.0.0_GH0.tar.gz) = 28f3dc1b5c0efd61203ab07233f774740d3bf08da4d8153fb5310db6cea0ebda
SIZE (pmezard-go-difflib-v1.0.0_GH0.tar.gz) = 11398
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.2.2_GH0.tar.gz) = b577afca7e9839aa7cf0ddd712af553aec671b74f97fe0c88c63f911d1020570
SIZE (spf13-afero-v1.2.2_GH0.tar.gz) = 46157
SHA256 (spf13-cobra-v1.0.0_GH0.tar.gz) = 58dbfe1b4dbc6751575e94d1e62d073098e0b41790bc1c7a7a95ec6b870ac697
SIZE (spf13-cobra-v1.0.0_GH0.tar.gz) = 128897
SHA256 (spf13-pflag-v1.0.5_GH0.tar.gz) = 9a2cae1f8e8ab0d2cc8ebe468e871af28d9ac0962cf0520999e3ba85f0c7b808
SIZE (spf13-pflag-v1.0.5_GH0.tar.gz) = 50796
SHA256 (stretchr-testify-v1.3.0_GH0.tar.gz) = 0cd9c199a72b8d80621624b37c0ed5ac724352d458506a31dfa86710551e7fc5
SIZE (stretchr-testify-v1.3.0_GH0.tar.gz) = 102859

View File

@ -0,0 +1,5 @@
CLI tool to manage your hosts file with ease. You can have multiple
profiles, enable/disable exactly what you need each time with a simple
interface.
WWW: https://guumaster.github.io/hostctl/