icinga2.spec 26.5 KB
Newer Older
Michael Friedrich's avatar
Michael Friedrich committed
1
# Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+
Markus Frosch's avatar
Markus Frosch committed
2

Henrik Triem's avatar
Henrik Triem committed
3
%define revision 1
Markus Frosch's avatar
Markus Frosch committed
4
5
6
7
8

# make sure that _rundir is working on older systems
%if ! %{defined _rundir}
%define _rundir %{_localstatedir}/run
%endif
Tim Hardeck's avatar
Tim Hardeck committed
9
10
11
%if ! %{defined _fillupdir}
  %define _fillupdir %{_localstatedir}/adm/fillup-templates
%endif
Markus Frosch's avatar
Markus Frosch committed
12
13

%define _libexecdir %{_prefix}/lib/
14
%define plugindir %{_libdir}/nagios/plugins
Markus Frosch's avatar
Markus Frosch committed
15
16
17
18
19
20

%if "%{_vendor}" == "redhat"
%define apachename httpd
%define apacheconfdir %{_sysconfdir}/httpd/conf.d
%define apacheuser apache
%define apachegroup apache
21

Markus Frosch's avatar
Markus Frosch committed
22
%if 0%{?el6}%{?amzn}
Markus Frosch's avatar
Markus Frosch committed
23
%define use_systemd 0
24
%define use_selinux 0
Markus Frosch's avatar
Markus Frosch committed
25
26
27
28
29
30
%if %(uname -m) != "x86_64"
%define march_flag -march=i686
%endif
%else
# fedora and el>=7
%define use_systemd 1
31
%define use_selinux 1
32
33
34
35
36
37
%if 0%{?fedora} >= 24
# for installing limits.conf on systemd >= 228
%define configure_systemd_limits 1
%else
%define configure_systemd_limits 0
%endif
Markus Frosch's avatar
Markus Frosch committed
38
39
40
41
%endif
%endif

%if "%{_vendor}" == "suse"
42
%define plugindir %{_libexecdir}/nagios/plugins
Markus Frosch's avatar
Markus Frosch committed
43
44
45
46
47
48
%define apachename apache2
%define apacheconfdir  %{_sysconfdir}/apache2/conf.d
%define apacheuser wwwrun
%define apachegroup www
%if 0%{?suse_version} >= 1310
%define use_systemd 1
49
%if 0%{?sle_version} >= 120200 || 0%{?suse_version} > 1320
50
51
52
53
54
# for installing limits.conf on systemd >= 228
%define configure_systemd_limits 1
%else
%define configure_systemd_limits 0
%endif
Markus Frosch's avatar
Markus Frosch committed
55
56
57
58
59
60
61
62
63
%else
%define use_systemd 0
%endif
%endif

%define icinga_user icinga
%define icinga_group icinga
%define icingacmd_group icingacmd

FrostbyteGR's avatar
FrostbyteGR committed
64
65
66
67
68
69
70
# enable unity builds by default for all architectures except arm32
%ifarch %{arm}
%bcond_with unity_build
%else
%bcond_without unity_build
%endif

71
72
73
74
75
# Disable lto_build for older SUSE versions
# see https://github.com/Icinga/icinga2/issues/7149
%if "%{_vendor}" == "suse" && 0%{?suse_version} <= 1315
%bcond_with lto_build
%else # suse_version 1315
FrostbyteGR's avatar
FrostbyteGR committed
76
%bcond_without lto_build
77
78
%endif # suse_version 1315

FrostbyteGR's avatar
FrostbyteGR committed
79
80
81
82
83
84
85
86
87
%bcond_with systemd_and_init
%bcond_without compat
%bcond_without livestatus
%bcond_without notification
%bcond_without perfdata
%bcond_without tests
%bcond_without mysql
%bcond_without pgsql

Markus Frosch's avatar
Markus Frosch committed
88
89
%define logmsg logger -t %{name}/rpm

90
91
%define boost_min_version 1.66

92
Summary:        Network monitoring application
93
94
95
96
97
%if "%{_vendor}" == "suse"
License:        GPL-2.0-or-later
%else
License:        GPLv2+
%endif # suse
Tim Hardeck's avatar
Tim Hardeck committed
98
Group:          System/Monitoring
99
Name:           icinga2
Noah Hilverling's avatar
Noah Hilverling committed
100
Version:        2.12.3
101
102
Release:        %{revision}%{?dist}
Url:            https://www.icinga.com/
Noah Hilverling's avatar
Noah Hilverling committed
103
Source:         https://github.com/Icinga/%{name}/archive/v%{version}%{?src_version_suffix}.tar.gz
104

Markus Frosch's avatar
Markus Frosch committed
105
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
106
Requires:       %{name}-bin = %{version}-%{release}
107
108
109
Requires:       %{name}-common = %{version}-%{release}

Conflicts:      %{name}-common < %{version}-%{release}
Markus Frosch's avatar
Markus Frosch committed
110
111
112
113
114

%description
Meta package for Icinga 2 Core, DB IDO and Web.

%package bin
115
116
Summary:        Icinga 2 binaries and libraries
Group:          System/Monitoring
Markus Frosch's avatar
Markus Frosch committed
117

118
119
Requires:       %{name}-bin = %{version}-%{release}

