packages: nagios-plugin-check_lexprn/nagios-plugin-check_lexprn.spec, nagio...
marmarek
marmarek at pld-linux.org
Wed Jan 13 15:27:48 CET 2010
Author: marmarek Date: Wed Jan 13 14:27:48 2010 GMT
Module: packages Tag: HEAD
---- Log message:
- config
- no R:perl(utils)
- rel 2
---- Files affected:
packages/nagios-plugin-check_lexprn:
nagios-plugin-check_lexprn.spec (1.2 -> 1.3) , check_lexprn.conf (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: packages/nagios-plugin-check_lexprn/nagios-plugin-check_lexprn.spec
diff -u packages/nagios-plugin-check_lexprn/nagios-plugin-check_lexprn.spec:1.2 packages/nagios-plugin-check_lexprn/nagios-plugin-check_lexprn.spec:1.3
--- packages/nagios-plugin-check_lexprn/nagios-plugin-check_lexprn.spec:1.2 Thu Mar 13 17:44:16 2008
+++ packages/nagios-plugin-check_lexprn/nagios-plugin-check_lexprn.spec Wed Jan 13 15:27:43 2010
@@ -1,17 +1,16 @@
# $Revision$, $Date$
-# TODO
-# - provide default checkcommand config
%define plugin check_lexprn
%include /usr/lib/rpm/macros.perl
Summary: Nagios Plugin for checking the status of Lexmark printers
Summary(pl.UTF-8): Wtyczka Nagiosa do sprawdzania stanu drukarek Lexmark
Name: nagios-plugin-check_lexprn
Version: 0.1
-Release: 1
+Release: 2
License: GPL
Group: Networking
Source0: http://www.universalnet.at/projects/check_lexprn/%{plugin}-%{version}.tar.gz
# Source0-md5: b2234770a61360957a2520f6c7e39bd3
+Source1: %{plugin}.conf
URL: http://www.universalnet.at/
BuildRequires: rpm-perlprov >= 4.1-13
Requires: nagios-core
@@ -21,6 +20,8 @@
%define _plugindir %{_prefix}/lib/nagios/plugins
%define _sysconfdir /etc/nagios/plugins
+%define _noautoreq 'perl(utils)'
+
%description
check_lexprn is a Nagios plugin that can be used to monitor the status
@@ -35,8 +36,9 @@
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_plugindir}
+install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_plugindir}}
install %{plugin} $RPM_BUILD_ROOT%{_plugindir}
+sed -e 's, at plugindir@,%{plugindir},' %{SOURCE1} > $RPM_BUILD_ROOT%{_sysconfdir}/%{plugin}.cfg
%clean
rm -rf $RPM_BUILD_ROOT
@@ -44,6 +46,7 @@
%files
%defattr(644,root,root,755)
%doc INSTALL.TXT
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{plugin}.cfg
%attr(755,root,root) %{_plugindir}/%{plugin}
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
@@ -52,6 +55,11 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.3 2010/01/13 14:27:43 marmarek
+- config
+- no R:perl(utils)
+- rel 2
+
Revision 1.2 2008/03/13 16:44:16 glen
- unify, noarch
================================================================
Index: packages/nagios-plugin-check_lexprn/check_lexprn.conf
diff -u /dev/null packages/nagios-plugin-check_lexprn/check_lexprn.conf:1.1
--- /dev/null Wed Jan 13 15:27:48 2010
+++ packages/nagios-plugin-check_lexprn/check_lexprn.conf Wed Jan 13 15:27:43 2010
@@ -0,0 +1,6 @@
+# 'check_lexprn' command definition
+define command {
+ command_name check_lexprn
+ command_line @plugindir@/check_lexprn -H $HOSTADDRESS$ -C public
+}
+
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/nagios-plugin-check_lexprn/nagios-plugin-check_lexprn.spec?r1=1.2&r2=1.3&f=u
More information about the pld-cvs-commit
mailing list