summaryrefslogtreecommitdiff
path: root/sysutils/node_exporter/Makefile
blob: 4886f2aa4e31affd3175ad1d4f2463611af5e16d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Created by: Jev Björsell <ports@ecadlabs.com>
# $FreeBSD$

PORTNAME=	node_exporter
PORTVERSION=	0.13.0
DISTVERSIONPREFIX=v
CATEGORIES=	sysutils

MAINTAINER=	ports@ecadlabs.com
COMMENT=	Prometheus exporter for machine metrics

LICENSE=	APACHE20

BROKEN_FreeBSD_9=	does not build

USES=		go
USE_GITHUB=	yes

GH_ACCOUNT=	prometheus

GO_PKGNAME=	github.com/${GH_ACCOUNT}/${PORTNAME}
GO_TARGET=	github.com/${GH_ACCOUNT}/${PORTNAME}

PLIST_FILES=	bin/node_exporter

USE_RC_SUBR=	node_exporter

STRIP=		# stripping can break go binaries

do-install:
	${INSTALL_PROGRAM} ${WRKDIR}/bin/node_exporter ${STAGEDIR}${PREFIX}/bin

.include <bsd.port.mk>