[packages/mk-livestatus] create config containing sample how to load this broker module
glen
glen at pld-linux.org
Wed Aug 5 23:25:59 CEST 2015
commit e4f8a19bf6dae01dbaed1f3459060743dd82a6ec
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Thu Aug 6 00:25:50 2015 +0300
create config containing sample how to load this broker module
mk-livestatus.spec | 13 +++++++++++--
1 file changed, 11 insertions(+), 2 deletions(-)
---
diff --git a/mk-livestatus.spec b/mk-livestatus.spec
index 4a858c6..4eb6369 100644
--- a/mk-livestatus.spec
+++ b/mk-livestatus.spec
@@ -10,6 +10,9 @@ Source0: https://mathias-kettner.de/download/%{name}-%{version}.tar.gz
URL: http://mathias-kettner.de/checkmk_livestatus.html
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+%define _sysconfdir /etc/nagios
+%define _libdir %{_prefix}/%{_lib}/nagios
+
%description
Livestatus. Just as NDO, Livestatus make use of the Nagios Event
Broker API and loads a binary module into your Nagios process. But
@@ -34,13 +37,19 @@ rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT%{_libdir}
%{__make} -j1 install \
+ pkglibdir=%{_libdir} \
DESTDIR=$RPM_BUILD_ROOT
+# sample line that should be added to nagios.cfg for this module to work
+install -d $RPM_BUILD_ROOT%{_sysconfdir}
+echo 'broker_module=%{_libdir}/livestatus.o' \
+ > $RPM_BUILD_ROOT%{_sysconfdir}/livestatus-load.cfg
+
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/livestatus-load.cfg
%attr(755,root,root) %{_bindir}/unixcat
-%dir %{_libdir}/%{name}
-%{_libdir}/%{name}/livestatus.o
+%attr(755,root,root) %{_libdir}/livestatus.o
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/mk-livestatus.git/commitdiff/e4f8a19bf6dae01dbaed1f3459060743dd82a6ec
More information about the pld-cvs-commit
mailing list