1 #/******************************************************************************
3 # * Copyright (C) 2012-2016 Icinga Development Team (https://www.icinga.org/) *
5 # * This program is free software; you can redistribute it and/or *
6 # * modify it under the terms of the GNU General Public License *
7 # * as published by the Free Software Foundation; either version 2 *
8 # * of the License, or (at your option) any later version. *
10 # * This program is distributed in the hope that it will be useful, *
11 # * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12 # * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13 # * GNU General Public License for more details. *
15 # * You should have received a copy of the GNU General Public License *
16 # * along with this program; if not, write to the Free Software Foundation *
17 # * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. *
18 # ******************************************************************************/
22 # make sure that _rundir is working on older systems
23 %if ! %{defined _rundir}
24 %define _rundir %{_localstatedir}/run
27 %define _libexecdir %{_prefix}/lib/
29 %if "%{_vendor}" == "redhat"
30 %define apachename httpd
31 %define apacheconfdir %{_sysconfdir}/httpd/conf.d
32 %define apacheuser apache
33 %define apachegroup apache
36 %if %(uname -m) != "x86_64"
37 %define march_flag -march=i686
45 %if "%{_vendor}" == "suse"
46 %define apachename apache2
47 %define apacheconfdir %{_sysconfdir}/apache2/conf.d
48 %define apacheuser wwwrun
49 %define apachegroup www
50 %if 0%{?suse_version} >= 1310
57 %define icinga_user icinga
58 %define icinga_group icinga
59 %define icingacmd_group icingacmd
60 %define icingaweb2name icingaweb2
61 %define icingaweb2version 2.0.0
63 %define icingaclassicconfdir %{_sysconfdir}/icinga
65 %define logmsg logger -t %{name}/rpm
67 Summary: Network monitoring application
70 Release: %{revision}%{?dist}
72 Group: Applications/System
73 Source: https://github.com/Icinga/%{name}/archive/v%{version}.tar.gz
74 URL: https://www.icinga.org/
75 BuildRoot: %{_tmppath}/%{name}-%{version}-build
76 Requires: %{name}-bin = %{version}-%{release}
79 Meta package for Icinga 2 Core, DB IDO and Web.
82 Summary: Icinga 2 binaries and libraries
83 Group: Applications/System
85 %if "%{_vendor}" == "suse"
87 Provides: monitoring_daemon
88 Recommends: monitoring-plugins
89 %if 0%{?suse_version} >= 1310
90 BuildRequires: libyajl-devel
93 BuildRequires: libedit-devel
94 BuildRequires: ncurses-devel
95 %if "%{_vendor}" == "suse" && 0%{?suse_version} < 1210
96 BuildRequires: gcc48-c++
97 BuildRequires: libstdc++47-devel
98 BuildRequires: libopenssl1-devel
100 BuildRequires: gcc-c++
101 BuildRequires: libstdc++-devel
102 BuildRequires: openssl-devel
105 BuildRequires: flex >= 2.5.35
109 BuildRequires: wxGTK3-devel
110 BuildRequires: firewalld-filesystem
111 Requires: firewalld-filesystem
112 Requires(post): firewalld-filesystem
116 Requires(post): firewalld
119 %if 0%{?build_icinga_org} && "%{_vendor}" == "redhat" && (0%{?el5} || 0%{?rhel} == 5 || "%{?dist}" == ".el5" || 0%{?el6} || 0%{?rhel} == 6 || "%{?dist}" == ".el6")
120 # el5 and el6 require packages.icinga.org
121 BuildRequires: boost153-devel
123 %if 0%{?build_icinga_org} && "%{_vendor}" == "suse" && 0%{?suse_version} < 1310
124 # sles 11 sp3 requires packages.icinga.org
125 BuildRequires: boost153-devel
127 BuildRequires: boost-devel >= 1.41
132 BuildRequires: systemd
136 Requires: %{name}-libs = %{version}-%{release}
139 Icinga 2 is a general-purpose network monitoring application.
140 Provides binaries for Icinga 2 Core.
143 Summary: Common Icinga 2 configuration
144 Group: Applications/System
145 %if "%{_vendor}" == "redhat"
146 Requires(pre): shadow-utils
147 Requires(post): shadow-utils
149 %if "%{_vendor}" == "suse"
150 Recommends: logrotate
154 Provides common directories, uid and gid among Icinga 2 related
159 Summary: Documentation for Icinga 2
160 Group: Applications/System
161 Requires: %{name} = %{version}-%{release}
164 Provides documentation for Icinga 2.
168 Summary: Libraries for Icinga 2
169 Group: Applications/System
170 Requires: %{name}-common = %{version}-%{release}
173 Provides internal libraries for the daemon or studio.
177 Summary: IDO MySQL database backend for Icinga 2
178 Group: Applications/System
179 %if "%{_vendor}" == "suse"
180 BuildRequires: libmysqlclient-devel
181 %if 0%{?suse_version} >= 1310
182 BuildRequires: mysql-devel
186 BuildRequires: mysql-devel
189 Requires: %{name} = %{version}-%{release}
191 %description ido-mysql
192 Icinga 2 IDO mysql database backend. Compatible with Icinga 1.x
193 IDOUtils schema >= 1.12
197 Summary: IDO PostgreSQL database backend for Icinga 2
198 Group: Applications/System
199 BuildRequires: postgresql-devel
200 Requires: %{name} = %{version}-%{release}
202 %description ido-pgsql
203 Icinga 2 IDO PostgreSQL database backend. Compatible with Icinga 1.x
204 IDOUtils schema >= 1.12
207 %package classicui-config
208 Summary: Icinga 2 Classic UI Standalone configuration
209 Group: Applications/System
210 BuildRequires: %{apachename}
211 Requires: %{apachename}
212 Requires: %{name} = %{version}-%{release}
213 %if "%{_vendor}" == "suse"
214 Recommends: icinga-www
216 Provides: icinga-classicui-config
217 Conflicts: icinga-gui-config
219 %description classicui-config
220 Icinga 1.x Classic UI Standalone configuration with locations
223 %if "%{_vendor}" == "redhat" && !(0%{?el5} || 0%{?rhel} == 5 || "%{?dist}" == ".el5" || 0%{?el6} || 0%{?rhel} == 6 || "%{?dist}" == ".el6")
224 %global selinux_variants mls targeted
225 %{!?_selinux_policy_version: %global _selinux_policy_version %(sed -e 's,.*selinux-policy-\\([^/]*\\)/.*,\\1,' /usr/share/selinux/devel/policyhelp 2>/dev/null)}
226 %global modulename %{name}
229 Summary: SELinux policy module supporting icinga2
230 Group: System Environment/Base
231 BuildRequires: checkpolicy, selinux-policy-devel, /usr/share/selinux/devel/policyhelp, hardlink
232 %if "%{_selinux_policy_version}" != ""
233 Requires: selinux-policy >= %{_selinux_policy_version}
235 Requires: %{name} = %{version}-%{release}
236 Requires(post): /usr/sbin/semodule, /sbin/restorecon
237 Requires(postun): /usr/sbin/semodule, /sbin/restorecon
240 SELinux policy module supporting icinga2
246 Summary: Studio for Icinga 2
247 Group: Applications/System
248 Requires: %{name}-libs = %{version}-%{release}
252 Provides a GUI for the Icinga 2 API.
257 %setup -q -n %{name}-%{version}
260 CMAKE_OPTS="-DCMAKE_INSTALL_PREFIX=/usr \
261 -DCMAKE_INSTALL_SYSCONFDIR=/etc \
262 -DCMAKE_INSTALL_LOCALSTATEDIR=/var \
263 -DCMAKE_BUILD_TYPE=RelWithDebInfo \
264 -DCMAKE_VERBOSE_MAKEFILE=ON \
265 -DBoost_NO_BOOST_CMAKE=ON \
266 -DICINGA2_RUNDIR=%{_rundir} \
267 -DICINGA2_USER=%{icinga_user} \
268 -DICINGA2_GROUP=%{icinga_group} \
269 -DICINGA2_COMMAND_GROUP=%{icingacmd_group}"
271 CMAKE_OPTS="$CMAKE_OPTS -DICINGA2_WITH_STUDIO=true"
273 %if "%{_vendor}" == "redhat"
274 %if 0%{?el5} || 0%{?rhel} == 5 || "%{?dist}" == ".el5" || 0%{?el6} || 0%{?rhel} == 6 || "%{?dist}" == ".el6"
275 # Boost_VERSION 1.41.0 vs 101400 - disable build tests
276 # details in https://dev.icinga.org/issues/5033
277 CMAKE_OPTS="$CMAKE_OPTS -DBOOST_LIBRARYDIR=/usr/lib/boost153 \
278 -DBOOST_INCLUDEDIR=/usr/include/boost153 \
279 -DBoost_ADDITIONAL_VERSIONS='1.53;1.53.0' \
280 -DBoost_NO_SYSTEM_PATHS=TRUE \
281 -DBUILD_TESTING=FALSE \
282 -DBoost_NO_BOOST_CMAKE=TRUE"
284 %if 0%{?el6} || 0%{?rhel} == 6 || "%{?dist}" == ".el6"
285 CMAKE_OPTS="$CMAKE_OPTS -DBUILD_TESTING=FALSE"
289 %if "%{_vendor}" != "suse"
290 CMAKE_OPTS="$CMAKE_OPTS -DICINGA2_PLUGINDIR=%{_libdir}/nagios/plugins"
292 %if 0%{?suse_version} < 1310
293 CMAKE_OPTS="$CMAKE_OPTS -DBOOST_LIBRARYDIR=/usr/lib/boost153 \
294 -DBOOST_INCLUDEDIR=/usr/include/boost153 \
295 -DBoost_ADDITIONAL_VERSIONS='1.53;1.53.0' \
296 -DBoost_NO_SYSTEM_PATHS=TRUE \
297 -DBUILD_TESTING=FALSE \
298 -DBoost_NO_BOOST_CMAKE=TRUE"
300 CMAKE_OPTS="$CMAKE_OPTS -DICINGA2_PLUGINDIR=%{_prefix}/lib/nagios/plugins"
304 CMAKE_OPTS="$CMAKE_OPTS -DUSE_SYSTEMD=ON"
307 cmake $CMAKE_OPTS -DCMAKE_C_FLAGS:STRING="%{optflags} %{?march_flag}" -DCMAKE_CXX_FLAGS:STRING="%{optflags} %{?march_flag}" .
311 %if "%{_vendor}" == "redhat" && !(0%{?el5} || 0%{?rhel} == 5 || "%{?dist}" == ".el5" || 0%{?el6} || 0%{?rhel} == 6 || "%{?dist}" == ".el6")
313 for selinuxvariant in %{selinux_variants}
315 make NAME=${selinuxvariant} -f /usr/share/selinux/devel/Makefile
316 mv %{modulename}.pp %{modulename}.pp.${selinuxvariant}
317 make NAME=${selinuxvariant} -f /usr/share/selinux/devel/Makefile clean
324 DESTDIR="%{buildroot}"
326 # install classicui config
327 install -D -m 0644 etc/icinga/icinga-classic.htpasswd %{buildroot}%{icingaclassicconfdir}/passwd
328 install -D -m 0644 etc/icinga/cgi.cfg %{buildroot}%{icingaclassicconfdir}/cgi.cfg
329 install -D -m 0644 etc/icinga/icinga-classic-apache.conf %{buildroot}%{apacheconfdir}/icinga.conf
331 # remove features-enabled symlinks
332 rm -f %{buildroot}/%{_sysconfdir}/%{name}/features-enabled/*.conf
334 # enable suse rc links
335 %if "%{_vendor}" == "suse"
337 ln -sf /usr/sbin/service %{buildroot}%{_sbindir}/rc%{name}
339 ln -sf ../../%{_initrddir}/%{name} "%{buildroot}%{_sbindir}/rc%{name}"
341 mkdir -p "%{buildroot}%{_localstatedir}/adm/fillup-templates/"
342 mv "%{buildroot}%{_sysconfdir}/sysconfig/%{name}" "%{buildroot}%{_localstatedir}/adm/fillup-templates/sysconfig.%{name}"
345 %if "%{_vendor}" == "redhat" && !(0%{?el5} || 0%{?rhel} == 5 || "%{?dist}" == ".el5" || 0%{?el6} || 0%{?rhel} == 6 || "%{?dist}" == ".el6")
347 for selinuxvariant in %{selinux_variants}
349 install -d %{buildroot}%{_datadir}/selinux/${selinuxvariant}
350 install -p -m 644 %{modulename}.pp.${selinuxvariant} \
351 %{buildroot}%{_datadir}/selinux/${selinuxvariant}/%{modulename}.pp
355 /usr/sbin/hardlink -cv %{buildroot}%{_datadir}/selinux
359 mkdir -p "%{buildroot}%{_datadir}/icinga2-studio"
360 install -p -m 644 icinga-studio/icinga.ico %{buildroot}%{_datadir}/icinga2-studio
362 mkdir -p "%{buildroot}%{_datadir}/applications"
363 echo "[Desktop Entry]
365 Comment=API viewer for Icinga 2
366 TryExec=icinga-studio
368 Icon=/usr/share/icinga2-studio/icinga.ico
372 Categories=GTK;Utility;
373 Keywords=Monitoring;" > %{buildroot}%{_datadir}/applications/icinga2-studio.desktop
376 %if 0%{?fedora} || 0%{?rhel} == 7
377 mkdir -p %{buildroot}%{_prefix}/lib/firewalld/services
378 install -p -m 644 tools/firewalld/%{name}.xml %{buildroot}%{_prefix}/lib/firewalld/services
382 [ "%{buildroot}" != "/" ] && [ -d "%{buildroot}" ] && rm -rf %{buildroot}
385 getent group %{icinga_group} >/dev/null || %{_sbindir}/groupadd -r %{icinga_group}
386 getent group %{icingacmd_group} >/dev/null || %{_sbindir}/groupadd -r %{icingacmd_group}
387 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}
389 %if "%{_vendor}" == "suse"
391 %service_add_pre %{name}.service
395 %if "%{_vendor}" == "suse"
397 %verify_permissions -e %{_rundir}/%{name}/cmd
403 %if "%{_vendor}" == "suse"
405 %if 0%{?suse_version} >= 1310
406 %set_permissions %{_rundir}/%{name}/cmd
415 test -f /usr/bin/firewall-cmd && firewall-cmd --reload --quiet || :
421 %if "%{_vendor}" == "suse"
424 %service_add_post %{name}.service
426 %fillup_and_insserv %{name}
429 # initial installation, enable default features
430 for feature in checker notification mainlog; do
431 ln -sf ../features-available/${feature}.conf %{_sysconfdir}/%{name}/features-enabled/${feature}.conf
440 %systemd_post %{name}.service
442 /sbin/chkconfig --add %{name}
447 # initial installation, enable default features
448 for feature in checker notification mainlog; do
449 ln -sf ../features-available/${feature}.conf %{_sysconfdir}/%{name}/features-enabled/${feature}.conf
460 %if "%{_vendor}" == "suse"
461 %if 0%{?using_systemd}
462 %service_del_postun %{name}.service
464 %restart_on_update %{name}
472 %systemd_postun_with_restart %{name}.service
474 if [ "$1" -ge "1" ]; then
475 /sbin/service %{name} condrestart >/dev/null 2>&1 || :
482 if [ "$1" = "0" ]; then
483 # deinstallation of the package - remove enabled features
484 rm -rf %{_sysconfdir}/%{name}/features-enabled
491 %if "%{_vendor}" == "suse"
494 %service_del_preun %{name}.service
496 %stop_on_removal %{name}
505 %systemd_preun %{name}.service
507 if [ "$1" = "0" ]; then
508 /sbin/service %{name} stop > /dev/null 2>&1 || :
509 /sbin/chkconfig --del %{name} || :
521 # initial installation, enable ido-mysql feature
522 ln -sf ../features-available/ido-mysql.conf %{_sysconfdir}/%{name}/features-enabled/ido-mysql.conf
528 if [ "$1" = "0" ]; then
529 # deinstallation of the package - remove feature
530 rm -f %{_sysconfdir}/%{name}/features-enabled/ido-mysql.conf
538 # initial installation, enable ido-pgsql feature
539 ln -sf ../features-available/ido-pgsql.conf %{_sysconfdir}/%{name}/features-enabled/ido-pgsql.conf
545 if [ "$1" = "0" ]; then
546 # deinstallation of the package - remove feature
547 rm -f %{_sysconfdir}/%{name}/features-enabled/ido-pgsql.conf
552 %post classicui-config
555 # initial installation, enable features
556 for feature in statusdata compatlog command; do
557 ln -sf ../features-available/${feature}.conf %{_sysconfdir}/%{name}/features-enabled/${feature}.conf
563 %postun classicui-config
564 if [ "$1" = "0" ]; then
565 # deinstallation of the package - remove feature
566 for feature in statusdata compatlog command; do
567 rm -f %{_sysconfdir}/%{name}/features-enabled/${feature}.conf
573 %if "%{_vendor}" == "redhat" && !(0%{?el5} || 0%{?rhel} == 5 || "%{?dist}" == ".el5" || 0%{?el6} || 0%{?rhel} == 6 || "%{?dist}" == ".el6")
575 for selinuxvariant in %{selinux_variants}
577 /usr/sbin/semodule -s ${selinuxvariant} -i \
578 %{_datadir}/selinux/${selinuxvariant}/%{modulename}.pp &> /dev/null || :
580 /sbin/fixfiles -R icinga2-bin restore &> /dev/null || :
581 /sbin/fixfiles -R icinga2-common restore &> /dev/null || :
582 /sbin/semanage port -a -t icinga2_port_t -p tcp 5665 &> /dev/null || :
585 if [ $1 -eq 0 ] ; then
586 /sbin/semanage port -d -t icinga2_port_t -p tcp 5665 &> /dev/null || :
587 for selinuxvariant in %{selinux_variants}
589 /usr/sbin/semodule -s ${selinuxvariant} -r %{modulename} &> /dev/null || :
591 /sbin/fixfiles -R icinga2-bin restore &> /dev/null || :
592 /sbin/fixfiles -R icinga2-common restore &> /dev/null || :
598 %defattr(-,root,root,-)
602 %defattr(-,root,root,-)
603 %doc COPYING COPYING.Exceptions README.md NEWS AUTHORS ChangeLog
605 %dir %{_libdir}/%{name}/sbin
606 %{_libdir}/%{name}/sbin/%{name}
608 %exclude %{_datadir}/%{name}/include
609 %{_mandir}/man8/%{name}.8.gz
611 %attr(0750,%{icinga_user},%{icingacmd_group}) %{_localstatedir}/cache/%{name}
612 %attr(0750,%{icinga_user},%{icingacmd_group}) %dir %{_localstatedir}/log/%{name}
613 %attr(0750,%{icinga_user},%{icinga_group}) %dir %{_localstatedir}/log/%{name}/crash
614 %attr(0750,%{icinga_user},%{icingacmd_group}) %dir %{_localstatedir}/log/%{name}/compat
615 %attr(0750,%{icinga_user},%{icingacmd_group}) %dir %{_localstatedir}/log/%{name}/compat/archives
616 %attr(0750,%{icinga_user},%{icinga_group}) %{_localstatedir}/lib/%{name}
618 %attr(0750,%{icinga_user},%{icingacmd_group}) %ghost %{_rundir}/%{name}
619 %attr(2750,%{icinga_user},%{icingacmd_group}) %ghost %{_rundir}/%{name}/cmd
621 %if 0%{?fedora} || 0%{?rhel} == 7
622 %{_prefix}/lib/firewalld/services/%{name}.xml
626 %defattr(-,root,root,-)
627 %doc COPYING COPYING.Exceptions README.md NEWS AUTHORS ChangeLog
628 %exclude %{_libdir}/%{name}/libdb_ido_mysql*
629 %exclude %{_libdir}/%{name}/libdb_ido_pgsql*
630 %dir %{_libdir}/%{name}
631 %{_libdir}/%{name}/*.so*
634 %defattr(-,root,root,-)
635 %doc COPYING COPYING.Exceptions README.md NEWS AUTHORS ChangeLog tools/syntax
636 %attr(0750,%{icinga_user},%{icingacmd_group}) %dir %{_localstatedir}/log/%{name}
637 %config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
638 %{_sysconfdir}/bash_completion.d/%{name}
640 %attr(644,root,root) %{_unitdir}/%{name}.service
642 %attr(755,root,root) %{_sysconfdir}/init.d/%{name}
644 %if "%{_vendor}" == "suse"
645 %{_sbindir}/rc%{name}
646 %{_localstatedir}/adm/fillup-templates/sysconfig.%{name}
648 %config(noreplace) %{_sysconfdir}/sysconfig/%{name}
650 %attr(0750,root,%{icinga_group}) %dir %{_sysconfdir}/%{name}
651 %attr(0750,%{icinga_user},%{icinga_group}) %dir %{_sysconfdir}/%{name}/conf.d
652 %attr(0750,%{icinga_user},%{icinga_group}) %dir %{_sysconfdir}/%{name}/features-available
653 %exclude %{_sysconfdir}/%{name}/features-available/ido-*.conf
654 %attr(0750,%{icinga_user},%{icinga_group}) %dir %{_sysconfdir}/%{name}/features-enabled
655 %attr(0750,%{icinga_user},%{icinga_group}) %dir %{_sysconfdir}/%{name}/repository.d
656 %attr(0750,%{icinga_user},%{icinga_group}) %dir %{_sysconfdir}/%{name}/scripts
657 %attr(0750,%{icinga_user},%{icinga_group}) %dir %{_sysconfdir}/%{name}/repository.d
658 %attr(0750,%{icinga_user},%{icinga_group}) %dir %{_sysconfdir}/%{name}/zones.d
659 %config(noreplace) %attr(0640,%{icinga_user},%{icinga_group}) %{_sysconfdir}/%{name}/%{name}.conf
660 %config(noreplace) %attr(0640,root,%{icinga_group}) %{_sysconfdir}/%{name}/init.conf
661 %config(noreplace) %attr(0640,%{icinga_user},%{icinga_group}) %{_sysconfdir}/%{name}/constants.conf
662 %config(noreplace) %attr(0640,%{icinga_user},%{icinga_group}) %{_sysconfdir}/%{name}/zones.conf
663 %config(noreplace) %attr(0640,%{icinga_user},%{icinga_group}) %{_sysconfdir}/%{name}/conf.d/*.conf
664 %config(noreplace) %attr(0640,%{icinga_user},%{icinga_group}) %{_sysconfdir}/%{name}/features-available/*.conf
665 %config(noreplace) %attr(0640,%{icinga_user},%{icinga_group}) %{_sysconfdir}/%{name}/repository.d/*
666 %config(noreplace) %attr(0640,%{icinga_user},%{icinga_group}) %{_sysconfdir}/%{name}/zones.d/*
667 %config(noreplace) %{_sysconfdir}/%{name}/scripts/*
668 %dir %{_libexecdir}/%{name}
669 %{_libexecdir}/%{name}/prepare-dirs
670 %{_libexecdir}/%{name}/safe-reload
671 %attr(0750,%{icinga_user},%{icinga_group}) %dir %{_localstatedir}/spool/%{name}
672 %attr(0770,%{icinga_user},%{icinga_group}) %dir %{_localstatedir}/spool/%{name}/perfdata
673 %attr(0750,%{icinga_user},%{icinga_group}) %dir %{_localstatedir}/spool/%{name}/tmp
674 %attr(0750,%{icinga_user},%{icinga_group}) %dir %{_datadir}/%{name}/include
675 %{_datadir}/%{name}/include
678 %defattr(-,root,root,-)
679 %{_datadir}/doc/%{name}
680 %docdir %{_datadir}/doc/%{name}
683 %defattr(-,root,root,-)
684 %doc COPYING COPYING.Exceptions README.md NEWS AUTHORS ChangeLog
685 %config(noreplace) %attr(0640,%{icinga_user},%{icinga_group}) %{_sysconfdir}/%{name}/features-available/ido-mysql.conf
686 %{_libdir}/%{name}/libdb_ido_mysql*
687 %{_datadir}/icinga2-ido-mysql
690 %defattr(-,root,root,-)
691 %doc COPYING COPYING.Exceptions README.md NEWS AUTHORS ChangeLog
692 %config(noreplace) %attr(0640,%{icinga_user},%{icinga_group}) %{_sysconfdir}/%{name}/features-available/ido-pgsql.conf
693 %{_libdir}/%{name}/libdb_ido_pgsql*
694 %{_datadir}/icinga2-ido-pgsql
696 %files classicui-config
697 %defattr(-,root,root,-)
698 %attr(0751,%{icinga_user},%{icinga_group}) %dir %{icingaclassicconfdir}
699 %config(noreplace) %{icingaclassicconfdir}/cgi.cfg
700 %config(noreplace) %{apacheconfdir}/icinga.conf
701 %config(noreplace) %attr(0640,root,%{apachegroup}) %{icingaclassicconfdir}/passwd
703 %if "%{_vendor}" == "redhat" && !(0%{?el5} || 0%{?rhel} == 5 || "%{?dist}" == ".el5" || 0%{?el6} || 0%{?rhel} == 6 || "%{?dist}" == ".el6")
705 %defattr(-,root,root,0755)
707 %{_datadir}/selinux/*/%{modulename}.pp
712 %defattr(-,root,root,-)
713 %{_bindir}/icinga-studio
714 %{_datadir}/icinga2-studio
715 %{_datadir}/applications/icinga2-studio.desktop