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/