Markus Frosch's avatar
Markus Frosch committed
120
%if "%{_vendor}" == "suse"
121
122
Provides:       monitoring_daemon
Recommends:     monitoring-plugins
Markus Frosch's avatar
Markus Frosch committed
123
%if 0%{?suse_version} >= 1310
124
BuildRequires:  libyajl-devel
Markus Frosch's avatar
Markus Frosch committed
125
126
%endif
%endif
127
128
BuildRequires:  libedit-devel
BuildRequires:  ncurses-devel
Markus Frosch's avatar
Markus Frosch committed
129
%if "%{_vendor}" == "suse" && 0%{?suse_version} < 1210
130
131
132
BuildRequires:  gcc48-c++
BuildRequires:  libopenssl1-devel
BuildRequires:  libstdc++48-devel
Markus Frosch's avatar
Markus Frosch committed
133
%else
Markus Frosch's avatar
Markus Frosch committed
134
%if "%{_vendor}" == "redhat" && (0%{?el6} || 0%{?rhel} == 6 || "%{?dist}" == ".el6")
Markus Frosch's avatar
Markus Frosch committed
135
136
137
138
139
140
# Requires devtoolset-7 scl
%define scl_name devtoolset-7
%define scl_enable scl enable %{scl_name} --
BuildRequires:  %{scl_name}-binutils
BuildRequires:  %{scl_name}-gcc-c++
BuildRequires:  %{scl_name}-libstdc++-devel
141
%else
142
143
BuildRequires:  gcc-c++
BuildRequires:  libstdc++-devel
144
%endif
145
BuildRequires:  openssl-devel
Markus Frosch's avatar
Markus Frosch committed
146
%endif
147
148
149
150
BuildRequires:  bison
BuildRequires:  cmake
BuildRequires:  flex >= 2.5.35
BuildRequires:  make
Markus Frosch's avatar
Markus Frosch committed
151

152
%if "%{_vendor}" == "suse"
153
154
  %if 0%{?suse_version} >= 1315
    # SLES 12 and OpenSUSE 42 or later
Markus Frosch's avatar
Markus Frosch committed
155
    %define boost_devel_pkg %nil
156
157
158
159
160
161
    %if 0%{?suse_version} < 1320
      # before SLES 15 and OpenSUSE 15
      # Provided by packages.icinga.com
      %define boost_library icinga-boost
      %define boost_version 1.69
      %define boost_rpath %{_libdir}/%{boost_library}
162
163
      # Note: the -impl suffix comes from current packages on OBS
      %define boost_devel_suffix -impl
164
    %endif # suse_version < 1320
165
166
BuildRequires:  libboost_context-devel%{?boost_devel_suffix} >= %{boost_min_version}
BuildRequires:  libboost_coroutine-devel%{?boost_devel_suffix} >= %{boost_min_version}
167
BuildRequires:  libboost_filesystem-devel%{?boost_devel_suffix} >= %{boost_min_version}
168
169
170
171
172
BuildRequires:  libboost_program_options-devel%{?boost_devel_suffix} >= %{boost_min_version}
BuildRequires:  libboost_regex-devel%{?boost_devel_suffix} >= %{boost_min_version}
BuildRequires:  libboost_system-devel%{?boost_devel_suffix} >= %{boost_min_version}
BuildRequires:  libboost_thread-devel%{?boost_devel_suffix} >= %{boost_min_version}
BuildRequires:  libboost_test-devel%{?boost_devel_suffix} >= %{boost_min_version}
173
174
175
176
  %else # suse_version >= 1315
    # old boost devel name
    %define boost_devel_pkg boost-devel
  %endif # suse_version >= 1315
177
%else # vendor == suse - assuming redhat or compatible
178
179
180
  # default boost devel package
  %define boost_devel_pkg boost-devel

Markus Frosch's avatar
Markus Frosch committed
181
182
183
184
185
186
187
188
189
190
191
192
193
  %if (0%{?el6} || 0%{?rhel} == 6)
    # Provided by packages.icinga.com
    %define boost_library icinga-boost169
    %define boost_version 1.69
    %define boost_devel_pkg icinga-boost169-devel
    %define boost_rpath %{_libdir}/%{boost_library}
  %endif # el6
  %if (0%{?el7} || 0%{?rhel} == 7)
    # Provided by EPEL
    %define boost_library boost169
    %define boost_version 1.69
    %define boost_devel_pkg boost169-devel
  %endif # el7
194
%endif # vendor == suse
Markus Frosch's avatar
Markus Frosch committed
195

196
197
%if "%{?boost_devel_pkg}" != ""
BuildRequires: %{boost_devel_pkg} >= %{boost_min_version}
Markus Frosch's avatar
Markus Frosch committed
198
%endif # boost_devel_pkg
Markus Frosch's avatar
Markus Frosch committed
199
200

%if 0%{?use_systemd}
201
202
BuildRequires:  systemd-devel
Requires:       systemd
Markus Frosch's avatar
Markus Frosch committed
203
204
%endif

205
206
Obsoletes:       %{name}-libs <= 2.10.0
Conflicts:       %{name}-libs <= 2.10.0
Markus Frosch's avatar
Markus Frosch committed
207
208
209

%description bin
Icinga 2 is a general-purpose network monitoring application.
210
This subpackage provides the binaries for Icinga 2 Core.
Markus Frosch's avatar
Markus Frosch committed
211
212

