packages: nagios-plugin-check_temperature/nagios-plugin-check_temperature.s...

glen glen at pld-linux.org
Tue Jul 26 21:50:16 CEST 2011


Author: glen                         Date: Tue Jul 26 19:50:16 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- perl deps, fix plugin config

---- Files affected:
packages/nagios-plugin-check_temperature:
   nagios-plugin-check_temperature.spec (1.3 -> 1.4) 

---- Diffs:

================================================================
Index: packages/nagios-plugin-check_temperature/nagios-plugin-check_temperature.spec
diff -u packages/nagios-plugin-check_temperature/nagios-plugin-check_temperature.spec:1.3 packages/nagios-plugin-check_temperature/nagios-plugin-check_temperature.spec:1.4
--- packages/nagios-plugin-check_temperature/nagios-plugin-check_temperature.spec:1.3	Wed Sep  9 13:50:11 2009
+++ packages/nagios-plugin-check_temperature/nagios-plugin-check_temperature.spec	Tue Jul 26 21:50:11 2011
@@ -1,5 +1,6 @@
 # $Revision$, $Date$
 %define		plugin	check_temperature
+%include	/usr/lib/rpm/macros.perl
 Summary:	Nagios plugin to check temperatures
 Name:		nagios-plugin-%{plugin}
 Version:	1.2
@@ -9,10 +10,12 @@
 Source0:	http://www.hoppie.nl/tempsens/check_temperature
 # Source0-md5:	52af8cf292537680f9a624e41d557edf
 Patch0:		paths.patch
-Patch1:		compatible-devs.patch
+# find, or resurrect the patch
+#Patch1:	compatible-devs.patch
 Source1:	%{plugin}.cfg
 URL:		http://www.hoppie.nl/tempsens/
-Requires:	nagios-core
+BuildRequires:	rpm-perlprov >= 4.1-13
+Requires:	nagios-common
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -27,13 +30,13 @@
 %setup -qcT
 cp -p %{SOURCE0} %{plugin}
 %patch0 -p1
-%patch1 -p1
+#%patch1 -p1
 
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{plugindir}}
 install -p %{plugin} $RPM_BUILD_ROOT%{plugindir}/%{plugin}
-sed -e 's, at plugindir@,%{plugindir},' %{SOURCE1} > $RPM_BUILD_ROOT%{_sysconfdir}/%{plugin}.cfg
+cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/%{plugin}.cfg
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -49,6 +52,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.4  2011/07/26 19:50:11  glen
+- perl deps, fix plugin config
+
 Revision 1.3  2009/09/09 11:50:11  glen
 - release 1
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/nagios-plugin-check_temperature/nagios-plugin-check_temperature.spec?r1=1.3&r2=1.4&f=u



More information about the pld-cvs-commit mailing list