diff --git a/sysutils/snmp_exporter/Makefile b/sysutils/snmp_exporter/Makefile index 1cf9f92e4b37..a2b28e3c1696 100644 --- a/sysutils/snmp_exporter/Makefile +++ b/sysutils/snmp_exporter/Makefile @@ -1,26 +1,27 @@ PORTNAME= snmp_exporter DISTVERSIONPREFIX=v DISTVERSION= 0.29.0 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= sysutils MAINTAINER= ivy@FreeBSD.org COMMENT= SNMP Exporter for Prometheus WWW= https://github.com/prometheus/snmp_exporter LICENSE= APACHE20 LIB_DEPENDS= libnetsnmp.so:net-mgmt/net-snmp USES= go:modules USE_RC_SUBR= snmp_exporter GO_MODULE= github.com/prometheus/snmp_exporter GO_TARGET= . \ ./generator:snmp_exporter_generator post-install: ${MKDIR} ${STAGEDIR}${PREFIX}/etc/snmp_exporter/ - ${INSTALL_DATA} ${FILESDIR}/generator.yml ${STAGEDIR}${PREFIX}/etc/snmp_exporter/generator.yml.sample + ${INSTALL_DATA} ${WRKSRC}/snmp.yml ${STAGEDIR}${PREFIX}/etc/snmp_exporter/snmp.yml.sample + ${INSTALL_DATA} ${WRKSRC}/generator/generator.yml ${STAGEDIR}${PREFIX}/etc/snmp_exporter/generator.yml.sample .include diff --git a/sysutils/snmp_exporter/files/generator.yml b/sysutils/snmp_exporter/files/generator.yml deleted file mode 100644 index 16c1d71b020a..000000000000 --- a/sysutils/snmp_exporter/files/generator.yml +++ /dev/null @@ -1,23 +0,0 @@ -modules: - # Default IF-MIB interfaces table with ifIndex. - if_mib: - walk: [sysUpTime, interfaces, ifXTable] - # Interfaces if ifAlias is unique. - if_mib_ifalias: - walk: [sysUpTime, interfaces, ifXTable] - lookups: - - old_index: ifIndex - new_index: ifAlias - # Interfaces if ifDescr is unique. - if_mib_ifdescr: - walk: [sysUpTime, interfaces, ifXTable] - lookups: - - old_index: ifIndex - new_index: ifDescr - # Interfaces if ifName is unique. - if_mib_ifname: - walk: [sysUpTime, interfaces, ifXTable] - lookups: - - old_index: ifIndex - # Use OID to avoid conflict with Netscaler NS-ROOT-MIB. - new_index: 1.3.6.1.2.1.31.1.1.1.1 # ifName diff --git a/sysutils/snmp_exporter/files/pkg-message.in b/sysutils/snmp_exporter/files/pkg-message.in index d03707eb6b6e..fd08244f655e 100644 --- a/sysutils/snmp_exporter/files/pkg-message.in +++ b/sysutils/snmp_exporter/files/pkg-message.in @@ -1,52 +1,56 @@ [ { type: install message: <