blob: 50f2ae3acbc3b535b1ccb7343fea1af4da433f3a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
# Created by: Danilo Egea Gondolfo <danilo@FreeBSD.org>
# $FreeBSD$
PORTNAME= kubectl
PORTVERSION= 1.15.0
DISTVERSIONPREFIX= v
CATEGORIES= sysutils
MAINTAINER= danilo@FreeBSD.org
COMMENT= Kubernetes command-line tool
LICENSE= APACHE20
USES= go
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/kubernetes/pkg/kubectl/version.gitMajor=${PORTVERSION:R:R} \
-X k8s.io/kubernetes/pkg/kubectl/version.gitMinor=${PORTVERSION:R:E} \
-X k8s.io/kubernetes/pkg/kubectl/version.buildDate=$$(date +'%Y-%m-%dT%H:%M:%SZ') \
-X k8s.io/kubernetes/pkg/kubectl/version.gitCommit="" \
-X k8s.io/kubernetes/pkg/kubectl/version.gitVersion=${DISTVERSIONPREFIX}${PORTVERSION}"
PLIST_FILES= bin/${PORTNAME}
.include <bsd.port.mk>
|