Accepting request 280130 from home:wrosenauer:devel

OBS-URL: https://build.opensuse.org/request/show/280130
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/munin?expand=0&rev=19
This commit is contained in:
Wolfgang Rosenauer
2015-01-07 10:00:01 +00:00
committed by Git OBS Bridge
parent 7d60ab6736
commit 26e174d6e5
4 changed files with 29 additions and 15 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package munin
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -24,7 +24,7 @@
%define active_by_default 0
Name: munin
Version: 2.0.24
Version: 2.0.25
Release: 0
Summary: Network-wide graphing framework (grapher/gatherer)
License: GPL-2.0
@@ -61,6 +61,7 @@ BuildRequires: htmldoc
BuildRequires: systemd
%else
BuildRequires: sysvinit
Requires(pre): %insserv_prereq
%endif
Requires: perl-Date-Manip
Requires: perl-FastCGI
@@ -112,6 +113,11 @@ Requires: perl-libwww-perl
Requires: ps
Requires: pwdutils
Requires: sysstat
%if 0%{?suse_version} >= 1220
%{?systemd_requires}
%else
Requires(pre): %insserv_prereq
%endif
Recommends: logrotate
BuildArch: noarch
@@ -238,11 +244,11 @@ getent passwd munin > /dev/null || /usr/sbin/useradd -r -c "munin monitoring" -d
%post node
if [ $1 = 1 ]; then
%if 0%{?suse_version} < 1220
/sbin/chkconfig --add munin-node
%endif
/usr/sbin/munin-node-configure --shell | sh
fi
%if 0%{?suse_version} < 1220
%fillup_and_insserv -f -y munin-node
%endif
chown -R munin:munin %{dbdir}
chmod 755 %{dbdir}
touch %{logdir}/munin-node.log
@@ -259,13 +265,6 @@ systemd-tmpfiles --create /usr/lib/tmpfiles.d/munin-node.conf
%endif
%preun node
if [ $1 = 1 ] ; then
%if 0%{?suse_version} < 1220
/sbin/service munin-node stop >/dev/null 2>&1
/sbin/chkconfig --del munin-node
%endif
rmdir %{logdir} 2>/dev/null || true
fi
%if 0%{?suse_version} >= 1220
%service_del_preun munin-node.service
%else