icinga2: Add Provides tag for user and groups (#66)
* Add Provides tag for user and groups Following the guide https://en.opensuse.org/openSUSE:Packaging_guidelines#Users_and_Groups as requested by our security team.
This commit is contained in:
parent
a3ec2fec46
commit
b309067e37
10
icinga2.spec
10
icinga2.spec
|
@ -139,6 +139,12 @@ BuildRequires: boost153-devel
|
|||
# sles 11 sp3 requires packages.icinga.com
|
||||
BuildRequires: boost153-devel
|
||||
%else
|
||||
%if "%{_vendor}" == "suse" && 0%{?suse_version} > 1320
|
||||
BuildRequires: libboost_thread-devel >= 1.48
|
||||
BuildRequires: libboost_program_options-devel >= 1.48
|
||||
BuildRequires: libboost_regex-devel >= 1.48
|
||||
BuildRequires: libboost_system-devel >= 1.48
|
||||
%else
|
||||
%if (0%{?el5} || 0%{?rhel} == 5 || "%{?dist}" == ".el5" || 0%{?el6} || 0%{?rhel} == 6 || "%{?dist}" == ".el6")
|
||||
# Requires EPEL repository
|
||||
BuildRequires: boost148-devel >= 1.48
|
||||
|
@ -147,6 +153,7 @@ BuildRequires: boost-devel >= 1.48
|
|||
%endif
|
||||
%endif
|
||||
%endif
|
||||
%endif
|
||||
|
||||
%if 0%{?use_systemd}
|
||||
BuildRequires: systemd-devel
|
||||
|
@ -168,6 +175,9 @@ Requires(post): shadow-utils
|
|||
%endif
|
||||
BuildRequires: logrotate
|
||||
%if "%{_vendor}" == "suse"
|
||||
Provides: user(%{icinga_user})
|
||||
Provides: group(%{icinga_group})
|
||||
Provides: group(%{icingacmd_group})
|
||||
Requires(pre): shadow
|
||||
Requires(post): shadow
|
||||
# Coreutils is added because of autoyast problems reported
|
||||
|
|
Loading…
Reference in New Issue