SPECS: nagios-plugin-check_cups_queue.spec (NEW) - based from mandriva src.rpm
glen
glen at pld-linux.org
Wed Nov 26 23:11:04 CET 2008
Author: glen Date: Wed Nov 26 22:11:04 2008 GMT
Module: SPECS Tag: HEAD
---- Log message:
- based from mandriva src.rpm
---- Files affected:
SPECS:
nagios-plugin-check_cups_queue.spec (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SPECS/nagios-plugin-check_cups_queue.spec
diff -u /dev/null SPECS/nagios-plugin-check_cups_queue.spec:1.1
--- /dev/null Wed Nov 26 23:11:04 2008
+++ SPECS/nagios-plugin-check_cups_queue.spec Wed Nov 26 23:10:58 2008
@@ -0,0 +1,62 @@
+# $Revision$, $Date$
+%define plugin check_cups_queue
+Summary: Nagios CUPS plugin
+Name: nagios-plugin-%{plugin}
+Version: 0.1
+Release: 0.1
+License: BSD
+Group: Networking
+Source0: http://dev.lusis.org/nagios/check_cups_queue.txt
+# Source0-md5: fe2dffc066980e2385d88755703f97fe
+Patch0: %{name}-force-locales.patch
+URL: http://dev.lusis.org/nagios/
+Requires: bc
+Requires: cups-clients
+Requires: mktemp
+Requires: nagios-core
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define _sysconfdir /etc/nagios/plugins
+%define plugindir %{_prefix}/lib/nagios/plugins
+
+%description
+This plugin will check the status of a remote CUPS print queue. It
+will provide the size of the queue and optionally the age of the queue
+
+%prep
+%setup -qcT
+install %{SOURCE0} .
+%patch0 -p0
+
+cat > nagios.cfg <<'EOF'
+# Usage:
+# %{plugin}
+define command {
+ command_name %{plugin}
+ command_line %{plugindir}/%{plugin} -H $HOSTADDRESS$
+}
+EOF
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{plugindir}}
+install check_cups_queue.txt $RPM_BUILD_ROOT%{plugindir}/%{plugin}
+cp -a nagios.cfg $RPM_BUILD_ROOT%{_sysconfdir}/%{plugin}.cfg
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%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"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1 2008/11/26 22:10:58 glen
+- based from mandriva src.rpm
================================================================
More information about the pld-cvs-commit
mailing list