%package common
213
214
Summary:        Common Icinga 2 configuration
Group:          System/Monitoring
Dirk Götz's avatar
Dirk Götz committed
215
%if (0%{?amzn} || 0%{?fedora} || 0%{?rhel})
216
217
Requires(pre):  shadow-utils
Requires(post): shadow-utils
Dirk Götz's avatar
Dirk Götz committed
218
%endif
219
BuildRequires:  logrotate
Markus Frosch's avatar
Markus Frosch committed
220
%if "%{_vendor}" == "suse"
221
PreReq:         permissions
222
223
Provides:       group(%{icinga_group})
Provides:       group(%{icingacmd_group})
Tim Hardeck's avatar
Tim Hardeck committed
224
Provides:       user(%{icinga_user})
225
226
Requires(pre):  shadow
Requires(post): shadow
Dirk Götz's avatar
Dirk Götz committed
227
# Coreutils is added because of autoyast problems reported
228
229
Requires(pre):  coreutils
Requires(post): coreutils
230
%if 0%{?suse_version} >= 1200
231
232
BuildRequires:  monitoring-plugins-common
Requires:       monitoring-plugins-common
233
234
235
%else
Recommends:     monitoring-plugins-common
%endif
236
Recommends:     logrotate
Markus Frosch's avatar
Markus Frosch committed
237
238
239
%endif

%description common
240
241
This subpackage provides common directories, and the UID and GUID definitions
among Icinga 2 related packages.
Markus Frosch's avatar
Markus Frosch committed
242
243
244


%package doc
245
246
Summary:        Documentation for Icinga 2
Group:          Documentation/Other
Markus Frosch's avatar
Markus Frosch committed
247
248

%description doc
249
This subpackage provides documentation for Icinga 2.
Markus Frosch's avatar
Markus Frosch committed
250
251


FrostbyteGR's avatar
FrostbyteGR committed
252
%if %{with mysql}
Markus Frosch's avatar
Markus Frosch committed
253
%package ido-mysql
254
255
Summary:        IDO MySQL database backend for Icinga 2
Group:          System/Monitoring
Markus Frosch's avatar
Markus Frosch committed
256
%if "%{_vendor}" == "suse"
257
BuildRequires:  libmysqlclient-devel
Markus Frosch's avatar
Markus Frosch committed
258
%if 0%{?suse_version} >= 1310
259
BuildRequires:  mysql-devel
Markus Frosch's avatar
Markus Frosch committed
260
261
262
%endif

%else
263
BuildRequires:  mysql-devel
Markus Frosch's avatar
Markus Frosch committed
264
265
%endif #suse

266
Requires:       %{name}-bin = %{version}-%{release}
Markus Frosch's avatar
Markus Frosch committed
267
268
269
270

%description ido-mysql
Icinga 2 IDO mysql database backend. Compatible with Icinga 1.x
IDOUtils schema >= 1.12
FrostbyteGR's avatar
FrostbyteGR committed
271
%endif
Markus Frosch's avatar
Markus Frosch committed
272
273


FrostbyteGR's avatar
FrostbyteGR committed
274
%if %{with pgsql}
Markus Frosch's avatar
Markus Frosch committed
275
%package ido-pgsql
276
277
Summary:        IDO PostgreSQL database backend for Icinga 2
Group:          System/Monitoring
Markus Frosch's avatar
Markus Frosch committed
278
%if "%{_vendor}" == "suse" && 0%{?suse_version} < 1210
279
BuildRequires:  postgresql-devel >= 8.4
Markus Frosch's avatar
Markus Frosch committed
280
%else
281
BuildRequires:  postgresql-devel
Markus Frosch's avatar
Markus Frosch committed
282
%endif
283
Requires:       %{name}-bin = %{version}-%{release}
Markus Frosch's avatar
Markus Frosch committed
284
285
286
287

%description ido-pgsql
Icinga 2 IDO PostgreSQL database backend. Compatible with Icinga 1.x
IDOUtils schema >= 1.12
FrostbyteGR's avatar
FrostbyteGR committed
288
%endif
Markus Frosch's avatar
Markus Frosch committed
289

290
%if 0%{?use_selinux}
Markus Frosch's avatar
Markus Frosch committed
291
%global selinux_variants mls targeted
292
%global selinux_modulename %{name}
Markus Frosch's avatar
Markus Frosch committed
293
294
295

%package selinux
Summary:        SELinux policy module supporting icinga2
296
Group:          System/Base
297
298
299
BuildRequires:  checkpolicy
BuildRequires:  hardlink
BuildRequires:  selinux-policy-devel
300
Requires:       %{name}-bin = %{version}-%{release}
301
%if 0%{?fedora} >= 27 || 0%{?rhel} >= 8
302
303
304
Requires(post):   policycoreutils-python-utils
Requires(postun): policycoreutils-python-utils
%else
305
306
Requires(post):   policycoreutils-python
Requires(postun): policycoreutils-python
307
308
%endif

Markus Frosch's avatar
Markus Frosch committed
309
310

%description selinux
Tim Hardeck's avatar
Tim Hardeck committed
311
SELinux policy module supporting icinga2.
Markus Frosch's avatar
Markus Frosch committed
312
313
314
%endif

%package -n vim-icinga2
315
316
Summary:        Vim syntax highlighting for icinga2
Group:          Productivity/Text/Editors
Markus Frosch's avatar
Markus Frosch committed
317
%if "%{_vendor}" == "suse"
318
319
BuildRequires:  vim
Requires:       vim
Markus Frosch's avatar
Markus Frosch committed
320
%else
321
Requires:       vim-filesystem
Markus Frosch's avatar
Markus Frosch committed
322
323
324
%endif

