[projects/template-specs] nrpe.d dir sample
glen
glen at pld-linux.org
Tue Mar 11 21:46:05 CET 2014
commit 4508be59713c739daa67e6999283f6fd4370ce7b
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Tue Mar 11 22:46:03 2014 +0200
nrpe.d dir sample
nagios-plugin.spec | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/nagios-plugin.spec b/nagios-plugin.spec
index f162a91..818e91a 100644
--- a/nagios-plugin.spec
+++ b/nagios-plugin.spec
@@ -27,6 +27,7 @@ BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%define _noautoreq_perl utils
%define _sysconfdir /etc/nagios/plugins
+%define nrpeddir /etc/nagios/nrpe.d
%define plugindir %{_prefix}/lib/nagios/plugins
%description
@@ -69,6 +70,7 @@ EOF
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{plugindir}}
+install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{nrpeddir},%{plugindir}}
install -p %{plugin} $RPM_BUILD_ROOT%{plugindir}/%{plugin}
install -p %{SOURCE0} $RPM_BUILD_ROOT%{plugindir}/%{plugin}
cp -p %{plugin}.cfg $RPM_BUILD_ROOT%{_sysconfdir}/%{plugin}.cfg
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/projects/template-specs.git/commitdiff/4508be59713c739daa67e6999283f6fd4370ce7b
More information about the pld-cvs-commit
mailing list