aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Langille <dvl@FreeBSD.org>2023-10-17 20:04:02 +0000
committerDan Langille <dvl@FreeBSD.org>2023-10-17 20:07:51 +0000
commit4f8ce8f7eca6e0d4c9dad32b34e4b73965457e44 (patch)
treece9a78744fac1460cd755a50b3cf61ef30e9e937
parent5fae4a605a0ddf575a3db28f0a9701068414c810 (diff)
downloadports-4f8ce8f7eca6e0d4c9dad32b34e4b73965457e44.tar.gz
ports-4f8ce8f7eca6e0d4c9dad32b34e4b73965457e44.zip
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)
-rw-r--r--net-mgmt/nagios-snmp-plugins-extras/Makefile6
1 files changed, 5 insertions, 1 deletions
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/