packages: nagios-plugin-check_apc/nagios-plugin-check_apc.spec - actually m...
glen
glen at pld-linux.org
Sun Dec 18 14:25:56 CET 2011
Author: glen Date: Sun Dec 18 13:25:56 2011 GMT
Module: packages Tag: HEAD
---- Log message:
- actually make package, not copy paste crap
---- Files affected:
packages/nagios-plugin-check_apc:
nagios-plugin-check_apc.spec (1.5 -> 1.6)
---- Diffs:
================================================================
Index: packages/nagios-plugin-check_apc/nagios-plugin-check_apc.spec
diff -u packages/nagios-plugin-check_apc/nagios-plugin-check_apc.spec:1.5 packages/nagios-plugin-check_apc/nagios-plugin-check_apc.spec:1.6
--- packages/nagios-plugin-check_apc/nagios-plugin-check_apc.spec:1.5 Tue Feb 13 08:16:49 2007
+++ packages/nagios-plugin-check_apc/nagios-plugin-check_apc.spec Sun Dec 18 14:25:51 2011
@@ -2,28 +2,26 @@
#
# another version of 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
+
+%define plugin check_apc
Summary: Nagios Plugin for apcupsd APC Smart-UPS
Summary(pl.UTF-8): Wtyczka Nagiosa do sprawdzania apcupsd APC Smart-UPS
Name: nagios-plugin-check_apc
Version: 0.0.2
-Release: 0.2
+Release: 0.3
License: GPL
Group: Networking
Source0: http://www.negative1.org/check_apc/check_apc
# Source0-md5: 8d3770144e00a4ab41879c7a8b876065
Patch0: %{name}-path.patch
URL: http://www.negative1.org/
-BuildRequires: rpm-perlprov >= 4.1-13
-Requires: nagios-core
+Requires: apcupsd
+Requires: nagios-common
+BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-%define _plugindir %{_libdir}/nagios/plugins
%define _sysconfdir /etc/nagios/plugins
-
-#define _noautoreq 'perl(utils)'
+%define plugindir %{_libdir}/nagios/plugins
%description
check_apc is a Nagios plugin that can be used with apcupsd or apcsnmp
@@ -34,21 +32,21 @@
apcupsd lub apcsnmp.
%prep
-%setup -q -c -T
-install %{SOURCE0} .
+%setup -qcT
+install -p %{SOURCE0} .
%patch0 -p1
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_plugindir}
-cp %{namescript} $RPM_BUILD_ROOT%{_plugindir}/%{namescript}
+install -d $RPM_BUILD_ROOT%{plugindir}
+install -p %{plugin} $RPM_BUILD_ROOT%{plugindir}
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%attr(755,root,root) %{_plugindir}/*
+%attr(755,root,root) %{plugindir}/%{plugin}
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
@@ -56,6 +54,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.6 2011/12/18 13:25:51 glen
+- actually make package, not copy paste crap
+
Revision 1.5 2007/02/13 07:16:49 glen
- tabs in preamble
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/nagios-plugin-check_apc/nagios-plugin-check_apc.spec?r1=1.5&r2=1.6&f=u
More information about the pld-cvs-commit
mailing list