freebsd-ports/www/nginx-prometheus-exporter/Makefile
Steve Wills 9ed7d8513e www/nginx-prometheus-exporter: update to 0.4.1, fix version string
PR:		238824
Submitted by:	Volodymyr Kostyrko <arcade@b1t.name> (maintainer)
2019-06-30 21:21:17 +00:00

34 lines
713 B
Makefile

# Created by: Jev Björsell <ports@ecadlabs.com>
# $FreeBSD$
PORTNAME= nginx-prometheus-exporter
PORTVERSION= 0.4.1
DISTVERSIONPREFIX=v
CATEGORIES= www
MAINTAINER= arcade@b1t.name
COMMENT= Prometheus exporter for NGINX and NGINX Plus stats
LICENSE= APACHE20
USES= go
USE_GITHUB= yes
GH_ACCOUNT= nginxinc
GO_PKGNAME= github.com/${GH_ACCOUNT}/${PORTNAME}
GO_TARGET= github.com/${GH_ACCOUNT}/${PORTNAME}
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}"
do-install:
${INSTALL_PROGRAM} ${WRKDIR}/bin/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
.include <bsd.port.mk>