mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-24 09:25:01 +00:00
2c6e32fee0
Modern load testing tool for developers and testers in the DevOps era, building on Load Impact's years of experience in the load and performance testing industry. It provides a clean, approachable scripting API, local and cloud execution, and flexible configuration. WWW: https://k6.io/ PR: 245082 Submitted by: Lewis Cook <vulcan@wired.sh>
39 lines
815 B
Makefile
39 lines
815 B
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= k6
|
|
DISTVERSIONPREFIX= v
|
|
DISTVERSION= 0.26.2
|
|
CATEGORIES= net
|
|
|
|
MAINTAINER= vulcan@wired.sh
|
|
COMMENT= Modern load testing tool, using Go and Javascript
|
|
|
|
LICENSE= AGPLv3
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE.md
|
|
|
|
USES= go
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= loadimpact
|
|
|
|
_BUILD_DATE= $$(date -u +"%FT%T%z")
|
|
_BUILD_HASH= 459da79
|
|
|
|
GO_PKGNAME= github.com/${GH_ACCOUNT}/${PORTNAME}
|
|
GO_BUILDFLAGS= -ldflags "\
|
|
-s -w \
|
|
-X ${GO_PKGNAME}/lib/consts.VersionDetails=${_BUILD_DATE}/${_BUILD_HASH}"
|
|
|
|
PLIST_FILES= bin/${PORTNAME}
|
|
PORTDOCS= ${DOCS:T}
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
DOCS= release\ notes/\${DISTVERSIONFULL}.md CODE_OF_CONDUCT.md \
|
|
CONTRIBUTING.md README.md SUPPORT.md
|
|
|
|
post-install-DOCS-on:
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${STAGEDIR}${DOCSDIR}
|
|
|
|
.include <bsd.port.mk>
|