Search
j0ke.net Open Build Service
>
Projects
>
server:monitoring
>
check_mk
> Changes
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 2
[-]
[+]
Changed
check_mk.spec
@@ -67,7 +67,7 @@ BuildRequires: unzip %endif # systemd -%if 0%{?suse_version} >= 1210 +%if 0%{?suse_version} >= 1210 || 0%{?rhel} >= 7 BuildRequires: systemd %{?systemd_requires} %endif @@ -454,7 +454,7 @@ install -Dm 644 %{buildroot}/$agentsdir/xinetd_caching.conf %{buildroot}%{_sysconfdir}/xinetd.d/check_mk-caching # install systemd service and socket units for socket activation -%if 0%{?suse_version} >= 1210 +%if 0%{?suse_version} >= 1210 || 0%{?rhel} >= 7 install -Dm 644 %{SOURCE9} %{buildroot}%{_unitdir}/%{name}-agent@.service sed -e 's/-agent$/-caching-agent/' < %{buildroot}%{_unitdir}/%{name}-agent@.service > %{buildroot}%{_unitdir}/%{name}-caching-agent@.service install -Dm 644 %{SOURCE10} %{buildroot}%{_unitdir}/%{name}-agent.socket @@ -529,13 +529,13 @@ %endif %pre agent -%if 0%{?suse_version} >= 1210 +%if 0%{?suse_version} >= 1210 || 0%{?rhel} >= 7 %service_add_pre %{name}-agent.socket %{name}-agent@.service %endif %post agent # ensure xinetd is enabled if the package is installed for the first time -%if 0%{?suse_version} >= 1210 +%if 0%{?suse_version} >= 1210 || 0%{?rhel} >= 7 %service_add_post xinetd.service %service_add_post %{name}-agent.socket %{name}-agent@.service %else @@ -543,12 +543,12 @@ %endif %preun agent -%if 0%{?suse_version} >= 1210 +%if 0%{?suse_version} >= 1210 || 0%{?rhel} >= 7 %service_del_preun %{name}-agent.socket %{name}-agent@.service %endif %postun agent -%if 0%{?suse_version} >= 1210 +%if 0%{?suse_version} >= 1210 || 0%{?rhel} >= 7 %service_del_postun xinetd.service %service_del_postun %{name}-agent.socket %{name}-agent@.service %else @@ -556,12 +556,12 @@ %endif %pre caching-agent -%if 0%{?suse_version} >= 1210 +%if 0%{?suse_version} >= 1210 || 0%{?rhel} >= 7 %service_add_pre %{name}-caching-agent.socket %{name}-caching-agent@.service %endif %post caching-agent -%if 0%{?suse_version} >= 1210 +%if 0%{?suse_version} >= 1210 || 0%{?rhel} >= 7 %service_add_post xinetd.service %service_add_post %{name}-caching-agent.socket %{name}-caching-agent@.service %else @@ -569,12 +569,12 @@ %endif %preun caching-agent -%if 0%{?suse_version} >= 1210 +%if 0%{?suse_version} >= 1210 || 0%{?rhel} >= 7 %service_del_preun %{name}-caching-agent.socket %{name}-caching-agent@.service %endif %postun caching-agent -%if 0%{?suse_version} >= 1210 +%if 0%{?suse_version} >= 1210 || 0%{?rhel} >= 7 %service_del_postun xinetd.service %service_del_postun %{name}-caching-agent.socket %{name}-caching-agent@.service %else @@ -684,7 +684,7 @@ %{_bindir}/waitmax %{_bindir}/mk-job %config(noreplace) %{_sysconfdir}/xinetd.d/%{name} -%if 0%{?suse_version} >= 1210 +%if 0%{?suse_version} >= 1210 || 0%{?rhel} >= 7 %{_unitdir}/%{name}-agent@.service %{_unitdir}/%{name}-agent.socket %endif @@ -698,7 +698,7 @@ %defattr(-,root,root) %{_bindir}/check_mk_caching_agent %config(noreplace) %{_sysconfdir}/xinetd.d/%{name}-caching -%if 0%{?suse_version} >= 1210 +%if 0%{?suse_version} >= 1210 || 0%{?rhel} >= 7 %{_unitdir}/%{name}-caching-agent@.service %{_unitdir}/%{name}-caching-agent.socket %endif