%description -n vim-icinga2
Tim Hardeck's avatar
Tim Hardeck committed
325
Provides Vim syntax highlighting for icinga2.
Markus Frosch's avatar
Markus Frosch committed
326
327
328


%package -n nano-icinga2
329
330
331
Summary:        Nano syntax highlighting for icinga2
Group:          Productivity/Text/Editors
Requires:       nano
Markus Frosch's avatar
Markus Frosch committed
332
333

%description -n nano-icinga2
Tim Hardeck's avatar
Tim Hardeck committed
334
Provides Nano syntax highlighting for icinga2.
Markus Frosch's avatar
Markus Frosch committed
335
336

%prep
Noah Hilverling's avatar
Noah Hilverling committed
337
%setup -q -n %{name}-%{version}%{?src_version_suffix}
Tim Hardeck's avatar
Tim Hardeck committed
338
339
340
341
# 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
Markus Frosch's avatar
Markus Frosch committed
342

343
344
345
346
347
# quick & dirty hack for SLES11 & Kernel < 2.9 w/o SO_REUSEPORT
%if "%{_vendor}" == "suse" && 0%{?suse_version} < 1210
find . -type f -name tcpsocket.cpp -exec sed -i -e 's|.*SO_REUSEPORT.*||g' {} \;
%endif

Markus Frosch's avatar
Markus Frosch committed
348
%build
349
350
351
352
# 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)}"

Markus Frosch's avatar
Markus Frosch committed
353
354
355
356
357
358
CMAKE_OPTS="-DCMAKE_INSTALL_PREFIX=/usr \
         -DCMAKE_INSTALL_SYSCONFDIR=/etc \
         -DCMAKE_INSTALL_LOCALSTATEDIR=/var \
         -DCMAKE_BUILD_TYPE=RelWithDebInfo \
         -DCMAKE_VERBOSE_MAKEFILE=ON \
         -DBoost_NO_BOOST_CMAKE=ON \
359
         -DICINGA2_PLUGINDIR=%{plugindir} \
Markus Frosch's avatar
Markus Frosch committed
360
         -DICINGA2_RUNDIR=%{_rundir} \
361
         -DICINGA2_SYSCONFIGFILE=/etc/sysconfig/icinga2 \
Markus Frosch's avatar
Markus Frosch committed
362
363
364
365
366
367
368
         -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

FrostbyteGR's avatar
FrostbyteGR committed
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
%if %{with unity_build}
CMAKE_OPTS="$CMAKE_OPTS -DICINGA2_UNITY_BUILD=ON"
%else
CMAKE_OPTS="$CMAKE_OPTS -DICINGA2_UNITY_BUILD=OFF"
%endif
%if %{with lto_build}
CMAKE_OPTS="$CMAKE_OPTS -DICINGA2_LTO_BUILD=ON"
%else
CMAKE_OPTS="$CMAKE_OPTS -DICINGA2_LTO_BUILD=OFF"
%endif
%if %{with systemd_and_init}
CMAKE_OPTS="$CMAKE_OPTS -DINSTALL_SYSTEMD_SERVICE_AND_INITSCRIPT=ON"
%else
CMAKE_OPTS="$CMAKE_OPTS -DINSTALL_SYSTEMD_SERVICE_AND_INITSCRIPT=OFF"
%endif
%if %{with compat}
CMAKE_OPTS="$CMAKE_OPTS -DICINGA2_WITH_COMPAT=ON"
%else
CMAKE_OPTS="$CMAKE_OPTS -DICINGA2_WITH_COMPAT=OFF"
%endif
%if %{with livestatus}
CMAKE_OPTS="$CMAKE_OPTS -DICINGA2_WITH_LIVESTATUS=ON"
%else
CMAKE_OPTS="$CMAKE_OPTS -DICINGA2_WITH_LIVESTATUS=OFF"
%endif
%if %{with notification}
CMAKE_OPTS="$CMAKE_OPTS -DICINGA2_WITH_NOTIFICATION=ON"
%else
CMAKE_OPTS="$CMAKE_OPTS -DICINGA2_WITH_NOTIFICATION=OFF"
%endif
%if %{with perfdata}
CMAKE_OPTS="$CMAKE_OPTS -DICINGA2_WITH_PERFDATA=ON"
%else
CMAKE_OPTS="$CMAKE_OPTS -DICINGA2_WITH_PERFDATA=OFF"
%endif
%if %{with tests}
CMAKE_OPTS="$CMAKE_OPTS -DICINGA2_WITH_TESTS=ON"
%else
CMAKE_OPTS="$CMAKE_OPTS -DICINGA2_WITH_TESTS=OFF"
%endif
%if %{with mysql}
CMAKE_OPTS="$CMAKE_OPTS -DICINGA2_WITH_MYSQL=ON"
%else
CMAKE_OPTS="$CMAKE_OPTS -DICINGA2_WITH_MYSQL=OFF"
%endif
%if %{with pgsql}
CMAKE_OPTS="$CMAKE_OPTS -DICINGA2_WITH_PGSQL=ON"
%else
CMAKE_OPTS="$CMAKE_OPTS -DICINGA2_WITH_PGSQL=OFF"
%endif

420
421
422
423
424
%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

Markus Frosch's avatar
Markus Frosch committed
425
426
427
428
%if "%{?boost_rpath}" != ""
CMAKE_OPTS="$CMAKE_OPTS -DCMAKE_INSTALL_RPATH=%{boost_rpath}"
%endif # boost_rpath

429
430
431
432
433
%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 \
Markus Frosch's avatar
Markus Frosch committed
434
 -DBoost_NO_SYSTEM_PATHS=TRUE \
