# Created by: Danilo Egea Gondolfo # $FreeBSD$ PORTNAME= kubectl PORTVERSION= 1.16.0 DISTVERSIONPREFIX= v CATEGORIES= sysutils MAINTAINER= danilo@FreeBSD.org COMMENT= Kubernetes command-line tool LICENSE= APACHE20 USES= go:modules USE_GITHUB= yes GH_ACCOUNT= kubernetes GH_PROJECT= kubernetes GO_PKGNAME= k8s.io/kubernetes GO_TARGET= ${GO_PKGNAME}/cmd/${PORTNAME} GO_BUILDFLAGS= -ldflags="-X k8s.io/kubectl/pkg/version.gitMajor=${PORTVERSION:R:R} \ -X k8s.io/kubectl/pkg/version.gitMinor=${PORTVERSION:R:E} \ -X k8s.io/kubectl/pkg/version.buildDate=$$(date +'%Y-%m-%dT%H:%M:%SZ') \ -X k8s.io/kubectl/pkg/version.gitCommit="" \ -X k8s.io/kubectl/pkg/version.gitVersion=${DISTVERSIONPREFIX}${PORTVERSION} \ -X k8s.io/client-go/pkg/version.gitVersion=${DISTVERSIONPREFIX}${PORTVERSION}" PLIST_FILES= bin/${PORTNAME} .include