aboutsummaryrefslogtreecommitdiff
path: root/net-mgmt/mrtg
diff options
context:
space:
mode:
Diffstat (limited to 'net-mgmt/mrtg')
-rw-r--r--net-mgmt/mrtg/Makefile2
-rw-r--r--net-mgmt/mrtg/files/patch-lib-mrtg2-SNMP_Session-pm58
2 files changed, 59 insertions, 1 deletions
diff --git a/net-mgmt/mrtg/Makefile b/net-mgmt/mrtg/Makefile
index 529f896b6aa6..98d8b1e98015 100644
--- a/net-mgmt/mrtg/Makefile
+++ b/net-mgmt/mrtg/Makefile
@@ -3,7 +3,7 @@
PORTNAME= mrtg
PORTVERSION= 2.17.4
-PORTREVISION= 2
+PORTREVISION= 3
PORTEPOCH= 1
CATEGORIES= net-mgmt ipv6
MASTER_SITES= http://oss.oetiker.ch/mrtg/pub/ \
diff --git a/net-mgmt/mrtg/files/patch-lib-mrtg2-SNMP_Session-pm b/net-mgmt/mrtg/files/patch-lib-mrtg2-SNMP_Session-pm
new file mode 100644
index 000000000000..62720008e0b5
--- /dev/null
+++ b/net-mgmt/mrtg/files/patch-lib-mrtg2-SNMP_Session-pm
@@ -0,0 +1,58 @@
+--- lib/mrtg2/SNMP_Session.pm.orig 2012-10-31 17:43:06.558051879 +0000
++++ lib/mrtg2/SNMP_Session.pm 2012-10-31 17:43:35.270071536 +0000
+@@ -146,7 +146,7 @@
+
+ if (eval {local $SIG{__DIE__};require Socket6;} &&
+ eval {local $SIG{__DIE__};require IO::Socket::INET6; IO::Socket::INET6->VERSION("1.26");}) {
+- Socket6->import(qw(pack_sockaddr_in6 inet_pton getaddrinfo unpack_sockaddr_in6));
++ Socket6->import(qw(pack_sockaddr_in6 inet_pton getaddrinfo));
+ $ipv6_addr_len = length(pack_sockaddr_in6(161, inet_pton(AF_INET6(), "::1")));
+ $SNMP_Session::ipv6available = 1;
+ }
+@@ -545,7 +545,7 @@
+ # complaining about AF_INET6 when Socket6 is not available
+
+ if( (defined $ipv6_addr_len) && (length $addr == $ipv6_addr_len)) {
+- ($port,$addrunpack) = unpack_sockaddr_in6 ($addr);
++ ($port,$addrunpack) = Socket6::unpack_sockaddr_in6 ($addr);
+ $addrstr = inet_ntop (AF_INET6(), $addrunpack);
+ } else {
+ ($port,$addrunpack) = unpack_sockaddr_in ($addr);
+@@ -601,7 +601,7 @@
+ BEGIN {
+ if($SNMP_Session::ipv6available) {
+ import IO::Socket::INET6;
+- Socket6->import(qw(pack_sockaddr_in6 inet_pton getaddrinfo unpack_sockaddr_in6));
++ Socket6->import(qw(pack_sockaddr_in6 inet_pton getaddrinfo));
+ }
+ }
+
+@@ -820,8 +820,8 @@
+ ($p2,$a2) = unpack_sockaddr_in ($sa2);
+ } elsif($this->{'sockfamily'} == AF_INET6()) {
+ # IPv6 addresses
+- ($p1,$a1) = unpack_sockaddr_in6 ($sa1);
+- ($p2,$a2) = unpack_sockaddr_in6 ($sa2);
++ ($p1,$a1) = Socket6::unpack_sockaddr_in6 ($sa1);
++ ($p2,$a2) = Socket6::unpack_sockaddr_in6 ($sa2);
+ } else {
+ return 0;
+ }
+@@ -894,7 +894,7 @@
+ return undef unless $remote_addr;
+
+ if( (defined $ipv6_addr_len) && (length $remote_addr == $ipv6_addr_len)) {
+- ($port,$iaddr) = unpack_sockaddr_in6($remote_addr);
++ ($port,$iaddr) = Socket6::unpack_sockaddr_in6($remote_addr);
+ } else {
+ ($port,$iaddr) = unpack_sockaddr_in($remote_addr);
+ }
+@@ -943,7 +943,7 @@
+ return undef unless $remote_addr;
+
+ if( (defined $ipv6_addr_len) && (length $remote_addr == $ipv6_addr_len)) {
+- ($port,$iaddr) = unpack_sockaddr_in6($remote_addr);
++ ($port,$iaddr) = Socket6::unpack_sockaddr_in6($remote_addr);
+ } else {
+ ($port,$iaddr) = unpack_sockaddr_in($remote_addr);
+ }