mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-29 01:13:08 +00:00
b534a3d03a
ChangeLog: https://github.com/czerwonk/ping_exporter/releases/tag/1.1.0 * bump golang.org/x/net from 0.5.0 to 0.7.0 * Feature: disable ipv4 addresses * implement custom labels for targets * auto discover targets using tailscale API PR: 275628 Reported by: drtr0jan@yandex.ru Approved by: jp+ports@supplntr.io (maintainer, timeout > 2 weeks)
31 lines
846 B
Makefile
31 lines
846 B
Makefile
PORTNAME= ping_exporter
|
|
DISTVERSION= 1.1.0
|
|
CATEGORIES= net-mgmt
|
|
|
|
MAINTAINER= jp+ports@supplntr.io
|
|
COMMENT= Prometheus exporter for ICMP echo requests
|
|
WWW= https://github.com/czerwonk/ping_exporter
|
|
|
|
LICENSE= MIT
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
USES= go:modules
|
|
|
|
USE_RC_SUBR= ping_exporter
|
|
|
|
GO_MODULE= github.com/czerwonk/ping_exporter@v0.0.0-20230519045214-d3a6779128c3
|
|
|
|
SUB_FILES= pkg-message
|
|
|
|
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>
|