|
@@ -1,5 +1,5 @@
|
|
Name: munin
|
|
Name: munin
|
|
-Version: 1.4.6
|
|
+Version: 2.0.8
|
|
Release: 1%{?_dist_release}
|
|
Release: 1%{?_dist_release}
|
|
Summary: Network-wide graphing framework (grapher/gatherer)
|
|
Summary: Network-wide graphing framework (grapher/gatherer)
|
|
License: GPLv2 and Bitstream Vera
|
|
License: GPLv2 and Bitstream Vera
|
|
@@ -11,39 +11,41 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
Source0: http://downloads.sourceforge.net/sourceforge/munin/%{name}-%{version}.tar.gz
|
|
Source0: http://downloads.sourceforge.net/sourceforge/munin/%{name}-%{version}.tar.gz
|
|
Source10: http://downloads.sourceforge.net/sourceforge/munin/%{name}-%{version}.tar.gz.sha256sum
|
|
Source10: http://downloads.sourceforge.net/sourceforge/munin/%{name}-%{version}.tar.gz.sha256sum
|
|
|
|
|
|
-Patch1: munin-1.4.6-restorecon.patch
|
|
+Source1: munin-1.2.4-sendmail-config
|
|
-Patch2: munin-1.4.2-fontfix.patch
|
|
+Source2: munin-1.2.5-hddtemp_smartctl-config
|
|
-
|
|
+Source3: munin-node.logrotate
|
|
-Source1: munin-1.2.4-sendmail-config
|
|
+Source4: munin.logrotate
|
|
-Source2: munin-1.2.5-hddtemp_smartctl-config
|
|
+Source6: munin-1.2.6-postfix-config
|
|
-Source3: munin-node.logrotate
|
|
+Source7: munin-1.4.5-df-config
|
|
-Source4: munin.logrotate
|
|
+Source9: munin.conf
|
|
-Source6: munin-1.2.6-postfix-config
|
|
+Source12: cpuspeed.in.rev1243
|
|
-Source7: munin-1.4.5-df-config
|
|
+Source13: linux-init.d_munin-asyncd.in
|
|
-Source8: munin-node.service
|
|
+Source17: munin.cron.d
|
|
-Source9: %{name}.conf
|
|
+Source18: munin-node.rc
|
|
|
|
+Source19: httpd_munin-cgi.conf
|
|
|
|
+
|
|
|
|
+Patch4: munin-2.0.4-Utils-cluck.patch
|
|
|
|
+Patch5: acpi-2.0.5.patch
|
|
|
|
+Patch7: munin-2.0-defect-1213.patch
|
|
|
|
+Patch9: munin-2.0.8-cgitmp.patch
|
|
|
|
|
|
BuildArchitectures: noarch
|
|
BuildArchitectures: noarch
|
|
|
|
|
|
-BuildRequires: perl-Module-Build
|
|
+BuildRequires: net-tools
|
|
-# needed for hostname for the defaut config
|
|
+BuildRequires: perl >= 5.8
|
|
-BuildRequires: net-tools
|
|
+BuildRequires: perl(Module::Build)
|
|
-BuildRequires: perl-HTML-Template
|
|
+BuildRequires: perl(Net::Server)
|
|
-BuildRequires: perl-Log-Log4perl
|
|
+BuildRequires: perl(Net::SSLeay)
|
|
-BuildRequires: perl-Net-Server
|
|
+BuildRequires: perl(Net::SNMP)
|
|
-BuildRequires: perl-Net_SSLeay
|
|
+BuildRequires: perl(Test::Exception)
|
|
-BuildRequires: perl-Net-SNMP
|
|
+BuildRequires: perl(Test::MockModule)
|
|
-
|
|
+BuildRequires: perl(Test::MockObject)
|
|
-# java buildrequires on fedora
|
|
+#BuildRequires: perl(Test::Perl::Critic) >= 1.096 ## Not packaged
|
|
-%if 0%{?rhel} > 4 || 0%{?fedora} > 6
|
|
+BuildRequires: perl(Test::Pod::Coverage)
|
|
-BuildRequires: java-1.7.0-devel
|
|
+BuildRequires: perl(Time::HiRes)
|
|
-BuildRequires: mx4j
|
|
+BuildRequires: perl(Net::SSLeay)
|
|
-BuildRequires: jpackage-utils
|
|
+BuildRequires: perl(HTML::Template)
|
|
-%endif
|
|
+BuildRequires: perl(Log::Log4perl) >= 1.18
|
|
-
|
|
|
|
-%if 0%{?rhel} > 6 || 0%{?fedora} > 15
|
|
|
|
-BuildRequires: systemd-units
|
|
|
|
-%endif
|
|
|
|
|
|
|
|
Requires: %{name}-common = %{version}
|
|
Requires: %{name}-common = %{version}
|
|
Requires: perl-Net-Server
|
|
Requires: perl-Net-Server
|
|
@@ -53,11 +55,7 @@ Requires: logrotate
|
|
Requires: /bin/mail
|
|
Requires: /bin/mail
|
|
Requires(pre): shadow-utils
|
|
Requires(pre): shadow-utils
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
|
-%if 0%{?rhel} > 5 || 0%{?fedora} > 6
|
|
+Requires: TrueType-bitstream-vera
|
|
-Requires: dejavu-sans-mono-fonts
|
|
|
|
-%else
|
|
|
|
-Requires: bitstream-vera-fonts
|
|
|
|
-%endif
|
|
|
|
|
|
|
|
%description
|
|
%description
|
|
Munin is a highly flexible and powerful solution used to create graphs of
|
|
Munin is a highly flexible and powerful solution used to create graphs of
|
|
@@ -108,6 +106,22 @@ SNMP or similar technology.
|
|
Munin is written in Perl, and relies heavily on Tobi Oetiker's excellent
|
|
Munin is written in Perl, and relies heavily on Tobi Oetiker's excellent
|
|
RRDtool.
|
|
RRDtool.
|
|
|
|
|
|
|
|
+
|
|
|
|
+%package async
|
|
|
|
+Group: System Environment/Daemons
|
|
|
|
+Summary: Network-wide graphing framework (asynchronous client tools)
|
|
|
|
+BuildArch: noarch
|
|
|
|
+Requires: %{name}-node = %{version}
|
|
|
|
+
|
|
|
|
+%description async
|
|
|
|
+Munin is a highly flexible and powerful solution used to create graphs
|
|
|
|
+of virtually everything imaginable throughout your network, while still
|
|
|
|
+maintaining a rattling ease of installation and configuration.
|
|
|
|
+
|
|
|
|
+This package contains the tools necessary for setting up an asynchronous
|
|
|
|
+client / spooling system
|
|
|
|
+
|
|
|
|
+
|
|
%package common
|
|
%package common
|
|
Group: System Environment/Daemons
|
|
Group: System Environment/Daemons
|
|
Summary: Network-wide graphing framework (common files)
|
|
Summary: Network-wide graphing framework (common files)
|
|
@@ -122,107 +136,187 @@ maintaining a rattling ease of installation and configuration.
|
|
This package contains common files that are used by both the server (munin)
|
|
This package contains common files that are used by both the server (munin)
|
|
and node (munin-node) packages.
|
|
and node (munin-node) packages.
|
|
|
|
|
|
-%if 0%{?rhel} > 4 || 0%{?fedora} > 6
|
|
+%package cgi
|
|
-%package java-plugins
|
|
+Group: System Environment/Daemons
|
|
-Group: System Environment/Daemons
|
|
+Summary: Network-wide graphing framework (common files)
|
|
-Summary: java-plugins for munin
|
|
+BuildArch: noarch
|
|
-Requires: %{name}-node = %{version}
|
|
+Requires: %{name}-common = %{version}
|
|
-BuildArchitectures: noarch
|
|
+Requires: mod_fcgid
|
|
-
|
|
+Requires: spawn-fcgi
|
|
-%description java-plugins
|
|
+
|
|
-java-plugins for munin-node.
|
|
+%description cgi
|
|
-%endif
|
|
+Munin package uses cron by default. This package contains the CGI
|
|
|
|
+files that can generate HTML and graphs dynamically. This enables
|
|
|
|
+munin to scale better for a master with many nodes.
|
|
|
|
+
|
|
|
|
+See documentation for setup instructions:
|
|
|
|
+http://munin-monitoring.org/wiki/CgiHowto2
|
|
|
|
+
|
|
|
|
+QUICK-HOWTO:
|
|
|
|
+sed -i 's/\(.*\)_strategy.*/\1_strategy cgi/' /etc/munin/munin.conf
|
|
|
|
+cp --backup /etc/sysconfig/spawn-fcgi-munin /etc/sysconfig/spawn-fcgi
|
|
|
|
+for svc in apache2 munin-node spawn-fcgi; do
|
|
|
|
+ chkconfig $svc on
|
|
|
|
+ service $svc start
|
|
|
|
+done
|
|
|
|
+
|
|
|
|
|
|
%prep
|
|
%prep
|
|
%setup -q
|
|
%setup -q
|
|
-%patch1 -p1
|
|
|
|
|
|
|
|
-%if 0%{?rhel} < 6 && 0%{?fedora} < 11
|
|
+sed -i -e '
|
|
-%patch2 -p0
|
|
+ s,^CGIDIR = \(.*\),CGIDIR = $(DESTDIR)/var/www/cgi-bin,;
|
|
-%endif
|
|
+ s,^CGITMPDIR = \(.*\),CGITMPDIR = /var/tmp,;
|
|
|
|
+ s,^CHGRP := \(.*\),CHGRP := echo Not done: chgrp,;
|
|
|
|
+ s,^CHMOD := \(.*\),CHMOD := echo Not done: chmod,;
|
|
|
|
+ s,^CHOWN := \(.*\),CHOWN := echo Not done: chown,;
|
|
|
|
+ s,^CONFDIR = \(.*\),CONFDIR = $(DESTDIR)/etc/munin,;
|
|
|
|
+ s,^DBDIR = \(.*\),DBDIR = $(DESTDIR)/var/lib/munin,;
|
|
|
|
+ s,^DBDIRNODE = \(.*\),DBDIRNODE = $(DESTDIR)/var/opt/munin-node,;
|
|
|
|
+ s,^DOCDIR = \(.*\),DOCDIR = $(DESTDIR)%{_datadir}/doc/munin-$(VERSION),;
|
|
|
|
+ s,^GROUP := \(.*\),GROUP := nobody,;
|
|
|
|
+ s,^HOSTNAME = \(.*\),HOSTNAME = localhost.localdomain,;
|
|
|
|
+ s,^HTMLDIR = \(.*\),HTMLDIR = $(DESTDIR)/var/www/html/munin,;
|
|
|
|
+ s,^LIBDIR = \(.*\),LIBDIR = $(DESTDIR)%{_datadir}/munin,;
|
|
|
|
+ s,^LOGDIR = \(.*\),LOGDIR = $(DESTDIR)/var/log/munin,;
|
|
|
|
+ s,^PERL := \(.*\),PERL := /usr/bin/perl,;
|
|
|
|
+ s,^PERLSITELIB := \(.*\),PERLSITELIB := %{perl_vendorlib},;
|
|
|
|
+ s,^PLUGSTATE = \(.*\),PLUGSTATE = $(DBDIR)/plugin-state,;
|
|
|
|
+ s,^PREFIX = \(.*\),PREFIX = $(DESTDIR)/usr,;
|
|
|
|
+ s,^PYTHON := \(.*\),PYTHON := /usr/bin/python,;
|
|
|
|
+ s,^RUBY := \(.*\),RUBY := /usr/bin/ruby,;
|
|
|
|
+ s,^USER := \(.*\),USER := nobody,;
|
|
|
|
+ ' Makefile.config
|
|
|
|
+
|
|
|
|
+install -c %{SOURCE12} ./plugins/node.d.linux/cpuspeed.in
|
|
|
|
+
|
|
|
|
+%patch4 -p0
|
|
|
|
+%patch5 -p0
|
|
|
|
+%patch7 -p1
|
|
|
|
+%patch9 -p1
|
|
|
|
+
|
|
|
|
+install -c %{SOURCE13} ./resources/
|
|
|
|
|
|
%build
|
|
%build
|
|
-%if 0%{?rhel} > 4 || 0%{?fedora} > 6
|
|
+make CONFIG=Makefile.config
|
|
-export CLASSPATH=plugins/javalib/org/munin/plugin/jmx:$(build-classpath mx4j):$CLASSPATH
|
|
+
|
|
-%endif
|
|
+# Convert to utf-8
|
|
-make CONFIG=dists/redhat/Makefile.config
|
|
+for file in Announce-2.0 COPYING ChangeLog Checklist HACKING.pod README RELEASE UPGRADING UPGRADING-1.4; do
|
|
|
|
+ iconv -f ISO-8859-1 -t UTF-8 -o $file.new $file && \
|
|
|
|
+ touch -r $file $file.new && \
|
|
|
|
+ mv $file.new $file
|
|
|
|
+done
|
|
|
|
+
|
|
|
|
+# Fix the wrong FSF address
|
|
|
|
+for FILE in plugins/node.d.linux/tcp.in COPYING plugins/node.d.linux/bonding_err_.in; do
|
|
|
|
+ sed -i 's|59 Temple Place.*Suite 330, Boston, MA *02111-1307|51 Franklin St, Fifth Floor, Boston, MA 02110-1301|g' $FILE
|
|
|
|
+done
|
|
|
|
|
|
%install
|
|
%install
|
|
|
|
|
|
## Node
|
|
## Node
|
|
-make CONFIG=dists/redhat/Makefile.config \
|
|
+make CONFIG=Makefile.config \
|
|
-%if 0%{?rhel} > 4 || 0%{?fedora} > 6
|
|
|
|
- JAVALIBDIR=%{buildroot}%{_datadir}/java \
|
|
|
|
-%endif
|
|
|
|
PREFIX=%{buildroot}%{_prefix} \
|
|
PREFIX=%{buildroot}%{_prefix} \
|
|
DOCDIR=%{buildroot}%{_docdir}/%{name}-%{version} \
|
|
DOCDIR=%{buildroot}%{_docdir}/%{name}-%{version} \
|
|
MANDIR=%{buildroot}%{_mandir} \
|
|
MANDIR=%{buildroot}%{_mandir} \
|
|
DESTDIR=%{buildroot} \
|
|
DESTDIR=%{buildroot} \
|
|
install
|
|
install
|
|
|
|
|
|
-mkdir -p %{buildroot}/etc/munin/plugins
|
|
+# Remove fonts
|
|
-mkdir -p %{buildroot}/etc/munin/node.d
|
|
+rm %{buildroot}%{_datadir}/munin/DejaVuSans*.ttf
|
|
-mkdir -p %{buildroot}/etc/munin/plugin-conf.d
|
|
+
|
|
-mkdir -p %{buildroot}/etc/munin/conf.d
|
|
+# install logrotate scripts
|
|
mkdir -p %{buildroot}/etc/logrotate.d
|
|
mkdir -p %{buildroot}/etc/logrotate.d
|
|
-mkdir -p %{buildroot}/var/lib/munin
|
|
+install -m 0644 %{SOURCE3} %{buildroot}/etc/logrotate.d/munin-node
|
|
-mkdir -p %{buildroot}/var/log/munin
|
|
+install -m 0644 %{SOURCE4} %{buildroot}/etc/logrotate.d/munin
|
|
|
|
|
|
-# Fix default config file
|
|
+# BZ#821912 - Move .htaccess to apache config to allow easier user-access changes.
|
|
-sed -i 's,/etc/munin/munin-conf.d,/etc/munin/conf.d,' %{buildroot}/etc/munin/munin.conf
|
|
+mkdir -p %{buildroot}%{_sysconfdir}/apache2/conf.d
|
|
|
|
+sed -e 's/# </</g' %{buildroot}/var/www/html/munin/.htaccess > %{buildroot}%{_sysconfdir}/apache2/conf.d/munin.conf
|
|
|
|
+rm %{buildroot}/var/www/html/munin/.htaccess
|
|
|
|
+
|
|
|
|
+# install cron script
|
|
|
|
+mkdir -p %{buildroot}/etc/cron.d
|
|
|
|
+install -m 0644 %{SOURCE17} %{buildroot}/etc/cron.d/munin
|
|
|
|
|
|
#
|
|
#
|
|
# don't enable munin-node by default.
|
|
# don't enable munin-node by default.
|
|
#
|
|
#
|
|
-%if 0%{?rhel} > 6 || 0%{?fedora} > 15
|
|
|
|
-mkdir -p %{buildroot}/lib/systemd/system/
|
|
|
|
-install -m 0644 %{SOURCE8} %{buildroot}/lib/systemd/system/munin-node.service
|
|
|
|
-%else
|
|
|
|
mkdir -p %{buildroot}/etc/rc.d/init.d
|
|
mkdir -p %{buildroot}/etc/rc.d/init.d
|
|
-cat dists/redhat/munin-node.rc | sed -e 's/2345/\-/' > %{buildroot}/etc/rc.d/init.d/munin-node
|
|
+cat %{SOURCE18} | sed -e 's/2345/\-/' > %{buildroot}/etc/rc.d/init.d/munin-node
|
|
chmod 755 %{buildroot}/etc/rc.d/init.d/munin-node
|
|
chmod 755 %{buildroot}/etc/rc.d/init.d/munin-node
|
|
-%endif
|
|
+install -m 0755 %{SOURCE13} %{buildroot}/etc/rc.d/init.d/munin-asyncd
|
|
|
|
|
|
-%if 0%{?rhel} > 6 || 0%{?fedora} > 14
|
|
|
|
mkdir -p %{buildroot}%{_sysconfdir}/tmpfiles.d
|
|
mkdir -p %{buildroot}%{_sysconfdir}/tmpfiles.d
|
|
install -m 0644 %{SOURCE9} %{buildroot}%{_sysconfdir}/tmpfiles.d/%{name}.conf
|
|
install -m 0644 %{SOURCE9} %{buildroot}%{_sysconfdir}/tmpfiles.d/%{name}.conf
|
|
-%endif
|
|
|
|
|
|
|
|
-install -m0644 dists/tarball/plugins.conf %{buildroot}/etc/munin/plugin-conf.d/munin-node
|
|
+# Fix default config file
|
|
-
|
|
+sed -i '
|
|
-#
|
|
+ s,/etc/munin/munin-conf.d,/etc/munin/conf.d,;
|
|
-# remove the Sybase plugin for now, as they need perl modules
|
|
+ s,#html_strategy.*,html_strategy cron,;
|
|
-# that are not in extras. We can readd them when/if those modules are added.
|
|
+ s,#graph_strategy.*,graph_strategy cron,;
|
|
-#
|
|
+ ' %{buildroot}/etc/munin/munin.conf
|
|
-rm -f %{buildroot}/usr/share/munin/plugins/sybase_space
|
|
+mkdir -p %{buildroot}/etc/munin/conf.d
|
|
-
|
|
+mkdir -p %{buildroot}/etc/munin/plugin-conf.d
|
|
-## Server
|
|
+mkdir -p %{buildroot}/etc/munin/node.d
|
|
-
|
|
+mkdir -p %{buildroot}/etc/munin/plugin-node.d
|
|
-mkdir -p %{buildroot}/var/www/html/munin
|
|
|
|
-mkdir -p %{buildroot}/var/log/munin
|
|
|
|
-mkdir -p %{buildroot}/etc/cron.d
|
|
|
|
-mkdir -p %{buildroot}%{_docdir}/%{name}-%{version}
|
|
|
|
-
|
|
|
|
-install -m 0644 dists/redhat/munin.cron.d %{buildroot}/etc/cron.d/munin
|
|
|
|
-cp -a master/www/* %{buildroot}/var/www/html/munin/
|
|
|
|
|
|
|
|
# install config for sendmail under fedora
|
|
# install config for sendmail under fedora
|
|
install -m 0644 %{SOURCE1} %{buildroot}/etc/munin/plugin-conf.d/sendmail
|
|
install -m 0644 %{SOURCE1} %{buildroot}/etc/munin/plugin-conf.d/sendmail
|
|
|
|
+
|
|
# install config for hddtemp_smartctl
|
|
# install config for hddtemp_smartctl
|
|
install -m 0644 %{SOURCE2} %{buildroot}/etc/munin/plugin-conf.d/hddtemp_smartctl
|
|
install -m 0644 %{SOURCE2} %{buildroot}/etc/munin/plugin-conf.d/hddtemp_smartctl
|
|
|
|
+
|
|
# install logrotate scripts
|
|
# install logrotate scripts
|
|
install -m 0644 %{SOURCE3} %{buildroot}/etc/logrotate.d/munin-node
|
|
install -m 0644 %{SOURCE3} %{buildroot}/etc/logrotate.d/munin-node
|
|
install -m 0644 %{SOURCE4} %{buildroot}/etc/logrotate.d/munin
|
|
install -m 0644 %{SOURCE4} %{buildroot}/etc/logrotate.d/munin
|
|
-# install config for postfix under fedora
|
|
+sed -i 's/su munin/#su munin/' %{buildroot}/etc/logrotate.d/munin-node
|
|
|
|
+sed -i 's/su munin/#su munin/' %{buildroot}/etc/logrotate.d/munin
|
|
|
|
+
|
|
|
|
+# install config for postfix
|
|
install -m 0644 %{SOURCE6} %{buildroot}/etc/munin/plugin-conf.d/postfix
|
|
install -m 0644 %{SOURCE6} %{buildroot}/etc/munin/plugin-conf.d/postfix
|
|
|
|
+
|
|
# install df config to exclude fses we shouldn't try and monitor
|
|
# install df config to exclude fses we shouldn't try and monitor
|
|
install -m 0644 %{SOURCE7} %{buildroot}/etc/munin/plugin-conf.d/df
|
|
install -m 0644 %{SOURCE7} %{buildroot}/etc/munin/plugin-conf.d/df
|
|
-# Create for BZ 786030
|
|
|
|
-touch %{buildroot}/var/lib/munin/plugin-state/yum.state
|
|
|
|
|
|
|
|
-# Use system font
|
|
+# Append for BZ# 746083
|
|
-rm -f $RPM_BUILD_ROOT/%{_datadir}/munin/DejaVuSansMono.ttf
|
|
+cat - >> %{buildroot}/etc/munin/plugin-conf.d/munin-node <<EOT.node
|
|
-rm -f $RPM_BUILD_ROOT/%{_datadir}/munin/DejaVuSans.ttf
|
|
+[diskstats]
|
|
|
|
+user munin
|
|
|
|
+
|
|
|
|
+[iostat_ios]
|
|
|
|
+user munin
|
|
|
|
+EOT.node
|
|
|
|
+
|
|
|
|
+# Preload static html files
|
|
|
|
+mkdir -p %{buildroot}/var/www/html/munin/
|
|
|
|
+cp -r %{buildroot}/etc/munin/static %{buildroot}/var/www/html/munin/
|
|
|
|
+
|
|
|
|
+# Remove plugins that are missing deps
|
|
|
|
+rm %{buildroot}/usr/share/munin/plugins/sybase_space
|
|
|
|
+
|
|
|
|
+# Create DBDIRNODE
|
|
|
|
+mkdir -p %{buildroot}/var/lib/munin-node/plugin-state
|
|
|
|
+
|
|
|
|
+# Fix config file so that it no longer references the build host
|
|
|
|
+sed -i 's/^\[.*/\[localhost\]/' %{buildroot}/etc/munin/munin.conf
|
|
|
|
+
|
|
|
|
+# Create sample fcgi config files
|
|
|
|
+mkdir -p %{buildroot}/etc/sysconfig %{buildroot}/etc/apache2/conf.d
|
|
|
|
+cp %{SOURCE19} %{buildroot}/etc/apache2/conf.d/munin-cgi.conf
|
|
|
|
+cat > %{buildroot}/etc/sysconfig/spawn-fcgi-munin <<EOT
|
|
|
|
+# SAMPLE: Rename this file to /etc/sysconfig/spawn-fcgi and edit to fit
|
|
|
|
+# (Without something like this, munin-cgi will not work properly via init script)
|
|
|
|
+SOCKET=/var/run/munin/fcgi-graph.sock
|
|
|
|
+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"
|
|
|
|
+
|
|
|
|
+EOT
|
|
|
|
+
|
|
|
|
+# create symlinks to munin-asyncd in %%{_sbindir}
|
|
|
|
+for i in munin-async munin-asyncd
|
|
|
|
+do
|
|
|
|
+ ln -sf %{_datadir}/munin/$i %{buildroot}%{_sbindir}/$i
|
|
|
|
+done
|
|
|
|
|
|
%clean
|
|
%clean
|
|
rm -rf $RPM_BUILD_ROOT
|
|
rm -rf $RPM_BUILD_ROOT
|
|
@@ -245,15 +339,34 @@ if [ "$1" = "1" ]; then
|
|
fi
|
|
fi
|
|
|
|
|
|
%preun node
|
|
%preun node
|
|
-%if 0%{?rhel} > 6 || 0%{?fedora} > 15
|
|
+if [ "$1" = 0 ]; then
|
|
-test "$1" != 0 || %{_bindir}/systemctl disable munin-node.service || :
|
|
+ for svc in node asyncd fcgi-html fcgi-graph; do
|
|
-%else
|
|
+ service munin-${svc} stop &>/dev/null || :
|
|
-test "$1" != 0 || %{_initrddir}/munin-node stop &>/dev/null || :
|
|
+ /sbin/chkconfig --del munin-${svc}
|
|
-test "$1" != 0 || /sbin/chkconfig --del munin-node
|
|
+ done
|
|
-%endif
|
|
+fi
|
|
|
|
|
|
%postun node
|
|
%postun node
|
|
-find /etc/munin/plugins/ -maxdepth 1 -type l -print0 |xargs -0 rm
|
|
+if [ "$1" = "0" ]; then
|
|
|
|
+ [ -d %{_sysconfdir}/munin/plugins ] && \
|
|
|
|
+ find %{_sysconfdir}/munin/plugins/ -maxdepth 1 -type l -print0 | \
|
|
|
|
+ xargs -0 rm || :
|
|
|
|
+fi
|
|
|
|
+
|
|
|
|
+%triggerun node -- munin-node < 1.4.7
|
|
|
|
+cp -a %{_sysconfdir}/munin/plugins %{_sysconfdir}/munin/plugins.bak || :
|
|
|
|
+
|
|
|
|
+%triggerpostun node -- munin-node < 1.4.7
|
|
|
|
+mv -f %{_sysconfdir}/munin/plugins.bak/* %{_sysconfdir}/munin/plugins/ || :
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+%preun cgi
|
|
|
|
+if [ "$1" = 0 ]; then
|
|
|
|
+ for svc in fcgi-html fcgi-graph; do
|
|
|
|
+ service munin-${svc} stop &>/dev/null || :
|
|
|
|
+ /sbin/chkconfig --del munin-${svc}
|
|
|
|
+ done
|
|
|
|
+fi
|
|
|
|
|
|
#
|
|
#
|
|
# main package scripts
|
|
# main package scripts
|
|
@@ -267,30 +380,37 @@ exit 0
|
|
|
|
|
|
%files
|
|
%files
|
|
%defattr(-, root, root)
|
|
%defattr(-, root, root)
|
|
-%doc %{_docdir}/%{name}-%{version}/
|
|
|
|
%{_bindir}/munin-cron
|
|
%{_bindir}/munin-cron
|
|
%{_bindir}/munindoc
|
|
%{_bindir}/munindoc
|
|
%{_bindir}/munin-check
|
|
%{_bindir}/munin-check
|
|
|
|
+%{_sbindir}/munin-sched
|
|
%dir %{_datadir}/munin
|
|
%dir %{_datadir}/munin
|
|
%{_datadir}/munin/munin-graph
|
|
%{_datadir}/munin/munin-graph
|
|
%{_datadir}/munin/munin-html
|
|
%{_datadir}/munin/munin-html
|
|
%{_datadir}/munin/munin-limits
|
|
%{_datadir}/munin/munin-limits
|
|
%{_datadir}/munin/munin-update
|
|
%{_datadir}/munin/munin-update
|
|
|
|
+%{_datadir}/munin/munin-datafile2storable
|
|
|
|
+%{_datadir}/munin/munin-storable2datafile
|
|
%{perl_vendorlib}/Munin/Master
|
|
%{perl_vendorlib}/Munin/Master
|
|
%dir /etc/munin/templates
|
|
%dir /etc/munin/templates
|
|
%dir /etc/munin
|
|
%dir /etc/munin
|
|
%dir /etc/munin/conf.d
|
|
%dir /etc/munin/conf.d
|
|
%config(noreplace) /etc/munin/templates/*
|
|
%config(noreplace) /etc/munin/templates/*
|
|
|
|
+%config(noreplace) /etc/munin/static/*
|
|
%config(noreplace) /etc/cron.d/munin
|
|
%config(noreplace) /etc/cron.d/munin
|
|
%config(noreplace) /etc/munin/munin.conf
|
|
%config(noreplace) /etc/munin/munin.conf
|
|
%config(noreplace) /etc/logrotate.d/munin
|
|
%config(noreplace) /etc/logrotate.d/munin
|
|
|
|
+%config(noreplace) /etc/apache2/conf.d/munin.conf
|
|
%attr(-, munin, munin) %dir /var/lib/munin
|
|
%attr(-, munin, munin) %dir /var/lib/munin
|
|
%attr(-, munin, munin) %dir /var/lib/munin/plugin-state
|
|
%attr(-, munin, munin) %dir /var/lib/munin/plugin-state
|
|
%attr(-, munin, munin) %dir /var/run/munin
|
|
%attr(-, munin, munin) %dir /var/run/munin
|
|
%attr(-, munin, munin) %dir /var/log/munin
|
|
%attr(-, munin, munin) %dir /var/log/munin
|
|
%attr(-, munin, munin) /var/www/html/munin
|
|
%attr(-, munin, munin) /var/www/html/munin
|
|
-%doc %{_mandir}/man8/munin*
|
|
+%doc %{_mandir}/man1/munindoc*
|
|
|
|
+%doc %{_mandir}/man1/munin-sched*
|
|
|
|
+%doc %{_mandir}/man3/Munin::Master*
|
|
%doc %{_mandir}/man5/munin.conf*
|
|
%doc %{_mandir}/man5/munin.conf*
|
|
|
|
+%doc %{_mandir}/man8/munin*
|
|
|
|
|
|
%files node
|
|
%files node
|
|
%defattr(-, root, root)
|
|
%defattr(-, root, root)
|
|
@@ -303,11 +423,7 @@ exit 0
|
|
%config(noreplace) /etc/munin/plugin-conf.d/postfix
|
|
%config(noreplace) /etc/munin/plugin-conf.d/postfix
|
|
%config(noreplace) /etc/munin/plugin-conf.d/df
|
|
%config(noreplace) /etc/munin/plugin-conf.d/df
|
|
%config(noreplace) /etc/logrotate.d/munin-node
|
|
%config(noreplace) /etc/logrotate.d/munin-node
|
|
-%if 0%{?rhel} > 6 || 0%{?fedora} > 15
|
|
|
|
-/lib/systemd/system/munin-node.service
|
|
|
|
-%else
|
|
|
|
/etc/rc.d/init.d/munin-node
|
|
/etc/rc.d/init.d/munin-node
|
|
-%endif
|
|
|
|
%{_sbindir}/munin-run
|
|
%{_sbindir}/munin-run
|
|
%{_sbindir}/munin-node
|
|
%{_sbindir}/munin-node
|
|
%{_sbindir}/munin-node-configure
|
|
%{_sbindir}/munin-node-configure
|
|
@@ -317,38 +433,45 @@ exit 0
|
|
%dir /etc/munin
|
|
%dir /etc/munin
|
|
%attr(-, munin, munin) %dir /var/lib/munin
|
|
%attr(-, munin, munin) %dir /var/lib/munin
|
|
%dir %attr(-, munin, munin) /var/lib/munin/plugin-state
|
|
%dir %attr(-, munin, munin) /var/lib/munin/plugin-state
|
|
-%attr(-, munin, munin) /var/lib/munin/plugin-state/yum.state
|
|
|
|
-%if 0%{?rhel} > 4 || 0%{?fedora} > 6
|
|
|
|
-%exclude %{_datadir}/munin/plugins/jmx_
|
|
|
|
-%endif
|
|
|
|
%{_datadir}/munin/plugins/
|
|
%{_datadir}/munin/plugins/
|
|
-%doc %{_docdir}/%{name}-%{version}/
|
|
|
|
%doc %{_mandir}/man5/munin-node*
|
|
%doc %{_mandir}/man5/munin-node*
|
|
-%doc %{_mandir}/man3/Munin*
|
|
+%doc %{_mandir}/man3/Munin::Common*
|
|
-%doc %{_mandir}/man1/munin*
|
|
+%doc %{_mandir}/man3/Munin::Node*
|
|
|
|
+%doc %{_mandir}/man3/Munin::Plugin*
|
|
|
|
+%doc %{_mandir}/man1/munin-node*
|
|
|
|
+%doc %{_mandir}/man1/munin-run*
|
|
%{perl_vendorlib}/Munin/Node
|
|
%{perl_vendorlib}/Munin/Node
|
|
%{perl_vendorlib}/Munin/Plugin*
|
|
%{perl_vendorlib}/Munin/Plugin*
|
|
|
|
|
|
|
|
+
|
|
|
|
+%files async
|
|
|
|
+%defattr(-,root,root)
|
|
|
|
+%{_sbindir}/munin-async*
|
|
|
|
+%{_datadir}/munin/munin-async*
|
|
|
|
+%{_sysconfdir}/rc.d/init.d/munin-asyncd
|
|
|
|
+
|
|
|
|
+
|
|
%files common
|
|
%files common
|
|
%defattr(-, root, root)
|
|
%defattr(-, root, root)
|
|
-%doc Announce-1.4.0 ChangeLog COPYING HACKING.pod perltidyrc README RELEASE UPGRADING
|
|
+%doc Announce-2.0 ChangeLog COPYING HACKING.pod perltidyrc README RELEASE UPGRADING
|
|
%dir %{perl_vendorlib}/Munin
|
|
%dir %{perl_vendorlib}/Munin
|
|
%{perl_vendorlib}/Munin/Common
|
|
%{perl_vendorlib}/Munin/Common
|
|
-
|
|
|
|
-%if 0%{?rhel} > 6 || 0%{?fedora} > 14
|
|
|
|
-%dir %{_localstatedir}/run/%{name}/
|
|
|
|
%config(noreplace) %{_sysconfdir}/tmpfiles.d/%{name}.conf
|
|
%config(noreplace) %{_sysconfdir}/tmpfiles.d/%{name}.conf
|
|
-%endif
|
|
|
|
|
|
|
|
-%if 0%{?rhel} > 4 || 0%{?fedora} > 6
|
|
+
|
|
-%files java-plugins
|
|
+%files cgi
|
|
-%defattr(-, root, root)
|
|
+%defattr(-,root,root)
|
|
-%{_datadir}/java/%{name}-jmx-plugins.jar
|
|
+%attr(0755,root,munin) /var/www/cgi-bin/munin-cgi-graph
|
|
-%{_datadir}/munin/plugins/jmx_
|
|
+%attr(0755,root,munin) /var/www/cgi-bin/munin-cgi-html
|
|
-%endif
|
|
+%config(noreplace) %{_sysconfdir}/sysconfig/spawn-fcgi-munin
|
|
|
|
+%config(noreplace) %{_sysconfdir}/apache2/conf.d/munin-cgi.conf
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
%changelog
|
|
|
|
+* Tue Dec 04 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 2.0.8-1
|
|
|
|
+- update to munin-2.0.8
|
|
|
|
+- add async/cgi sub package
|
|
|
|
+
|
|
* Thu Mar 22 2012 Yasumichi Akahoshi <yasumichi@vinelinux.org> 1.4.6-1
|
|
* Thu Mar 22 2012 Yasumichi Akahoshi <yasumichi@vinelinux.org> 1.4.6-1
|
|
- Initial build for Vine Linux.
|
|
- Initial build for Vine Linux.
|
|
|
|
|
|
@@ -573,7 +696,7 @@ exit 0
|
|
- Sync with release of 1.2.2
|
|
- Sync with release of 1.2.2
|
|
- Add some nice text from the suse specfile
|
|
- Add some nice text from the suse specfile
|
|
- Minimal changes in the header
|
|
- Minimal changes in the header
|
|
-- Some cosmetic changes
|
|
+- Som ecosmetic changes
|
|
- Added logrotate scripts (stolen from debian package)
|
|
- Added logrotate scripts (stolen from debian package)
|
|
|
|
|
|
* Sun Feb 01 2004 Ingvar Hagelund <ingvar@linpro.no>
|
|
* Sun Feb 01 2004 Ingvar Hagelund <ingvar@linpro.no>
|