provide empty %{_localstatedir}/spool/%{name}/rw/nagios.cmd and set webserver permissions (to dir also) [release 3.5.1-3mamba;Tue Jul 22 2014]

This commit is contained in:
Silvan Calarco 2024-01-06 07:30:34 +01:00
parent e50dcc68b4
commit 1cd95bdee2

View File

@ -4,7 +4,7 @@
Name: nagios Name: nagios
Version: 3.5.1 Version: 3.5.1
Release: 2mamba Release: 3mamba
Summary: An Open Source host, service and network monitoring program Summary: An Open Source host, service and network monitoring program
Group: Network/Monitoring Group: Network/Monitoring
Vendor: openmamba Vendor: openmamba
@ -164,6 +164,8 @@ install -d %{buildroot}%{_sysconfdir}/sysconfig
touch %{buildroot}%{_sysconfdir}/sysconfig/%{name} touch %{buildroot}%{_sysconfdir}/sysconfig/%{name}
install -d %{buildroot}%{_localstatedir}/spool/%{name}/rw install -d %{buildroot}%{_localstatedir}/spool/%{name}/rw
touch %{buildroot}%{_localstatedir}/spool/%{name}/rw/nagios.cmd
install -d -m 0755 %{buildroot}%{_libdir}/%{name}/plugins/eventhandlers install -d -m 0755 %{buildroot}%{_libdir}/%{name}/plugins/eventhandlers
# Install eventhandlers # Install eventhandlers
@ -249,7 +251,8 @@ exit 0
%config(noreplace) %attr(0644,root,root) %{_sysconfdir}/sysconfig/%{name} %config(noreplace) %attr(0644,root,root) %{_sysconfdir}/sysconfig/%{name}
%{_initrddir}/nagios %{_initrddir}/nagios
%attr(0755,%{nsusr},%{nsgrp}) %dir %{_localstatedir}/spool/%{name} %attr(0755,%{nsusr},%{nsgrp}) %dir %{_localstatedir}/spool/%{name}
%attr(2775,%{nsusr},%{nsgrp}) %{_localstatedir}/spool/%{name}/rw %attr(2775,apache,nobody) %{_localstatedir}/spool/%{name}/rw
%config(noreplace) %attr(0644,apache,nobody) %{_localstatedir}/spool/%{name}/rw/nagios.cmd
%attr(0755,%{nsusr},%{nsgrp}) %dir %{_localstatedir}/log/%{name} %attr(0755,%{nsusr},%{nsgrp}) %dir %{_localstatedir}/log/%{name}
%attr(0755,%{nsusr},%{nsgrp}) %dir %{_localstatedir}/log/%{name}/archives %attr(0755,%{nsusr},%{nsgrp}) %dir %{_localstatedir}/log/%{name}/archives
%{_libdir}/%{name}/eventhandlers %{_libdir}/%{name}/eventhandlers
@ -288,6 +291,9 @@ exit 0
%{_includedir}/nagios/*.h %{_includedir}/nagios/*.h
%changelog %changelog
* Tue Jul 22 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 3.5.1-3mamba
- provide empty %{_localstatedir}/spool/%{name}/rw/nagios.cmd and set webserver permissions (to dir also)
* Wed May 07 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 3.5.1-2mamba * Wed May 07 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 3.5.1-2mamba
- require nagios-plugins - require nagios-plugins
- change lock file location from /var/run to /run - change lock file location from /var/run to /run