- initial version for openSUSE

OBS-URL: https://build.opensuse.org/package/show/server:monitoring/nagios-rpm-macros?expand=0&rev=1
This commit is contained in:
Lars Vogdt 2011-07-29 20:35:29 +00:00 committed by Git OBS Bridge
commit 997c52a74e
6 changed files with 138 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

46
macros.nagios Normal file
View File

@ -0,0 +1,46 @@
# macros.nagios file
# macros for Nagios and Icinga (sub-)package building - handle with care
#
#
# directories
#
# install all plugins into this directory
%nagios_plugindir %{_prefix}/lib/nagios/plugins
# install all event handler scripts into this directory
%nagios_eventhandlerdir %{_prefix}/lib/nagios/plugins/eventhandler
# Nagios uses this directory for status files
%nagios_localstatedir %{_var}/lib/nagios
# Nagios configuration should be stored here
%nagios_sysconfdir %{_sysconfdir}/nagios
# Nagios static webpages, stylesheets and theme(s), online documentation
%nagios_datadir %{_datadir}/nagios
#
# files
#
# This is the file that Nagios checks for external command requests
%nagios_command_file %{_var}/spool/nagios/nagios.cmd
# This is where the current status of all monitored services and
# hosts is stored.
%nagios_status_file %{_var}/lib/nagios/status.dat
# This is the file that Nagios should use to store host and
# service state information before it shuts down.
%nagios_state_retention_file %{_var}/lib/nagios/retention.dat
#
# users and groups
#
# User, Nagios runs under
%nagios_user nagios
# Group, Nagios runs under
%nagios_group nagios
# User, that can execute commands via %{nagios_command_file}
%command_user wwwrun
# Group, that can execute commands via %{nagios_command_file}
%command_group www

13
nagios-rpm-macros-README Normal file
View File

@ -0,0 +1,13 @@
This package contains some RPM macros for building packages that
make use of some nagios directories or files that ship with
the nagios package.
Please have a look at the file in /etc/rpm/macros.nagios to
get an overview and description of the macros.
Just use the following line in your package to make use of the
macros:
BuildRequires: nagios-rpm-macros
...and remember to have a lot of fun!

View File

@ -0,0 +1,5 @@
-------------------------------------------------------------------
Fri Jul 29 20:11:25 UTC 2011 - lars@linux-schulserver.de
- initial version for openSUSE

50
nagios-rpm-macros.spec Normal file
View File

@ -0,0 +1,50 @@
#
# spec file for package nagios-rpm-macros
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# norootforbuild
Name: nagios-rpm-macros
Summary: RPM Macros for Nagios based packages
Version: 0.001
Release: 1
Url: http://en.opensuse.org/Nagios
License: LGPL
Group: System/Monitoring
Source0: macros.nagios
Source1: %{name}-README
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
This package provides rpm macros for building packages for
Nagios and/or Icinga.
%prep
%{__cp} %{S:1} README
%build
%install
install -Dm644 %{S:0} %{buildroot}%{_sysconfdir}/rpm/macros.nagios
%clean
rm -rf %buildroot
%files
%defattr(-,root,root)
%doc README
%config %{_sysconfdir}/rpm/macros.nagios
%changelog