From b5c4927cf688f007358db5b88b7540b52a01a76b Mon Sep 17 00:00:00 2001 From: Andrea Veri Date: Oct 03 2016 12:55:20 +0000 Subject: socket and service file should only be installed on RHEL >= 7 and Fedora --- diff --git a/check-mk.spec b/check-mk.spec index fe8a0fe..2efc29c 100644 --- a/check-mk.spec +++ b/check-mk.spec @@ -393,8 +393,10 @@ rmdir %{buildroot}%{_prefix}/lib/check_mk %{_bindir}/waitmax %{_bindir}/mk-job %{_datadir}/check-mk-agent +%if 0%{?fedora} || 0%{?rhel} >= 7 %{_unitdir}/check_mk@.service %{_unitdir}/check_mk.socket +%endif %config(noreplace) %{_sysconfdir}/xinetd.d/check-mk-agent %config(noreplace) %{_sysconfdir}/xinetd.d/check-mk-caching-agent %config(noreplace) %{_sysconfdir}/check-mk-agent