Only provide the SELinux policy for el7

tags/zabbix-agent-addons-0.2.20-1 0.2.18_1_el7
Daniel Berteaud 7 years ago
parent 6c1bdb43ee
commit 2903b025af
  1. 9
      zabbix-agent-addons.spec

@ -1,10 +1,10 @@
%if 0%{?rhel} && 0%{?rhel} < 5 %if 0%{?rhel} && 0%{?rhel} < 7
%global _without_selinux 1 %global _without_selinux 1
%endif %endif
Summary: Scripts for Zabbix monitoring Summary: Scripts for Zabbix monitoring
Name: zabbix-agent-addons Name: zabbix-agent-addons
Version: 0.2.17 Version: 0.2.18
Release: 1 Release: 1
Source0: %{name}-%{version}.tar.gz Source0: %{name}-%{version}.tar.gz
BuildArch: noarch BuildArch: noarch
@ -94,9 +94,14 @@ fi
%config(noreplace) %attr(0640,root,zabbix) %{_sysconfdir}/zabbix/sensors.ini %config(noreplace) %attr(0640,root,zabbix) %{_sysconfdir}/zabbix/sensors.ini
%config(noreplace) %attr(0640,root,zabbix) %{_sysconfdir}/zabbix/zabbix_agentd.conf.d/* %config(noreplace) %attr(0640,root,zabbix) %{_sysconfdir}/zabbix/zabbix_agentd.conf.d/*
%attr(0440,root,root) %{_sysconfdir}/sudoers.d/* %attr(0440,root,root) %{_sysconfdir}/sudoers.d/*
%if ! 0%{?_without_selinux}
%{_datadir}/selinux/packages/%{name}/%{name}.pp %{_datadir}/selinux/packages/%{name}/%{name}.pp
%endif
%changelog %changelog
* Thu Aug 24 2017 Daniel Berteaud <daniel@firewall-services.com> - 0.2.18-1
- Only include SELinux policy module on el7
* Wed Aug 23 2017 Daniel Berteaud <daniel@firewall-services.com> - 0.2.17-1 * Wed Aug 23 2017 Daniel Berteaud <daniel@firewall-services.com> - 0.2.17-1
- Add a SELinux policy module - Add a SELinux policy module

Loading…
Cancel
Save