aboutsummaryrefslogtreecommitdiff
path: root/net-mgmt/net-snmp-devel
diff options
context:
space:
mode:
authorJun Kuriyama <kuriyama@FreeBSD.org>2002-07-29 04:29:44 +0000
committerJun Kuriyama <kuriyama@FreeBSD.org>2002-07-29 04:29:44 +0000
commit9d20fdf9f0f310976e73bf69dbc0aa581869853f (patch)
tree819f5ce7624f1b46c8a8f622f4aa8c261095ac4a /net-mgmt/net-snmp-devel
parent9a5cfc8c9c07bd792ddeafed1b348e9fd896bf62 (diff)
downloadports-9d20fdf9f0f310976e73bf69dbc0aa581869853f.tar.gz
ports-9d20fdf9f0f310976e73bf69dbc0aa581869853f.zip
Notes
Diffstat (limited to 'net-mgmt/net-snmp-devel')
-rw-r--r--net-mgmt/net-snmp-devel/Makefile2
-rw-r--r--net-mgmt/net-snmp-devel/files/patch-interfaces.c16
2 files changed, 17 insertions, 1 deletions
diff --git a/net-mgmt/net-snmp-devel/Makefile b/net-mgmt/net-snmp-devel/Makefile
index 0e76f7225b3d..3cdf327afabe 100644
--- a/net-mgmt/net-snmp-devel/Makefile
+++ b/net-mgmt/net-snmp-devel/Makefile
@@ -7,7 +7,7 @@
PORTNAME= net-snmp
PORTVERSION= 5.0.2
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= net ipv6
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} \
ftp://sunsite.cnlab-switch.ch/mirror/ucd-snmp/ \
diff --git a/net-mgmt/net-snmp-devel/files/patch-interfaces.c b/net-mgmt/net-snmp-devel/files/patch-interfaces.c
new file mode 100644
index 000000000000..c9d465c00859
--- /dev/null
+++ b/net-mgmt/net-snmp-devel/files/patch-interfaces.c
@@ -0,0 +1,16 @@
+--- agent/mibgroup/mibII/interfaces.c.orig Sat Jun 8 00:18:03 2002
++++ agent/mibgroup/mibII/interfaces.c Mon Jul 29 12:35:08 2002
+@@ -555,11 +555,9 @@
+ ifp->ifm_type));
+ }
+ }
+- if (have_ifinfo && have_addr) {
++ if (have_ifinfo) {
+ return 0;
+- } else if (have_ifinfo && !(if_msg->ifm_flags & IFF_UP))
+- return 0;
+- else {
++ } else {
+ return -1;
+ }
+ }