Update "mrtg" package to version 2.17.2. Changes since version 2.16.4: - can not replace a file by renaming another to its name under WIN32 fix in rateup #104 - Fix scaling when noo and noi options are used. fix for #95 - Stop staticly linking rateup. fix for #97 - Only set LD_RUN_PATH if it is actually necessary. patch from #98 - Net::SNMP only support aes128, des and 3des ... fix for cfgmaker from #99 - Understand desc and descr in ifdesc option of cfgmaker - only set $args{'-maxrepetitions'} if $Net_SNMP_util::MaxRepetitions > 0 - do not load Net_SNMP_util unless snmpv3 is requested ... fix for #75 - be more agressive about updating the confcache. If a key is missing, go looking for it again and complain. fix for #74 - only apply 32bit counter wrap compensation when the wrap is within 32bit range. fix for #70 - implement pngdate as TimeStrPos[x]: RU instead of separately. for for #68 - add missing <p> tag arount 'last updated ... ' in html output. fix for #63 - remove rececondition when writing new trafic graph files by writing to a temp file and moving it later. fix for #51 - make snmpopt_current available in cfgmaker templates. fix for #48 - explicitly import Socket6 routines in SNMP_Session. fix for #45 - default ThreshHyst to 0.1 only if ThreshDir is define. fix for #42 - point out when there is an unknown interface found. fix for #41. - allow for $speed to return 0 and still use SNMPv2 ... some Cisco Gear seems todo that. Fix for #33 - add dlink support for ifAlias OIDs to cfgmaker from #50 - add WWP (Ciena) support for ifAlias OIDs to cfgmaker from #66 - Updated squid docu #80 - Fix russian translation bug #92 - added rrdcached support - new keyword: RRDCached: which overrides anything set in the RRDCACHED_ADDRESS environment variable and sets MRTG to work in RRDCached mode. This verifies that you're using a unix-domain socket and the socket is writeable. - Check for environment variable RRDCACHED_ADDRESS and use this if no explicit address was set in the cfg file, making the same config validity checks. - Make warning if using rrdcached to the effect that the thresholding checks will no longer work. - If in rrdcached-mode, and using RRDTool 1.4, then force use of update rather than updatev (as rrdcached does not yet support updatev) and consequently bypass the thresholding checks. - Changes to validity check error messages to also report the file containing the error (as well as the line). - Added support for glob patterns in include - Make daemon reload cfg automatically when it changes - added support for Arista to cfgmaker - fix cfgmaker to work in mixed v1/2/3 snmp environment - do not strigify arguments to conversion function let eval take care of this - untaint inlast and outlast to make perl taint mode happy - teach cfgmaker about openbsd pkgsrc changes: - Avoid "Subroutine SNMP_Session::pack_sockaddr_in6 redefined" warnings with the Perl 5.14.1. As the patch might break "mrtg" with older version of Perl require at least version 5.14.1 of the "perl5" package.diff -r1.101 -r1.102 pkgsrc/net/mrtg/Makefile
(tron)
@@ -1,29 +1,29 @@ | @@ -1,29 +1,29 @@ | |||
1 | # $NetBSD: Makefile,v 1.101 2011/04/22 13:44:25 obache Exp $ | 1 | # $NetBSD: Makefile,v 1.102 2011/08/06 11:52:16 tron Exp $ | |
2 | 2 | |||
3 | DISTNAME= mrtg-2.16.4 | 3 | DISTNAME= mrtg-2.17.2 | |
4 | PKGREVISION= 2 | |||
5 | CATEGORIES= net | 4 | CATEGORIES= net | |
6 | MASTER_SITES= http://oss.oetiker.ch/mrtg/pub/ \ | 5 | MASTER_SITES= http://oss.oetiker.ch/mrtg/pub/ \ | |
7 | http://oss.oetiker.ch/mrtg/pub/old/ | 6 | http://oss.oetiker.ch/mrtg/pub/old/ | |
8 | 7 | |||
9 | MAINTAINER= pkgsrc-users@NetBSD.org | 8 | MAINTAINER= pkgsrc-users@NetBSD.org | |
10 | HOMEPAGE= http://oss.oetiker.ch/mrtg/ | 9 | HOMEPAGE= http://oss.oetiker.ch/mrtg/ | |
11 | COMMENT= The Multi-Router Traffic Grapher | 10 | COMMENT= The Multi-Router Traffic Grapher | |
12 | LICENSE= gnu-gpl-v2 | 11 | LICENSE= gnu-gpl-v2 | |
13 | 12 | |||
14 | PKG_DESTDIR_SUPPORT= user-destdir | 13 | PKG_DESTDIR_SUPPORT= user-destdir | |
15 | 14 | |||
16 | USE_TOOLS+= perl:run | 15 | USE_TOOLS+= perl:run | |
16 | PERL5_REQD= 5.14.1 | |||
17 | GNU_CONFIGURE= yes | 17 | GNU_CONFIGURE= yes | |
18 | CONFIGURE_ARGS+= --with-gd=${BUILDLINK_PREFIX.gd} | 18 | CONFIGURE_ARGS+= --with-gd=${BUILDLINK_PREFIX.gd} | |
19 | CONFIGURE_ARGS+= --with-png=${BUILDLINK_PREFIX.png} | 19 | CONFIGURE_ARGS+= --with-png=${BUILDLINK_PREFIX.png} | |
20 | CONFIGURE_ARGS+= --with-z=${BUILDLINK_PREFIX.zlib} | 20 | CONFIGURE_ARGS+= --with-z=${BUILDLINK_PREFIX.zlib} | |
21 | MAKE_ENV+= PERL5_INSTALLVENDORLIB=${PERL5_INSTALLVENDORLIB} | 21 | MAKE_ENV+= PERL5_INSTALLVENDORLIB=${PERL5_INSTALLVENDORLIB} | |
22 | 22 | |||
23 | REPLACE_PERL= bin/cfgmaker bin/indexmaker bin/mrtg bin/mrtg-traffic-sum | 23 | REPLACE_PERL= bin/cfgmaker bin/indexmaker bin/mrtg bin/mrtg-traffic-sum | |
24 | EGDIR= ${PREFIX}/share/examples/${PKGBASE} | 24 | EGDIR= ${PREFIX}/share/examples/${PKGBASE} | |
25 | 25 | |||
26 | CONF_FILES= ${EGDIR}/mrtg.conf ${PKG_SYSCONFDIR}/mrtg.conf | 26 | CONF_FILES= ${EGDIR}/mrtg.conf ${PKG_SYSCONFDIR}/mrtg.conf | |
27 | 27 | |||
28 | .include "options.mk" | 28 | .include "options.mk" | |
29 | 29 |
@@ -1,9 +1,9 @@ | @@ -1,9 +1,9 @@ | |||
1 | $NetBSD: distinfo,v 1.30 2010/07/09 08:45:33 adam Exp $ | 1 | $NetBSD: distinfo,v 1.31 2011/08/06 11:52:16 tron Exp $ | |
2 | 2 | |||
3 | SHA1 (mrtg-2.16.4.tar.gz) = 8d810487585c929bf48246311512f88077e10e55 | 3 | SHA1 (mrtg-2.17.2.tar.gz) = dc591cc92ee664d4049333c19becc6a88e162008 | |
4 | RMD160 (mrtg-2.16.4.tar.gz) = 9d7f2573fded09b16cd5b108271b9dd68d78bc18 | 4 | RMD160 (mrtg-2.17.2.tar.gz) = 8159376e1682bcabf41b73a3f7ede5a302216115 | |
5 | Size (mrtg-2.16.4.tar.gz) = 1089068 bytes | 5 | Size (mrtg-2.17.2.tar.gz) = 1095721 bytes | |
6 | SHA1 (patch-aa) = 2874cd59371db10fbc4ff6c29e3a917a4b8eec55 | 6 | SHA1 (patch-aa) = 2874cd59371db10fbc4ff6c29e3a917a4b8eec55 | |
7 | SHA1 (patch-ab) = bf367e6c43030a9cb64a88336b66932d7e05025c | 7 | SHA1 (patch-ab) = bf367e6c43030a9cb64a88336b66932d7e05025c | |
8 | SHA1 (patch-ac) = 24ae08714f896ca0f1724454b8ad47c32412c018 | 8 | SHA1 (patch-ac) = 24ae08714f896ca0f1724454b8ad47c32412c018 | |
9 | SHA1 (patch-ae) = 38793e3bd13570d18006a016c65a4cc3c3f5e1b5 | 9 | SHA1 (patch-ae) = 7ba301b01d575f4ff18f082c9f3baaaa2c6e8332 |
@@ -1,20 +1,20 @@ | @@ -1,20 +1,20 @@ | |||
1 | # $NetBSD: options.mk,v 1.3 2010/07/09 08:45:33 adam Exp $ | 1 | # $NetBSD: options.mk,v 1.4 2011/08/06 11:52:16 tron Exp $ | |
2 | 2 | |||
3 | PKG_OPTIONS_VAR= PKG_OPTIONS.mrtg | 3 | PKG_OPTIONS_VAR= PKG_OPTIONS.mrtg | |
4 | PKG_SUPPORTED_OPTIONS= inet6 mrtg-snmpv3 | 4 | PKG_SUPPORTED_OPTIONS= inet6 mrtg-snmpv3 | |
5 | 5 | |||
6 | .include "../../mk/bsd.options.mk" | 6 | .include "../../mk/bsd.options.mk" | |
7 | 7 | |||
8 | ### | 8 | ### | |
9 | ### Use an external SNMP module to get SNMPv3 support | 9 | ### Use an external SNMP module to get SNMPv3 support | |
10 | ### | 10 | ### | |
11 | .if !empty(PKG_OPTIONS:Mmrtg-snmpv3) | 11 | .if !empty(PKG_OPTIONS:Mmrtg-snmpv3) | |
12 | DEPENDS+= p5-Net-SNMP-[0-9]*:../../net/p5-Net-SNMP | 12 | DEPENDS+= p5-Net-SNMP-[0-9]*:../../net/p5-Net-SNMP | |
13 | .endif | 13 | .endif | |
14 | 14 | |||
15 | ### | 15 | ### | |
16 | ### Support for IPv6 enabled devices | 16 | ### Support for IPv6 enabled devices | |
17 | ### | 17 | ### | |
18 | .if !empty(PKG_OPTIONS:Minet6) | 18 | .if !empty(PKG_OPTIONS:Minet6) | |
19 | DEPENDS+= p5-IO-Socket-INET6>=2.00:../../net/p5-IO-Socket-INET6 | 19 | DEPENDS+= p5-IO-Socket-INET6>=2.67:../../net/p5-IO-Socket-INET6 | |
20 | .endif | 20 | .endif |
@@ -1,13 +1,37 @@ | @@ -1,13 +1,37 @@ | |||
1 | $NetBSD: patch-ae,v 1.5 2008/02/13 12:05:26 martti Exp $ | 1 | $NetBSD: patch-ae,v 1.6 2011/08/06 11:52:16 tron Exp $ | |
2 | 2 | |||
3 | --- lib/mrtg2/SNMP_Session.pm.orig 2008-02-06 16:35:49.000000000 +0200 | 3 | Fix two problems: | |
4 | +++ lib/mrtg2/SNMP_Session.pm 2008-02-13 13:57:53.000000000 +0200 | 4 | 1.) Avoid negative request ids (default_avoid_negative_request_ids=1) as | |
5 | @@ -110,7 +110,7 @@ | 5 | this might cause problems with some devices. Solution provided by | |
6 | Tobias Oetiker in a private mail. | |||
7 | 2.) Avoid redefinition of "SNMP_Session::pack_sockaddr_in6". | |||
8 | ||||
9 | --- lib/mrtg2/SNMP_Session.pm.orig 2011-02-20 22:33:38.000000000 +0000 | |||
10 | +++ lib/mrtg2/SNMP_Session.pm 2011-08-06 12:38:35.000000000 +0100 | |||
11 | @@ -111,7 +111,7 @@ | |||
6 | ### some agents erroneously encode the response ID as an unsigned, | 12 | ### some agents erroneously encode the response ID as an unsigned, | |
7 | ### which prevents this code from matching such responses to requests. | 13 | ### which prevents this code from matching such responses to requests. | |
8 | ### | 14 | ### | |
9 | -$SNMP_Session::default_avoid_negative_request_ids = 0; | 15 | -$SNMP_Session::default_avoid_negative_request_ids = 0; | |
10 | +$SNMP_Session::default_avoid_negative_request_ids = 1; | 16 | +$SNMP_Session::default_avoid_negative_request_ids = 1; | |
11 | 17 | |||
12 | ### Default value for "use_16bit_request_ids". | 18 | ### Default value for "use_16bit_request_ids". | |
13 | ### | 19 | ### | |
20 | @@ -146,7 +146,7 @@ | |||
21 | ||||
22 | if (eval {local $SIG{__DIE__};require Socket6;} && | |||
23 | eval {local $SIG{__DIE__};require IO::Socket::INET6; IO::Socket::INET6->VERSION("1.26");}) { | |||
24 | - Socket6->import(qw(pack_sockaddr_in6 inet_pton getaddrinfo)); | |||
25 | + Socket6->import(qw(inet_pton getaddrinfo)); | |||
26 | $ipv6_addr_len = length(pack_sockaddr_in6(161, inet_pton(AF_INET6(), "::1"))); | |||
27 | $SNMP_Session::ipv6available = 1; | |||
28 | } | |||
29 | @@ -601,7 +601,7 @@ | |||
30 | BEGIN { | |||
31 | if($SNMP_Session::ipv6available) { | |||
32 | import IO::Socket::INET6; | |||
33 | - Socket6->import(qw(pack_sockaddr_in6 inet_pton getaddrinfo)); | |||
34 | + Socket6->import(qw(inet_pton getaddrinfo)); | |||
35 | } | |||
36 | } | |||
37 |