blob: 8aae2990842e2d38fec2beb6b18688f8f355f0a5 (
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
31
32
33
34
|
PORTNAME= gitlab-agent
PORTVERSION= ${GITLAB_VERSION}
PORTREVISION= ${GITLAB_PORTREVISION} # modify it in www/gitlab/Makefile.common
DISTVERSIONPREFIX= v
CATEGORIES= net
MAINTAINER= mfechner@FreeBSD.org
COMMENT= GitLab kubernetes agent
WWW= https://gitlab.com/gitlab-org/cluster-integration/gitlab-agent
LICENSE= MIT
# bazel>=0:devel/bazel \
BUILD_DEPENDS= git>=0:devel/git \
golangci-lint>=0:devel/golangci-lint
USES= go:modules,1.23
GO_MODULE= gitlab.com/gitlab-org/cluster-integration/gitlab-agent/v18
_BUILD_DATE= $$(date -u "+%Y-%m-%d-%H%M UTC")
GO_TARGET= ./cmd/kas
GO_BUILDFLAGS= -tags="tracer_static,tracer_static_jaeger" \
-ldflags=" \
-X 'gitlab.com/gitlab-org/cluster-integration/gitlab-agent/v16/cmd.Version=v${PORTVERSION}' \
-X 'gitlab.com/gitlab-org/cluster-integration/gitlab-agent/v16/cmd.Commit=${GL_TAGNAME:C/^(........).*/\1/}' \
-X 'gitlab.com/gitlab-org/cluster-integration/gitlab-agent/v16/cmd.BuildTime=${_BUILD_DATE}'"
PLIST_FILES= bin/kas
do-install:
${INSTALL_PROGRAM} ${WRKDIR}/bin/kas ${STAGEDIR}${PREFIX}/bin/kas
.include "${.CURDIR}/../../www/gitlab/Makefile.common"
.include <bsd.port.mk>
|