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)
56 lines
2.5 KiB
Makefile
56 lines
2.5 KiB
Makefile
# $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>
|