- added first set of macros for check_mk aka livestatus

OBS-URL: https://build.opensuse.org/package/show/server:monitoring/nagios-rpm-macros?expand=0&rev=12
This commit is contained in:
Lars Vogdt 2011-11-05 16:04:26 +00:00 committed by Git OBS Bridge
parent 91b2dd9738
commit 644f32c780
3 changed files with 48 additions and 2 deletions

35
macros.check_mk Normal file
View File

@ -0,0 +1,35 @@
#
# directories and files for check_mk
#
# place for livestatus.o libdir
%livestatus_libdir %{_prefix}/lib/check_mk
# livesock
%livestatus_socket_file %{nagios_spooldir}/livestatus.cmd
# livebackendsdir
livestatus_livebackendsdir %{_datadir}/check_mk/livestatius
# confdir
livestatus_sysconfdir %{_sysconfdir}/check_mk
# check_mk_configdir
livestatus_check_mk_configdir %{livestatus_sysconfdir}/conf.d
#
livestatus_datadir %{_datadir}/check_mk
# agentsdir
livestatus_agentsdir %{_datadir}/check_mk/agents
# checksdir
livestatus_checksdir %{_datadir}/check_mk/checks
# modulesdir
livestatus_modulesdir %{_datadir}/check_mk/modules
# web_dir
livestatus_webdir %{_datadir}/check_mk/web
# vardir
livestatus_vardir %{_var}/lib/check_mk
# agentslibdir
livestatus_agentslibdir %{_prefix}/lib/check_mk_agent
# agentsconfdir
livestatus_agentsconfdir %{livestatus_sysconfdir}
# htdocsdir
livestatus_htdocsdir %{nagios_datadir}
# nagconfdir
livestatus_nagconfdir %{nagios_sysconfdir}/check_mk.d
# rrddir
livestatus_rrddir %{_var}/lib/check_mk/rrd

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Sat Nov 5 16:03:58 UTC 2011 - lars@linux-schulserver.de
- added first set of macros for check_mk aka livestatus
------------------------------------------------------------------- -------------------------------------------------------------------
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

@ -1,6 +1,8 @@
# #
# spec file for package nagios-rpm-macros # spec file for package nagios-rpm-macros
# #
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the # upon. The license for this file, and modifications and additions to the
@ -10,13 +12,15 @@
# license that conforms to the Open Source Definition (Version 1.9) # license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative. # published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild # norootforbuild
Name: nagios-rpm-macros Name: nagios-rpm-macros
Summary: RPM Macros for Nagios based packages Summary: RPM Macros for Nagios based packages
Version: 0.002 Version: 0.003
Release: 1 Release: 1
Url: http://en.opensuse.org/Nagios Url: http://en.opensuse.org/Nagios
License: BSD3c(or similar) License: BSD3c(or similar)
@ -24,12 +28,13 @@ Group: System/Monitoring
Source0: macros.nagios Source0: macros.nagios
Source1: %{name}-README Source1: %{name}-README
Source2: nagios-rpm-macros-COPYING Source2: nagios-rpm-macros-COPYING
Source3: macros.check_mk
BuildArch: noarch BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description %description
This package provides rpm macros for building packages for This package provides rpm macros for building packages for
Nagios and/or Icinga. Nagios, check_mk and/or Icinga.
%prep %prep
@ -40,6 +45,7 @@ Nagios 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
%clean %clean
rm -rf %buildroot rm -rf %buildroot