[packages/nagios-plugin-check_logfiles] fix x32 build

glen glen at pld-linux.org
Thu Aug 6 22:34:34 CEST 2015


commit ba7edd32937821630b67351c49e6386fae91c8e2
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Thu Aug 6 23:34:00 2015 +0300

    fix x32 build

 nagios-plugin-check_logfiles.spec | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/nagios-plugin-check_logfiles.spec b/nagios-plugin-check_logfiles.spec
index 0f2e68f..c313453 100644
--- a/nagios-plugin-check_logfiles.spec
+++ b/nagios-plugin-check_logfiles.spec
@@ -3,7 +3,7 @@
 Summary:	Check log files for specific patterns
 Name:		nagios-plugin-%{plugin}
 Version:	3.7.1.1
-Release:	1
+Release:	2
 License:	GPL v2
 Group:		Applications
 Source0:	https://labs.consol.de/assets/downloads/nagios/%{plugin}-%{version}.tar.gz
@@ -20,7 +20,11 @@ BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 %define		trusted_path	/bin:/sbin:/usr/bin:/usr/sbin
 
 # just to fool configure, nothing arch specific actually
+%if "%{_host_cpu}" == "x32"
+%define		_target_platform	%{_host}
+%else
 %define		_target_platform	%{_host_cpu}-%{_vendor}-%{_os}
+%endif
 
 %description
 check_logfiles is a Plugin for Nagios which scans log files for
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/nagios-plugin-check_logfiles.git/commitdiff/ba7edd32937821630b67351c49e6386fae91c8e2



More information about the pld-cvs-commit mailing list