2019-10-17 20:37:57 +02:00
|
|
|
PORTNAME= ping_exporter
|
2022-11-25 07:56:52 +01:00
|
|
|
DISTVERSION= 1.0.1
|
2022-12-11 12:10:13 +01:00
|
|
|
PORTREVISION= 1
|
2019-10-17 20:37:57 +02:00
|
|
|
CATEGORIES= net-mgmt
|
2022-07-14 11:50:46 +02:00
|
|
|
MASTER_SITES= https://raw.githubusercontent.com/czerwonk/ping_exporter/${DISTVERSIONFULL}/:gomod
|
|
|
|
DISTFILES= go.mod:gomod
|
2019-10-17 20:37:57 +02:00
|
|
|
|
|
|
|
MAINTAINER= jp+ports@supplntr.io
|
|
|
|
COMMENT= Prometheus exporter for ICMP echo requests
|
2022-09-07 23:06:12 +02:00
|
|
|
WWW= https://github.com/czerwonk/ping_exporter
|
2019-10-17 20:37:57 +02:00
|
|
|
|
|
|
|
LICENSE= APACHE20
|
2022-07-14 11:50:46 +02:00
|
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
2019-10-17 20:37:57 +02:00
|
|
|
|
2022-07-14 11:50:46 +02:00
|
|
|
USES= go:modules
|
2019-10-17 20:37:57 +02:00
|
|
|
USE_GITHUB= yes
|
|
|
|
GH_ACCOUNT= czerwonk
|
|
|
|
|
|
|
|
USE_RC_SUBR= ping_exporter
|
|
|
|
|
2022-07-14 11:50:46 +02:00
|
|
|
GO_MODULE= github.com/czerwonk/ping_exporter
|
|
|
|
|
|
|
|
SUB_FILES= pkg-message
|
2020-03-05 17:17:19 +01:00
|
|
|
|
2019-10-17 20:37:57 +02:00
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA} ${PATCHDIR}/ping_exporter.yml.sample \
|
|
|
|
${STAGEDIR}${PREFIX}/etc/ping_exporter.yml.sample
|
2020-04-07 16:39:51 +02:00
|
|
|
${MKDIR} ${STAGEDIR}${DATADIR}/syslog.d \
|
2022-07-14 11:50:46 +02:00
|
|
|
${STAGEDIR}${DATADIR}/newsyslog.conf.d
|
2020-04-07 16:39:51 +02:00
|
|
|
${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
|
2019-10-17 20:37:57 +02:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|