1 | Name: munin |
---|
2 | Version: 2.0.17 |
---|
3 | Release: 1%{?_dist_release} |
---|
4 | Summary: Network-wide graphing framework (grapher/gatherer) |
---|
5 | License: GPLv2 and Bitstream Vera |
---|
6 | Group: System Environment/Daemons |
---|
7 | URL: http://munin.projects.linpro.no/ |
---|
8 | |
---|
9 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) |
---|
10 | |
---|
11 | Source0: http://downloads.sourceforge.net/sourceforge/munin/%{name}-%{version}.tar.gz |
---|
12 | Source10: http://downloads.sourceforge.net/sourceforge/munin/%{name}-%{version}.tar.gz.sha256sum |
---|
13 | |
---|
14 | Source1: munin-1.2.4-sendmail-config |
---|
15 | Source2: munin-1.2.5-hddtemp_smartctl-config |
---|
16 | Source3: munin-node.logrotate |
---|
17 | Source4: munin.logrotate |
---|
18 | Source6: munin-1.2.6-postfix-config |
---|
19 | Source7: munin-1.4.5-df-config |
---|
20 | Source9: munin.conf |
---|
21 | Source12: cpuspeed.in.rev1243 |
---|
22 | Source13: linux-init.d_munin-asyncd.in |
---|
23 | Source17: munin.cron.d |
---|
24 | Source18: munin-node.rc |
---|
25 | Source19: httpd_munin-cgi.conf |
---|
26 | |
---|
27 | Source100: munin-cgi-graph.init |
---|
28 | Source101: munin-cgi-html.init |
---|
29 | Source102: munin-cgi-graph.sysconfig |
---|
30 | Source103: munin-cgi-html.sysconfig |
---|
31 | Source104: munin_params |
---|
32 | |
---|
33 | Patch4: munin-2.0.4-Utils-cluck.patch |
---|
34 | Patch5: acpi-2.0.5.patch |
---|
35 | Patch7: munin-2.0-defect-1213.patch |
---|
36 | Patch9: munin-2.0.8-cgitmp.patch |
---|
37 | |
---|
38 | Patch100: munin-cgi-taint.patch |
---|
39 | |
---|
40 | BuildArchitectures: noarch |
---|
41 | |
---|
42 | BuildRequires: net-tools |
---|
43 | BuildRequires: perl >= 5.8 |
---|
44 | BuildRequires: perl(Module::Build) |
---|
45 | BuildRequires: perl(Net::Server) |
---|
46 | BuildRequires: perl(Net::SSLeay) |
---|
47 | BuildRequires: perl(Net::SNMP) |
---|
48 | BuildRequires: perl(Test::Exception) |
---|
49 | BuildRequires: perl(Test::MockModule) |
---|
50 | BuildRequires: perl(Test::MockObject) |
---|
51 | #BuildRequires: perl(Test::Perl::Critic) >= 1.096 ## Not packaged |
---|
52 | BuildRequires: perl(Test::Pod::Coverage) |
---|
53 | BuildRequires: perl(Time::HiRes) |
---|
54 | BuildRequires: perl(Net::SSLeay) |
---|
55 | BuildRequires: perl(HTML::Template) |
---|
56 | BuildRequires: perl(Log::Log4perl) >= 1.18 |
---|
57 | |
---|
58 | Requires: %{name}-common = %{version} |
---|
59 | Requires: perl-Net-Server |
---|
60 | Requires: perl-Net-SNMP |
---|
61 | Requires: rrdtool |
---|
62 | Requires: logrotate |
---|
63 | Requires: /bin/mail |
---|
64 | Requires(pre): shadow-utils |
---|
65 | Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) |
---|
66 | Requires: TrueType-bitstream-vera |
---|
67 | |
---|
68 | %description |
---|
69 | Munin is a highly flexible and powerful solution used to create graphs of |
---|
70 | virtually everything imaginable throughout your network, while still |
---|
71 | maintaining a rattling ease of installation and configuration. |
---|
72 | |
---|
73 | This package contains the grapher/gatherer. You will only need one instance of |
---|
74 | it in your network. It will periodically poll all the nodes in your network |
---|
75 | it's aware of for data, which it in turn will use to create graphs and HTML |
---|
76 | pages, suitable for viewing with your graphical web browser of choice. |
---|
77 | |
---|
78 | Munin is written in Perl, and relies heavily on Tobi Oetiker's excellent |
---|
79 | RRDtool. |
---|
80 | |
---|
81 | %package node |
---|
82 | Group: System Environment/Daemons |
---|
83 | Summary: Network-wide graphing framework (node) |
---|
84 | BuildArchitectures: noarch |
---|
85 | Requires: %{name}-common = %{version} |
---|
86 | Requires: perl-Net-Server |
---|
87 | Requires: procps >= 2.0.7 |
---|
88 | #Requires: sysstat, /usr/bin/which, hdparm |
---|
89 | Requires: /usr/bin/which, hdparm |
---|
90 | Requires(pre): shadow-utils |
---|
91 | Requires(post): /sbin/chkconfig |
---|
92 | Requires(preun): /sbin/chkconfig |
---|
93 | Requires(preun): /sbin/service |
---|
94 | Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) |
---|
95 | |
---|
96 | %description node |
---|
97 | Munin is a highly flexible and powerful solution used to create graphs of |
---|
98 | virtually everything imaginable throughout your network, while still |
---|
99 | maintaining a rattling ease of installation and configuration. |
---|
100 | |
---|
101 | This package contains node software. You should install it on all the nodes |
---|
102 | in your network. It will know how to extract all sorts of data from the |
---|
103 | node it runs on, and will wait for the gatherer to request this data for |
---|
104 | further processing. |
---|
105 | |
---|
106 | It includes a range of plugins capable of extracting common values such as |
---|
107 | cpu usage, network usage, load average, and so on. Creating your own plugins |
---|
108 | which are capable of extracting other system-specific values is very easy, |
---|
109 | and is often done in a matter of minutes. You can also create plugins which |
---|
110 | relay information from other devices in your network that can't run Munin, |
---|
111 | such as a switch or a server running another operating system, by using |
---|
112 | SNMP or similar technology. |
---|
113 | |
---|
114 | Munin is written in Perl, and relies heavily on Tobi Oetiker's excellent |
---|
115 | RRDtool. |
---|
116 | |
---|
117 | |
---|
118 | %package async |
---|
119 | Group: System Environment/Daemons |
---|
120 | Summary: Network-wide graphing framework (asynchronous client tools) |
---|
121 | BuildArch: noarch |
---|
122 | Requires: %{name}-node = %{version} |
---|
123 | |
---|
124 | %description async |
---|
125 | Munin is a highly flexible and powerful solution used to create graphs |
---|
126 | of virtually everything imaginable throughout your network, while still |
---|
127 | maintaining a rattling ease of installation and configuration. |
---|
128 | |
---|
129 | This package contains the tools necessary for setting up an asynchronous |
---|
130 | client / spooling system |
---|
131 | |
---|
132 | |
---|
133 | %package common |
---|
134 | Group: System Environment/Daemons |
---|
135 | Summary: Network-wide graphing framework (common files) |
---|
136 | BuildArchitectures: noarch |
---|
137 | Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) |
---|
138 | |
---|
139 | %description common |
---|
140 | Munin is a highly flexible and powerful solution used to create graphs of |
---|
141 | virtually everything imaginable throughout your network, while still |
---|
142 | maintaining a rattling ease of installation and configuration. |
---|
143 | |
---|
144 | This package contains common files that are used by both the server (munin) |
---|
145 | and node (munin-node) packages. |
---|
146 | |
---|
147 | %package cgi |
---|
148 | Group: System Environment/Daemons |
---|
149 | Summary: Network-wide graphing framework (cgi files) |
---|
150 | BuildArch: noarch |
---|
151 | Requires: %{name}-common = %{version} |
---|
152 | Requires: spawn-fcgi |
---|
153 | Requires: perl-FCGI |
---|
154 | |
---|
155 | %description cgi |
---|
156 | Munin package uses cron by default. This package contains the CGI |
---|
157 | files that can generate HTML and graphs dynamically. This enables |
---|
158 | munin to scale better for a master with many nodes. |
---|
159 | |
---|
160 | See documentation for setup instructions: |
---|
161 | http://munin-monitoring.org/wiki/MuninConfigurationMasterCGI |
---|
162 | |
---|
163 | |
---|
164 | %package cgi-apache2 |
---|
165 | Group: System Environment/Daemons |
---|
166 | Summary: Network-wide graphing framework (configuration for apache) |
---|
167 | BuildArch: noarch |
---|
168 | Requires: %{name}-cgi = %{version} |
---|
169 | Requires: mod_fcgid-apache2 |
---|
170 | |
---|
171 | %description cgi-apache2 |
---|
172 | This package contains a configuration file for apache2 to generate |
---|
173 | HTML and graph files dynamically. |
---|
174 | |
---|
175 | See documentation for setup instructions: |
---|
176 | http://munin-monitoring.org/wiki/MuninConfigurationMasterCGI |
---|
177 | |
---|
178 | QUICK-HOWTO: |
---|
179 | sed -i 's/\(.*\)_strategy.*/\1_strategy cgi/' /etc/munin/munin.conf |
---|
180 | cp --backup /etc/sysconfig/spawn-fcgi-munin /etc/sysconfig/spawn-fcgi |
---|
181 | for svc in apache2 munin-node spawn-fcgi; do |
---|
182 | chkconfig $svc on |
---|
183 | service $svc start |
---|
184 | done |
---|
185 | |
---|
186 | |
---|
187 | %package cgi-nginx |
---|
188 | Group: System Environment/Daemons |
---|
189 | Summary: Network-wide graphing framework (for nginx) |
---|
190 | BuildArch: noarch |
---|
191 | Requires: %{name}-cgi = %{version} |
---|
192 | Requires: nginx |
---|
193 | |
---|
194 | %description cgi-nginx |
---|
195 | This package contains a configuration file for nginx to generate |
---|
196 | HTML and graph files dynamically. |
---|
197 | |
---|
198 | See documentation for setup instructions: |
---|
199 | http://munin-monitoring.org/wiki/MuninConfigurationMasterCGI |
---|
200 | |
---|
201 | |
---|
202 | %prep |
---|
203 | %setup -q |
---|
204 | |
---|
205 | sed -i -e ' |
---|
206 | s,^CGIDIR = \(.*\),CGIDIR = $(DESTDIR)/var/www/cgi-bin,; |
---|
207 | s,^CGITMPDIR = \(.*\),CGITMPDIR = /var/tmp,; |
---|
208 | s,^CHGRP := \(.*\),CHGRP := echo Not done: chgrp,; |
---|
209 | s,^CHMOD := \(.*\),CHMOD := echo Not done: chmod,; |
---|
210 | s,^CHOWN := \(.*\),CHOWN := echo Not done: chown,; |
---|
211 | s,^CONFDIR = \(.*\),CONFDIR = $(DESTDIR)/etc/munin,; |
---|
212 | s,^DBDIR = \(.*\),DBDIR = $(DESTDIR)/var/lib/munin,; |
---|
213 | s,^DBDIRNODE = \(.*\),DBDIRNODE = $(DESTDIR)/var/opt/munin-node,; |
---|
214 | s,^DOCDIR = \(.*\),DOCDIR = $(DESTDIR)%{_datadir}/doc/munin-$(VERSION),; |
---|
215 | s,^GROUP := \(.*\),GROUP := nobody,; |
---|
216 | s,^HOSTNAME = \(.*\),HOSTNAME = localhost.localdomain,; |
---|
217 | s,^HTMLDIR = \(.*\),HTMLDIR = $(DESTDIR)/var/www/html/munin,; |
---|
218 | s,^LIBDIR = \(.*\),LIBDIR = $(DESTDIR)%{_datadir}/munin,; |
---|
219 | s,^LOGDIR = \(.*\),LOGDIR = $(DESTDIR)/var/log/munin,; |
---|
220 | s,^PERL := \(.*\),PERL := /usr/bin/perl,; |
---|
221 | s,^PERLSITELIB := \(.*\),PERLSITELIB := %{perl_vendorlib},; |
---|
222 | s,^PLUGSTATE = \(.*\),PLUGSTATE = $(DBDIR)/plugin-state,; |
---|
223 | s,^PREFIX = \(.*\),PREFIX = $(DESTDIR)/usr,; |
---|
224 | s,^PYTHON := \(.*\),PYTHON := /usr/bin/python,; |
---|
225 | s,^RUBY := \(.*\),RUBY := /usr/bin/ruby,; |
---|
226 | s,^USER := \(.*\),USER := nobody,; |
---|
227 | ' Makefile.config |
---|
228 | |
---|
229 | install -c %{SOURCE12} ./plugins/node.d.linux/cpuspeed.in |
---|
230 | |
---|
231 | %patch4 -p0 |
---|
232 | %patch5 -p0 |
---|
233 | %patch7 -p1 |
---|
234 | %patch9 -p1 |
---|
235 | |
---|
236 | %patch100 -p1 |
---|
237 | |
---|
238 | install -c %{SOURCE13} ./resources/ |
---|
239 | |
---|
240 | %build |
---|
241 | make CONFIG=Makefile.config |
---|
242 | |
---|
243 | # Convert to utf-8 |
---|
244 | for file in Announce-2.0 COPYING ChangeLog Checklist HACKING.pod README RELEASE UPGRADING UPGRADING-1.4; do |
---|
245 | iconv -f ISO-8859-1 -t UTF-8 -o $file.new $file && \ |
---|
246 | touch -r $file $file.new && \ |
---|
247 | mv $file.new $file |
---|
248 | done |
---|
249 | |
---|
250 | # Fix the wrong FSF address |
---|
251 | for FILE in plugins/node.d.linux/tcp.in COPYING plugins/node.d.linux/bonding_err_.in; do |
---|
252 | sed -i 's|59 Temple Place.*Suite 330, Boston, MA *02111-1307|51 Franklin St, Fifth Floor, Boston, MA 02110-1301|g' $FILE |
---|
253 | done |
---|
254 | |
---|
255 | %install |
---|
256 | |
---|
257 | ## Node |
---|
258 | make CONFIG=Makefile.config \ |
---|
259 | PREFIX=%{buildroot}%{_prefix} \ |
---|
260 | DOCDIR=%{buildroot}%{_docdir}/%{name}-%{version} \ |
---|
261 | MANDIR=%{buildroot}%{_mandir} \ |
---|
262 | DESTDIR=%{buildroot} \ |
---|
263 | install |
---|
264 | |
---|
265 | # Remove fonts |
---|
266 | rm %{buildroot}%{_datadir}/munin/DejaVuSans*.ttf |
---|
267 | |
---|
268 | # install logrotate scripts |
---|
269 | mkdir -p %{buildroot}/etc/logrotate.d |
---|
270 | install -m 0644 %{SOURCE3} %{buildroot}/etc/logrotate.d/munin-node |
---|
271 | install -m 0644 %{SOURCE4} %{buildroot}/etc/logrotate.d/munin |
---|
272 | |
---|
273 | # BZ#821912 - Move .htaccess to apache config to allow easier user-access changes. |
---|
274 | mkdir -p %{buildroot}%{_sysconfdir}/apache2/conf.d |
---|
275 | sed -e 's/# </</g' %{buildroot}/var/www/html/munin/.htaccess > %{buildroot}%{_sysconfdir}/apache2/conf.d/munin.conf |
---|
276 | rm %{buildroot}/var/www/html/munin/.htaccess |
---|
277 | |
---|
278 | # install cron script |
---|
279 | mkdir -p %{buildroot}/etc/cron.d |
---|
280 | install -m 0644 %{SOURCE17} %{buildroot}/etc/cron.d/munin |
---|
281 | |
---|
282 | # |
---|
283 | # don't enable munin-node by default. |
---|
284 | # |
---|
285 | mkdir -p %{buildroot}/etc/rc.d/init.d |
---|
286 | cat %{SOURCE18} | sed -e 's/2345/\-/' > %{buildroot}/etc/rc.d/init.d/munin-node |
---|
287 | chmod 755 %{buildroot}/etc/rc.d/init.d/munin-node |
---|
288 | install -m 0755 %{SOURCE13} %{buildroot}/etc/rc.d/init.d/munin-asyncd |
---|
289 | |
---|
290 | mkdir -p %{buildroot}%{_sysconfdir}/tmpfiles.d |
---|
291 | install -m 0644 %{SOURCE9} %{buildroot}%{_sysconfdir}/tmpfiles.d/%{name}.conf |
---|
292 | |
---|
293 | # Fix default config file |
---|
294 | sed -i ' |
---|
295 | s,/etc/munin/munin-conf.d,/etc/munin/conf.d,; |
---|
296 | s,#html_strategy.*,html_strategy cron,; |
---|
297 | s,#graph_strategy.*,graph_strategy cron,; |
---|
298 | ' %{buildroot}/etc/munin/munin.conf |
---|
299 | mkdir -p %{buildroot}/etc/munin/conf.d |
---|
300 | mkdir -p %{buildroot}/etc/munin/plugin-conf.d |
---|
301 | mkdir -p %{buildroot}/etc/munin/node.d |
---|
302 | mkdir -p %{buildroot}/etc/munin/plugin-node.d |
---|
303 | |
---|
304 | # install config for sendmail under fedora |
---|
305 | install -m 0644 %{SOURCE1} %{buildroot}/etc/munin/plugin-conf.d/sendmail |
---|
306 | |
---|
307 | # install config for hddtemp_smartctl |
---|
308 | install -m 0644 %{SOURCE2} %{buildroot}/etc/munin/plugin-conf.d/hddtemp_smartctl |
---|
309 | |
---|
310 | # install logrotate scripts |
---|
311 | install -m 0644 %{SOURCE3} %{buildroot}/etc/logrotate.d/munin-node |
---|
312 | install -m 0644 %{SOURCE4} %{buildroot}/etc/logrotate.d/munin |
---|
313 | sed -i 's/su munin/#su munin/' %{buildroot}/etc/logrotate.d/munin-node |
---|
314 | sed -i 's/su munin/#su munin/' %{buildroot}/etc/logrotate.d/munin |
---|
315 | |
---|
316 | # install config for postfix |
---|
317 | install -m 0644 %{SOURCE6} %{buildroot}/etc/munin/plugin-conf.d/postfix |
---|
318 | |
---|
319 | # install df config to exclude fses we shouldn't try and monitor |
---|
320 | install -m 0644 %{SOURCE7} %{buildroot}/etc/munin/plugin-conf.d/df |
---|
321 | |
---|
322 | # Append for BZ# 746083 |
---|
323 | cat - >> %{buildroot}/etc/munin/plugin-conf.d/munin-node <<EOT.node |
---|
324 | [diskstats] |
---|
325 | user munin |
---|
326 | |
---|
327 | [iostat_ios] |
---|
328 | user munin |
---|
329 | EOT.node |
---|
330 | |
---|
331 | # Preload static html files |
---|
332 | mkdir -p %{buildroot}/var/www/html/munin/ |
---|
333 | cp -r %{buildroot}/etc/munin/static %{buildroot}/var/www/html/munin/ |
---|
334 | |
---|
335 | # Remove plugins that are missing deps |
---|
336 | rm %{buildroot}/usr/share/munin/plugins/sybase_space |
---|
337 | |
---|
338 | # Create DBDIRNODE |
---|
339 | mkdir -p %{buildroot}/var/lib/munin-node/plugin-state |
---|
340 | |
---|
341 | # Fix config file so that it no longer references the build host |
---|
342 | sed -i 's/^\[.*/\[localhost\]/' %{buildroot}/etc/munin/munin.conf |
---|
343 | |
---|
344 | # Create sample fcgi config files |
---|
345 | mkdir -p %{buildroot}/etc/sysconfig %{buildroot}/etc/apache2/conf.d |
---|
346 | cp %{SOURCE19} %{buildroot}/etc/apache2/conf.d/munin-cgi.conf |
---|
347 | cat > %{buildroot}/etc/sysconfig/spawn-fcgi-munin <<EOT |
---|
348 | # SAMPLE: Rename this file to /etc/sysconfig/spawn-fcgi and edit to fit |
---|
349 | # (Without something like this, munin-cgi will not work properly via init script) |
---|
350 | SOCKET=/var/run/munin/fcgi-graph.sock |
---|
351 | OPTIONS="-U www-data -u www-data -g www-data -s $SOCKET -S -M 0600 -C 32 -F 1 -P /var/run/spawn-fcgi.pid -- /var/www/cgi-bin/munin-cgi-graph" |
---|
352 | |
---|
353 | EOT |
---|
354 | |
---|
355 | # create symlinks to munin-asyncd in %%{_sbindir} |
---|
356 | for i in munin-async munin-asyncd |
---|
357 | do |
---|
358 | ln -sf %{_datadir}/munin/$i %{buildroot}%{_sbindir}/$i |
---|
359 | done |
---|
360 | |
---|
361 | install -m 755 %{SOURCE100} %{buildroot}%{_initdir}/munin-cgi-graph |
---|
362 | install -m 755 %{SOURCE101} %{buildroot}%{_initdir}/munin-cgi-html |
---|
363 | install -m 644 %{SOURCE102} %{buildroot}%{_sysconfdir}/sysconfig/munin-cgi-graph |
---|
364 | install -m 644 %{SOURCE103} %{buildroot}%{_sysconfdir}/sysconfig/munin-cgi-html |
---|
365 | |
---|
366 | install -d %{buildroot}%{_sysconfdir}/nginx |
---|
367 | install -m 644 %{SOURCE104} %{buildroot}%{_sysconfdir}/nginx/munin_params |
---|
368 | |
---|
369 | install -d %{buildroot}%{_localstatedir}/lib/%{name}/cgi-tmp |
---|
370 | |
---|
371 | %clean |
---|
372 | rm -rf $RPM_BUILD_ROOT |
---|
373 | |
---|
374 | # |
---|
375 | # node package scripts |
---|
376 | # |
---|
377 | %pre node |
---|
378 | getent group munin >/dev/null || groupadd -r munin |
---|
379 | getent passwd munin >/dev/null || \ |
---|
380 | useradd -r -g munin -d /var/lib/munin -s /sbin/nologin \ |
---|
381 | -c "Munin user" munin |
---|
382 | exit 0 |
---|
383 | |
---|
384 | %post node |
---|
385 | /sbin/chkconfig --add munin-node |
---|
386 | # Only run configure on a new install, not an upgrade. |
---|
387 | if [ "$1" = "1" ]; then |
---|
388 | /usr/sbin/munin-node-configure --shell 2> /dev/null | sh >& /dev/null || : |
---|
389 | fi |
---|
390 | |
---|
391 | %preun node |
---|
392 | if [ "$1" = 0 ]; then |
---|
393 | for svc in node asyncd fcgi-html fcgi-graph; do |
---|
394 | service munin-${svc} stop &>/dev/null || : |
---|
395 | /sbin/chkconfig --del munin-${svc} |
---|
396 | done |
---|
397 | fi |
---|
398 | |
---|
399 | %postun node |
---|
400 | if [ "$1" = "0" ]; then |
---|
401 | [ -d %{_sysconfdir}/munin/plugins ] && \ |
---|
402 | find %{_sysconfdir}/munin/plugins/ -maxdepth 1 -type l -print0 | \ |
---|
403 | xargs -0 rm || : |
---|
404 | fi |
---|
405 | |
---|
406 | %triggerun node -- munin-node < 1.4.7 |
---|
407 | cp -a %{_sysconfdir}/munin/plugins %{_sysconfdir}/munin/plugins.bak || : |
---|
408 | |
---|
409 | %triggerpostun node -- munin-node < 1.4.7 |
---|
410 | mv -f %{_sysconfdir}/munin/plugins.bak/* %{_sysconfdir}/munin/plugins/ || : |
---|
411 | |
---|
412 | |
---|
413 | %preun cgi |
---|
414 | if [ "$1" = 0 ]; then |
---|
415 | for svc in fcgi-html fcgi-graph; do |
---|
416 | service munin-${svc} stop &>/dev/null || : |
---|
417 | /sbin/chkconfig --del munin-${svc} |
---|
418 | done |
---|
419 | fi |
---|
420 | |
---|
421 | # |
---|
422 | # main package scripts |
---|
423 | # |
---|
424 | %pre |
---|
425 | getent group munin >/dev/null || groupadd -r munin |
---|
426 | getent passwd munin >/dev/null || \ |
---|
427 | useradd -r -g munin -d /var/lib/munin -s /sbin/nologin \ |
---|
428 | -c "Munin user" munin |
---|
429 | exit 0 |
---|
430 | |
---|
431 | %files |
---|
432 | %defattr(-, root, root) |
---|
433 | %{_bindir}/munin-cron |
---|
434 | %{_bindir}/munindoc |
---|
435 | %{_bindir}/munin-check |
---|
436 | %{_sbindir}/munin-sched |
---|
437 | %dir %{_datadir}/munin |
---|
438 | %{_datadir}/munin/munin-graph |
---|
439 | %{_datadir}/munin/munin-html |
---|
440 | %{_datadir}/munin/munin-limits |
---|
441 | %{_datadir}/munin/munin-update |
---|
442 | %{_datadir}/munin/munin-datafile2storable |
---|
443 | %{_datadir}/munin/munin-storable2datafile |
---|
444 | %{perl_vendorlib}/Munin/Master |
---|
445 | %dir /etc/munin/templates |
---|
446 | %dir /etc/munin |
---|
447 | %dir /etc/munin/conf.d |
---|
448 | %config(noreplace) /etc/munin/templates/* |
---|
449 | %config(noreplace) /etc/munin/static/* |
---|
450 | %config(noreplace) /etc/cron.d/munin |
---|
451 | %config(noreplace) /etc/munin/munin.conf |
---|
452 | %config(noreplace) /etc/logrotate.d/munin |
---|
453 | %config(noreplace) /etc/apache2/conf.d/munin.conf |
---|
454 | %attr(-, munin, munin) %dir /var/lib/munin |
---|
455 | %attr(-, munin, munin) %dir /var/lib/munin/plugin-state |
---|
456 | %attr(-, munin, munin) %dir /var/run/munin |
---|
457 | %attr(-, munin, munin) %dir /var/log/munin |
---|
458 | %attr(-, munin, munin) /var/www/html/munin |
---|
459 | %doc %{_mandir}/man1/munindoc* |
---|
460 | %doc %{_mandir}/man1/munin-sched* |
---|
461 | %doc %{_mandir}/man3/Munin::Master* |
---|
462 | %doc %{_mandir}/man5/munin.conf* |
---|
463 | %doc %{_mandir}/man8/munin* |
---|
464 | |
---|
465 | %files node |
---|
466 | %defattr(-, root, root) |
---|
467 | %config(noreplace) /etc/munin/munin-node.conf |
---|
468 | %dir /etc/munin/plugin-conf.d |
---|
469 | %dir /etc/munin/node.d |
---|
470 | %config(noreplace) /etc/munin/plugin-conf.d/munin-node |
---|
471 | %config(noreplace) /etc/munin/plugin-conf.d/sendmail |
---|
472 | %config(noreplace) /etc/munin/plugin-conf.d/hddtemp_smartctl |
---|
473 | %config(noreplace) /etc/munin/plugin-conf.d/postfix |
---|
474 | %config(noreplace) /etc/munin/plugin-conf.d/df |
---|
475 | %config(noreplace) /etc/logrotate.d/munin-node |
---|
476 | /etc/rc.d/init.d/munin-node |
---|
477 | %{_sbindir}/munin-run |
---|
478 | %{_sbindir}/munin-node |
---|
479 | %{_sbindir}/munin-node-configure |
---|
480 | %attr(-, munin, munin) %dir /var/log/munin |
---|
481 | %dir %{_datadir}/munin |
---|
482 | %dir /etc/munin/plugins |
---|
483 | %dir /etc/munin |
---|
484 | %attr(-, munin, munin) %dir /var/lib/munin |
---|
485 | %dir %attr(-, munin, munin) /var/lib/munin/plugin-state |
---|
486 | %{_datadir}/munin/plugins/ |
---|
487 | %doc %{_mandir}/man5/munin-node* |
---|
488 | %doc %{_mandir}/man3/Munin::Common* |
---|
489 | %doc %{_mandir}/man3/Munin::Node* |
---|
490 | %doc %{_mandir}/man3/Munin::Plugin* |
---|
491 | %doc %{_mandir}/man1/munin-node* |
---|
492 | %doc %{_mandir}/man1/munin-run* |
---|
493 | %{perl_vendorlib}/Munin/Node |
---|
494 | %{perl_vendorlib}/Munin/Plugin* |
---|
495 | |
---|
496 | |
---|
497 | %files async |
---|
498 | %defattr(-,root,root) |
---|
499 | %{_sbindir}/munin-async* |
---|
500 | %{_datadir}/munin/munin-async* |
---|
501 | %{_sysconfdir}/rc.d/init.d/munin-asyncd |
---|
502 | |
---|
503 | |
---|
504 | %files common |
---|
505 | %defattr(-, root, root) |
---|
506 | %doc Announce-2.0 ChangeLog COPYING HACKING.pod perltidyrc README RELEASE UPGRADING |
---|
507 | %dir %{perl_vendorlib}/Munin |
---|
508 | %{perl_vendorlib}/Munin/Common |
---|
509 | %config(noreplace) %{_sysconfdir}/tmpfiles.d/%{name}.conf |
---|
510 | |
---|
511 | |
---|
512 | %files cgi |
---|
513 | %defattr(-,root,root) |
---|
514 | %attr(0755,root,munin) /var/www/cgi-bin/munin-cgi-graph |
---|
515 | %attr(0755,root,munin) /var/www/cgi-bin/munin-cgi-html |
---|
516 | %attr(0755,www-data,www-data) %dir %{_localstatedir}/lib/%{name}/cgi-tmp |
---|
517 | %{_initdir}/munin-cgi-graph |
---|
518 | %{_initdir}/munin-cgi-html |
---|
519 | %config(noreplace) %{_sysconfdir}/sysconfig/munin-cgi-graph |
---|
520 | %config(noreplace) %{_sysconfdir}/sysconfig/munin-cgi-html |
---|
521 | |
---|
522 | %files cgi-apache2 |
---|
523 | %defattr(-,root,root) |
---|
524 | %config(noreplace) %{_sysconfdir}/apache2/conf.d/munin-cgi.conf |
---|
525 | |
---|
526 | %files cgi-nginx |
---|
527 | %defattr(-,root,root) |
---|
528 | %config(noreplace) %{_sysconfdir}/nginx/munin_params |
---|
529 | |
---|
530 | |
---|
531 | %changelog |
---|
532 | * Sat Nov 23 2013 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.0.17-1 |
---|
533 | - new upstream release. |
---|
534 | - added sub packages "cgi-apache2" and "cgi-nginx". |
---|
535 | |
---|
536 | * Tue Dec 04 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 2.0.8-1 |
---|
537 | - update to munin-2.0.8 |
---|
538 | - add async/cgi sub package |
---|
539 | |
---|
540 | * Thu Mar 22 2012 Yasumichi Akahoshi <yasumichi@vinelinux.org> 1.4.6-1 |
---|
541 | - Initial build for Vine Linux. |
---|
542 | |
---|
543 | * Wed Feb 22 2012 Kevin Fenzi <kevin@scrye.com> 1.4.6-8 |
---|
544 | - Build against java-1.7.0 now. Fixes bug #796345 |
---|
545 | |
---|
546 | * Tue Jan 31 2012 D. Johnson <fenris02@fedoraproject.org> - 1.4.6-7 |
---|
547 | - Create state file for yum-plugin. Fixes BZ #786030. |
---|
548 | |
---|
549 | * Fri Jan 20 2012 Kevin Fenzi <kevin@scrye.com> - 1.4.6-6 |
---|
550 | - Add PrivateTmp=true to systemd unit file. Fixes bug #782512 |
---|
551 | - Change logrotate to use munin user. Fixes bug #771017 |
---|
552 | |
---|
553 | * Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.6-5.3 |
---|
554 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild |
---|
555 | |
---|
556 | * Mon Oct 17 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.4.6-4.3 |
---|
557 | - Rebuild for java 1.6.0 downgrade (fesco ticket 663) |
---|
558 | |
---|
559 | * Sat Aug 27 2011 Kevin Fenzi <kevin@scrye.com> - 1.4.6-4.1 |
---|
560 | - Add patch to run restorecon in the sysvinit script. |
---|
561 | - This doesn't matter on f16+ |
---|
562 | |
---|
563 | * Sat Aug 20 2011 D. Johnson <fenris02@fedoraproject.org> - 1.4.6-4 |
---|
564 | - fix tmpfiles.d file for f15 (BZ# 731181) |
---|
565 | |
---|
566 | * Thu Jul 21 2011 Petr Sabata <contyk@redhat.com> - 1.4.6-3 |
---|
567 | - Perl mass rebuild |
---|
568 | |
---|
569 | * Wed Jul 20 2011 Petr Sabata <contyk@redhat.com> - 1.4.6-2 |
---|
570 | - Perl mass rebuild |
---|
571 | |
---|
572 | * Fri Jul 8 2011 D. Johnson <fenris02@fedoraproject.org> - 1.4.6-1 |
---|
573 | - update to 1.4.6 |
---|
574 | |
---|
575 | * Fri Jun 17 2011 Marcela Mašláňová <mmaslano@redhat.com> - 1.4.5-13 |
---|
576 | - Perl mass rebuild |
---|
577 | |
---|
578 | * Wed Jun 15 2011 D. Johnson <fenris02@fedoraproject.org> - 1.4.5-12 |
---|
579 | - Use tmpfiles.d instead of ExecStartPre |
---|
580 | - Add patch for noSuchObject errors (BZ# 712245) |
---|
581 | |
---|
582 | * Fri Jun 10 2011 Marcela Mašláňová <mmaslano@redhat.com> - 1.4.5-11 |
---|
583 | - Perl 5.14 mass rebuild |
---|
584 | |
---|
585 | * Wed Jun 1 2011 D. Johnson <fenris02@fedoraproject.org> - 1.4.5-10 |
---|
586 | - Fixes http://munin-monitoring.org/ticket/887 |
---|
587 | |
---|
588 | * Mon May 30 2011 D. Johnson <fenris02@fedoraproject.org> - 1.4.5-9 |
---|
589 | - Native systemd service file for munin-node (BZ# 699275) |
---|
590 | |
---|
591 | * Tue Feb 08 2011 Kevin Fenzi <kevin@tummy.com> - 1.4.5-8 |
---|
592 | - Fix issue with uppercase node names returning no data. Fixes #673263 |
---|
593 | |
---|
594 | * Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.5-7 |
---|
595 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild |
---|
596 | |
---|
597 | * Sun Dec 05 2010 Kevin Fenzi <kevin@tummy.com> - 1.4.5-6 |
---|
598 | - Adjust the df fix to include all the right fses |
---|
599 | |
---|
600 | * Thu Nov 25 2010 Kevin Fenzi <kevin@tummy.com> - 1.4.5-5 |
---|
601 | - Exclude some fses from df plugin. fixes #601410 |
---|
602 | |
---|
603 | * Wed Aug 11 2010 Todd Zullinger <tmz@pobox.com> - 1.4.5-4.1 |
---|
604 | - Move jmx_ plugin to java-plugins package |
---|
605 | |
---|
606 | * Wed Jul 07 2010 Kevin Fenzi <kevin@tummy.com> - 1.4.5-4 |
---|
607 | - Move docs to common subpackage to make sure COPYING is installed. |
---|
608 | |
---|
609 | * Sat Jul 03 2010 Kevin Fenzi <kevin@tummy.com> - 1.4.5-3 |
---|
610 | - Add /etc/munin/node.d dir |
---|
611 | |
---|
612 | * Sat Jun 12 2010 Kevin Fenzi <kevin@tummy.com> - 1.4.5-2 |
---|
613 | - Add /etc/munin/conf.d/ dir |
---|
614 | |
---|
615 | * Sat Jun 05 2010 Kevin Fenzi <kevin@tummy.com> - 1.4.5-1 |
---|
616 | - Update to 1.4.5 |
---|
617 | |
---|
618 | * Tue Jun 01 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.4.4-2 |
---|
619 | - Mass rebuild with perl-5.12.0 |
---|
620 | |
---|
621 | * Mon Mar 01 2010 Kevin Fenzi <kevin@tummy.com> - 1.4.4-1 |
---|
622 | - Update to 1.4.4 |
---|
623 | - Add more doc files. Fixes bug #563824 |
---|
624 | - fw_forwarded_local fixed upstream in 1.4.4. Fixes bug #568500 |
---|
625 | |
---|
626 | * Sun Jan 17 2010 Kevin Fenzi <kevin@tummy.com> - 1.4.3-2 |
---|
627 | - Fix owner on state files. |
---|
628 | - Add some BuildRequires. |
---|
629 | - Make munin-node-configure only run on install, not upgrade. bug 540687 |
---|
630 | |
---|
631 | * Thu Dec 31 2009 Kevin Fenzi <kevin@tummy.com> - 1.4.3-1 |
---|
632 | - Update to 1.4.3 |
---|
633 | |
---|
634 | * Thu Dec 17 2009 Ingvar Hagelund <ingvar@linpro.no> - 1.4.2-1 |
---|
635 | - New upstream release |
---|
636 | - Removed upstream packaged fonts |
---|
637 | - Added a patch that makes rrdtool use the system bitstream vera fonts on |
---|
638 | rhel < 6 and fedora < 11 |
---|
639 | |
---|
640 | * Fri Dec 11 2009 Ingvar Hagelund <ingvar@linpro.no> - 1.4.1-3 |
---|
641 | - More correct fedora and el versions for previous font path fix |
---|
642 | - Added a patch that fixes a quoting bug in GraphOld.pm, fixing fonts on el4 |
---|
643 | |
---|
644 | * Wed Dec 09 2009 Ingvar Hagelund <ingvar@linpro.no> - 1.4.1-2 |
---|
645 | - Remove jmx plugins when not supported (like on el4 and older fedora) |
---|
646 | - Correct font path on older distros like el5, el4 and fedora<11 |
---|
647 | |
---|
648 | * Fri Dec 04 2009 Kevin Fenzi <kevin@tummy.com> - 1.4.1-1 |
---|
649 | - Update to 1.4.1 |
---|
650 | |
---|
651 | * Sat Nov 28 2009 Kevin Fenzi <kevin@tummy.com> - 1.4.0-1 |
---|
652 | - Update to final 1.4.0 version |
---|
653 | |
---|
654 | * Sat Nov 21 2009 Kevin Fenzi <kevin@tummy.com> - 1.4.0-0.1.beta |
---|
655 | - Update to beta 1.4.0 version. |
---|
656 | - Add common subpackage for common files. |
---|
657 | |
---|
658 | * Sun Nov 08 2009 Kevin Fenzi <kevin@tummy.com> - 1.4.0-0.1.alpha |
---|
659 | - Initial alpha version of 1.4.0 |
---|
660 | |
---|
661 | * Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.6-10 |
---|
662 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild |
---|
663 | |
---|
664 | * Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.6-9 |
---|
665 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild |
---|
666 | |
---|
667 | * Sat Jan 24 2009 Andreas Thienemann <andreas@bawue.net> - 1.2.6-8 |
---|
668 | - Updated dependencies to better reflect plugin requirements |
---|
669 | - Added hddtemp_smartctl patch to only scan for standby state on /dev/[sh]d? devices. |
---|
670 | |
---|
671 | * Sat Jan 17 2009 Kevin Fenzi <kevin@tummy.com> - 1.2.6-7 |
---|
672 | - Adjust font requires for new dejavu-sans-mono-fonts name (fixes #480463) |
---|
673 | |
---|
674 | * Mon Jan 12 2009 Kevin Fenzi <kevin@tummy.com> - 1.2.6-6 |
---|
675 | - Fix to require the correct font |
---|
676 | |
---|
677 | * Sun Jan 11 2009 Kevin Fenzi <kevin@tummy.com> - 1.2.6-5 |
---|
678 | - Switch to using dejavu-fonts instead of bitstream-vera |
---|
679 | |
---|
680 | * Sun Jan 04 2009 Kevin Fenzi <kevin@tummy.com> - 1.2.6-4 |
---|
681 | - Require bitstream-vera-fonts-sans-mono for Font (fixes #477428) |
---|
682 | |
---|
683 | * Mon Aug 11 2008 Kevin Fenzi <kevin@tummy.com> - 1.2.6-3 |
---|
684 | - Move Munin/Plugin.pm to the node subpackage (fixes #457403) |
---|
685 | |
---|
686 | * Sat Jul 12 2008 Kevin Fenzi <kevin@tummy.com> - 1.2.6-2 |
---|
687 | - Apply postfix patch (fixes #454159) |
---|
688 | - Add perl version dep and remove unneeded perl-HTML-Template (fixes #453923) |
---|
689 | |
---|
690 | * Fri Jun 20 2008 Kevin Fenzi <kevin@tummy.com> - 1.2.6-1 |
---|
691 | - Upgrade to 1.2.6 |
---|
692 | |
---|
693 | * Tue May 20 2008 Kevin Fenzi <kevin@tummy.com> - 1.2.5-5 |
---|
694 | - Rebuild for new perl |
---|
695 | |
---|
696 | * Wed Dec 26 2007 Kevin Fenzi <kevin@tummy.com> - 1.2.5-4 |
---|
697 | - Add patch to fix ampersand and degrees in plugins (fixes #376441) |
---|
698 | |
---|
699 | * Fri Nov 30 2007 Kevin Fenzi <kevin@tummy.com> - 1.2.5-3 |
---|
700 | - Removed unnneeded plugins.conf file (fixes #288541) |
---|
701 | - Fix license tag. |
---|
702 | - Fix ip_conntrack monitoring (fixes #253192) |
---|
703 | - Switch to new useradd guidelines. |
---|
704 | |
---|
705 | * Tue Mar 27 2007 Kevin Fenzi <kevin@tummy.com> - 1.2.5-2 |
---|
706 | - Fix directory ownership (fixes #233886) |
---|
707 | |
---|
708 | * Tue Oct 17 2006 Kevin Fenzi <kevin@tummy.com> - 1.2.5-1 |
---|
709 | - Update to 1.2.5 |
---|
710 | - Fix HD stats (fixes #205042) |
---|
711 | - Add in logrotate scripts that seem to have been dropped upstream |
---|
712 | |
---|
713 | * Sun Aug 27 2006 Kevin Fenzi <kevin@tummy.com> - 1.2.4-10 |
---|
714 | - Rebuild for fc6 |
---|
715 | |
---|
716 | * Tue Jun 27 2006 Kevin Fenzi <kevin@tummy.com> - 1.2.4-9 |
---|
717 | - Re-enable snmp plugins now that perl-Net-SNMP is available (fixes 196588) |
---|
718 | - Thanks to Herbert Straub <herbert@linuxhacker.at> for patch. |
---|
719 | - Fix sendmail plugins to look in the right place for the queue |
---|
720 | |
---|
721 | * Sat Apr 22 2006 Kevin Fenzi <kevin@tummy.com> - 1.2.4-8 |
---|
722 | - add patch to remove unneeded munin-nagios in cron. |
---|
723 | - add patch to remove buildhostname in munin.conf (fixes #188928) |
---|
724 | - clean up prep section of spec. |
---|
725 | |
---|
726 | * Fri Feb 24 2006 Kevin Fenzi <kevin@scrye.com> - 1.2.4-7 |
---|
727 | - Remove bogus Provides for perl RRDs (fixes #182702) |
---|
728 | |
---|
729 | * Thu Feb 16 2006 Kevin Fenzi <kevin@tummy.com> - 1.2.4-6 |
---|
730 | - Readded old changelog entries per request |
---|
731 | - Rebuilt for fc5 |
---|
732 | |
---|
733 | * Sat Dec 24 2005 Kevin Fenzi <kevin@tummy.com> - 1.2.4-5 |
---|
734 | - Fixed ownership for /var/log/munin in node subpackage (fixes 176529) |
---|
735 | |
---|
736 | * Wed Dec 14 2005 Kevin Fenzi <kevin@tummy.com> - 1.2.4-4 |
---|
737 | - Fixed ownership for /var/lib/munin in node subpackage |
---|
738 | |
---|
739 | * Wed Dec 14 2005 Kevin Fenzi <kevin@tummy.com> - 1.2.4-3 |
---|
740 | - Fixed libdir messup to allow builds on x86_64 |
---|
741 | |
---|
742 | * Mon Dec 12 2005 Kevin Fenzi <kevin@tummy.com> - 1.2.4-2 |
---|
743 | - Removed plugins that require Net-SNMP and Sybase |
---|
744 | |
---|
745 | * Tue Dec 6 2005 Kevin Fenzi <kevin@tummy.com> - 1.2.4-1 |
---|
746 | - Inital cleanup for fedora-extras |
---|
747 | |
---|
748 | * Thu Apr 21 2005 Ingvar Hagelund <ingvar@linpro.no> - 1.2.3-4 |
---|
749 | - Fixed a bug in the iostat plugin |
---|
750 | |
---|
751 | * Wed Apr 20 2005 Ingvar Hagelund <ingvar@linpro.no> - 1.2.3-3 |
---|
752 | - Added the missing /var/run/munin |
---|
753 | |
---|
754 | * Tue Apr 19 2005 Ingvar Hagelund <ingvar@linpro.no> - 1.2.3-2 |
---|
755 | - Removed a lot of unecessary perl dependencies |
---|
756 | |
---|
757 | * Mon Apr 18 2005 Ingvar Hagelund <ingvar@linpro.no> - 1.2.3-1 |
---|
758 | - Sync with svn |
---|
759 | |
---|
760 | * Tue Mar 22 2005 Ingvar Hagelund <ingvar@linpro.no> - 1.2.2-5 |
---|
761 | - Sync with release of 1.2.2 |
---|
762 | - Add some nice text from the suse specfile |
---|
763 | - Minimal changes in the header |
---|
764 | - Som ecosmetic changes |
---|
765 | - Added logrotate scripts (stolen from debian package) |
---|
766 | |
---|
767 | * Sun Feb 01 2004 Ingvar Hagelund <ingvar@linpro.no> |
---|
768 | - Sync with CVS. Version 1.0.0pre2 |
---|
769 | |
---|
770 | * Sun Jan 18 2004 Ingvar Hagelund <ingvar@linpro.no> |
---|
771 | - Sync with CVS. Change names to munin. |
---|
772 | |
---|
773 | * Fri Oct 31 2003 Ingvar Hagelund <ingvar@linpro.no> |
---|
774 | - Lot of small fixes. Now builds on more RPM distros |
---|
775 | |
---|
776 | * Wed May 21 2003 Ingvar Hagelund <ingvar@linpro.no> |
---|
777 | - Sync with CVS |
---|
778 | - 0.9.5-1 |
---|
779 | |
---|
780 | * Tue Apr 1 2003 Ingvar Hagelund <ingvar@linpro.no> |
---|
781 | - Sync with CVS |
---|
782 | - Makefile-based install of core files |
---|
783 | - Build doc (only pod2man) |
---|
784 | |
---|
785 | * Thu Jan 9 2003 Ingvar Hagelund <ingvar@linpro.no> |
---|
786 | - Sync with CVS, auto rpmbuild |
---|
787 | |
---|
788 | * Thu Jan 2 2003 Ingvar Hagelund <ingvar@linpro.no> |
---|
789 | - Fix spec file for RedHat 8.0 and new version of lrrd |
---|
790 | |
---|
791 | * Wed Sep 4 2002 Ingvar Hagelund <ingvar@linpro.no> |
---|
792 | - Small bugfixes in the rpm package |
---|
793 | |
---|
794 | * Tue Jun 18 2002 Kjetil Torgrim Homme <kjetilho@linpro.no> |
---|
795 | - new package |
---|