head	1.28;
access;
symbols
	pkgsrc-2026Q2:1.28.0.2
	pkgsrc-2026Q2-base:1.28
	pkgsrc-2026Q1:1.25.0.2
	pkgsrc-2026Q1-base:1.25
	pkgsrc-2025Q4:1.21.0.2
	pkgsrc-2025Q4-base:1.21
	pkgsrc-2025Q3:1.18.0.2
	pkgsrc-2025Q3-base:1.18
	pkgsrc-2025Q2:1.16.0.2
	pkgsrc-2025Q2-base:1.16
	pkgsrc-2025Q1:1.13.0.2
	pkgsrc-2025Q1-base:1.13
	pkgsrc-2024Q4:1.10.0.4
	pkgsrc-2024Q4-base:1.10
	pkgsrc-2024Q3:1.10.0.2
	pkgsrc-2024Q3-base:1.10
	pkgsrc-2024Q2:1.7.0.2
	pkgsrc-2024Q2-base:1.7
	pkgsrc-2024Q1:1.3.0.2
	pkgsrc-2024Q1-base:1.3;
locks; strict;
comment	@# @;


1.28
date	2026.06.05.10.21.52;	author bsiegert;	state Exp;
branches;
next	1.27;
commitid	jt8yVpLxXvatZAIG;

1.27
date	2026.05.07.18.50.08;	author bsiegert;	state Exp;
branches;
next	1.26;
commitid	MMrI2EXGAt3HJUEG;

1.26
date	2026.04.08.05.45.10;	author bsiegert;	state Exp;
branches;
next	1.25;
commitid	FFJx9trbRMg7k7BG;

1.25
date	2026.03.06.21.08.04;	author bsiegert;	state Exp;
branches
	1.25.2.1;
next	1.24;
commitid	AQtIeR1eh5qvuXwG;

1.24
date	2026.02.24.08.45.39;	author bsiegert;	state Exp;
branches;
next	1.23;
commitid	IrpU9bGVDwSIHBvG;

1.23
date	2026.01.15.19.54.56;	author bsiegert;	state Exp;
branches;
next	1.22;
commitid	Zuo9UmMrkrU4HwqG;

1.22
date	2026.01.12.22.13.09;	author wiz;	state Exp;
branches;
next	1.21;
commitid	bLnfTVyGLcZCy9qG;

1.21
date	2025.12.02.19.25.22;	author bsiegert;	state Exp;
branches;
next	1.20;
commitid	269raRGxaHJBWRkG;

1.20
date	2025.10.16.18.00.02;	author bsiegert;	state Exp;
branches;
next	1.19;
commitid	RAGpkHmyeYCUYOeG;

1.19
date	2025.10.08.06.54.38;	author bsiegert;	state Exp;
branches;
next	1.18;
commitid	5p46uH9RJXSFyJdG;

1.18
date	2025.09.06.13.17.11;	author bsiegert;	state Exp;
branches;
next	1.17;
commitid	cojusOdnRBFGHE9G;

1.17
date	2025.08.31.10.03.00;	author bsiegert;	state Exp;
branches;
next	1.16;
commitid	SdH7Ppgppxg5PR8G;

1.16
date	2025.06.06.14.01.39;	author bsiegert;	state Exp;
branches;
next	1.15;
commitid	JbNcx43ItkrmUPXF;

1.15
date	2025.04.28.11.02.24;	author wiz;	state Exp;
branches;
next	1.14;
commitid	9S29Upyw1n9HaOSF;

1.14
date	2025.04.05.18.51.28;	author bsiegert;	state Exp;
branches;
next	1.13;
commitid	5KX0APffNjdlvTPF;

1.13
date	2025.03.07.20.54.31;	author bsiegert;	state Exp;
branches
	1.13.2.1;
next	1.12;
commitid	rfTPfnLphAPl7bMF;

1.12
date	2025.02.09.14.26.51;	author wiz;	state Exp;
branches;
next	1.11;
commitid	l3WtFkVUBUngONIF;

