SPECS: nagios-plugin-check_apc.spec (NEW) - NFY - TODO: patch to path
wolvverine
wolvverine at pld-linux.org
Tue Feb 21 12:28:27 CET 2006
Author: wolvverine Date: Tue Feb 21 11:28:27 2006 GMT
Module: SPECS Tag: HEAD
---- Log message:
- NFY
- TODO: patch to path
---- Files affected:
SPECS:
nagios-plugin-check_apc.spec (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SPECS/nagios-plugin-check_apc.spec
diff -u /dev/null SPECS/nagios-plugin-check_apc.spec:1.1
--- /dev/null Tue Feb 21 12:28:27 2006
+++ SPECS/nagios-plugin-check_apc.spec Tue Feb 21 12:28:12 2006
@@ -0,0 +1,61 @@
+# $Revision$, $Date$
+#
+# another version this plugin is here:
+# http://www.opennet.ru/base/sys/apc_ups_nagios.txt.html
+#
+%define namescript check_apc
+%include /usr/lib/rpm/macros.perl
+Summary: Nagios Plugin for apcupsd APC Smart-UPS
+Summary(pl): Wtyczka Nagiosa do sprawdzania apcupsd APC Smart-UPS
+Name: nagios-plugin-check_apc
+Version: 0.0.2
+Release: 0.1
+License: GPL
+Group: Networking
+Source0: http://www.negative1.org/check_apc/check_apc
+# Source0-md5: 8d3770144e00a4ab41879c7a8b876065
+#Patch0: check_apc-path.patch
+URL: http://www.negative1.org
+BuildRequires: rpm-perlprov >= 4.1-13
+Requires: nagios-core
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define _plugindir %{_libdir}/nagios/plugins
+%define _sysconfdir /etc/nagios/plugins
+
+#define _noautoreq 'perl(utils)'
+
+%description
+check_apc is a Nagios plugin that can be used with apcupsd or apcsnmp to monitor an APC UPS.
+
+%description -l pl
+check_apc wtyczka Nagiosa do sprawdzania apcupsd.
+
+%prep
+%setup -q -c -T
+install %{SOURCE0} .
+#%patch0 -p1
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_plugindir}
+cp %{namescript} $RPM_BUILD_ROOT%{_plugindir}/%{namescript}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_plugindir}/*
+
+%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 2006/02/21 11:28:12 wolvverine
+- NFY
+- TODO: patch to path
+
+
================================================================
More information about the pld-cvs-commit
mailing list