freebsd-ports/sysutils/kops/Makefile
2020-10-27 18:27:01 +00:00

206 lines
14 KiB
Makefile

# Created by: Danilo Egea Gondolfo <danilo@FreeBSD.org>
# $FreeBSD$
PORTNAME= kops
PORTVERSION= 1.18.2
DISTVERSIONPREFIX= v
CATEGORIES= sysutils
MAINTAINER= danilo@FreeBSD.org
COMMENT= Kubernetes Operations
LICENSE= APACHE20
BUILD_DEPENDS= go-bindata:devel/go-bindata
USES= go:modules
USE_GITHUB= yes
GH_ACCOUNT= kubernetes
# The vendored golang/net fails to build on aarch64
GOLANG_NET_V= 6afb5195e5aa
GH_TUPLE= \
Azure:go-ansiterm:d6e3b3328b78:azure_go_ansiterm/vendor/github.com/Azure/go-ansiterm \
Azure:go-autorest:v11.1.2:azure_go_autorest/vendor/github.com/Azure/go-autorest \
BurntSushi:toml:v0.3.1:burntsushi_toml/vendor/github.com/BurntSushi/toml \
GoogleCloudPlatform:k8s-cloud-provider:27a4ced34534:googlecloudplatform_k8s_cloud_provider/vendor/github.com/GoogleCloudPlatform/k8s-cloud-provider \
MakeNowJust:heredoc:bb23615498cd:makenowjust_heredoc/vendor/github.com/MakeNowJust/heredoc \
Masterminds:semver:v1.3.1:masterminds_semver/vendor/github.com/Masterminds/semver \
Masterminds:sprig:v2.17.1:masterminds_sprig/vendor/github.com/Masterminds/sprig \
Microsoft:go-winio:v0.4.14:microsoft_go_winio/vendor/github.com/Microsoft/go-winio \
PuerkitoBio:purell:v1.1.1:puerkitobio_purell/vendor/github.com/PuerkitoBio/purell \
PuerkitoBio:urlesc:de5bf2ad4578:puerkitobio_urlesc/vendor/github.com/PuerkitoBio/urlesc \
agext:levenshtein:v1.2.1:agext_levenshtein/vendor/github.com/agext/levenshtein \
aokoli:goutils:v1.0.1:aokoli_goutils/vendor/github.com/aokoli/goutils \
apparentlymart:go-textseg:v1.0.0:apparentlymart_go_textseg/vendor/github.com/apparentlymart/go-textseg \
armon:go-metrics:f0300d1749da:armon_go_metrics/vendor/github.com/armon/go-metrics \
aws:aws-sdk-go:v1.30.16:aws_aws_sdk_go/vendor/github.com/aws/aws-sdk-go \
bazelbuild:bazel-gazelle:v0.19.1:bazelbuild_bazel_gazelle/vendor/github.com/bazelbuild/bazel-gazelle \
bazelbuild:buildtools:69366ca98f89:bazelbuild_buildtools/vendor/github.com/bazelbuild/buildtools \
beorn7:perks:v1.0.1:beorn7_perks/vendor/github.com/beorn7/perks \
blang:semver:v3.5.0:blang_semver/vendor/github.com/blang/semver \
census-instrumentation:opencensus-go:v0.21.0:census_instrumentation_opencensus_go/vendor/go.opencensus.io \
chai2010:gettext-go:bf70f2a70fb1:chai2010_gettext_go/vendor/github.com/chai2010/gettext-go \
client9:misspell:v0.3.4:client9_misspell/vendor/github.com/client9/misspell \
coreos:etcd:v3.3.17:coreos_etcd/vendor/github.com/coreos/etcd \
coreos:go-semver:v0.3.0:coreos_go_semver/vendor/github.com/coreos/go-semver \
cpuguy83:go-md2man:v1.0.10:cpuguy83_go_md2man/vendor/github.com/cpuguy83/go-md2man \
davecgh:go-spew:v1.1.1:davecgh_go_spew/vendor/github.com/davecgh/go-spew \
denverdino:aliyungo:acd8035bbb1d:denverdino_aliyungo/vendor/github.com/denverdino/aliyungo \
dgrijalva:jwt-go:v3.2.0:dgrijalva_jwt_go/vendor/github.com/dgrijalva/jwt-go \
digitalocean:godo:v1.19.0:digitalocean_godo/vendor/github.com/digitalocean/godo \
docker:distribution:v2.7.1:docker_distribution/vendor/github.com/docker/distribution \
Azure:go-autorest:v11.1.2:azure_go_autorest/vendor/github.com/Azure/go-autorest \
docker:engine-api:dea108d3aa0c:docker_engine_api/vendor/github.com/docker/engine-api \
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 \
docker:spdystream:6480d4af844c:docker_spdystream/vendor/github.com/docker/spdystream \
dominikh:go-tools:v0.0.1-2019.2.3:dominikh_go_tools/vendor/honnef.co/go/tools \
emicklei:go-restful:v2.9.6:emicklei_go_restful/vendor/github.com/emicklei/go-restful \
evanphx:json-patch:v4.5.0:evanphx_json_patch/vendor/github.com/evanphx/json-patch \
exponent-io:jsonpath:d6023ce2651d:exponent_io_jsonpath/vendor/github.com/exponent-io/jsonpath \
fatih:color:v1.7.0:fatih_color/vendor/github.com/fatih/color \
fsnotify:fsnotify:v1.4.7:fsnotify_fsnotify/vendor/github.com/fsnotify/fsnotify \
fullsailor:pkcs7:ae226422660e:fullsailor_pkcs7/vendor/github.com/fullsailor/pkcs7 \
ghodss:yaml:v1.0.0:ghodss_yaml/vendor/github.com/ghodss/yaml \
go-bindata:go-bindata:v3.1.2:go_bindata_go_bindata/vendor/github.com/go-bindata/go-bindata \
go-gcfg:gcfg:v1.2.3:go_gcfg_gcfg/vendor/gopkg.in/gcfg.v1 \
go-inf:inf:v0.9.1:go_inf_inf/vendor/gopkg.in/inf.v0 \
go-ini:ini:v1.51.0:go_ini_ini/vendor/github.com/go-ini/ini \
go-logr:logr:v0.1.0:go_logr_logr/vendor/github.com/go-logr/logr \
go-openapi:jsonpointer:v0.19.3:go_openapi_jsonpointer/vendor/github.com/go-openapi/jsonpointer \
go-openapi:jsonreference:v0.19.3:go_openapi_jsonreference/vendor/github.com/go-openapi/jsonreference \
go-openapi:spec:v0.19.3:go_openapi_spec/vendor/github.com/go-openapi/spec \
go-openapi:swag:v0.19.5:go_openapi_swag/vendor/github.com/go-openapi/swag \
go-warnings:warnings:v0.1.2:go_warnings_warnings/vendor/gopkg.in/warnings.v0 \
go-yaml:yaml:827449938966:go_yaml_yaml_1/vendor/gopkg.in/yaml.v3 \
go-yaml:yaml:v2.2.8:go_yaml_yaml/vendor/gopkg.in/yaml.v2 \
gobuffalo:flect:v0.2.0:gobuffalo_flect/vendor/github.com/gobuffalo/flect \
gogo:protobuf:v1.3.1:gogo_protobuf/vendor/github.com/gogo/protobuf \
golang:appengine:v1.6.2:golang_appengine/vendor/google.golang.org/appengine \
golang:crypto:bac4c82f6975:golang_crypto/vendor/golang.org/x/crypto \
golang:groupcache:869f871628b6:golang_groupcache/vendor/github.com/golang/groupcache \
golang:net:${GOLANG_NET_V}:golang_net/vendor/golang.org/x/net_new \
golang:oauth2:0f29369cfe45:golang_oauth2/vendor/golang.org/x/oauth2 \
golang:protobuf:v1.3.3:golang_protobuf/vendor/github.com/golang/protobuf \
golang:sync:cd5d95a43a6e:golang_sync/vendor/golang.org/x/sync \
golang:sys:6d18c012aee9:golang_sys/vendor/golang.org/x/sys \
golang:text:v0.3.2:golang_text/vendor/golang.org/x/text \
golang:time:9d24e82272b4:golang_time/vendor/golang.org/x/time \
golang:tools:c197fd4bf371:golang_tools/vendor/golang.org/x/tools \
gomodules:jsonpatch:v2.0.1:gomodules_jsonpatch/vendor/gomodules.xyz/jsonpatch \
google:btree:v1.0.0:google_btree/vendor/github.com/google/btree \
google:go-cmp:v0.3.1:google_go_cmp/vendor/github.com/google/go-cmp \
google:go-genproto:24fa4b261c55:google_go_genproto/vendor/google.golang.org/genproto \
google:go-querystring:v1.0.0:google_go_querystring/vendor/github.com/google/go-querystring \
google:gofuzz:v1.1.0:google_gofuzz/vendor/github.com/google/gofuzz \
google:uuid:v1.1.1:google_uuid/vendor/github.com/google/uuid \
googleapis:gax-go:v2.0.5:googleapis_gax_go_v2/vendor/github.com/googleapis/gax-go/v2 \
googleapis:gnostic:v0.3.1:googleapis_gnostic/vendor/github.com/googleapis/gnostic \
googleapis:google-api-go-client:v0.22.0:googleapis_google_api_go_client/vendor/google.golang.org/api \
googleapis:google-cloud-go:v0.38.0:googleapis_google_cloud_go/vendor/cloud.google.com/go \
gophercloud:gophercloud:v0.9.0:gophercloud_gophercloud/vendor/github.com/gophercloud/gophercloud \
gorilla:mux:v1.7.3:gorilla_mux/vendor/github.com/gorilla/mux \
gregjones:httpcache:9cad4c3443a7:gregjones_httpcache/vendor/github.com/gregjones/httpcache \
grpc:grpc-go:v1.27.0:grpc_grpc_go/vendor/google.golang.org/grpc \
hashicorp:errwrap:v1.0.0:hashicorp_errwrap/vendor/github.com/hashicorp/errwrap \
hashicorp:go-immutable-radix:v1.0.0:hashicorp_go_immutable_radix/vendor/github.com/hashicorp/go-immutable-radix \
hashicorp:go-msgpack:v0.5.3:hashicorp_go_msgpack/vendor/github.com/hashicorp/go-msgpack \
hashicorp:go-multierror:v1.0.0:hashicorp_go_multierror/vendor/github.com/hashicorp/go-multierror \
hashicorp:go-sockaddr:v1.0.2:hashicorp_go_sockaddr/vendor/github.com/hashicorp/go-sockaddr \
hashicorp:go-version:v1.2.0:hashicorp_go_version/vendor/github.com/hashicorp/go-version \
hashicorp:golang-lru:v0.5.3:hashicorp_golang_lru/vendor/github.com/hashicorp/golang-lru \
hashicorp:hcl:v1.0.0:hashicorp_hcl/vendor/github.com/hashicorp/hcl \
hashicorp:hcl:v2.3.0:hashicorp_hcl_v2/vendor/github.com/hashicorp/hcl/v2 \
hashicorp:memberlist:v0.1.4:hashicorp_memberlist/vendor/github.com/hashicorp/memberlist \
huandu:xstrings:v1.2.0:huandu_xstrings/vendor/github.com/huandu/xstrings \
imdario:mergo:v0.3.7:imdario_mergo/vendor/github.com/imdario/mergo \
inconshreveable:mousetrap:v1.0.0:inconshreveable_mousetrap/vendor/github.com/inconshreveable/mousetrap \
jacksontj:memberlistmesh:93462b9d2bb7:jacksontj_memberlistmesh/vendor/github.com/jacksontj/memberlistmesh \
jmespath:go-jmespath:v0.3.0:jmespath_go_jmespath/vendor/github.com/jmespath/go-jmespath \
jpillora:backoff:8eab2debe79d:jpillora_backoff/vendor/github.com/jpillora/backoff \
kubernetes-sigs:controller-runtime:754026bd8510:kubernetes_sigs_controller_runtime/vendor/sigs.k8s.io/controller-runtime \
kubernetes-sigs:controller-tools:v0.2.8:kubernetes_sigs_controller_tools/vendor/sigs.k8s.io/controller-tools \
kubernetes-sigs:kustomize:v2.0.3:kubernetes_sigs_kustomize/vendor/sigs.k8s.io/kustomize \
kubernetes-sigs:structured-merge-diff:v3.0.0:kubernetes_sigs_structured_merge_diff/vendor/sigs.k8s.io/structured-merge-diff \
json-iterator:go:v1.1.8:json_iterator_go/vendor/github.com/json-iterator/go \
konsorten:go-windows-terminal-sequences:v1.0.2:konsorten_go_windows_terminal_sequences/vendor/github.com/konsorten/go-windows-terminal-sequences \
kr:fs:v0.1.0:kr_fs/vendor/github.com/kr/fs \
kubernetes-sigs:yaml:v1.2.0:kubernetes_sigs_yaml/vendor/sigs.k8s.io/yaml \
kubernetes:api:v0.18.1:kubernetes_api/vendor/k8s.io/api \
kubernetes:apiextensions-apiserver:v0.18.1:kubernetes_apiextensions_apiserver/vendor/k8s.io/apiextensions-apiserver \
kubernetes:apimachinery:v0.18.1:kubernetes_apimachinery/vendor/k8s.io/apimachinery \
kubernetes:cli-runtime:v0.18.1:kubernetes_cli_runtime/vendor/k8s.io/cli-runtime \
kubernetes:client-go:v0.18.1:kubernetes_client_go/vendor/k8s.io/client-go \
kubernetes:cloud-provider-openstack:v1.17.0:kubernetes_cloud_provider_openstack/vendor/k8s.io/cloud-provider-openstack \
kubernetes:cloud-provider:v0.18.1:kubernetes_cloud_provider/vendor/k8s.io/cloud-provider \
kubernetes:component-base:v0.18.1:kubernetes_component_base/vendor/k8s.io/component-base \
kubernetes:csi-translation-lib:v0.18.1:kubernetes_csi_translation_lib/vendor/k8s.io/csi-translation-lib \
kubernetes:helm:v2.9.0:kubernetes_helm/vendor/k8s.io/helm \
kubernetes:klog:v1.0.0:kubernetes_klog/vendor/k8s.io/klog \
kubernetes:kube-openapi:bf4fb3bd569c:kubernetes_kube_openapi/vendor/k8s.io/kube-openapi \
kubernetes:kubectl:v0.18.1:kubernetes_kubectl/vendor/k8s.io/kubectl \
kubernetes:legacy-cloud-providers:v0.18.1:kubernetes_legacy_cloud_providers/vendor/k8s.io/legacy-cloud-providers \
kubernetes:utils:a9aa75ae1b89:kubernetes_utils/vendor/k8s.io/utils \
liggitt:tabwriter:89fcab3d43de:liggitt_tabwriter/vendor/github.com/liggitt/tabwriter \
magiconair:properties:v1.8.1:magiconair_properties/vendor/github.com/magiconair/properties \
mailru:easyjson:v0.7.0:mailru_easyjson/vendor/github.com/mailru/easyjson \
mattn:go-colorable:v0.1.2:mattn_go_colorable/vendor/github.com/mattn/go-colorable \
mattn:go-isatty:v0.0.9:mattn_go_isatty/vendor/github.com/mattn/go-isatty \
matttproud:golang_protobuf_extensions:v1.0.1:matttproud_golang_protobuf_extensions/vendor/github.com/matttproud/golang_protobuf_extensions \
miekg:coredns:20e25559d5ea:miekg_coredns/vendor/github.com/miekg/coredns \
miekg:dns:v1.1.16:miekg_dns/vendor/github.com/miekg/dns \
mitchellh:go-wordwrap:v1.0.0:mitchellh_go_wordwrap/vendor/github.com/mitchellh/go-wordwrap \
mitchellh:mapstructure:v1.1.2:mitchellh_mapstructure/vendor/github.com/mitchellh/mapstructure \
modern-go:concurrent:bacd9c7ef1dd:modern_go_concurrent/vendor/github.com/modern-go/concurrent \
modern-go:reflect2:v1.0.1:modern_go_reflect2/vendor/github.com/modern-go/reflect2 \
oklog:ulid:v1.3.1:oklog_ulid/vendor/github.com/oklog/ulid \
opencontainers:go-digest:v1.0.0-rc1:opencontainers_go_digest/vendor/github.com/opencontainers/go-digest \
pelletier:go-toml:v1.4.0:pelletier_go_toml/vendor/github.com/pelletier/go-toml \
peterbourgon:diskv:v2.0.1:peterbourgon_diskv/vendor/github.com/peterbourgon/diskv \
pkg:errors:v0.9.1:pkg_errors/vendor/github.com/pkg/errors \
pkg:sftp:4d0e916071f6:pkg_sftp/vendor/github.com/pkg/sftp \
pmezard:go-difflib:v1.0.0:pmezard_go_difflib/vendor/github.com/pmezard/go-difflib \
prometheus:client_golang:v1.0.0:prometheus_client_golang/vendor/github.com/prometheus/client_golang \
prometheus:client_model:v0.2.0:prometheus_client_model/vendor/github.com/prometheus/client_model \
prometheus:common:v0.4.1:prometheus_common/vendor/github.com/prometheus/common \
prometheus:procfs:v0.0.2:prometheus_procfs/vendor/github.com/prometheus/procfs \
russross:blackfriday:v1.5.2:russross_blackfriday/vendor/github.com/russross/blackfriday \
sean-:seed:e2103e2c3529:sean__seed/vendor/github.com/sean-/seed \
sergi:go-diff:v1.0.0:sergi_go_diff/vendor/github.com/sergi/go-diff \
sirupsen:logrus:v1.4.2:sirupsen_logrus/vendor/github.com/sirupsen/logrus \
spf13:afero:v1.2.2:spf13_afero/vendor/github.com/spf13/afero \
spf13:cast:v1.3.0:spf13_cast/vendor/github.com/spf13/cast \
spf13:cobra:v0.0.5:spf13_cobra/vendor/github.com/spf13/cobra \
spf13:jwalterweatherman:v1.1.0:spf13_jwalterweatherman/vendor/github.com/spf13/jwalterweatherman \
spf13:pflag:v1.0.5:spf13_pflag/vendor/github.com/spf13/pflag \
spf13:viper:v1.4.0:spf13_viper/vendor/github.com/spf13/viper \
spotinst:spotinst-sdk-go:v1.49.0:spotinst_spotinst_sdk_go/vendor/github.com/spotinst/spotinst-sdk-go \
stretchr:testify:v1.5.1:stretchr_testify/vendor/github.com/stretchr/testify \
uber-go:atomic:v1.4.0:uber_go_atomic/vendor/go.uber.org/atomic \
uber-go:multierr:v1.1.0:uber_go_multierr/vendor/go.uber.org/multierr \
uber-go:zap:v1.10.0:uber_go_zap/vendor/go.uber.org/zap \
urfave:cli:v1.20.0:urfave_cli/vendor/github.com/urfave/cli \
weaveworks:mesh:1f158d31de55:weaveworks_mesh/vendor/github.com/weaveworks/mesh \
zclconf:go-cty:v1.3.1:zclconf_go_cty/vendor/github.com/zclconf/go-cty
GO_PKGNAME= k8s.io/${PORTNAME}
GO_TARGET= ${GO_PKGNAME}/cmd/${PORTNAME}
GO_BUILDFLAGS= -ldflags=all="-X k8s.io/kops.Version=${PORTVERSION}"
PLIST_FILES= bin/${PORTNAME}
post-patch:
${RM} -r ${WRKSRC}/vendor/modules.txt
${RM} -r ${WRKSRC}/vendor/golang.org/x/net
${LN} -s ${WRKSRC}/vendor/golang.org/x/net_new ${WRKSRC}/vendor/golang.org/x/net
pre-build:
cd ${WRKSRC} && \
${LOCALBASE}/bin/go-bindata -o upup/models/bindata.go -pkg models \
-prefix upup/models/ upup/models/...
.include <bsd.port.mk>