- added first set of macros for pnp4nagios

OBS-URL: https://build.opensuse.org/package/show/server:monitoring/nagios-rpm-macros?expand=0&rev=14
This commit is contained in:
Lars Vogdt 2011-11-05 16:51:24 +00:00 committed by Git OBS Bridge
parent 518f2bf7b0
commit b4d5bae32a
3 changed files with 16 additions and 0 deletions

13
macros.pnp4nagios Normal file
View File

@ -0,0 +1,13 @@
#
# directories and files for pnp4nagios
#
# directory containing template files for pnp
%pnp4nagios_baseurl /pnp
%pnp4nagios_datarootdir %{_datadir}/pnp4nagios
%pnp4nagios_datadir %{_datadir}/pnp4nagios
%pnp4nagios_logdir %{_var}/log/pnp4nagios
%pnp4nagios_perfdata_dir %{_var}/lib/pnp4nagios/perfdata
%pnp4nagios_perfdata_logfile %{_var}/log/pnp4nagios/perfdata.log
%pnp4nagios_perfdata_spooldir %{_var}/spool/pnp4nagios
%pnp4nagios_sysconfdir %{_sysconfdir}/pnp4nagios
%pnp4nagios_templatedir %{_datadir}/pnp4nagios/templates

View File

@ -2,6 +2,7 @@
Sat Nov 5 16:03:58 UTC 2011 - lars@linux-schulserver.de Sat Nov 5 16:03:58 UTC 2011 - lars@linux-schulserver.de
- added first set of macros for check_mk aka livestatus - added first set of macros for check_mk aka livestatus
- added first set of macros for pnp4nagios
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Nov 1 12:55:27 UTC 2011 - lars@linux-schulserver.de Tue Nov 1 12:55:27 UTC 2011 - lars@linux-schulserver.de

View File

@ -29,6 +29,7 @@ Source0: macros.nagios
Source1: %{name}-README Source1: %{name}-README
Source2: nagios-rpm-macros-COPYING Source2: nagios-rpm-macros-COPYING
Source3: macros.check_mk Source3: macros.check_mk
Source4: macros.pnp4nagios
BuildArch: noarch BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
@ -46,6 +47,7 @@ Nagios, check_mk and/or Icinga.
%install %install
install -Dm644 %{S:0} %{buildroot}%{_sysconfdir}/rpm/macros.nagios install -Dm644 %{S:0} %{buildroot}%{_sysconfdir}/rpm/macros.nagios
cat %{S:3} >> %{buildroot}%{_sysconfdir}/rpm/macros.nagios cat %{S:3} >> %{buildroot}%{_sysconfdir}/rpm/macros.nagios
cat %{S:4} >> %{buildroot}%{_sysconfdir}/rpm/macros.nagios
%clean %clean
rm -rf %buildroot rm -rf %buildroot