435
436
437
438
 -DBOOST_LIBRARYDIR=%{_libdir}/%{boost_library} \
 -DBOOST_INCLUDEDIR=/usr/include/%{boost_library} \
 -DBoost_ADDITIONAL_VERSIONS='%{boost_version};%{boost_version}.0'"
%endif # boost_library
Markus Frosch's avatar
Markus Frosch committed
439
440
441
442
443

%if 0%{?use_systemd}
CMAKE_OPTS="$CMAKE_OPTS -DUSE_SYSTEMD=ON"
%endif

444
445
446
447
448
449
%if "%{_vendor}" == "suse" && 0%{?suse_version} < 1210
# from package gcc48-c++
export CC=gcc-4.8
export CXX=g++-4.8
%endif

Tim Hardeck's avatar
Tim Hardeck committed
450
451
452
453
%if "%{?_buildhost}" != ""
CMAKE_OPTS="$CMAKE_OPTS -DICINGA2_BUILD_HOST_NAME:STRING=%_buildhost"
%endif

454
%{?scl_enable} cmake $CMAKE_OPTS -DCMAKE_C_FLAGS:STRING="%{optflags} %{?march_flag}" -DCMAKE_CXX_FLAGS:STRING="%{optflags} %{?march_flag}" .
Markus Frosch's avatar
Markus Frosch committed
455

456
%{?scl_enable} make %{?_smp_mflags}
Markus Frosch's avatar
Markus Frosch committed
457

458
%if 0%{?use_selinux}
Markus Frosch's avatar
Markus Frosch committed
459
460
461
462
cd tools/selinux
for selinuxvariant in %{selinux_variants}
do
  make NAME=${selinuxvariant} -f /usr/share/selinux/devel/Makefile
463
  mv %{selinux_modulename}.pp %{selinux_modulename}.pp.${selinuxvariant}
Markus Frosch's avatar
Markus Frosch committed
464
465
466
467
468
469
  make NAME=${selinuxvariant} -f /usr/share/selinux/devel/Makefile clean
done
cd -
%endif

%install
470
%{?scl_enable} make install \
Markus Frosch's avatar
Markus Frosch committed
471
  DESTDIR="%{buildroot}"
Markus Frosch's avatar
Markus Frosch committed
472

473
474
# install custom limits.conf for systemd
%if 0%{?configure_systemd_limits}
475
# for > 2.8 or > 2.7.2
476
install -D -m 0644 etc/initsystem/icinga2.service.limits.conf %{buildroot}/etc/systemd/system/%{name}.service.d/limits.conf
477
478
%endif

Markus Frosch's avatar
Markus Frosch committed
479
480
481
482
483
484
485
486
487
488
# 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
Tim Hardeck's avatar
Tim Hardeck committed
489
490
491
mkdir -p "%{buildroot}%{_fillupdir}/"
mv "%{buildroot}%{_sysconfdir}/sysconfig/%{name}" "%{buildroot}%{_fillupdir}/sysconfig.%{name}"
%endif
Markus Frosch's avatar
Markus Frosch committed
492

493
%if 0%{?use_selinux}
Markus Frosch's avatar
Markus Frosch committed
494
495
496
497
cd tools/selinux
for selinuxvariant in %{selinux_variants}
do
  install -d %{buildroot}%{_datadir}/selinux/${selinuxvariant}
498
499
  install -p -m 644 %{selinux_modulename}.pp.${selinuxvariant} \
    %{buildroot}%{_datadir}/selinux/${selinuxvariant}/%{selinux_modulename}.pp
Markus Frosch's avatar
Markus Frosch committed
500
501
502
done
cd -

Markus Frosch's avatar
Markus Frosch committed
503
# TODO: Fix build problems on Icinga, see https://github.com/Icinga/puppet-icinga_build/issues/11
504
#/usr/sbin/hardlink -cv %%{buildroot}%%{_datadir}/selinux
Markus Frosch's avatar
Markus Frosch committed
505
506
507
%endif

%if "%{_vendor}" == "suse"
508
509
510
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
Markus Frosch's avatar
Markus Frosch committed
511
512
513
514
515
516
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

Markus Frosch's avatar
Markus Frosch committed
517
518
519
520
%check
export CTEST_OUTPUT_ON_FAILURE=1
make test

521
%pre
Markus Frosch's avatar
Markus Frosch committed
522
523
524
525
%if "%{_vendor}" == "suse"
%if 0%{?use_systemd}
  %service_add_pre %{name}.service
%endif
Tim Hardeck's avatar
Tim Hardeck committed
526
527
528

%verifyscript
%verify_permissions -e %{_rundir}/%{name}/cmd
Markus Frosch's avatar
Markus Frosch committed
529
530
%endif

531
%post
Markus Frosch's avatar
Markus Frosch committed
532
533
# suse
%if "%{_vendor}" == "suse"
Tim Hardeck's avatar
Tim Hardeck committed
534
535
536
537
%if 0%{?suse_version} >= 1310
%set_permissions %{_rundir}/%{name}/cmd
%endif

Markus Frosch's avatar
Markus Frosch committed
538
539
540
541
542
543
544
%if 0%{?use_systemd}
%fillup_only  %{name}
%service_add_post %{name}.service
%else
%fillup_and_insserv %{name}
%endif

Markus Frosch's avatar
Markus Frosch committed
545
546
if [ ${1:-0} -eq 1 ]
then
Markus Frosch's avatar
Markus Frosch committed
547
548
549
550
  # 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
