summaryrefslogtreecommitdiff
path: root/net/kubectl/Makefile
blob: 3f0dcdf55792fd679f0b108aa1f1a14f4c3126fb (plain)
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
# $NetBSD: Makefile,v 1.30 2022/12/10 14:13:20 leot Exp $

DISTNAME=	kubectl-1.22.17
CATEGORIES=	net
MASTER_SITES=	${MASTER_SITE_GITHUB:=kubernetes/}
GITHUB_PROJECT=	kubernetes
GITHUB_TAG=	v${PKGVERSION_NOREV}

MAINTAINER=	leot@NetBSD.org
HOMEPAGE=	https://github.com/kubernetes/kubectl
COMMENT=	Command line tool lets you control Kubernetes clusters
LICENSE=	apache-2.0

GO_BUILD_PATTERN+=	-ldflags ' \
			-X k8s.io/client-go/pkg/version.buildDate="" \
			-X k8s.io/client-go/pkg/version.gitTreeState=clean \
			-X k8s.io/client-go/pkg/version.gitVersion=v${PKGVERSION_NOREV} \
			-X k8s.io/component-base/version.buildDate="" \
			-X k8s.io/component-base/version.gitMajor=${PKGVERSION_NOREV:C/\..*//} \
			-X k8s.io/component-base/version.gitMinor=${PKGVERSION_NOREV:C/[0-9]+\.//:C/\..*//} \
			-X k8s.io/component-base/version.gitTreeState=clean \
			-X k8s.io/component-base/version.gitVersion=v${PKGVERSION_NOREV}'
GO_BUILD_PATTERN+=	-mod=readonly ./cmd/kubectl

.include "go-modules.mk"

.include "../../lang/go/go-module.mk"
.include "../../mk/bsd.pkg.mk"