mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-21 04:06:46 +00:00
36 lines
796 B
Makefile
36 lines
796 B
Makefile
PORTNAME= k6
|
|
DISTVERSIONPREFIX= v
|
|
DISTVERSION= 0.32.0
|
|
CATEGORIES= net
|
|
|
|
MAINTAINER= lcook@FreeBSD.org
|
|
COMMENT= Modern load testing tool, using Go and Javascript
|
|
|
|
LICENSE= AGPLv3
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE.md
|
|
|
|
USES= go:modules
|
|
|
|
_BUILD_DATE= $$(date -u +"%FT%T%z")
|
|
_BUILD_HASH= e9d8349
|
|
|
|
GO_MODULE= github.com/k6io/${PORTNAME}
|
|
GO_BUILDFLAGS= -ldflags "\
|
|
-s -w \
|
|
-X github.com/${GH_ACCOUNT}/${PORTNAME}/lib/consts.VersionDetails=${_BUILD_DATE}/${_BUILD_HASH}"
|
|
|
|
PLIST_FILES= bin/${PORTNAME}
|
|
_DOCS= release\ notes/\${DISTVERSIONFULL}.md CODE_OF_CONDUCT.md \
|
|
CONTRIBUTING.md README.md SUPPORT.md
|
|
PORTDOCS= ${_DOCS:T}
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
post-install-DOCS-on:
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
cd ${WRKSRC} && \
|
|
${INSTALL_DATA} ${_DOCS} \
|
|
${STAGEDIR}${DOCSDIR}
|
|
|
|
.include <bsd.port.mk>
|