1.11
date	2025.01.07.12.55.36;	author wiz;	state Exp;
branches;
next	1.10;
commitid	sGB70sJtYaLJmyEF;

1.10
date	2024.09.06.18.48.58;	author bsiegert;	state Exp;
branches;
next	1.9;
commitid	sM1YPLxu37gUgMoF;

1.9
date	2024.08.11.15.57.12;	author bsiegert;	state Exp;
branches;
next	1.8;
commitid	Q02ZqKpOSdvP9qlF;

1.8
date	2024.07.03.06.59.33;	author bsiegert;	state Exp;
branches;
next	1.7;
commitid	clKUvbmZS6C5rmgF;

1.7
date	2024.06.13.13.47.10;	author bsiegert;	state Exp;
branches;
next	1.6;
commitid	JAoDOmAvI7TNkPdF;

1.6
date	2024.06.01.14.03.03;	author bsiegert;	state Exp;
branches;
next	1.5;
commitid	ffwNZJIDPPV5OhcF;

1.5
date	2024.05.12.19.26.00;	author wiz;	state Exp;
branches;
next	1.4;
commitid	2xMy0vEsBUrWeK9F;

1.4
date	2024.04.05.19.14.11;	author bsiegert;	state Exp;
branches;
next	1.3;
commitid	eg3d1kDRSryvmZ4F;

1.3
date	2024.02.07.14.51.01;	author bsiegert;	state Exp;
branches;
next	1.2;
commitid	7gDVHFycBNsGLvXE;

1.2
date	2024.01.10.19.14.40;	author bsiegert;	state Exp;
branches;
next	1.1;
commitid	UV9PAPQbNGpZ7WTE;

1.1
date	2023.12.29.20.55.44;	author wiz;	state Exp;
branches;
next	;
commitid	IPzjpSAOwA4O4pSE;

1.25.2.1
date	2026.04.22.14.32.17;	author maya;	state Exp;
branches;
next	;
commitid	iDHLLUhOplH6NXCG;

1.13.2.1
date	2025.04.05.20.45.14;	author maya;	state Exp;
branches;
next	;
commitid	ts1uPa8RLrwE7UPF;


desc
@@


1.28
log
@Revbump all Go packages after go126 security update
@
text
@# $NetBSD: Makefile,v 1.27 2026/05/07 18:50:08 bsiegert Exp $

DISTNAME=	snmp_exporter-0.30.1
PKGREVISION=	12
CATEGORIES=	sysutils
MASTER_SITES=	${MASTER_SITE_GITHUB:=prometheus/}
GITHUB_TAG=	v${PKGVERSION_NOREV}

MAINTAINER=	pkgsrc-users@@NetBSD.org
HOMEPAGE=	https://github.com/prometheus/snmp_exporter/
COMMENT=	SNMP Exporter for Prometheus
LICENSE=	apache-2.0

SUBST_CLASSES+=		path
SUBST_SED.path+=	-e 's|-L/usr/local/lib|-L${PREFIX}/lib ${COMPILER_RPATH_FLAG}${PREFIX}/lib|'
SUBST_SED.path+=	-e 's,/usr/local,${PREFIX},'
SUBST_FILES.path+=	generator/net_snmp.go
SUBST_MESSAGE.path=	Fixing path to includes and libraries.
SUBST_STAGE.path=	pre-configure

LOGDIR=				${VARBASE}/log/snmp_exporter
SNMP_EXPORTER_USER?=		snmp_exporter
SNMP_EXPORTER_GROUP?=		snmp_exporter
OWN_DIRS_PERMS+=		${LOGDIR} ${SNMP_EXPORTER_USER} ${SNMP_EXPORTER_GROUP} 0700
PKG_USERS_VARS+=		SNMP_EXPORTER_USER
PKG_GROUPS_VARS+=		SNMP_EXPORTER_GROUP
PKG_GROUPS=			${SNMP_EXPORTER_GROUP}
PKG_USERS=			${SNMP_EXPORTER_USER}:${SNMP_EXPORTER_GROUP}
RCD_SCRIPTS=			snmp_exporter

