summaryrefslogtreecommitdiff
path: root/sysutils/ipmi_exporter/Makefile
blob: d91f2a57c6b13438f1f6187b34dabd4f8bb1c42d (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
PORTNAME=	ipmi_exporter
DISTVERSIONPREFIX=	v
DISTVERSION=	1.6.1
PORTREVISION=	5
CATEGORIES=	sysutils

MAINTAINER=	meka@tilda.center
COMMENT=	IPMI exporter for Prometheus
WWW=		https://github.com/prometheus-community/ipmi_exporter

LICENSE=	MIT
LICENSE_FILE=	${WRKSRC}/LICENSE

LIB_DEPENDS=	libfreeipmi.so:sysutils/freeipmi

USES=		go:modules
USE_RC_SUBR=	${PORTNAME}

GO_MODULE=	github.com/prometheus-community/${PORTNAME}

PLIST_FILES=	bin/${PORTNAME} \
		etc/${PORTNAME}/ipmi_local.yml.sample \
		etc/${PORTNAME}/ipmi_remote.yml.sample

post-install:
	@${MKDIR} ${STAGEDIR}${ETCDIR}
	${INSTALL_DATA} ${WRKSRC}/ipmi_local.yml ${STAGEDIR}${ETCDIR}/ipmi_local.yml.sample
	${INSTALL_DATA} ${WRKSRC}/ipmi_remote.yml ${STAGEDIR}${ETCDIR}/ipmi_remote.yml.sample

.include <bsd.port.mk>