mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-22 08:58:47 +00:00
Fix to work after the ucd-snmp library bump.
Submitted by: <jack@germanium.xtalwind.net> PR: ports/13540
This commit is contained in:
parent
2262dde3ac
commit
28a7dfa695
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=21267
@ -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
|
||||
|
||||
|
29
net-mgmt/p5-SNMP/files/patch-ac
Normal file
29
net-mgmt/p5-SNMP/files/patch-ac
Normal file
@ -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;
|
@ -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
|
||||
|
||||
|
29
net/p5-SNMP/files/patch-ac
Normal file
29
net/p5-SNMP/files/patch-ac
Normal file
@ -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;
|
Loading…
Reference in New Issue
Block a user