FILES_SUBST+=		SNMP_EXPORTER_USER=${SNMP_EXPORTER_USER:Q}
FILES_SUBST+=		SNMP_EXPORTER_GROUP=${SNMP_EXPORTER_GROUP:Q}
FILES_SUBST+=		LOGDIR=${LOGDIR:Q}

BUILD_DEFS+=		VARBASE

INSTALLATION_DIRS+=	share/doc/snmp_exporter
INSTALLATION_DIRS+=	share/examples/snmp_exporter

CONF_FILES+=		share/examples/snmp_exporter/snmp.yml ${PKG_SYSCONFDIR}/snmp.yml

post-install:
	${INSTALL_DATA} ${WRKSRC}/README.md ${DESTDIR}${PREFIX}/share/doc/snmp_exporter
	${INSTALL_DATA} ${WRKSRC}/snmp.yml ${DESTDIR}${PREFIX}/share/examples/snmp_exporter

.include "go-modules.mk"
.include "../../lang/go/go-module.mk"
.include "../../net/net-snmp/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
@


1.27
log
@Revbump all Go packages after go126 security update
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.26 2026/04/08 05:45:10 bsiegert Exp $
d4 1
a4 1
PKGREVISION=	11
@


1.26
log
@Revbump all Go packages after security update
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.25 2026/03/06 21:08:04 bsiegert Exp $
d4 1
a4 1
PKGREVISION=	10
@


1.25
log
@Revbump all Go packages after go126 update
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.24 2026/02/24 08:45:39 bsiegert Exp $
d4 1
a4 1
PKGREVISION=	9
@


1.25.2.1
log
@Revbump all Go packages after go126 security fix
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.25 2026/03/06 21:08:04 bsiegert Exp $
d4 1
a4 1
PKGREVISION=	10
@


1.24
log
@Revbump all Go packages after default version bump
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.23 2026/01/15 19:54:56 bsiegert Exp $
d4 1
a4 1
PKGREVISION=	8
@


1.23
log
@Revbump all Go packages after go125 update
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.22 2026/01/12 22:13:09 wiz Exp $
d4 1
a4 1
PKGREVISION=	7
@


1.22
log
@snmp_exporter: update to 0.30.1nb6.

## 0.30.1 / 2026-01-06

* [BUGFIX] Fix gosnmp import #1547

## 0.30.0 / 2026-01-05

* [FEATURE] Add snmp_engineid support #1482
* [ENHANCEMENT] Warn if configuration file not found, fail if missing auths or modules #1457
* [ENHANCEMENT] Optimize OID conversion functions with pre-allocation #1533
* [ENHANCEMENT] Handle uint32 type in pduValueAsString #1542
* [BUGFIX] Fix generator Makefile user agent #1476

snmp.yml changes:
* Update ELTEX MIB #1435
* Update keepalived MIB #1455
* Add UPS MIB #1464
* Improve APC UPS module #1494
* Add NAPT metrics in nec_ix module #1497
* Annotate supply metrics with prtMarkerSuppliesDescription #1513
* Add picoExtIfDescr label to nec_ix module #1514
* Update Raritan PDU2 MIB #1535
* Add Cisco Core metrics #1536
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.21 2025/12/02 19:25:22 bsiegert Exp $
d4 1
a4 1
PKGREVISION=	6
@


1.21
log
@Revbump all Go packages after go125 update
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.20 2025/10/16 18:00:02 bsiegert Exp $
d3 1
a3 1
DISTNAME=	snmp_exporter-0.29.0
@


1.20
log
@Revbump all Go packages after go125 update
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.19 2025/10/08 06:54:38 bsiegert Exp $
d4 1
a4 1
PKGREVISION=	5
@


1.19
log
@Revbump all Go packages after go125 update
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.18 2025/09/06 13:17:11 bsiegert Exp $
d4 1
a4 1
PKGREVISION=	4
@


