git: 4f8ce8f7eca6 - main - net-mgmt/nagios-snmp-plugins-extras: use lt not <
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 17 Oct 2023 20:07:53 UTC
The branch main has been updated by dvl: URL: https://cgit.FreeBSD.org/ports/commit/?id=4f8ce8f7eca6e0d4c9dad32b34e4b73965457e44 commit 4f8ce8f7eca6e0d4c9dad32b34e4b73965457e44 Author: Dan Langille <dvl@FreeBSD.org> AuthorDate: 2023-10-17 20:04:02 +0000 Commit: Dan Langille <dvl@FreeBSD.org> CommitDate: 2023-10-17 20:07:51 +0000 net-mgmt/nagios-snmp-plugins-extras: use lt not < The problem is caused by a change in format for Net::SNMP->VERSION - it is now alphanumeric and was previously numeric. PR: 268891 Approved by: maintainer timeout (12 weeks) --- net-mgmt/nagios-snmp-plugins-extras/Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/net-mgmt/nagios-snmp-plugins-extras/Makefile b/net-mgmt/nagios-snmp-plugins-extras/Makefile index 8404d89fc545..4af3f556dbd5 100644 --- a/net-mgmt/nagios-snmp-plugins-extras/Makefile +++ b/net-mgmt/nagios-snmp-plugins-extras/Makefile @@ -1,6 +1,6 @@ PORTNAME= nagios-snmp-plugins-extras PORTVERSION= 1.1.2 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= net-mgmt MASTER_SITES= ftp://ftp.renatasystems.org/pub/FreeBSD/ports/distfiles/ @@ -42,6 +42,10 @@ post-extract: -e "s#/usr/local/nagios/libexec#${LOCALBASE}/libexec/nagios#" \ ${PLUGINS:S,^,${WRKSRC}/,} + # The format of Net::SNMP->Version has changed + @${SED} -i "" -e 's/Net::SNMP->VERSION < 4/Net::SNMP->VERSION lt "4"/' \ + ${WRKSRC}/check_snmp_* + do-install: ${MKDIR} ${STAGEDIR}${PREFIX}/libexec/nagios ${INSTALL_SCRIPT} ${PLUGINS:S,^,${WRKSRC}/,} ${STAGEDIR}${PREFIX}/libexec/nagios/