1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-27 05:10:36 +00:00

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)
This commit is contained in:
Dan Langille 2023-10-17 20:04:02 +00:00
parent 5fae4a605a
commit 4f8ce8f7ec

View File

@ -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/