icinga2: Make sure `logger` is available on SUSE systems

It is required to log the deprecated warning of the classic ui package.

On pre systemd distributions `logger` is part of util-linux which should
always be installed I suppose, that's why I did not add an else clause.
This commit is contained in:
Tim Hardeck 2017-08-24 14:06:13 +02:00 committed by Markus Frosch
parent 59b8d34311
commit 808b0e30a0
1 changed files with 5 additions and 0 deletions

View File

@ -232,6 +232,11 @@ Requires: %{apachename}
Requires: %{name} = %{version}-%{release}
%if "%{_vendor}" == "suse"
Recommends: icinga-www
# for running logger to log the deprecated warning
%if 0%{?use_systemd}
BuildRequires:util-linux-systemd
Requires: util-linux-systemd
%endif
%endif
Provides: icinga-classicui-config
Conflicts: icinga-gui-config