Gentoo Archives: gentoo-commits

From: "Jeremy Olexa (darkside)" <darkside@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-analyzer/munin/files: munin-1.4.3-plugin-cleanup.patch munin-1.4.3-Makefile.patch munin-1.4.3-ping6_fix.patch munin-1.4.3-fw_conntrack_plugins.patch munin-1.3.2-plugin-cleanup.patch munin-1.3.2-rrdtool-comments.patch munin-1.3.3-Makefile.patch
Date: Wed, 03 Feb 2010 15:17:58
Message-Id: E1NcgzL-00072E-Oi@stork.gentoo.org
1 darkside 10/02/03 15:17:55
2
3 Added: munin-1.4.3-plugin-cleanup.patch
4 munin-1.4.3-Makefile.patch
5 munin-1.4.3-ping6_fix.patch
6 munin-1.4.3-fw_conntrack_plugins.patch
7 Removed: munin-1.3.2-plugin-cleanup.patch
8 munin-1.3.2-rrdtool-comments.patch
9 munin-1.3.3-Makefile.patch
10 Log:
11 Version bump to 1.4.3, many thanks to all the contributors on bug 300171. Include ping6 fix from bug 294722. Include QA fix for perl site-dir, bug 298528. Remove old versions and unused patches
12 (Portage version: 2.1.6.13/cvs/Linux x86_64)
13
14 Revision Changes Path
15 1.1 net-analyzer/munin/files/munin-1.4.3-plugin-cleanup.patch
16
17 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/munin/files/munin-1.4.3-plugin-cleanup.patch?rev=1.1&view=markup
18 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/munin/files/munin-1.4.3-plugin-cleanup.patch?rev=1.1&content-type=text/plain
19
20 Index: munin-1.4.3-plugin-cleanup.patch
21 ===================================================================
22 --- munin-1.4.3/plugins/node.d.linux/iostat_ios.in.bak 2008-04-13 15:29:37.000000000 +0100
23 +++ munin-1.4.3/plugins/node.d.linux/iostat_ios.in 2008-04-13 15:30:59.000000000 +0100
24 @@ -59,12 +59,16 @@
25
26 sub filter {
27 my ($major, $minor, $tmpnam) = @_;
28 - return 0 if ($major == 1); # RAM devices
29 - return 0 if ($major == 9); # MD devices
30 - return 0 if ($major == 58); # LVM devices
31 - return 0 if ($major == 254); # LVM2 devices
32 - return 0 if ($tmpnam =~ /part\d+$/);
33 - return 0 if ($tmpnam =~ /^\s*(?:sd|hd)[a-z]\d+\s*$/);
34 + if(defined($major)) {
35 + return 0 if ($major == 1); # RAM devices
36 + return 0 if ($major == 9); # MD devices
37 + return 0 if ($major == 58); # LVM devices
38 + return 0 if ($major == 254); # LVM2 devices
39 + }
40 + if(defined($tmpnam)) {
41 + return 0 if ($tmpnam =~ /part\d+$/);
42 + return 0 if ($tmpnam =~ /^\s*(?:sd|hd)[a-z]\d+\s*$/);
43 + }
44
45 return 1;
46 }
47
48
49
50 1.1 net-analyzer/munin/files/munin-1.4.3-Makefile.patch
51
52 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/munin/files/munin-1.4.3-Makefile.patch?rev=1.1&view=markup
53 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/munin/files/munin-1.4.3-Makefile.patch?rev=1.1&content-type=text/plain
54
55 Index: munin-1.4.3-Makefile.patch
56 ===================================================================
57 --- munin-1.4.3/Makefile.config.org 2009-12-30 13:55:56.000000000 +0100
58 +++ munin-1.4.3/Makefile.config 2010-01-18 19:34:37.000000000 +0100
59 @@ -17,10 +17,10 @@
60 #
61 # the base of the Munin installation.
62 #
63 -PREFIX = $(DESTDIR)/opt/munin
64 +PREFIX = $(DESTDIR)/usr
65
66 # Where Munin keeps its configurations (server.conf, client.conf, ++)
67 -CONFDIR = $(DESTDIR)/etc/opt/munin
68 +CONFDIR = $(DESTDIR)/etc/munin
69
70 # Server only - where to put munin-cron
71 BINDIR = $(PREFIX)/bin
72 @@ -29,37 +29,37 @@
73 SBINDIR = $(PREFIX)/sbin
74
75 # Where to put text and html documentation
76 -DOCDIR = $(PREFIX)/doc
77 +DOCDIR = $(PREFIX)/share/doc/munin-$(VERSION)
78
79 # Where to put man pages
80 -MANDIR = $(PREFIX)/man
81 +MANDIR = $(PREFIX)/share/man
82
83 # Where to put internal binaries and plugin repository
84 -LIBDIR = $(PREFIX)/lib
85 +LIBDIR = $(PREFIX)/libexec/munin
86
87 # Server only - Output directory
88 -HTMLDIR = $(PREFIX)/www/docs
89 -CGIDIR = $(PREFIX)/www/cgi
90 +HTMLDIR = $(PREFIX)/var/www/localhost/htdocs/munin
91 +CGIDIR = $(PREFIX)/var/www/localhost/cgi-bin
92
93 # Server only - spool directory for data gathered from nodes by
94 # munin-gather - experimental. Place on ramdisk to make munin
95 # scale better. On many versions of Linux as well as on Solaris
96 # /tmp will be a ramdisk.
97
98 -SSPOOLDIR = $(PREFIX)/spool
99 +SSPOOLDIR = $(DESTDIR)/var/run/munin/spool
100
101 # Suggested directory name for a pulic ramdisk based tmp directory.
102 # SSPOOLDIR := /tmp/muninspool
103
104 # Client only - Where to put RRD files and other intenal data
105 -DBDIR = $(DESTDIR)/var/opt/munin
106 +DBDIR = $(DESTDIR)/var/lib/munin
107
108 # Client only - Where plugins should put their states. Must be writable by
109 # group "munin", and should be preserved between reboots
110 PLUGSTATE = $(DBDIR)/plugin-state
111
112 # Where Munin should place its logs.
113 -LOGDIR = $(PREFIX)/log/munin
114 +LOGDIR = $(DESTDIR)/var/log/munin
115
116 # Location of PID files and other statefiles. On the server, must be
117 # writable by the user "munin".
118 @@ -98,11 +98,11 @@
119 BASH := /bin/bash
120
121 # Server only - Where to install the perl libraries
122 -PERLSITELIB := $(shell $(PERL) -V:sitelib | cut -d"'" -f2)
123 +PERLSITELIB := $(shell $(PERL) -V:vendorlib | cut -d"'" -f2)
124 PERLLIB = $(DESTDIR)$(PERLSITELIB)
125
126 # Client only - Install plugins for this architecture
127 -OSTYPE := $(shell uname | tr '[A-Z]' '[a-z]')
128 +OSTYPE := $(shell uname | LANG=C tr '[A-Z]' '[a-z]')
129
130 # How to figure out the hostname. (Only used in default configuration
131 # files)
132
133
134
135 1.1 net-analyzer/munin/files/munin-1.4.3-ping6_fix.patch
136
137 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/munin/files/munin-1.4.3-ping6_fix.patch?rev=1.1&view=markup
138 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/munin/files/munin-1.4.3-ping6_fix.patch?rev=1.1&content-type=text/plain
139
140 Index: munin-1.4.3-ping6_fix.patch
141 ===================================================================
142 Upstream report: http://munin.projects.linpro.no/ticket/854
143 Downstream report: https://bugs.gentoo.org/show_bug.cgi?id=294722
144 --- munin-1.4.3/plugins/node.d/ping_.in.orig 2009-11-26 15:47:44.283833343 +0100
145 +++ munin-1.4.3/plugins/node.d/ping_.in 2009-11-26 13:09:28.648828197 +0100
146 @@ -71,5 +71,5 @@
147 fi
148
149
150 -${ping:-ping} ${ping_args:-'-c 2'} ${host} ${ping_args2} | perl -n -e 'print "ping.value ", $1 / 1000, "\n" if m@min/avg/max.*\s\d+(?:\.\d+)?/(\d+(?:\.\d+)?)/\d+(?:\.\d+)?@; print "packetloss.value $1\n" if /(\d+)% packet loss/;'
151 +${PING:-ping} ${ping_args:-'-c 2'} ${host} ${ping_args2} | perl -n -e 'print "ping.value ", $1 / 1000, "\n" if m@min/avg/max.*\s\d+(?:\.\d+)?/(\d+(?:\.\d+)?)/\d+(?:\.\d+)?@; print "packetloss.value $1\n" if /(\d+)% packet loss/;'
152
153
154
155
156 1.1 net-analyzer/munin/files/munin-1.4.3-fw_conntrack_plugins.patch
157
158 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/munin/files/munin-1.4.3-fw_conntrack_plugins.patch?rev=1.1&view=markup
159 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/munin/files/munin-1.4.3-fw_conntrack_plugins.patch?rev=1.1&content-type=text/plain
160
161 Index: munin-1.4.3-fw_conntrack_plugins.patch
162 ===================================================================
163 --- plugins/node.d.linux/fw_forwarded_local.in.bak 2010-01-08 11:23:26.000000000 -0800
164 +++ plugins/node.d.linux/fw_forwarded_local.in 2010-01-08 11:24:24.000000000 -0800
165 @@ -32,7 +32,7 @@
166 =cut
167
168 if [ "$1" = "autoconf" ]; then
169 - if [ -r /proc/net/ip_conntrack ]
170 + if [ -r /proc/net/ip_conntrack -o -r /proc/net/nf_conntrack ]
171 then
172 echo yes
173 else
174 @@ -53,6 +53,13 @@
175 exit 0
176 fi
177
178 +if [ -r /proc/net/ip_conntrack ]; then
179 + _conntrack_file=/proc/net/ip_conntrack
180 +else
181 + _conntrack_file=/proc/net/nf_conntrack
182 +fi
183 +
184 +
185 perl -ne '
186 BEGIN { $forward=0; $local=0; }
187
188 @@ -65,5 +72,5 @@
189 }
190 }
191 END { print "forward.value $forward\nlocal.value $local\n" }
192 -' </proc/net/ip_conntrack
193 +' <_conntrack_file