blob: fe6c96d3b084c83da18d7b6729b24ee3413cd87e (
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
34
35
36
37
38
39
|
PORTNAME= ping_exporter
DISTVERSION= 0.44
PORTREVISION= 3
CATEGORIES= net-mgmt
MAINTAINER= jp+ports@supplntr.io
COMMENT= Prometheus exporter for ICMP echo requests
LICENSE= APACHE20
USES= go
USE_GITHUB= yes
GH_ACCOUNT= czerwonk
GH_TUPLE= golang:net:83d349e8ac1a:golang_net/vendor/golang.org/x/net_83d349e8ac1a \
golang:sys:fead79001313:golang_sys/vendor/golang.org/x/sys_fead79001313
GO_PKGNAME= github.com/${GH_ACCOUNT}/${PORTNAME}
GO_TARGET= github.com/${GH_ACCOUNT}/${PORTNAME}
USE_RC_SUBR= ping_exporter
SUB_FILES= pkg-message
pre-build:
${RM} -r ${WRKSRC}/vendor/golang.org/x/net ${WRKSRC}/vendor/golang.org/x/sys
${MV} ${WRKSRC}/vendor/golang.org/x/net_83d349e8ac1a ${WRKSRC}/vendor/golang.org/x/net
${MV} ${WRKSRC}/vendor/golang.org/x/sys_fead79001313 ${WRKSRC}/vendor/golang.org/x/sys
post-install:
${INSTALL_DATA} ${PATCHDIR}/ping_exporter.yml.sample \
${STAGEDIR}${PREFIX}/etc/ping_exporter.yml.sample
${MKDIR} ${STAGEDIR}${DATADIR}/syslog.d \
${STAGEDIR}${DATADIR}/newsyslog.conf.d
${INSTALL_DATA} ${PATCHDIR}/ping_exporter.syslog \
${STAGEDIR}${DATADIR}/syslog.d/ping_exporter.conf
${INSTALL_DATA} ${PATCHDIR}/ping_exporter.newsyslog \
${STAGEDIR}${DATADIR}/newsyslog.conf.d/ping_exporter.conf
.include <bsd.port.mk>
|