blob: 2b6906b1f7685c7ce2a9b32260bd1adbb49f25e4 (
plain) (
blame)
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
|
PORTNAME= mackerel-agent
DISTVERSIONPREFIX= v
DISTVERSION= 0.75.0
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>
|