Markus Frosch's avatar
Markus Frosch committed
551
fi
Markus Frosch's avatar
Markus Frosch committed
552
553
554
555
556
557
558
559
560
561
562
563
564
565

exit 0

%else
# rhel

%if 0%{?use_systemd}
%systemd_post %{name}.service
%else
/sbin/chkconfig --add %{name}
%endif

if [ ${1:-0} -eq 1 ]
then
Markus Frosch's avatar
Markus Frosch committed
566
567
568
569
  # 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
Markus Frosch's avatar
Markus Frosch committed
570
571
572
573
574
575
576
fi

exit 0

%endif
# suse/rhel

577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
%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
Markus Frosch's avatar
Markus Frosch committed
596
597
  /sbin/service %{name} stop > /dev/null 2>&1 || :
  /sbin/chkconfig --del %{name} || :
598
599
600
601
602
603
604
605
606
fi
%endif

exit 0

%endif
# suse / rhel

%postun
Markus Frosch's avatar
Markus Frosch committed
607
608
# suse
%if "%{_vendor}" == "suse"
609
%if 0%{?use_systemd}
Markus Frosch's avatar
Markus Frosch committed
610
611
612
613
614
615
616
617
618
619
620
621
622
  %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
Markus Frosch's avatar
Markus Frosch committed
623
  /sbin/service %{name} condrestart >/dev/null 2>&1 || :
Markus Frosch's avatar
Markus Frosch committed
624
625
626
627
628
629
630
fi
%endif

%endif
# suse / rhel

if [ "$1" = "0" ]; then
Markus Frosch's avatar
Markus Frosch committed
631
632
  # deinstallation of the package - remove enabled features
  rm -rf %{_sysconfdir}/%{name}/features-enabled
Markus Frosch's avatar
Markus Frosch committed
633
634
635
636
fi

exit 0

637
638
639
640
%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}
Markus Frosch's avatar
Markus Frosch committed
641

642
643
644
%if "%{_vendor}" == "suse"
%verifyscript common
%verify_permissions -e %{_rundir}/%{name}/cmd
Markus Frosch's avatar
Markus Frosch committed
645
646
%endif

647
648
649
650
%post common
%if "%{_vendor}" == "suse"
%if 0%{?suse_version} >= 1310
%set_permissions %{_rundir}/%{name}/cmd
Markus Frosch's avatar
Markus Frosch committed
651
652
653
654
%endif
%endif

%post ido-mysql
655
if [ ${1:-0} -eq 1 ] && [ -e %{_sysconfdir}/%{name}/features-enabled/ido-mysql.conf ]
Markus Frosch's avatar
Markus Frosch committed
656
then
Markus Frosch's avatar
Markus Frosch committed
657
658
  # initial installation, enable ido-mysql feature
  ln -sf ../features-available/ido-mysql.conf %{_sysconfdir}/%{name}/features-enabled/ido-mysql.conf
Markus Frosch's avatar
Markus Frosch committed
659
660
661
662
663
664
fi

exit 0

%postun ido-mysql
if [ "$1" = "0" ]; then
Markus Frosch's avatar
Markus Frosch committed
665
666
  # deinstallation of the package - remove feature
  rm -f %{_sysconfdir}/%{name}/features-enabled/ido-mysql.conf
Markus Frosch's avatar
Markus Frosch committed
667
668
669
670
671
fi

exit 0

%post ido-pgsql
672
if [ ${1:-0} -eq 1 ] && [ -e %{_sysconfdir}/%{name}/features-enabled/ido-pgsql.conf ]
Markus Frosch's avatar
Markus Frosch committed
673
then
Markus Frosch's avatar
Markus Frosch committed
674
675
  # initial installation, enable ido-pgsql feature
  ln -sf ../features-available/ido-pgsql.conf %{_sysconfdir}/%{name}/features-enabled/ido-pgsql.conf
Markus Frosch's avatar
Markus Frosch committed
676
677
678
679
680
681
fi

exit 0

%postun ido-pgsql
if [ "$1" = "0" ]; then
Markus Frosch's avatar
Markus Frosch committed
682
683
  # deinstallation of the package - remove feature
  rm -f %{_sysconfdir}/%{name}/features-enabled/ido-pgsql.conf
Markus Frosch's avatar
Markus Frosch committed
684
685
686
687
fi

exit 0

688
%if 0%{?use_selinux}
Markus Frosch's avatar
Markus Frosch committed
689
690
691
692
%post selinux
for selinuxvariant in %{selinux_variants}
do
  /usr/sbin/semodule -s ${selinuxvariant} -i \
693
    %{_datadir}/selinux/${selinuxvariant}/%{selinux_modulename}.pp &> /dev/null || :
Markus Frosch's avatar
Markus Frosch committed
694
done
695
/sbin/fixfiles -R icinga2 restore &> /dev/null || :
Markus Frosch's avatar
Markus Frosch committed
696
697
698
699
700
701
702
703
704
/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
705
     /usr/sbin/semodule -s ${selinuxvariant} -r %{selinux_modulename} &> /dev/null || :
Markus Frosch's avatar
Markus Frosch committed
706
  done
707
  /sbin/fixfiles -R icinga2 restore &> /dev/null || :
Markus Frosch's avatar
Markus Frosch committed
708
709
710
711
712
713
714
715
716
717
718
  /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}
719

