# $OpenBSD: Makefile,v 1.8 2021/03/08 13:59:27 sthen Exp $

COMMENT=	start subprocess with envvar populated from Consul and Vault

MODGO_MODNAME=	github.com/hashicorp/envconsul
MODGO_VERSION=	v0.11.0
DISTNAME=	envconsul-${MODGO_VERSION}
REVISION=	0

CATEGORIES=	sysutils

MAINTAINER=	Antoine Jacoutot <ajacoutot@openbsd.org>
# MPLv2.0
PERMIT_PACKAGE=	Yes

WANTLIB += c pthread

MODULES=	lang/go

# go/src/github.com/hashicorp/envconsul/Makefile
MODGO_LDFLAGS +=	-X github.com/hashicorp/envconsul/version.Name=envconsul
MODGO_LDFLAGS +=	-X github.com/hashicorp/envconsul/version.GitCommit=${MODGO_VERSION}

MODGO_MODULES =	\
	cloud.google.com/go					 v0.26.0 \
	github.com/!burnt!sushi/toml				 v0.3.1 \
	github.com/!data!dog/datadog-go				 v2.2.0+incompatible \
	github.com/armon/circbuf				 v0.0.0-20150827004946-bbbad097214e \
	github.com/armon/go-metrics				 v0.0.0-20190430140413-ec5e00d3c878 \
	github.com/armon/go-radix				 v0.0.0-20180808171621-7fddfc383310 \
	github.com/beorn7/perks					 v0.0.0-20180321164747-3a771d992973 \
	github.com/bgentry/speakeasy				 v0.1.0 \
	github.com/circonus-labs/circonus-gometrics		 v2.3.1+incompatible \
	github.com/circonus-labs/circonusllhist			 v0.1.3 \
	github.com/client9/misspell				 v0.3.4 \
	github.com/davecgh/go-spew				 v1.1.1 \
	github.com/fatih/color					 v1.9.0 \
	github.com/fatih/structs				 v1.1.0 \
	github.com/frankban/quicktest				 v1.4.0 \
	github.com/go-ldap/ldap					 v3.0.2+incompatible \
	github.com/go-test/deep					 v1.0.2-0.20181118220953-042da051cf31 \
	github.com/golang/glog					 v0.0.0-20160126235308-23def4e6c14b \
	github.com/golang/mock					 v1.1.1 \
	github.com/golang/protobuf				 v1.3.1 \
	github.com/golang/snappy				 v0.0.1 \
	github.com/google/btree					 v1.0.0 \
	github.com/google/go-cmp				 v0.3.0 \
	github.com/hashicorp/consul-template			 v0.25.1 \
	github.com/hashicorp/consul/api				 v1.4.0 \
	github.com/hashicorp/consul/sdk				 v0.4.0 \
	github.com/hashicorp/errwrap				 v1.0.0 \
	github.com/hashicorp/go-cleanhttp			 v0.5.1 \
	github.com/hashicorp/go-gatedio				 v0.5.0 \
	github.com/hashicorp/go-hclog				 v0.12.0 \
	github.com/hashicorp/go-immutable-radix			 v1.1.0 \
	github.com/hashicorp/go-msgpack				 v0.5.5 \
	github.com/hashicorp/go-multierror			 v1.0.0 \
	github.com/hashicorp/go-plugin				 v1.0.1 \
	github.com/hashicorp/go-retryablehttp			 v0.5.4 \
	github.com/hashicorp/go-rootcerts			 v1.0.2 \
	github.com/hashicorp/go-sockaddr			 v1.0.2 \
	github.com/hashicorp/go-syslog				 v1.0.0 \
	github.com/hashicorp/go-uuid				 v1.0.1 \
	github.com/hashicorp/go-version				 v1.1.0 \
	github.com/hashicorp/go.net				 v0.0.1 \
	github.com/hashicorp/golang-lru				 v0.5.3 \
	github.com/hashicorp/hcl				 v1.0.0 \
	github.com/hashicorp/logutils				 v1.0.0 \
	github.com/hashicorp/mdns				 v1.0.0 \
	github.com/hashicorp/memberlist				 v0.1.4 \
	github.com/hashicorp/serf				 v0.8.3 \
	github.com/hashicorp/vault/api				 v1.0.5-0.20190730042357-746c0b111519 \
	github.com/hashicorp/vault/sdk				 v0.1.14-0.20190730042320-0dc007d98cc8 \
	github.com/hashicorp/yamux				 v0.0.0-20181012175058-2f1d1f20f75d \
	github.com/kr/pretty					 v0.2.0 \
	github.com/kr/pty					 v1.1.1 \
	github.com/kr/text					 v0.1.0 \
	github.com/mattn/go-colorable				 v0.1.4 \
	github.com/mattn/go-isatty				 v0.0.12 \
	github.com/mattn/go-shellwords				 v1.0.5 \
	github.com/matttproud/golang_protobuf_extensions	 v1.0.1 \
	github.com/miekg/dns					 v1.1.15 \
	github.com/mitchellh/cli				 v1.0.0 \
	github.com/mitchellh/copystructure			 v1.0.0 \
	github.com/mitchellh/go-homedir				 v1.1.0 \
	github.com/mitchellh/go-testing-interface		 v1.0.0 \
	github.com/mitchellh/go-wordwrap			 v1.0.0 \
	github.com/mitchellh/gox				 v0.4.0 \
	github.com/mitchellh/hashstructure			 v1.0.0 \
	github.com/mitchellh/iochan				 v1.0.0 \
	github.com/mitchellh/mapstructure			 v1.1.2 \
	github.com/mitchellh/reflectwalk			 v1.0.0 \
	github.com/oklog/run					 v1.0.0 \
	github.com/pascaldekloe/goe				 v0.1.0 \
	github.com/pierrec/lz4					 v2.2.5+incompatible \
	github.com/pkg/errors					 v0.8.1 \
	github.com/pmezard/go-difflib				 v1.0.0 \
	github.com/posener/complete				 v1.1.1 \
	github.com/prometheus/client_golang			 v0.9.2 \
	github.com/prometheus/client_model			 v0.0.0-20180712105110-5c3871d89910 \
	github.com/prometheus/common				 v0.0.0-20181126121408-4724e9255275 \
	github.com/prometheus/procfs				 v0.0.0-20181204211112-1dc9a6cbc91a \
	github.com/ryanuber/columnize				 v2.1.0+incompatible \
	github.com/ryanuber/go-glob				 v1.0.0 \
	github.com/sean-/seed					 v0.0.0-20170313163322-e2103e2c3529 \
	github.com/stretchr/objx				 v0.1.0 \
	github.com/stretchr/testify				 v1.4.0 \
	github.com/tv42/httpunix				 v0.0.0-20150427012821-b75d8614f926 \
	golang.org/x/crypto					 v0.0.0-20190701094942-4def268fd1a4 \
	golang.org/x/exp					 v0.0.0-20190121172915-509febef88a4 \
	golang.org/x/lint					 v0.0.0-20190313153728-d0100b6bd8b3 \
	golang.org/x/net					 v0.0.0-20190724013045-ca1201d0de80 \
	golang.org/x/oauth2					 v0.0.0-20180821212333-d2e6202438be \
	golang.org/x/sync					 v0.0.0-20190423024810-112230192c58 \
	golang.org/x/sys					 v0.0.0-20200124204421-9fbb57f87de9 \
	golang.org/x/text					 v0.3.2 \
	golang.org/x/time					 v0.0.0-20190308202827-9d24e82272b4 \
	golang.org/x/tools					 v0.0.0-20190524140312-2c0ae7006135 \
	google.golang.org/appengine				 v1.4.0 \
	google.golang.org/genproto				 v0.0.0-20190404172233-64821d5d2107 \
	google.golang.org/grpc					 v1.22.0 \
	gopkg.in/asn1-ber.v1					 v1.0.0-20181015200546-f715ec2f112d \
	gopkg.in/check.v1					 v1.0.0-20190902080502-41f04d3bba15 \
	gopkg.in/square/go-jose.v2				 v2.3.1 \
	gopkg.in/yaml.v2					 v2.2.8 \
	honnef.co/go/tools					 v0.0.0-20190523083050-ea95bdfd59fc

