mirror of
https://github.com/Icinga/icinga2.git
synced 2025-06-20 13:40:19 +02:00
parent
41378a6c2d
commit
28e40caed2
24
icinga2.spec
24
icinga2.spec
@ -107,6 +107,13 @@ BuildRequires: bison
|
|||||||
BuildRequires: make
|
BuildRequires: make
|
||||||
%if 0%{?fedora}
|
%if 0%{?fedora}
|
||||||
BuildRequires: wxGTK3-devel
|
BuildRequires: wxGTK3-devel
|
||||||
|
BuildRequires: firewalld-filesystem
|
||||||
|
Requires: firewalld-filesystem
|
||||||
|
Requires(post): firewalld-filesystem
|
||||||
|
%endif
|
||||||
|
%if 0%{?rhel} == 7
|
||||||
|
Requires: firewalld
|
||||||
|
Requires(post): firewalld
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if 0%{?build_icinga_org} && "%{_vendor}" == "redhat" && (0%{?el5} || 0%{?rhel} == 5 || "%{?dist}" == ".el5" || 0%{?el6} || 0%{?rhel} == 6 || "%{?dist}" == ".el6")
|
%if 0%{?build_icinga_org} && "%{_vendor}" == "redhat" && (0%{?el5} || 0%{?rhel} == 5 || "%{?dist}" == ".el5" || 0%{?el6} || 0%{?rhel} == 6 || "%{?dist}" == ".el6")
|
||||||
@ -366,6 +373,11 @@ Categories=GTK;Utility;
|
|||||||
Keywords=Monitoring;" > %{buildroot}%{_datadir}/applications/icinga2-studio.desktop
|
Keywords=Monitoring;" > %{buildroot}%{_datadir}/applications/icinga2-studio.desktop
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
%if 0%{?fedora} || 0%{?rhel} == 7
|
||||||
|
mkdir -p %{buildroot}%{_prefix}/lib/firewalld/services
|
||||||
|
install -p -m 644 tools/firewalld/%{name}.xml %{buildroot}%{_prefix}/lib/firewalld/services
|
||||||
|
%endif
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
[ "%{buildroot}" != "/" ] && [ -d "%{buildroot}" ] && rm -rf %{buildroot}
|
[ "%{buildroot}" != "/" ] && [ -d "%{buildroot}" ] && rm -rf %{buildroot}
|
||||||
|
|
||||||
@ -396,6 +408,14 @@ getent passwd %{icinga_user} >/dev/null || %{_sbindir}/useradd -c "icinga" -s /s
|
|||||||
|
|
||||||
%endif #suse/rhel
|
%endif #suse/rhel
|
||||||
|
|
||||||
|
%if 0%{?fedora}
|
||||||
|
%firewalld_reload
|
||||||
|
%endif
|
||||||
|
%if 0%{?rhel} == 7
|
||||||
|
test -f /usr/bin/firewall-cmd && firewall-cmd --reload --quiet || :
|
||||||
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%post common
|
%post common
|
||||||
# suse
|
# suse
|
||||||
%if "%{_vendor}" == "suse"
|
%if "%{_vendor}" == "suse"
|
||||||
@ -598,6 +618,10 @@ fi
|
|||||||
%attr(0750,%{icinga_user},%{icingacmd_group}) %ghost %{_rundir}/%{name}
|
%attr(0750,%{icinga_user},%{icingacmd_group}) %ghost %{_rundir}/%{name}
|
||||||
%attr(2750,%{icinga_user},%{icingacmd_group}) %ghost %{_rundir}/%{name}/cmd
|
%attr(2750,%{icinga_user},%{icingacmd_group}) %ghost %{_rundir}/%{name}/cmd
|
||||||
|
|
||||||
|
%if 0%{?fedora} || 0%{?rhel} == 7
|
||||||
|
%{_prefix}/lib/firewalld/services/%{name}.xml
|
||||||
|
%endif
|
||||||
|
|
||||||
%files libs
|
%files libs
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc COPYING COPYING.Exceptions README.md NEWS AUTHORS ChangeLog
|
%doc COPYING COPYING.Exceptions README.md NEWS AUTHORS ChangeLog
|
||||||
|
7
tools/firewalld/icinga2.xml
Normal file
7
tools/firewalld/icinga2.xml
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
|
<service>
|
||||||
|
<short>Icinga2</short>
|
||||||
|
<description>Icinga 2 is an open source monitoring system which checks the availability of your network resources, notifies users of outages, and generates performance data for reporting. Enable this for API, cluster and agent communication.</description>
|
||||||
|
<port protocol="tcp" port="5665"/>
|
||||||
|
</service>
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user