Accepting request 238845 from server:monitoring

OBS-URL: https://build.opensuse.org/request/show/238845
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/nagios-rpm-macros?expand=0&rev=15
This commit is contained in:
Stephan Kulow 2014-06-30 19:45:20 +00:00 committed by Git OBS Bridge
commit 43063d6da2
4 changed files with 15 additions and 3 deletions

View File

@ -23,7 +23,7 @@
# Icinga spool dir
%icinga_spooldir %{_var}/spool/icinga
# Icinga run dir
%icinga_rundir %{_localstatedir}/run/icinga
%icinga_rundir %{_rundir}/icinga
# Icinga logfile dir
%icinga_logdir %{_var}/log/icinga
# Icinga cgi directory

View File

@ -23,7 +23,7 @@
# Icinga spool dir
%icinga2_spooldir %{_var}/spool/icinga2
# Icinga run dir
%icinga2_rundir %{_localstatedir}/run/icinga2
%icinga2_rundir %{_rundir}/icinga2
# Icinga logfile dir
%icinga2_logdir %{_var}/log/icinga2
# Icinga cgi directory

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Mon Jun 23 14:24:20 UTC 2014 - thardeck@suse.com
- update to 0.10:
+ adapt icinga[2] macros to use /run instead of /var/run on modern systems
+ this change can easily be used for other macros, just use %{_rundir} instead of "%{_localstatedir}/run"
-------------------------------------------------------------------
Tue Apr 15 18:08:12 UTC 2014 - lars@linux-schulserver.de

View File

@ -20,7 +20,7 @@ Name: nagios-rpm-macros
Summary: RPM Macros for Nagios based packages
License: BSD-3-Clause
Group: System/Monitoring
Version: 0.09
Version: 0.10
Release: 0
Url: http://en.opensuse.org/Nagios
Source0: macros.nagios
@ -53,6 +53,11 @@ cat %{S:5} >> %{buildroot}%{_sysconfdir}/rpm/macros.nagios
cat %{S:6} >> %{buildroot}%{_sysconfdir}/rpm/macros.nagios
cat %{S:7} >> %{buildroot}%{_sysconfdir}/rpm/macros.nagios
# make sure that _rundir is working on older systems
%if ! %{defined _rundir}
sed -i 's|%%{_rundir}|%%{_localstatedir}/run|' %{buildroot}%{_sysconfdir}/rpm/macros.nagios
%endif
%clean
rm -rf %buildroot