7e5aa2085f
PR: 276530
27 lines
711 B
Makefile
27 lines
711 B
Makefile
PORTNAME= mackerel-agent
|
|
DISTVERSIONPREFIX= v
|
|
DISTVERSION= 0.78.3
|
|
PORTREVISION= 1
|
|
CATEGORIES= sysutils
|
|
|
|
MAINTAINER= meta@FreeBSD.org
|
|
COMMENT= Agent program to post your hosts' metrics to mackerel.io
|
|
WWW= https://mackerel.io
|
|
|
|
LICENSE= APACHE20
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
USES= go:modules
|
|
USE_RC_SUBR= mackerel_agent
|
|
GO_MODULE= github.com/mackerelio/mackerel-agent
|
|
|
|
post-patch:
|
|
${REINPLACE_CMD} -e "s|/etc|${PREFIX}/etc|" ${WRKSRC}/config/config_unix.go
|
|
|
|
post-stage:
|
|
${MKDIR} ${STAGEDIR}${ETCDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/mackerel-agent.sample.conf ${STAGEDIR}${ETCDIR}
|
|
${MV} ${STAGEDIR}${ETCDIR}/mackerel-agent.sample.conf \
|
|
${STAGEDIR}${ETCDIR}/mackerel-agent.conf.sample
|
|
|
|
.include <bsd.port.mk>
|