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:
parent
e50dcc68b4
commit
1cd95bdee2
10
nagios.spec
10
nagios.spec
@ -4,7 +4,7 @@
|
||||
|
||||
Name: nagios
|
||||
Version: 3.5.1
|
||||
Release: 2mamba
|
||||
Release: 3mamba
|
||||
Summary: An Open Source host, service and network monitoring program
|
||||
Group: Network/Monitoring
|
||||
Vendor: openmamba
|
||||
@ -164,6 +164,8 @@ install -d %{buildroot}%{_sysconfdir}/sysconfig
|
||||
touch %{buildroot}%{_sysconfdir}/sysconfig/%{name}
|
||||
|
||||
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 eventhandlers
|
||||
@ -249,7 +251,8 @@ exit 0
|
||||
%config(noreplace) %attr(0644,root,root) %{_sysconfdir}/sysconfig/%{name}
|
||||
%{_initrddir}/nagios
|
||||
%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}/archives
|
||||
%{_libdir}/%{name}/eventhandlers
|
||||
@ -288,6 +291,9 @@ exit 0
|
||||
%{_includedir}/nagios/*.h
|
||||
|
||||
%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
|
||||
- require nagios-plugins
|
||||
- change lock file location from /var/run to /run
|
||||
|
Loading…
Reference in New Issue
Block a user