Markus Frosch's avatar
Markus Frosch committed
720
721
%if 0%{?use_systemd}
%attr(644,root,root) %{_unitdir}/%{name}.service
722
%if 0%{?configure_systemd_limits}
723
%dir /etc/systemd/system/%{name}.service.d
724
%attr(644,root,root) %config(noreplace) /etc/systemd/system/%{name}.service.d/limits.conf
725
%endif
Markus Frosch's avatar
Markus Frosch committed
726
%else
727
%attr(755,root,root) %config(noreplace) %{_sysconfdir}/init.d/%{name}
Markus Frosch's avatar
Markus Frosch committed
728
729
730
%endif
%if "%{_vendor}" == "suse"
%{_sbindir}/rc%{name}
Tim Hardeck's avatar
Tim Hardeck committed
731
732
%{_fillupdir}/sysconfig.%{name}
%else
Markus Frosch's avatar
Markus Frosch committed
733
734
%config(noreplace) %{_sysconfdir}/sysconfig/%{name}
%endif
735

736
737
%{_sbindir}/%{name}

738
739
740
741
%dir %{_libexecdir}/%{name}
%{_libexecdir}/%{name}/prepare-dirs
%{_libexecdir}/%{name}/safe-reload

742
%attr(0750,%{icinga_user},%{icinga_group}) %dir %{_sysconfdir}/%{name}
Markus Frosch's avatar
Markus Frosch committed
743
744
745
746
747
748
749
750
751
752
753
754
755
%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/*
756

757
758
759
760
761
762
763
764
765
766
767
768
%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

769
770
771
%files bin
%defattr(-,root,root,-)
%doc COPYING README.md NEWS AUTHORS CHANGELOG.md
Markus Frosch's avatar
Markus Frosch committed
772
%dir %{_libdir}/%{name}
773
774
775
776
777
778
779
780
781
782
783
%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}
784
785
%attr(0750,%{icinga_user},%{icinga_group}) %dir %{_datadir}/%{name}/include
%{_datadir}/%{name}/include/*
Markus Frosch's avatar
Markus Frosch committed
786
787
788
789
790
791

%files doc
%defattr(-,root,root,-)
%{_datadir}/doc/%{name}
%docdir %{_datadir}/doc/%{name}

FrostbyteGR's avatar
FrostbyteGR committed
792
%if %{with mysql}
Markus Frosch's avatar
Markus Frosch committed
793
794
%files ido-mysql
%defattr(-,root,root,-)
Michael Friedrich's avatar
Michael Friedrich committed
795
%doc COPYING README.md NEWS AUTHORS CHANGELOG.md
Markus Frosch's avatar
Markus Frosch committed
796
%config(noreplace) %attr(0640,%{icinga_user},%{icinga_group}) %{_sysconfdir}/%{name}/features-available/ido-mysql.conf
797
%{_libdir}/%{name}/libmysql_shim*
Markus Frosch's avatar
Markus Frosch committed
798
%{_datadir}/icinga2-ido-mysql
FrostbyteGR's avatar
FrostbyteGR committed
799
%endif
Markus Frosch's avatar
Markus Frosch committed
800

FrostbyteGR's avatar
FrostbyteGR committed
801
%if %{with pgsql}
Markus Frosch's avatar
Markus Frosch committed
802
803
%files ido-pgsql
%defattr(-,root,root,-)
Michael Friedrich's avatar
Michael Friedrich committed
804
%doc COPYING README.md NEWS AUTHORS CHANGELOG.md
Markus Frosch's avatar
Markus Frosch committed
805
%config(noreplace) %attr(0640,%{icinga_user},%{icinga_group}) %{_sysconfdir}/%{name}/features-available/ido-pgsql.conf
806
%{_libdir}/%{name}/libpgsql_shim*
Markus Frosch's avatar
Markus Frosch committed
807
%{_datadir}/icinga2-ido-pgsql
FrostbyteGR's avatar
FrostbyteGR committed
808
%endif
Markus Frosch's avatar
Markus Frosch committed
809

810
%if 0%{?use_selinux}
Markus Frosch's avatar
Markus Frosch committed
811
812
813
%files selinux
%defattr(-,root,root,0755)
%doc tools/selinux/*
814
%{_datadir}/selinux/*/%{selinux_modulename}.pp
Markus Frosch's avatar
Markus Frosch committed
815
816
817
818
819
%endif

%files -n vim-icinga2
%defattr(-,root,root,-)
%if "%{_vendor}" == "suse"
820
821
822
%{_datadir}/vim/site/syntax/%{name}.vim
%{_datadir}/vim/site/ftdetect/%{name}.vim
%else
Markus Frosch's avatar
Markus Frosch committed
823
824
825
826
827
828
%{_datadir}/vim/vimfiles/syntax/%{name}.vim
%{_datadir}/vim/vimfiles/ftdetect/%{name}.vim
%endif

%files -n nano-icinga2
%defattr(-,root,root,-)
829
830
831
%if "%{_vendor}" == "suse"
%dir %{_datadir}/nano
%endif
Markus Frosch's avatar
Markus Frosch committed
832
833
834
%{_datadir}/nano/%{name}.nanorc

%changelog
Noah Hilverling's avatar
Noah Hilverling committed
835
836
837
* Tue Dec 15 2020 Noah Hilverling <noah.hilverling@icinga.com> 2.12.3-1
- Update to 2.12.3

Julian Brost's avatar
Julian Brost committed
838
839
840
* Mon Nov 23 2020 Julian Brost <julian.brost@icinga.com> 2.12.2-1
- Update to 2.12.2