MODGO_MODFILES =	\
	github.com/armon/go-metrics			 v0.0.0-20180917152333-f0300d1749da \
	github.com/davecgh/go-spew			 v1.1.0 \
	github.com/fatih/color				 v1.7.0 \
	github.com/golang/protobuf			 v1.2.0 \
	github.com/google/btree				 v0.0.0-20180813153112-4030bb1f1f0c \
	github.com/google/go-cmp			 v0.2.0 \
	github.com/hashicorp/go-cleanhttp		 v0.5.0 \
	github.com/hashicorp/go-hclog			 v0.0.0-20180709165350-ff2cf002a8dd \
	github.com/hashicorp/go-hclog			 v0.8.0 \
	github.com/hashicorp/go-immutable-radix		 v1.0.0 \
	github.com/hashicorp/go-msgpack			 v0.5.3 \
	github.com/hashicorp/go-retryablehttp		 v0.5.3 \
	github.com/hashicorp/go-rootcerts		 v1.0.1 \
	github.com/hashicorp/go-sockaddr		 v1.0.0 \
	github.com/hashicorp/go-uuid			 v1.0.0 \
	github.com/hashicorp/golang-lru			 v0.5.0 \
	github.com/hashicorp/golang-lru			 v0.5.1 \
	github.com/hashicorp/memberlist			 v0.1.3 \
	github.com/hashicorp/serf			 v0.8.2 \
	github.com/hashicorp/yamux			 v0.0.0-20180604194846-3520598351bb \
	github.com/kr/pretty				 v0.1.0 \
	github.com/mattn/go-colorable			 v0.0.9 \
	github.com/mattn/go-isatty			 v0.0.10 \
	github.com/mattn/go-isatty			 v0.0.11 \
	github.com/mattn/go-isatty			 v0.0.3 \
	github.com/mattn/go-isatty			 v0.0.8 \
	github.com/miekg/dns				 v1.0.14 \
	github.com/mitchellh/go-testing-interface	 v0.0.0-20171004221916-a61a99592b77 \
	github.com/mitchellh/mapstructure		 v0.0.0-20160808181253-ca63d7c062ee \
	github.com/pascaldekloe/goe			 v0.0.0-20180627143212-57f6aae5913c \
	github.com/pierrec/lz4				 v2.0.5+incompatible \
	github.com/ryanuber/columnize			 v0.0.0-20160712163229-9b3edd62028f \
	github.com/stretchr/testify			 v1.2.2 \
	github.com/stretchr/testify			 v1.3.0 \
	golang.org/x/crypto				 v0.0.0-20181029021203-45a5f77698d3 \
	golang.org/x/crypto				 v0.0.0-20190308221718-c2843e01d9a2 \
	golang.org/x/lint				 v0.0.0-20181026193005-c67002cb31c3 \
	golang.org/x/lint				 v0.0.0-20190227174305-5b3e6a55c961 \
	golang.org/x/net				 v0.0.0-20180724234803-3673e40ba225 \
	golang.org/x/net				 v0.0.0-20180826012351-8a410e7b638d \
	golang.org/x/net				 v0.0.0-20181023162649-9b4f9f5ad519 \
	golang.org/x/net				 v0.0.0-20181201002055-351d144fa1fc \
	golang.org/x/net				 v0.0.0-20190213061140-3a22650c66bd \
	golang.org/x/net				 v0.0.0-20190311183353-d8887717615a \
	golang.org/x/net				 v0.0.0-20190404232315-eb5bcb51f2a3 \
	golang.org/x/net				 v0.0.0-20190620200207-3b0461eec859 \
	golang.org/x/sync				 v0.0.0-20180314180146-1d60e4601c6f \
	golang.org/x/sync				 v0.0.0-20181108010431-42b317875d0f \
	golang.org/x/sync				 v0.0.0-20181221193216-37e7f081c4d4 \
	golang.org/x/sync				 v0.0.0-20190227155943-e225da77a7e6 \
	golang.org/x/sys				 v0.0.0-20180823144017-11551d06cbcc \
	golang.org/x/sys				 v0.0.0-20180830151530-49385e6e1522 \
	golang.org/x/sys				 v0.0.0-20181026203630-95b1ffbd15a5 \
	golang.org/x/sys				 v0.0.0-20190129075346-302c3dd5f1cc \
	golang.org/x/sys				 v0.0.0-20190215142949-d0b11bdaac8a \
	golang.org/x/sys				 v0.0.0-20190222072716-a9d3bda3a223 \
	golang.org/x/sys				 v0.0.0-20190403152447-81d4e9dc473e \
	golang.org/x/sys				 v0.0.0-20190412213103-97732733099d \
	golang.org/x/sys				 v0.0.0-20191008105621-543471e840be \
	golang.org/x/sys				 v0.0.0-20191026070338-33540a1f6037 \
	golang.org/x/sys				 v0.0.0-20200116001909-b77594299b42 \
	golang.org/x/text				 v0.3.0 \
	golang.org/x/text				 v0.3.1-0.20181227161524-e6919f6577db \
	golang.org/x/tools				 v0.0.0-20180917221912-90fa682c2a6e \
	golang.org/x/tools				 v0.0.0-20190114222345-bf090417da8b \
	golang.org/x/tools				 v0.0.0-20190226205152-f727befe758c \
	golang.org/x/tools				 v0.0.0-20190311212946-11955173bddd \
	google.golang.org/appengine			 v1.1.0 \
	google.golang.org/genproto			 v0.0.0-20180817151627-c66870c02cf8 \
	google.golang.org/grpc				 v1.14.0 \
	google.golang.org/grpc				 v1.19.0 \
	gopkg.in/check.v1				 v0.0.0-20161208181325-20d25e280405 \
	gopkg.in/yaml.v2				 v2.2.2 \
	honnef.co/go/tools				 v0.0.0-20190102054323-c2f93a96b099

.include <bsd.port.mk>