1.18
log
@Revbump all Go packages after go125 security update
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.17 2025/08/31 10:03:00 bsiegert Exp $
d4 1
a4 1
PKGREVISION=	3
@


1.17
log
@Revbump all Go packages after moving to go125
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.16 2025/06/06 14:01:39 bsiegert Exp $
d4 1
a4 1
PKGREVISION=	2
@


1.16
log
@Revbump all Go packages after go124 update
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.15 2025/04/28 11:02:24 wiz Exp $
d4 1
a4 1
PKGREVISION=	1
@


1.15
log
@snmp_exporter: update to 0.29.0.

## 0.29.0 / 2025-04-23

* [CHANGE] generator: fail early for bad walk OID #1411

snmp.yml changes:
* added Yamaha RT Series module #1369
* updated APC Powernet MIB #1376
* added cisco_device and cisco_fc_fe modules #1367 - #1374 #1375
* added MSA fieldserver gateway module fieldserver #1392
* update Mikrotik MIB to 7.18.2 #1417
* fixed hrDevice override #1398
* update Eltex MIB to 10.3.6.11 #1415
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.14 2025/04/05 18:51:28 bsiegert Exp $
d4 1
@


1.14
log
@Belated revbump for all Go packages after go124 update

I forgot to do the revbump again, sorry for doing it so late after the
update.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.13 2025/03/07 20:54:31 bsiegert Exp $
d3 1
a3 2
DISTNAME=	snmp_exporter-0.28.0
PKGREVISION=	2
@


1.13
log
@Revbump all Go packages after go124 update

I realize I forgot to do the revbump after updating the default Go
version to 1.24, so let's do that now.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.12 2025/02/09 14:26:51 wiz Exp $
d4 1
a4 1
PKGREVISION=	1
@


1.13.2.1
log
@Pulup ticket #6952 - Update PKGREVISION for all Go packages.

Go had a security update to one of the builtin libraries.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.13 2025/03/07 20:54:31 bsiegert Exp $
d4 1
a4 1
PKGREVISION=	2
@


1.12
log
@snmp_exporter: update to 0.28.0.

## 0.28.0 / 2025-05-07

BREAKING CHANGES:

In this version of the exporter the sysUpTime metric has been removed from the if_mib module and
is now part of the new system module, along with other useful system related metrics.
Please update your scrape definitions to include the system module if you need sysUpTime.

* [ENHANCEMENT] allow module-qualified labels in generator #1333
* [ENHANCEMENT] add healthcheck endpoint #1358
* [ENHANCEMENT] Override Metric Name in Generator #1341
* [BUGFIX] cleanup docker container after running #1330

snmp.yml changes:
* moved system related oids to the new system module #1334
* add UBNT AirOS module, DLink and Eltex MES #1344
* add JunOS module #1348
* enhancements on the hrStorage module, cleanup unused lookups for mikrotik module #1349
* update JunOS module and add Juniper Optics (DOM) module #1351
* added page counters to the printer module #1353
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.11 2025/01/07 12:55:36 wiz Exp $
d4 1
@


1.11
log
@snmp_exporter: update to 0.27.0.

BREAKING CHANGES:

This version of the exporter introduces a cleaned up default snmp.yml that moved all
ucd-snmp-mib oids into a separate module.

If you used one of the following modules:

    synology
    ddwrt
    kemp_loadmaster

you will need to change your scrape config to also include the ucd_la_table module as well.
See https://github.com/prometheus/snmp_exporter/tree/main?tab=readme-ov-file#multi-module-handling for further instructions.

    [CHANGE] generator: Update generator default MIBOPTS #1231
    [CHANGE] adopt log/slog, drop go-kit/log #1249
    [ENHANCEMENT] generator: Improve config error message #1274
    [FEATURE] add ParseDateAndTime type #1234
    [FEATURE] Set UseUnconnectedUDPSocket option if one of the modules has if set #1247
    [FEATURE] add NTPTimeStamp type #1315
    [BUGFIX] fixed dashboard mixins #1319

