diff options
author | Bill Fumerola <billf@FreeBSD.org> | 1999-09-04 23:50:36 +0000 |
---|---|---|
committer | Bill Fumerola <billf@FreeBSD.org> | 1999-09-04 23:50:36 +0000 |
commit | 28a7dfa695f29da2f0622b48bfb25e3f78307bce (patch) | |
tree | cfaf6a42ae07a988d7abbd6c7d6c28fb3b6a858d /net-mgmt | |
parent | 2262dde3ac9b8eeb7790fabdf31128fd2b7c31ba (diff) | |
download | ports-28a7dfa695f29da2f0622b48bfb25e3f78307bce.tar.gz ports-28a7dfa695f29da2f0622b48bfb25e3f78307bce.zip |
Notes
Diffstat (limited to 'net-mgmt')
-rw-r--r-- | net-mgmt/p5-SNMP/Makefile | 4 | ||||
-rw-r--r-- | net-mgmt/p5-SNMP/files/patch-ac | 29 |
2 files changed, 30 insertions, 3 deletions
diff --git a/net-mgmt/p5-SNMP/Makefile b/net-mgmt/p5-SNMP/Makefile index 8be393e6321a..3bda0ecfa995 100644 --- a/net-mgmt/p5-SNMP/Makefile +++ b/net-mgmt/p5-SNMP/Makefile @@ -14,9 +14,7 @@ MASTER_SITE_SUBDIR= SNMP MAINTAINER= jfitz@FreeBSD.org -LIB_DEPENDS= snmp.3:${PORTSDIR}/net/ucd-snmp - -BROKEN= 'incompatible with the latest version of ucd-snmp' +LIB_DEPENDS= snmp.4:${PORTSDIR}/net/ucd-snmp USE_PERL5= YES diff --git a/net-mgmt/p5-SNMP/files/patch-ac b/net-mgmt/p5-SNMP/files/patch-ac new file mode 100644 index 000000000000..06054d198a6d --- /dev/null +++ b/net-mgmt/p5-SNMP/files/patch-ac @@ -0,0 +1,29 @@ +--- SNMP.xs.orig Mon Jun 7 18:02:57 1999 ++++ SNMP.xs Sat Aug 28 01:06:54 1999 +@@ -1778,6 +1778,7 @@ + struct variable_list *vars; + struct variable_list *last_vars; + struct tree *tp; ++ struct sockaddr_in *pduIp; + oid *oid_arr; + int oid_arr_len = MAX_OID_LEN; + SV *tmp_sv; +@@ -1861,14 +1862,15 @@ + &pdu->enterprise_length) != SUCCESS) { + if (verbose) warn("invalid enterprise id: %s", enterprise); + } ++ pduIp = (struct sockaddr_in *)&(pdu->agent_addr); + if (agent && strlen(agent)) { +- pdu->agent_addr.sin_addr.s_addr = __parse_address(agent); +- if (pdu->agent_addr.sin_addr.s_addr == -1 && verbose) { ++ pduIp->sin_addr.s_addr = __parse_address(agent); ++ if (pduIp->sin_addr.s_addr == -1 && verbose) { + warn("invalid agent address: %s", agent); + goto err; + } + } else { +- pdu->agent_addr.sin_addr.s_addr = get_myaddr(); ++ pduIp->sin_addr.s_addr = get_myaddr(); + } + pdu->trap_type = generic; + pdu->specific_type = specific; |