freebsd-ports/sysutils/snmp_exporter/Makefile
Dmitri Goutnik fc95b3f0cf Go ports: cleanup, finish transition to USES=go started with r505321 (cat. sysutils-x11)
- Remove custom build/install targets left in place after r505321
- Switch to the new GO_TARGET tuple syntax introduced in r512001

Reviewed by:	tobik
Approved by:	araujo (mentor), portmgr (adamw)
Differential Revision:	https://reviews.freebsd.org/D21744
2019-09-29 22:34:31 +00:00

31 lines
666 B
Makefile

# $FreeBSD$
PORTNAME= snmp_exporter
PORTVERSION= 0.14.0
DISTVERSIONPREFIX=v
CATEGORIES= sysutils
MAINTAINER= fabian.freyer@physik.tu-berlin.de
COMMENT= SNMP Exporter for Prometheus
LICENSE= APACHE20
LIB_DEPENDS= libnetsnmp.so:net-mgmt/net-snmp
USES= go:modules
USE_GITHUB= yes
USE_RC_SUBR= snmp_exporter
GH_ACCOUNT= prometheus
GO_TARGET= . \
./generator:snmp_exporter_generator
post-patch:
@${REINPLACE_CMD} -e 's|/usr/local|${PREFIX}|g' ${GO_WRKSRC}/generator/main.go
post-install:
${MKDIR} ${STAGEDIR}${PREFIX}/etc/snmp_exporter/
${INSTALL_DATA} ${FILESDIR}/generator.yml ${STAGEDIR}${PREFIX}/etc/snmp_exporter/generator.yml
.include <bsd.port.mk>