freebsd-ports/www/nginx-prometheus-exporter/Makefile
Li-Wen Hsu b738695bae Update to 0.8.0
PR:		247462
Submitted by:	Volodymyr Kostyrko <arcade@b1t.name> (maintainer)
2020-06-27 17:36:43 +00:00

28 lines
539 B
Makefile

# Created by: Jev Björsell <ports@ecadlabs.com>
# $FreeBSD$
PORTNAME= nginx-prometheus-exporter
PORTVERSION= 0.8.0
DISTVERSIONPREFIX=v
CATEGORIES= www
MAINTAINER= arcade@b1t.name
COMMENT= Prometheus exporter for NGINX and NGINX Plus stats
LICENSE= APACHE20
USES= go:modules
USE_GITHUB= yes
GH_ACCOUNT= nginxinc
PLIST_FILES= bin/${PORTNAME}
USE_RC_SUBR= ${PORTNAME}
LD_FLAG_X_PREFIX= -X main
LD_FLAG_STRING= -s \
${LD_FLAG_X_PREFIX}.version=${PORTVERSION}
GO_BUILDFLAGS= -v -ldflags "${LD_FLAG_STRING}"
.include <bsd.port.mk>