Alexander A. Klimov's avatar
Alexander A. Klimov committed
841
842
843
* Tue Oct 13 2020 Alexander A. Klimov <alexander.klimov@icinga.com> 2.12.1-1
- Update to 2.12.1

Henrik Triem's avatar
Henrik Triem committed
844
845
846
* Wed Aug 05 2020 Henrik Triem <henrik.triem@icinga.com> 2.12.0-1
- Update to 2.12.0

Noah Hilverling's avatar
Noah Hilverling committed
847
848
849
* Fri Mar 13 2020 Noah Hilverling <noah.hilverling@icinga.com> 2.12.0-0.rc1.1
- Update to 2.12.0-rc1

Michael Friedrich's avatar
Michael Friedrich committed
850
851
852
* Thu Oct 24 2019 Michael Friedrich <michael.friedrich@icinga.com> 2.11.2-1
- Update to 2.11.2

Michael Friedrich's avatar
Michael Friedrich committed
853
854
855
* Thu Oct 17 2019 Michael Friedrich <michael.friedrich@icinga.com> 2.11.1-1
- Update to 2.11.1

Michael Friedrich's avatar
Michael Friedrich committed
856
857
858
* Thu Sep 19 2019 Michael Friedrich <michael.friedrich@icinga.com> 2.11.0-1
- Update to 2.11.0

Michael Friedrich's avatar
Michael Friedrich committed
859
860
861
* Thu Jul 25 2019 Markus Frosch <markus.frosch@icinga.com> 2.11.0-0.rc1.1
- Prepare pre-release 2.11.0-rc1

Michael Friedrich's avatar
Michael Friedrich committed
862
863
864
* Tue Mar 19 2019 Michael Friedrich <michael.friedrich@icinga.com> 2.10.4-1
- Update to 2.10.4

865
866
867
868
* Tue Feb 26 2019 Michael Friedrich <michael.friedrich@icinga.com> 2.10.3-2
- Apply quickfix for SLES11

* Tue Feb 26 2019 Michael Friedrich <michael.friedrich@icinga.com> 2.10.3-1
Michael Friedrich's avatar
Michael Friedrich committed
869
870
- Update to 2.10.3

Michael Friedrich's avatar
Michael Friedrich committed
871
872
873
* Wed Nov 14 2018 Michael Friedrich <michael.friedrich@icinga.com> 2.10.2-1
- Update to 2.10.2

Michael Friedrich's avatar
Michael Friedrich committed
874
875
876
* Thu Oct 18 2018 Michael Friedrich <michael.friedrich@icinga.com> 2.10.1-1
- Update to 2.10.1

Michael Friedrich's avatar
Michael Friedrich committed
877
878
879
* Thu Oct 11 2018 Michael Friedrich <michael.friedrich@icinga.com> 2.10.0-1
- Update to 2.10.0

Michael Friedrich's avatar
Michael Friedrich committed
880
881
882
* Wed Sep 26 2018 Michael Friedrich <michael.friedrich@icinga.com> 2.9.2-1
- Update to 2.9.2

883
884
885
* Wed Jul 25 2018 Markus Frosch <markus.frosch@icinga.com> 2.10.0-0
- Remove obsoleted icinga2-libs package

Michael Friedrich's avatar
Michael Friedrich committed
886
887
888
* Tue Jul 24 2018 Michael Friedrich <michael.friedrich@icinga.com> 2.9.1-1
- Update to 2.9.1

Michael Friedrich's avatar
Michael Friedrich committed
889
890
891
* Tue Jul 17 2018 Michael Friedrich <michael.friedrich@icinga.com> 2.9.0-1
- Update to 2.9.0

Jean Flach's avatar
Jean Flach committed
892
893
894
* Wed Apr 25 2018 Jean Flach <jean.flach@icinga.com> 2.8.4-1
- Update to 2.8.4

Jean Flach's avatar
Jean Flach committed
895
896
897
* Tue Apr 24 2018 Jean Flach <jean.flach@icinga.com> 2.8.3-1
- Update to 2.8.3

Jean Flach's avatar
Jean Flach committed
898
899
* Thu Mar 22 2018 Jean Flach <jean-marcel.flach@icinga.com> 2.8.2-1
- Update to 2.8.2
Markus Frosch's avatar
Markus Frosch committed
900

Gunnar Beutner's avatar
Gunnar Beutner committed
901
902
903
* Wed Jan 17 2018 Gunnar Beutner <gunnar.beutner@icinga.com> 2.8.1-1
- Update to 2.8.1

Markus Frosch's avatar
Markus Frosch committed
904
905
906
907
908
909
910
* 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)

Jean Flach's avatar
Jean Flach committed
911
912
913
* Thu Nov 16 2017 Jean Flach <jean-marcel.flach@icinga.com> 2.8.0-1
- Update to 2.8.0

Gunnar Beutner's avatar
Gunnar Beutner committed
914
915
916
* Thu Nov 09 2017 Gunnar Beutner <gunnar.beutner@icinga.com> 2.7.2-1
- Update to 2.7.2

Markus Frosch's avatar
Markus Frosch committed
917
* Mon Oct 02 2017 Markus Frosch <markus.frosch@icinga.com> 2.7.1-2
Markus Frosch's avatar
Markus Frosch committed
918
919
920
921
922
- 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

923
924
* Tue Jun 20 2017 Markus Frosch <markus.frosch@icinga.com> 2.7.0-1
- Update to 2.7.0