2017-01-30 16:29:54 +01:00
|
|
|
#/******************************************************************************
|
|
|
|
# * Icinga 2 *
|
|
|
|
# * Copyright (C) 2012-2017 Icinga Development Team (https://www.icinga.com/) *
|
|
|
|
# * *
|
|
|
|
# * This program is free software; you can redistribute it and/or *
|
|
|
|
# * modify it under the terms of the GNU General Public License *
|
|
|
|
# * as published by the Free Software Foundation; either version 2 *
|
|
|
|
# * of the License, or (at your option) any later version. *
|
|
|
|
# * *
|
|
|
|
# * This program is distributed in the hope that it will be useful, *
|
|
|
|
# * but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
|
|
|
# * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
|
|
|
# * GNU General Public License for more details. *
|
|
|
|
# * *
|
|
|
|
# * You should have received a copy of the GNU General Public License *
|
|
|
|
# * along with this program; if not, write to the Free Software Foundation *
|
|
|
|
# * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. *
|
|
|
|
# ******************************************************************************/
|
|
|
|
|
2018-10-11 14:37:34 +02:00
|
|
|
%define revision 1
|
2017-01-30 16:29:54 +01:00
|
|
|
|
|
|
|
# make sure that _rundir is working on older systems
|
|
|
|
%if ! %{defined _rundir}
|
|
|
|
%define _rundir %{_localstatedir}/run
|
|
|
|
%endif
|
2018-09-10 15:08:27 +02:00
|
|
|
%if ! %{defined _fillupdir}
|
|
|
|
%define _fillupdir %{_localstatedir}/adm/fillup-templates
|
|
|
|
%endif
|
2017-01-30 16:29:54 +01:00
|
|
|
|
|
|
|
%define _libexecdir %{_prefix}/lib/
|
2017-06-14 12:32:59 +02:00
|
|
|
%define plugindir %{_libdir}/nagios/plugins
|
2017-01-30 16:29:54 +01:00
|
|
|
|
|
|
|
%if "%{_vendor}" == "redhat"
|
|
|
|
%define apachename httpd
|
|
|
|
%define apacheconfdir %{_sysconfdir}/httpd/conf.d
|
|
|
|
%define apacheuser apache
|
|
|
|
%define apachegroup apache
|
2017-11-24 12:08:10 +01:00
|
|
|
|
2019-03-11 15:28:58 +01:00
|
|
|
%if 0%{?el6}%{?amzn}
|
2017-01-30 16:29:54 +01:00
|
|
|
%define use_systemd 0
|
2017-11-24 12:08:10 +01:00
|
|
|
%define use_selinux 0
|
2017-01-30 16:29:54 +01:00
|
|
|
%if %(uname -m) != "x86_64"
|
|
|
|
%define march_flag -march=i686
|
|
|
|
%endif
|
|
|
|
%else
|
|
|
|
# fedora and el>=7
|
|
|
|
%define use_systemd 1
|
2017-11-24 12:08:10 +01:00
|
|
|
%define use_selinux 1
|
2017-09-28 16:40:34 +02:00
|
|
|
%if 0%{?fedora} >= 24
|
|
|
|
# for installing limits.conf on systemd >= 228
|
|
|
|
%define configure_systemd_limits 1
|
|
|
|
%else
|
|
|
|
%define configure_systemd_limits 0
|
|
|
|
%endif
|
2017-01-30 16:29:54 +01:00
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if "%{_vendor}" == "suse"
|
2017-12-18 14:08:34 +01:00
|
|
|
%define plugindir %{_libexecdir}/nagios/plugins
|
2017-01-30 16:29:54 +01:00
|
|
|
%define apachename apache2
|
|
|
|
%define apacheconfdir %{_sysconfdir}/apache2/conf.d
|
|
|
|
%define apacheuser wwwrun
|
|
|
|
%define apachegroup www
|
|
|
|
%if 0%{?suse_version} >= 1310
|
|
|
|
%define use_systemd 1
|
2017-11-10 10:56:18 +01:00
|
|
|
%if 0%{?sle_version} >= 120200 || 0%{?suse_version} > 1320
|
2017-09-28 16:40:34 +02:00
|
|
|
# for installing limits.conf on systemd >= 228
|
|
|
|
%define configure_systemd_limits 1
|
|
|
|
%else
|
|
|
|
%define configure_systemd_limits 0
|
|
|
|
%endif
|
2017-01-30 16:29:54 +01:00
|
|
|
%else
|
|
|
|
%define use_systemd 0
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%define icinga_user icinga
|
|
|
|
%define icinga_group icinga
|
|
|
|
%define icingacmd_group icingacmd
|
|
|
|
|
|
|
|
%define logmsg logger -t %{name}/rpm
|
|
|
|
|
2019-03-11 16:22:17 +01:00
|
|
|
%define boost_min_version 1.66
|
|
|
|
|
2018-02-15 15:03:20 +01:00
|
|
|
Summary: Network monitoring application
|
2018-09-10 16:08:06 +02:00
|
|
|
%if "%{_vendor}" == "suse"
|
|
|
|
License: GPL-2.0-or-later
|
|
|
|
%else
|
|
|
|
License: GPLv2+
|
|
|
|
%endif # suse
|
2018-09-10 15:08:27 +02:00
|
|
|
Group: System/Monitoring
|
2018-02-15 15:03:20 +01:00
|
|
|
Name: icinga2
|
2018-11-14 09:09:44 +01:00
|
|
|
Version: 2.10.2
|
2018-02-15 15:03:20 +01:00
|
|
|
Release: %{revision}%{?dist}
|
|
|
|
Url: https://www.icinga.com/
|
|
|
|
Source: https://github.com/Icinga/%{name}/archive/v%{version}.tar.gz
|
2017-09-28 16:40:34 +02:00
|
|
|
|
2017-01-30 16:29:54 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2018-02-15 15:03:20 +01:00
|
|
|
Requires: %{name}-bin = %{version}-%{release}
|
2018-07-26 17:38:45 +02:00
|
|
|
Requires: %{name}-common = %{version}-%{release}
|
|
|
|
|
|
|
|
Conflicts: %{name}-common < %{version}-%{release}
|
2017-01-30 16:29:54 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
Meta package for Icinga 2 Core, DB IDO and Web.
|
|
|
|
|
|
|
|
%package bin
|
2018-02-15 15:03:20 +01:00
|
|
|
Summary: Icinga 2 binaries and libraries
|
|
|
|
Group: System/Monitoring
|
2017-01-30 16:29:54 +01:00
|
|
|
|
2018-08-26 11:08:34 +02:00
|
|
|
Requires: %{name}-bin = %{version}-%{release}
|
|
|
|
|
2017-01-30 16:29:54 +01:00
|
|
|
%if "%{_vendor}" == "suse"
|
2018-02-15 15:03:20 +01:00
|
|
|
Provides: monitoring_daemon
|
|
|
|
Recommends: monitoring-plugins
|
2017-01-30 16:29:54 +01:00
|
|
|
%if 0%{?suse_version} >= 1310
|
2018-02-15 15:03:20 +01:00
|
|
|
BuildRequires: libyajl-devel
|
2017-01-30 16:29:54 +01:00
|
|
|
%endif
|
|
|
|
%endif
|
2018-02-15 15:03:20 +01:00
|
|
|
BuildRequires: libedit-devel
|
|
|
|
BuildRequires: ncurses-devel
|
2017-01-30 16:29:54 +01:00
|
|
|
%if "%{_vendor}" == "suse" && 0%{?suse_version} < 1210
|
2018-02-15 15:03:20 +01:00
|
|
|
BuildRequires: gcc48-c++
|
|
|
|
BuildRequires: libopenssl1-devel
|
|
|
|
BuildRequires: libstdc++48-devel
|
2017-01-30 16:29:54 +01:00
|
|
|
%else
|
2019-03-11 15:28:58 +01:00
|
|
|
%if "%{_vendor}" == "redhat" && (0%{?el6} || 0%{?rhel} == 6 || "%{?dist}" == ".el6")
|
2017-04-24 17:57:51 +02:00
|
|
|
# Requires devtoolset-2 scl
|
2018-02-15 15:03:20 +01:00
|
|
|
BuildRequires: devtoolset-2-binutils
|
|
|
|
BuildRequires: devtoolset-2-gcc-c++
|
|
|
|
BuildRequires: devtoolset-2-libstdc++-devel
|
2017-04-24 17:57:51 +02:00
|
|
|
%define scl_enable scl enable devtoolset-2 --
|
|
|
|
%else
|
2018-02-15 15:03:20 +01:00
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: libstdc++-devel
|
2017-04-24 17:57:51 +02:00
|
|
|
%endif
|
2018-02-15 15:03:20 +01:00
|
|
|
BuildRequires: openssl-devel
|
2017-01-30 16:29:54 +01:00
|
|
|
%endif
|
2018-02-15 15:03:20 +01:00
|
|
|
BuildRequires: bison
|
|
|
|
BuildRequires: cmake
|
|
|
|
BuildRequires: flex >= 2.5.35
|
|
|
|
BuildRequires: make
|
2017-01-30 16:29:54 +01:00
|
|
|
|
2019-03-11 16:22:17 +01:00
|
|
|
%if "%{_vendor}" == "suse"
|
|
|
|
%if 0%{?suse_version} > 1320 # SLES 15 and OpenSUSE
|
|
|
|
BuildRequires: libboost_program_options-devel >= %{boost_min_version}
|
|
|
|
BuildRequires: libboost_regex-devel >= %{boost_min_version}
|
|
|
|
BuildRequires: libboost_system-devel >= %{boost_min_version}
|
|
|
|
BuildRequires: libboost_thread-devel >= %{boost_min_version}
|
|
|
|
%else #suse_version > 1320
|
|
|
|
BuildRequires: boost-devel >= %{boost_min_version}
|
|
|
|
%endif #suse_version > 1320
|
|
|
|
%else # vendor == suse - assuming redhat or compatible
|
|
|
|
%if (0%{?el6} || 0%{?rhel} == 6) || (0%{?el7} || 0%{?rhel} == 7)
|
|
|
|
%define boost_library boost169
|
|
|
|
%define boost_version 1.69
|
|
|
|
# el6: Provided by packages.icinga.com
|
|
|
|
# el7: Provided from EPEL
|
|
|
|
BuildRequires: boost169-devel >= %{boost_min_version}
|
|
|
|
%else # el6 or el7
|
|
|
|
BuildRequires: boost-devel >= %{boost_min_version}
|
|
|
|
%endif # el6 or el7
|
|
|
|
%endif # vendor == suse
|
2017-01-30 16:29:54 +01:00
|
|
|
|
|
|
|
%if 0%{?use_systemd}
|
2018-02-15 15:03:20 +01:00
|
|
|
BuildRequires: systemd-devel
|
|
|
|
Requires: systemd
|
2017-01-30 16:29:54 +01:00
|
|
|
%endif
|
|
|
|
|
2018-07-25 11:25:02 +02:00
|
|
|
Obsoletes: %{name}-libs <= 2.10.0
|
|
|
|
Conflicts: %{name}-libs <= 2.10.0
|
2017-01-30 16:29:54 +01:00
|
|
|
|
|
|
|
%description bin
|
|
|
|
Icinga 2 is a general-purpose network monitoring application.
|
2017-11-10 10:56:18 +01:00
|
|
|
This subpackage provides the binaries for Icinga 2 Core.
|
2017-01-30 16:29:54 +01:00
|
|
|
|
|
|
|
%package common
|
2018-02-15 15:03:20 +01:00
|
|
|
Summary: Common Icinga 2 configuration
|
|
|
|
Group: System/Monitoring
|
2017-07-31 16:52:10 +02:00
|
|
|
%if (0%{?amzn} || 0%{?fedora} || 0%{?rhel})
|
2017-08-24 14:35:31 +02:00
|
|
|
Requires(pre): shadow-utils
|
|
|
|
Requires(post): shadow-utils
|
2017-07-31 16:52:10 +02:00
|
|
|
%endif
|
2017-12-18 14:08:34 +01:00
|
|
|
BuildRequires: logrotate
|
2017-01-30 16:29:54 +01:00
|
|
|
%if "%{_vendor}" == "suse"
|
2018-02-19 19:19:43 +01:00
|
|
|
PreReq: permissions
|
2018-01-29 14:58:00 +01:00
|
|
|
Provides: group(%{icinga_group})
|
|
|
|
Provides: group(%{icingacmd_group})
|
2018-09-10 15:08:27 +02:00
|
|
|
Provides: user(%{icinga_user})
|
2017-08-24 14:35:31 +02:00
|
|
|
Requires(pre): shadow
|
|
|
|
Requires(post): shadow
|
2017-07-31 16:52:10 +02:00
|
|
|
# Coreutils is added because of autoyast problems reported
|
2017-08-24 14:35:31 +02:00
|
|
|
Requires(pre): coreutils
|
|
|
|
Requires(post): coreutils
|
2017-08-28 10:08:49 +02:00
|
|
|
%if 0%{?suse_version} >= 1200
|
2017-08-24 14:35:31 +02:00
|
|
|
BuildRequires: monitoring-plugins-common
|
|
|
|
Requires: monitoring-plugins-common
|
2017-08-28 10:08:49 +02:00
|
|
|
%else
|
|
|
|
Recommends: monitoring-plugins-common
|
|
|
|
%endif
|
2017-08-24 14:35:31 +02:00
|
|
|
Recommends: logrotate
|
2017-01-30 16:29:54 +01:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%description common
|
2017-11-10 10:56:18 +01:00
|
|
|
This subpackage provides common directories, and the UID and GUID definitions
|
|
|
|
among Icinga 2 related packages.
|
2017-01-30 16:29:54 +01:00
|
|
|
|
|
|
|
|
|
|
|
%package doc
|
2018-02-15 15:03:20 +01:00
|
|
|
Summary: Documentation for Icinga 2
|
|
|
|
Group: Documentation/Other
|
2017-01-30 16:29:54 +01:00
|
|
|
|
|
|
|
%description doc
|
2017-11-10 10:56:18 +01:00
|
|
|
This subpackage provides documentation for Icinga 2.
|
2017-01-30 16:29:54 +01:00
|
|
|
|
|
|
|
|
|
|
|
%package ido-mysql
|
2018-02-15 15:03:20 +01:00
|
|
|
Summary: IDO MySQL database backend for Icinga 2
|
|
|
|
Group: System/Monitoring
|
2017-01-30 16:29:54 +01:00
|
|
|
%if "%{_vendor}" == "suse"
|
2018-02-15 15:03:20 +01:00
|
|
|
BuildRequires: libmysqlclient-devel
|
2017-01-30 16:29:54 +01:00
|
|
|
%if 0%{?suse_version} >= 1310
|
2018-02-15 15:03:20 +01:00
|
|
|
BuildRequires: mysql-devel
|
2017-01-30 16:29:54 +01:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%else
|
2018-02-15 15:03:20 +01:00
|
|
|
BuildRequires: mysql-devel
|
2017-01-30 16:29:54 +01:00
|
|
|
%endif #suse
|
|
|
|
|
2018-07-26 17:38:45 +02:00
|
|
|
Requires: %{name}-bin = %{version}-%{release}
|
2017-01-30 16:29:54 +01:00
|
|
|
|
|
|
|
%description ido-mysql
|
|
|
|
Icinga 2 IDO mysql database backend. Compatible with Icinga 1.x
|
|
|
|
IDOUtils schema >= 1.12
|
|
|
|
|
|
|
|
|
|
|
|
%package ido-pgsql
|
2018-02-15 15:03:20 +01:00
|
|
|
Summary: IDO PostgreSQL database backend for Icinga 2
|
|
|
|
Group: System/Monitoring
|
2017-01-30 16:29:54 +01:00
|
|
|
%if "%{_vendor}" == "suse" && 0%{?suse_version} < 1210
|
2018-02-15 15:03:20 +01:00
|
|
|
BuildRequires: postgresql-devel >= 8.4
|
2017-01-30 16:29:54 +01:00
|
|
|
%else
|
2018-02-15 15:03:20 +01:00
|
|
|
BuildRequires: postgresql-devel
|
2017-01-30 16:29:54 +01:00
|
|
|
%endif
|
2018-07-26 17:38:45 +02:00
|
|
|
Requires: %{name}-bin = %{version}-%{release}
|
2017-01-30 16:29:54 +01:00
|
|
|
|
|
|
|
%description ido-pgsql
|
|
|
|
Icinga 2 IDO PostgreSQL database backend. Compatible with Icinga 1.x
|
|
|
|
IDOUtils schema >= 1.12
|
|
|
|
|
2017-11-24 12:08:10 +01:00
|
|
|
%if 0%{?use_selinux}
|
2017-01-30 16:29:54 +01:00
|
|
|
%global selinux_variants mls targeted
|
2017-11-24 12:08:10 +01:00
|
|
|
%global selinux_modulename %{name}
|
2017-01-30 16:29:54 +01:00
|
|
|
|
|
|
|
%package selinux
|
|
|
|
Summary: SELinux policy module supporting icinga2
|
2017-11-10 10:56:18 +01:00
|
|
|
Group: System/Base
|
2018-02-15 15:03:20 +01:00
|
|
|
BuildRequires: checkpolicy
|
|
|
|
BuildRequires: hardlink
|
|
|
|
BuildRequires: selinux-policy-devel
|
2018-07-26 17:38:45 +02:00
|
|
|
Requires: %{name}-bin = %{version}-%{release}
|
2019-01-08 14:48:46 +01:00
|
|
|
%if 0%{?fedora} >= 27 || 0%{?rhel} >= 8
|
2018-12-22 16:40:27 +01:00
|
|
|
Requires(post): policycoreutils-python-utils
|
|
|
|
Requires(postun): policycoreutils-python-utils
|
|
|
|
%else
|
2017-04-24 17:57:51 +02:00
|
|
|
Requires(post): policycoreutils-python
|
|
|
|
Requires(postun): policycoreutils-python
|
2018-12-22 16:40:27 +01:00
|
|
|
%endif
|
|
|
|
|
2017-01-30 16:29:54 +01:00
|
|
|
|
|
|
|
%description selinux
|
2018-02-15 15:08:08 +01:00
|
|
|
SELinux policy module supporting icinga2.
|
2017-01-30 16:29:54 +01:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%package -n vim-icinga2
|
2018-02-15 15:03:20 +01:00
|
|
|
Summary: Vim syntax highlighting for icinga2
|
|
|
|
Group: Productivity/Text/Editors
|
2017-01-30 16:29:54 +01:00
|
|
|
%if "%{_vendor}" == "suse"
|
2018-02-15 15:03:20 +01:00
|
|
|
BuildRequires: vim
|
|
|
|
Requires: vim
|
2017-01-30 16:29:54 +01:00
|
|
|
%else
|
2018-02-15 15:03:20 +01:00
|
|
|
Requires: vim-filesystem
|
2017-01-30 16:29:54 +01:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%description -n vim-icinga2
|
2018-02-15 15:08:08 +01:00
|
|
|
Provides Vim syntax highlighting for icinga2.
|
2017-01-30 16:29:54 +01:00
|
|
|
|
|
|
|
|
|
|
|
%package -n nano-icinga2
|
2018-02-15 15:03:20 +01:00
|
|
|
Summary: Nano syntax highlighting for icinga2
|
|
|
|
Group: Productivity/Text/Editors
|
|
|
|
Requires: nano
|
2017-01-30 16:29:54 +01:00
|
|
|
|
|
|
|
%description -n nano-icinga2
|
2018-02-15 15:08:08 +01:00
|
|
|
Provides Nano syntax highlighting for icinga2.
|
2017-01-30 16:29:54 +01:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{name}-%{version}
|
2018-02-06 13:56:38 +01:00
|
|
|
# use absolute shebang instead of env on SUSE distributions
|
|
|
|
%if "%{_vendor}" == "suse"
|
|
|
|
find . -type f -name '*.sh' -exec sed -i -e 's|\/usr\/bin\/env bash|\/bin\/bash|g' {} \;
|
|
|
|
%endif
|
2017-01-30 16:29:54 +01:00
|
|
|
|
|
|
|
%build
|
2018-07-25 11:33:59 +02:00
|
|
|
# set basedir to allow cache to hit between different builds
|
|
|
|
# this will make all paths below BUILD/icinga2-x.x.x relative for cache
|
|
|
|
export CCACHE_BASEDIR="${CCACHE_BASEDIR:-$(pwd)}"
|
|
|
|
|
2017-01-30 16:29:54 +01:00
|
|
|
CMAKE_OPTS="-DCMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-DCMAKE_INSTALL_SYSCONFDIR=/etc \
|
|
|
|
-DCMAKE_INSTALL_LOCALSTATEDIR=/var \
|
|
|
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
|
|
|
-DICINGA2_LTO_BUILD=ON \
|
|
|
|
-DCMAKE_VERBOSE_MAKEFILE=ON \
|
|
|
|
-DBoost_NO_BOOST_CMAKE=ON \
|
2017-06-14 15:41:21 +02:00
|
|
|
-DICINGA2_PLUGINDIR=%{plugindir} \
|
2017-01-30 16:29:54 +01:00
|
|
|
-DICINGA2_RUNDIR=%{_rundir} \
|
2018-04-19 08:47:08 +02:00
|
|
|
-DICINGA2_SYSCONFIGFILE=/etc/sysconfig/icinga2 \
|
2017-01-30 16:29:54 +01:00
|
|
|
-DICINGA2_USER=%{icinga_user} \
|
|
|
|
-DICINGA2_GROUP=%{icinga_group} \
|
|
|
|
-DICINGA2_COMMAND_GROUP=%{icingacmd_group}"
|
|
|
|
%if 0%{?fedora}
|
|
|
|
CMAKE_OPTS="$CMAKE_OPTS -DICINGA2_WITH_STUDIO=true"
|
|
|
|
%endif
|
|
|
|
|
2019-03-12 15:21:53 +01:00
|
|
|
%if (0%{?el6} || 0%{?rhel} == 6)
|
|
|
|
# Explicitly link against rt, because ld doesn't detect it automatically
|
|
|
|
CMAKE_OPTS="$CMAKE_OPTS -DCMAKE_EXE_LINKER_FLAGS=-lrt"
|
|
|
|
%endif # el6
|
|
|
|
|
2019-03-11 16:22:17 +01:00
|
|
|
%if "%{?boost_library}" != ""
|
|
|
|
# Boost_NO_BOOST_CMAKE=ON - disable search for cmake
|
|
|
|
# Boost_NO_SYSTEM_PATHS=ON - only search in specified locations
|
|
|
|
CMAKE_OPTS="$CMAKE_OPTS
|
|
|
|
-DBoost_NO_BOOST_CMAKE=TRUE \
|
2017-01-30 16:29:54 +01:00
|
|
|
-DBoost_NO_SYSTEM_PATHS=TRUE \
|
2019-03-11 16:22:17 +01:00
|
|
|
-DBOOST_LIBRARYDIR=%{_libdir}/%{boost_library} \
|
|
|
|
-DBOOST_INCLUDEDIR=/usr/include/%{boost_library} \
|
|
|
|
-DBoost_ADDITIONAL_VERSIONS='%{boost_version};%{boost_version}.0'"
|
|
|
|
# TODO: does testing work now?
|
|
|
|
# -DBUILD_TESTING=FALSE"
|
|
|
|
%endif # boost_library
|
2017-01-30 16:29:54 +01:00
|
|
|
|
|
|
|
%if 0%{?use_systemd}
|
|
|
|
CMAKE_OPTS="$CMAKE_OPTS -DUSE_SYSTEMD=ON"
|
|
|
|
%endif
|
|
|
|
|
2017-04-28 15:24:27 +02:00
|
|
|
%if "%{_vendor}" == "suse" && 0%{?suse_version} < 1210
|
|
|
|
# from package gcc48-c++
|
|
|
|
export CC=gcc-4.8
|
|
|
|
export CXX=g++-4.8
|
|
|
|
%endif
|
|
|
|
|
2018-09-10 15:08:27 +02:00
|
|
|
%if "%{?_buildhost}" != ""
|
|
|
|
CMAKE_OPTS="$CMAKE_OPTS -DICINGA2_BUILD_HOST_NAME:STRING=%_buildhost"
|
|
|
|
%endif
|
|
|
|
|
2017-04-24 17:57:51 +02:00
|
|
|
%{?scl_enable} cmake $CMAKE_OPTS -DCMAKE_C_FLAGS:STRING="%{optflags} %{?march_flag}" -DCMAKE_CXX_FLAGS:STRING="%{optflags} %{?march_flag}" .
|
2017-01-30 16:29:54 +01:00
|
|
|
|
2019-03-12 13:51:44 +01:00
|
|
|
%{?scl_enable} make %{?_smp_mflags}
|
2017-01-30 16:29:54 +01:00
|
|
|
|
2017-11-24 12:08:10 +01:00
|
|
|
%if 0%{?use_selinux}
|
2017-01-30 16:29:54 +01:00
|
|
|
cd tools/selinux
|
|
|
|
for selinuxvariant in %{selinux_variants}
|
|
|
|
do
|
|
|
|
make NAME=${selinuxvariant} -f /usr/share/selinux/devel/Makefile
|
2017-11-24 12:08:10 +01:00
|
|
|
mv %{selinux_modulename}.pp %{selinux_modulename}.pp.${selinuxvariant}
|
2017-01-30 16:29:54 +01:00
|
|
|
make NAME=${selinuxvariant} -f /usr/share/selinux/devel/Makefile clean
|
|
|
|
done
|
|
|
|
cd -
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%install
|
2019-03-12 13:51:44 +01:00
|
|
|
%{?scl_enable} make install \
|
2018-09-10 14:57:20 +02:00
|
|
|
DESTDIR="%{buildroot}"
|
2017-01-30 16:29:54 +01:00
|
|
|
|
2017-09-28 16:40:34 +02:00
|
|
|
# install custom limits.conf for systemd
|
|
|
|
%if 0%{?configure_systemd_limits}
|
2017-09-28 16:53:09 +02:00
|
|
|
# for > 2.8 or > 2.7.2
|
2017-11-23 15:27:52 +01:00
|
|
|
install -D -m 0644 etc/initsystem/icinga2.service.limits.conf %{buildroot}/etc/systemd/system/%{name}.service.d/limits.conf
|
2017-09-28 16:40:34 +02:00
|
|
|
%endif
|
|
|
|
|
2017-01-30 16:29:54 +01:00
|
|
|
# remove features-enabled symlinks
|
|
|
|
rm -f %{buildroot}/%{_sysconfdir}/%{name}/features-enabled/*.conf
|
|
|
|
|
|
|
|
# enable suse rc links
|
|
|
|
%if "%{_vendor}" == "suse"
|
|
|
|
%if 0%{?use_systemd}
|
|
|
|
ln -sf /usr/sbin/service %{buildroot}%{_sbindir}/rc%{name}
|
|
|
|
%else
|
|
|
|
ln -sf ../../%{_initrddir}/%{name} "%{buildroot}%{_sbindir}/rc%{name}"
|
|
|
|
%endif
|
2018-02-06 13:55:50 +01:00
|
|
|
mkdir -p "%{buildroot}%{_fillupdir}/"
|
|
|
|
mv "%{buildroot}%{_sysconfdir}/sysconfig/%{name}" "%{buildroot}%{_fillupdir}/sysconfig.%{name}"
|
|
|
|
%endif
|
2017-01-30 16:29:54 +01:00
|
|
|
|
2017-11-24 12:08:10 +01:00
|
|
|
%if 0%{?use_selinux}
|
2017-01-30 16:29:54 +01:00
|
|
|
cd tools/selinux
|
|
|
|
for selinuxvariant in %{selinux_variants}
|
|
|
|
do
|
|
|
|
install -d %{buildroot}%{_datadir}/selinux/${selinuxvariant}
|
2017-11-24 12:08:10 +01:00
|
|
|
install -p -m 644 %{selinux_modulename}.pp.${selinuxvariant} \
|
|
|
|
%{buildroot}%{_datadir}/selinux/${selinuxvariant}/%{selinux_modulename}.pp
|
2017-01-30 16:29:54 +01:00
|
|
|
done
|
|
|
|
cd -
|
|
|
|
|
2017-05-24 16:49:09 +02:00
|
|
|
# TODO: Fix build problems on Icinga, see https://github.com/Icinga/puppet-icinga_build/issues/11
|
2017-12-18 14:08:34 +01:00
|
|
|
#/usr/sbin/hardlink -cv %%{buildroot}%%{_datadir}/selinux
|
2017-01-30 16:29:54 +01:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%if "%{_vendor}" == "suse"
|
2017-08-24 14:39:52 +02:00
|
|
|
install -D -m 0644 tools/syntax/vim/syntax/%{name}.vim %{buildroot}%{_datadir}/vim/site/syntax/%{name}.vim
|
|
|
|
install -D -m 0644 tools/syntax/vim/ftdetect/%{name}.vim %{buildroot}%{_datadir}/vim/site/ftdetect/%{name}.vim
|
|
|
|
%else
|
2017-01-30 16:29:54 +01:00
|
|
|
install -D -m 0644 tools/syntax/vim/syntax/%{name}.vim %{buildroot}%{_datadir}/vim/vimfiles/syntax/%{name}.vim
|
|
|
|
install -D -m 0644 tools/syntax/vim/ftdetect/%{name}.vim %{buildroot}%{_datadir}/vim/vimfiles/ftdetect/%{name}.vim
|
|
|
|
%endif
|
|
|
|
|
|
|
|
install -D -m 0644 tools/syntax/nano/%{name}.nanorc %{buildroot}%{_datadir}/nano/%{name}.nanorc
|
|
|
|
|
2018-07-26 17:38:45 +02:00
|
|
|
%pre
|
2017-01-30 16:29:54 +01:00
|
|
|
%if "%{_vendor}" == "suse"
|
|
|
|
%if 0%{?use_systemd}
|
|
|
|
%service_add_pre %{name}.service
|
|
|
|
%endif
|
2018-09-10 15:08:27 +02:00
|
|
|
|
|
|
|
%verifyscript
|
|
|
|
%verify_permissions -e %{_rundir}/%{name}/cmd
|
2017-01-30 16:29:54 +01:00
|
|
|
%endif
|
|
|
|
|
2018-07-26 17:38:45 +02:00
|
|
|
%post
|
2017-01-30 16:29:54 +01:00
|
|
|
# suse
|
|
|
|
%if "%{_vendor}" == "suse"
|
2018-09-10 15:08:27 +02:00
|
|
|
%if 0%{?suse_version} >= 1310
|
|
|
|
%set_permissions %{_rundir}/%{name}/cmd
|
|
|
|
%endif
|
|
|
|
|
2017-01-30 16:29:54 +01:00
|
|
|
%if 0%{?use_systemd}
|
|
|
|
%fillup_only %{name}
|
|
|
|
%service_add_post %{name}.service
|
|
|
|
%else
|
|
|
|
%fillup_and_insserv %{name}
|
|
|
|
%endif
|
|
|
|
|
2017-05-23 17:00:24 +02:00
|
|
|
if [ ${1:-0} -eq 1 ]
|
|
|
|
then
|
2018-09-10 14:57:20 +02:00
|
|
|
# initial installation, enable default features
|
|
|
|
for feature in checker notification mainlog; do
|
|
|
|
ln -sf ../features-available/${feature}.conf %{_sysconfdir}/%{name}/features-enabled/${feature}.conf
|
|
|
|
done
|
2017-05-23 17:00:24 +02:00
|
|
|
fi
|
2017-01-30 16:29:54 +01:00
|
|
|
|
|
|
|
exit 0
|
|
|
|
|
|
|
|
%else
|
|
|
|
# rhel
|
|
|
|
|
|
|
|
%if 0%{?use_systemd}
|
|
|
|
%systemd_post %{name}.service
|
|
|
|
%else
|
|
|
|
/sbin/chkconfig --add %{name}
|
|
|
|
%endif
|
|
|
|
|
|
|
|
if [ ${1:-0} -eq 1 ]
|
|
|
|
then
|
2018-09-10 14:57:20 +02:00
|
|
|
# initial installation, enable default features
|
|
|
|
for feature in checker notification mainlog; do
|
|
|
|
ln -sf ../features-available/${feature}.conf %{_sysconfdir}/%{name}/features-enabled/${feature}.conf
|
|
|
|
done
|
2017-01-30 16:29:54 +01:00
|
|
|
fi
|
|
|
|
|
|
|
|
exit 0
|
|
|
|
|
|
|
|
%endif
|
|
|
|
# suse/rhel
|
|
|
|
|
2018-07-26 17:38:45 +02:00
|
|
|
%preun
|
|
|
|
# suse
|
|
|
|
%if "%{_vendor}" == "suse"
|
|
|
|
|
|
|
|
%if 0%{?use_systemd}
|
|
|
|
%service_del_preun %{name}.service
|
|
|
|
%else
|
|
|
|
%stop_on_removal %{name}
|
|
|
|
%endif
|
|
|
|
|
|
|
|
exit 0
|
|
|
|
|
|
|
|
%else
|
|
|
|
# rhel
|
|
|
|
|
|
|
|
%if 0%{?use_systemd}
|
|
|
|
%systemd_preun %{name}.service
|
|
|
|
%else
|
|
|
|
if [ "$1" = "0" ]; then
|
2018-09-10 14:57:20 +02:00
|
|
|
/sbin/service %{name} stop > /dev/null 2>&1 || :
|
|
|
|
/sbin/chkconfig --del %{name} || :
|
2018-07-26 17:38:45 +02:00
|
|
|
fi
|
|
|
|
%endif
|
|
|
|
|
|
|
|
exit 0
|
|
|
|
|
|
|
|
%endif
|
|
|
|
# suse / rhel
|
|
|
|
|
|
|
|
%postun
|
2017-01-30 16:29:54 +01:00
|
|
|
# suse
|
|
|
|
%if "%{_vendor}" == "suse"
|
2017-08-24 13:53:46 +02:00
|
|
|
%if 0%{?use_systemd}
|
2017-01-30 16:29:54 +01:00
|
|
|
%service_del_postun %{name}.service
|
|
|
|
%else
|
|
|
|
%restart_on_update %{name}
|
|
|
|
%insserv_cleanup
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%else
|
|
|
|
# rhel
|
|
|
|
|
|
|
|
%if 0%{?use_systemd}
|
|
|
|
%systemd_postun_with_restart %{name}.service
|
|
|
|
%else
|
|
|
|
if [ "$1" -ge "1" ]; then
|
2018-09-10 14:57:20 +02:00
|
|
|
/sbin/service %{name} condrestart >/dev/null 2>&1 || :
|
2017-01-30 16:29:54 +01:00
|
|
|
fi
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%endif
|
|
|
|
# suse / rhel
|
|
|
|
|
|
|
|
if [ "$1" = "0" ]; then
|
2018-09-10 14:57:20 +02:00
|
|
|
# deinstallation of the package - remove enabled features
|
|
|
|
rm -rf %{_sysconfdir}/%{name}/features-enabled
|
2017-01-30 16:29:54 +01:00
|
|
|
fi
|
|
|
|
|
|
|
|
exit 0
|
|
|
|
|
2018-07-26 17:38:45 +02:00
|
|
|
%pre common
|
|
|
|
getent group %{icinga_group} >/dev/null || %{_sbindir}/groupadd -r %{icinga_group}
|
|
|
|
getent group %{icingacmd_group} >/dev/null || %{_sbindir}/groupadd -r %{icingacmd_group}
|
|
|
|
getent passwd %{icinga_user} >/dev/null || %{_sbindir}/useradd -c "icinga" -s /sbin/nologin -r -d %{_localstatedir}/spool/%{name} -G %{icingacmd_group} -g %{icinga_group} %{icinga_user}
|
2017-01-30 16:29:54 +01:00
|
|
|
|
2018-07-26 17:38:45 +02:00
|
|
|
%if "%{_vendor}" == "suse"
|
|
|
|
%verifyscript common
|
|
|
|
%verify_permissions -e %{_rundir}/%{name}/cmd
|
2017-01-30 16:29:54 +01:00
|
|
|
%endif
|
|
|
|
|
2018-07-26 17:38:45 +02:00
|
|
|
%post common
|
|
|
|
%if "%{_vendor}" == "suse"
|
|
|
|
%if 0%{?suse_version} >= 1310
|
|
|
|
%set_permissions %{_rundir}/%{name}/cmd
|
2017-01-30 16:29:54 +01:00
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%post ido-mysql
|
2018-07-26 17:38:45 +02:00
|
|
|
if [ ${1:-0} -eq 1 ] && [ -e %{_sysconfdir}/%{name}/features-enabled/ido-mysql.conf ]
|
2017-01-30 16:29:54 +01:00
|
|
|
then
|
2018-09-10 14:57:20 +02:00
|
|
|
# initial installation, enable ido-mysql feature
|
|
|
|
ln -sf ../features-available/ido-mysql.conf %{_sysconfdir}/%{name}/features-enabled/ido-mysql.conf
|
2017-01-30 16:29:54 +01:00
|
|
|
fi
|
|
|
|
|
|
|
|
exit 0
|
|
|
|
|
|
|
|
%postun ido-mysql
|
|
|
|
if [ "$1" = "0" ]; then
|
2018-09-10 14:57:20 +02:00
|
|
|
# deinstallation of the package - remove feature
|
|
|
|
rm -f %{_sysconfdir}/%{name}/features-enabled/ido-mysql.conf
|
2017-01-30 16:29:54 +01:00
|
|
|
fi
|
|
|
|
|
|
|
|
exit 0
|
|
|
|
|
|
|
|
%post ido-pgsql
|
2018-07-26 17:38:45 +02:00
|
|
|
if [ ${1:-0} -eq 1 ] && [ -e %{_sysconfdir}/%{name}/features-enabled/ido-pgsql.conf ]
|
2017-01-30 16:29:54 +01:00
|
|
|
then
|
2018-09-10 14:57:20 +02:00
|
|
|
# initial installation, enable ido-pgsql feature
|
|
|
|
ln -sf ../features-available/ido-pgsql.conf %{_sysconfdir}/%{name}/features-enabled/ido-pgsql.conf
|
2017-01-30 16:29:54 +01:00
|
|
|
fi
|
|
|
|
|
|
|
|
exit 0
|
|
|
|
|
|
|
|
%postun ido-pgsql
|
|
|
|
if [ "$1" = "0" ]; then
|
2018-09-10 14:57:20 +02:00
|
|
|
# deinstallation of the package - remove feature
|
|
|
|
rm -f %{_sysconfdir}/%{name}/features-enabled/ido-pgsql.conf
|
2017-01-30 16:29:54 +01:00
|
|
|
fi
|
|
|
|
|
|
|
|
exit 0
|
|
|
|
|
2017-11-24 12:08:10 +01:00
|
|
|
%if 0%{?use_selinux}
|
2017-01-30 16:29:54 +01:00
|
|
|
%post selinux
|
|
|
|
for selinuxvariant in %{selinux_variants}
|
|
|
|
do
|
|
|
|
/usr/sbin/semodule -s ${selinuxvariant} -i \
|
2017-11-24 12:08:10 +01:00
|
|
|
%{_datadir}/selinux/${selinuxvariant}/%{selinux_modulename}.pp &> /dev/null || :
|
2017-01-30 16:29:54 +01:00
|
|
|
done
|
2018-10-30 09:18:16 +01:00
|
|
|
/sbin/fixfiles -R icinga2 restore &> /dev/null || :
|
2017-01-30 16:29:54 +01:00
|
|
|
/sbin/fixfiles -R icinga2-bin restore &> /dev/null || :
|
|
|
|
/sbin/fixfiles -R icinga2-common restore &> /dev/null || :
|
|
|
|
/sbin/semanage port -a -t icinga2_port_t -p tcp 5665 &> /dev/null || :
|
|
|
|
|
|
|
|
%postun selinux
|
|
|
|
if [ $1 -eq 0 ] ; then
|
|
|
|
/sbin/semanage port -d -t icinga2_port_t -p tcp 5665 &> /dev/null || :
|
|
|
|
for selinuxvariant in %{selinux_variants}
|
|
|
|
do
|
2017-11-24 12:08:10 +01:00
|
|
|
/usr/sbin/semodule -s ${selinuxvariant} -r %{selinux_modulename} &> /dev/null || :
|
2017-01-30 16:29:54 +01:00
|
|
|
done
|
2018-10-30 09:18:16 +01:00
|
|
|
/sbin/fixfiles -R icinga2 restore &> /dev/null || :
|
2017-01-30 16:29:54 +01:00
|
|
|
/sbin/fixfiles -R icinga2-bin restore &> /dev/null || :
|
|
|
|
/sbin/fixfiles -R icinga2-common restore &> /dev/null || :
|
|
|
|
fi
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc COPYING
|
|
|
|
|
|
|
|
%config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
|
2018-07-26 17:38:45 +02:00
|
|
|
|
2017-01-30 16:29:54 +01:00
|
|
|
%if 0%{?use_systemd}
|
|
|
|
%attr(644,root,root) %{_unitdir}/%{name}.service
|
2017-09-28 16:40:34 +02:00
|
|
|
%if 0%{?configure_systemd_limits}
|
2017-11-10 10:56:18 +01:00
|
|
|
%dir /etc/systemd/system/%{name}.service.d
|
2017-11-23 15:26:48 +01:00
|
|
|
%attr(644,root,root) %config(noreplace) /etc/systemd/system/%{name}.service.d/limits.conf
|
2017-09-28 16:40:34 +02:00
|
|
|
%endif
|
2017-01-30 16:29:54 +01:00
|
|
|
%else
|
2017-11-23 15:26:48 +01:00
|
|
|
%attr(755,root,root) %config(noreplace) %{_sysconfdir}/init.d/%{name}
|
2017-01-30 16:29:54 +01:00
|
|
|
%endif
|
|
|
|
%if "%{_vendor}" == "suse"
|
|
|
|
%{_sbindir}/rc%{name}
|
2018-02-06 13:55:50 +01:00
|
|
|
%{_fillupdir}/sysconfig.%{name}
|
|
|
|
%else
|
2017-01-30 16:29:54 +01:00
|
|
|
%config(noreplace) %{_sysconfdir}/sysconfig/%{name}
|
|
|
|
%endif
|
2018-07-26 17:38:45 +02:00
|
|
|
|
2018-08-20 15:10:10 +02:00
|
|
|
%{_sbindir}/%{name}
|
|
|
|
|
2018-07-26 17:38:45 +02:00
|
|
|
%dir %{_libexecdir}/%{name}
|
|
|
|
%{_libexecdir}/%{name}/prepare-dirs
|
|
|
|
%{_libexecdir}/%{name}/safe-reload
|
|
|
|
|
2017-01-30 16:29:54 +01:00
|
|
|
%attr(0750,root,%{icinga_group}) %dir %{_sysconfdir}/%{name}
|
|
|
|
%attr(0750,%{icinga_user},%{icinga_group}) %dir %{_sysconfdir}/%{name}/conf.d
|
|
|
|
%attr(0750,%{icinga_user},%{icinga_group}) %dir %{_sysconfdir}/%{name}/features-available
|
|
|
|
%exclude %{_sysconfdir}/%{name}/features-available/ido-*.conf
|
|
|
|
%attr(0750,%{icinga_user},%{icinga_group}) %dir %{_sysconfdir}/%{name}/features-enabled
|
|
|
|
%attr(0750,%{icinga_user},%{icinga_group}) %dir %{_sysconfdir}/%{name}/scripts
|
|
|
|
%attr(0750,%{icinga_user},%{icinga_group}) %dir %{_sysconfdir}/%{name}/zones.d
|
|
|
|
%config(noreplace) %attr(0640,%{icinga_user},%{icinga_group}) %{_sysconfdir}/%{name}/%{name}.conf
|
|
|
|
%config(noreplace) %attr(0640,%{icinga_user},%{icinga_group}) %{_sysconfdir}/%{name}/constants.conf
|
|
|
|
%config(noreplace) %attr(0640,%{icinga_user},%{icinga_group}) %{_sysconfdir}/%{name}/zones.conf
|
|
|
|
%config(noreplace) %attr(0640,%{icinga_user},%{icinga_group}) %{_sysconfdir}/%{name}/conf.d/*.conf
|
|
|
|
%config(noreplace) %attr(0640,%{icinga_user},%{icinga_group}) %{_sysconfdir}/%{name}/features-available/*.conf
|
|
|
|
%config(noreplace) %attr(0640,%{icinga_user},%{icinga_group}) %{_sysconfdir}/%{name}/zones.d/*
|
|
|
|
%config(noreplace) %{_sysconfdir}/%{name}/scripts/*
|
2018-07-26 17:38:45 +02:00
|
|
|
|
2018-08-20 15:10:10 +02:00
|
|
|
%attr(0750,%{icinga_user},%{icingacmd_group}) %{_localstatedir}/cache/%{name}
|
|
|
|
%attr(0750,%{icinga_user},%{icingacmd_group}) %dir %{_localstatedir}/log/%{name}
|
|
|
|
%attr(0750,%{icinga_user},%{icinga_group}) %dir %{_localstatedir}/log/%{name}/crash
|
|
|
|
%attr(0750,%{icinga_user},%{icingacmd_group}) %dir %{_localstatedir}/log/%{name}/compat
|
|
|
|
%attr(0750,%{icinga_user},%{icingacmd_group}) %dir %{_localstatedir}/log/%{name}/compat/archives
|
|
|
|
%attr(0750,%{icinga_user},%{icinga_group}) %{_localstatedir}/lib/%{name}
|
|
|
|
%attr(0750,%{icinga_user},%{icingacmd_group}) %ghost %dir %{_rundir}/%{name}
|
|
|
|
%attr(2750,%{icinga_user},%{icingacmd_group}) %ghost %{_rundir}/%{name}/cmd
|
|
|
|
%attr(0750,%{icinga_user},%{icinga_group}) %dir %{_localstatedir}/spool/%{name}
|
|
|
|
%attr(0770,%{icinga_user},%{icinga_group}) %dir %{_localstatedir}/spool/%{name}/perfdata
|
|
|
|
%attr(0750,%{icinga_user},%{icinga_group}) %dir %{_localstatedir}/spool/%{name}/tmp
|
|
|
|
|
2018-07-26 17:38:45 +02:00
|
|
|
%files bin
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc COPYING README.md NEWS AUTHORS CHANGELOG.md
|
2018-09-11 09:04:16 +02:00
|
|
|
%dir %{_libdir}/%{name}
|
2018-07-26 17:38:45 +02:00
|
|
|
%dir %{_libdir}/%{name}/sbin
|
|
|
|
%{_libdir}/%{name}/sbin/%{name}
|
|
|
|
%{plugindir}/check_nscp_api
|
|
|
|
%{_datadir}/%{name}
|
|
|
|
%exclude %{_datadir}/%{name}/include
|
|
|
|
%{_mandir}/man8/%{name}.8.gz
|
|
|
|
|
|
|
|
%files common
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc COPYING README.md NEWS AUTHORS CHANGELOG.md tools/syntax
|
|
|
|
%{_sysconfdir}/bash_completion.d/%{name}
|
2018-02-19 18:05:21 +01:00
|
|
|
%attr(0750,%{icinga_user},%{icinga_group}) %dir %{_datadir}/%{name}/include
|
|
|
|
%{_datadir}/%{name}/include/*
|
2017-01-30 16:29:54 +01:00
|
|
|
|
|
|
|
%files doc
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_datadir}/doc/%{name}
|
|
|
|
%docdir %{_datadir}/doc/%{name}
|
|
|
|
|
|
|
|
%files ido-mysql
|
|
|
|
%defattr(-,root,root,-)
|
2018-05-03 09:34:33 +02:00
|
|
|
%doc COPYING README.md NEWS AUTHORS CHANGELOG.md
|
2017-01-30 16:29:54 +01:00
|
|
|
%config(noreplace) %attr(0640,%{icinga_user},%{icinga_group}) %{_sysconfdir}/%{name}/features-available/ido-mysql.conf
|
2018-01-17 12:43:47 +01:00
|
|
|
%{_libdir}/%{name}/libmysql_shim*
|
2017-01-30 16:29:54 +01:00
|
|
|
%{_datadir}/icinga2-ido-mysql
|
|
|
|
|
|
|
|
%files ido-pgsql
|
|
|
|
%defattr(-,root,root,-)
|
2018-05-03 09:34:33 +02:00
|
|
|
%doc COPYING README.md NEWS AUTHORS CHANGELOG.md
|
2017-01-30 16:29:54 +01:00
|
|
|
%config(noreplace) %attr(0640,%{icinga_user},%{icinga_group}) %{_sysconfdir}/%{name}/features-available/ido-pgsql.conf
|
2018-01-17 12:43:47 +01:00
|
|
|
%{_libdir}/%{name}/libpgsql_shim*
|
2017-01-30 16:29:54 +01:00
|
|
|
%{_datadir}/icinga2-ido-pgsql
|
|
|
|
|
2017-11-24 12:08:10 +01:00
|
|
|
%if 0%{?use_selinux}
|
2017-01-30 16:29:54 +01:00
|
|
|
%files selinux
|
|
|
|
%defattr(-,root,root,0755)
|
|
|
|
%doc tools/selinux/*
|
2017-11-24 12:08:10 +01:00
|
|
|
%{_datadir}/selinux/*/%{selinux_modulename}.pp
|
2017-01-30 16:29:54 +01:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%files -n vim-icinga2
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%if "%{_vendor}" == "suse"
|
2017-08-24 14:39:52 +02:00
|
|
|
%{_datadir}/vim/site/syntax/%{name}.vim
|
|
|
|
%{_datadir}/vim/site/ftdetect/%{name}.vim
|
|
|
|
%else
|
2017-01-30 16:29:54 +01:00
|
|
|
%{_datadir}/vim/vimfiles/syntax/%{name}.vim
|
|
|
|
%{_datadir}/vim/vimfiles/ftdetect/%{name}.vim
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%files -n nano-icinga2
|
|
|
|
%defattr(-,root,root,-)
|
2017-08-25 14:19:18 +02:00
|
|
|
%if "%{_vendor}" == "suse"
|
|
|
|
%dir %{_datadir}/nano
|
|
|
|
%endif
|
2017-01-30 16:29:54 +01:00
|
|
|
%{_datadir}/nano/%{name}.nanorc
|
|
|
|
|
|
|
|
%changelog
|
2018-11-14 09:09:44 +01:00
|
|
|
* Wed Nov 14 2018 Michael Friedrich <michael.friedrich@icinga.com> 2.10.2-1
|
|
|
|
- Update to 2.10.2
|
|
|
|
|
2018-10-18 11:42:00 +02:00
|
|
|
* Thu Oct 18 2018 Michael Friedrich <michael.friedrich@icinga.com> 2.10.1-1
|
|
|
|
- Update to 2.10.1
|
|
|
|
|
2018-10-11 14:37:34 +02:00
|
|
|
* Thu Oct 11 2018 Michael Friedrich <michael.friedrich@icinga.com> 2.10.0-1
|
|
|
|
- Update to 2.10.0
|
|
|
|
|
2018-09-26 10:48:44 +02:00
|
|
|
* Wed Sep 26 2018 Michael Friedrich <michael.friedrich@icinga.com> 2.9.2-1
|
|
|
|
- Update to 2.9.2
|
|
|
|
|
2018-07-25 11:25:02 +02:00
|
|
|
* Wed Jul 25 2018 Markus Frosch <markus.frosch@icinga.com> 2.10.0-0
|
|
|
|
- Remove obsoleted icinga2-libs package
|
|
|
|
|
2018-07-24 12:54:18 +02:00
|
|
|
* Tue Jul 24 2018 Michael Friedrich <michael.friedrich@icinga.com> 2.9.1-1
|
|
|
|
- Update to 2.9.1
|
|
|
|
|
2018-07-17 14:43:51 +02:00
|
|
|
* Tue Jul 17 2018 Michael Friedrich <michael.friedrich@icinga.com> 2.9.0-1
|
|
|
|
- Update to 2.9.0
|
|
|
|
|
2018-04-25 15:03:29 +02:00
|
|
|
* Wed Apr 25 2018 Jean Flach <jean.flach@icinga.com> 2.8.4-1
|
|
|
|
- Update to 2.8.4
|
|
|
|
|
2018-04-24 14:23:59 +02:00
|
|
|
* Tue Apr 24 2018 Jean Flach <jean.flach@icinga.com> 2.8.3-1
|
|
|
|
- Update to 2.8.3
|
|
|
|
|
2018-03-22 11:45:54 +01:00
|
|
|
* Thu Mar 22 2018 Jean Flach <jean-marcel.flach@icinga.com> 2.8.2-1
|
|
|
|
- Update to 2.8.2
|
2018-02-06 15:16:36 +01:00
|
|
|
|
2018-01-17 11:33:55 +01:00
|
|
|
* Wed Jan 17 2018 Gunnar Beutner <gunnar.beutner@icinga.com> 2.8.1-1
|
|
|
|
- Update to 2.8.1
|
|
|
|
|
2017-11-24 15:25:44 +01:00
|
|
|
* Fri Nov 24 2017 Markus Frosch <markus.frosch@icinga.com> 2.8.0-2
|
|
|
|
- [SLES] Add systemd limits file
|
|
|
|
- Add config(noreplace) for the systemd limits file
|
|
|
|
(no need to release every OS immediately)
|
|
|
|
- Update SELinux handling to be compatible to Fedora 27
|
|
|
|
(only affecting f27 builds)
|
|
|
|
|
2017-11-16 11:25:24 +01:00
|
|
|
* Thu Nov 16 2017 Jean Flach <jean-marcel.flach@icinga.com> 2.8.0-1
|
|
|
|
- Update to 2.8.0
|
|
|
|
|
2017-11-09 13:01:37 +01:00
|
|
|
* Thu Nov 09 2017 Gunnar Beutner <gunnar.beutner@icinga.com> 2.7.2-1
|
|
|
|
- Update to 2.7.2
|
|
|
|
|
2017-10-02 11:23:33 +02:00
|
|
|
* Mon Oct 02 2017 Markus Frosch <markus.frosch@icinga.com> 2.7.1-2
|
2017-10-02 10:20:03 +02:00
|
|
|
- Fixing systemd limit issues on openSUSE > 42.1
|
|
|
|
|
|
|
|
* Thu Sep 21 2017 Michael Friedrich <michael.friedrich@icinga.com> 2.7.1-1
|
|
|
|
- Update to 2.7.1
|
|
|
|
|
2017-10-02 10:16:25 +02:00
|
|
|
* Tue Jun 20 2017 Markus Frosch <markus.frosch@icinga.com> 2.7.0-1
|
|
|
|
- Update to 2.7.0
|