snmp.yml changes:

    cleanup ucd-snmp-mibs #1200
        moved oids from synology,ddwrt and kemp_loadmaster to new module ucd_la_table
    Added support for Sophos XG Series #1239
    Added support for HPE #1267
    Added support for powercom #1275
    Added support for Cisco IMC #1293
    Updated mib for apc #1303
    Added support for TPLink DDM #1304
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.10 2024/09/06 18:48:58 bsiegert Exp $
d3 1
a3 1
DISTNAME=	snmp_exporter-0.27.0
@


1.10
log
@Revbump all Go packages after go122 update
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.9 2024/08/11 15:57:12 bsiegert Exp $
d3 1
a3 2
DISTNAME=	snmp_exporter-0.26.0
PKGREVISION=	5
@


1.9
log
@Revbump all Go packages after update
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.8 2024/07/03 06:59:33 bsiegert Exp $
d4 1
a4 1
PKGREVISION=	4
@


1.8
log
@Revbump all Go packages after go122 security update
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.7 2024/06/13 13:47:10 bsiegert Exp $
d4 1
a4 1
PKGREVISION=	3
@


1.7
log
@Revbump all Go packages after go122 update
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.6 2024/06/01 14:03:03 bsiegert Exp $
d4 1
a4 1
PKGREVISION=	2
@


1.6
log
@Revbump all Go packages, default Go version is now 1.22.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.5 2024/05/12 19:26:00 wiz Exp $
d4 1
a4 1
PKGREVISION=	1
@


1.5
log
@snmp_exporter: update to 0.26.0.

## 0.26.0 / 2024-05-08

* [CHANGE] Improve generator parse error handling #1167
* [ENHANCEMENT] generator: Add generator HELP override #1106
* [ENHANCEMENT] Refactoring of Scrape process, fixing multiple module issues #1111
* [ENHANCEMENT] Skip using an interactive terminal in "make docker-generate". #1113
* [ENHANCEMENT] Add SNMPInflight metric #1119
* [FEATURE] Support for passing username, password & priv_password as env vars #1074
* [FEATURE] Add GoSNMP logger #1157
* [FEATURE] Add a "snmp_context" parameter to the URL #1163
* [BUGFIX] generator: curl failed #1094
* [BUGFIX] Fix SNMPv3 password configuration #1122
* [BUGFIX] generator: Update generator User-Agent #1133
* [BUGFIX] generator: fix mibs directory specification for parse_errors command #1135
* [BUGFIX] generator: remove extra character from dell iDrac-SMIv1 MIB #1141
* [BUGFIX] Fix do not expand envvars for empty config fields #1148

snmp.yml changes:
* Updated Cisco MIBs #1180
* Updated Cyberpower MIBs #1124
* Updated servertech_sentry3 #1090
* Added support for Dell iDrac  #1125
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.4 2024/04/05 19:14:11 bsiegert Exp $
d4 1
@


1.4
log
@Revbump all Go packages after go121 update
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.3 2024/02/07 14:51:01 bsiegert Exp $
d3 1
a3 2
DISTNAME=	snmp_exporter-0.25.0
PKGREVISION=	3
@


1.3
log
@Revbump all Go packages after go121 update
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.2 2024/01/10 19:14:40 bsiegert Exp $
d4 1
a4 1
PKGREVISION=	2
@


1.2
log
@Revbump all Go packages after go121 update
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.1 2023/12/29 20:55:44 wiz Exp $
d4 1
a4 1
PKGREVISION=	1
@


1.1
log
@sysutils/snmp_exporter: import snmp_exporter-0.25.0

This exporter is the recommended way to expose SNMP data in a format
which Prometheus can ingest.

To simply get started, it's recommended to use the `if_mib` module
with switches, access points, or routers using the `public_v2` auth
module, which should be a read-only access community on the target
device.

Note, community strings in SNMP are not considered secrets, as they
are sent unencrypted in SNMP v1 and v2c. For secure access, SNMP
v3 is required.
@
text
@d1 1
a1 1
# $NetBSD$
d4 1
@

