packages: nagios-plugin-check_mysql_health/nagios-plugin-check_mysql_health...

glen glen at pld-linux.org
Thu Oct 7 12:32:31 CEST 2010


Author: glen                         Date: Thu Oct  7 10:32:31 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- up to 2.1.3
- setup paths properly instead leaving random defaults

---- Files affected:
packages/nagios-plugin-check_mysql_health:
   nagios-plugin-check_mysql_health.spec (1.7 -> 1.8) 

---- Diffs:

================================================================
Index: packages/nagios-plugin-check_mysql_health/nagios-plugin-check_mysql_health.spec
diff -u packages/nagios-plugin-check_mysql_health/nagios-plugin-check_mysql_health.spec:1.7 packages/nagios-plugin-check_mysql_health/nagios-plugin-check_mysql_health.spec:1.8
--- packages/nagios-plugin-check_mysql_health/nagios-plugin-check_mysql_health.spec:1.7	Thu May 13 18:44:10 2010
+++ packages/nagios-plugin-check_mysql_health/nagios-plugin-check_mysql_health.spec	Thu Oct  7 12:32:26 2010
@@ -1,17 +1,17 @@
 # $Revision$, $Date$
 %define		plugin	check_mysql_health
-%include        /usr/lib/rpm/macros.perl
+%include	/usr/lib/rpm/macros.perl
 Summary:	Nagios plugin: monitor various performance-related characteristics of a MySQL DB
 Summary(pl.UTF-8):	Wtyczka Nagiosa monitorująca parametry wydajnościowe bazy danych MySQL
 Name:		nagios-plugin-%{plugin}
-Version:	2.1.1
+Version:	2.1.3
 Release:	1
 License:	GPL v2+
 Group:		Networking
-Source0:	http://labs.consol.de/wp-content/uploads/2010/03/check_mysql_health-%{version}.tar.gz
-# Source0-md5:	f4ce441cb52d1fb2e422654e37867d5e
+Source0:	http://labs.consol.de/wp-content/uploads/2010/10/check_mysql_health-%{version}.tar.gz
+# Source0-md5:	c8594745a3aecf07569d6f40dca0b40c
 Source1:	%{plugin}.cfg
-URL:		http://labs.consol.de/lang/de/nagios/check_mysql_health/
+URL:		http://labs.consol.de/lang/en/nagios/check_mysql_health/
 BuildRequires:	autoconf
 BuildRequires:	automake
 BuildRequires:	libtool
@@ -24,6 +24,7 @@
 
 %define		_sysconfdir	/etc/nagios/plugins
 %define		plugindir	%{_prefix}/lib/nagios/plugins
+%define		statedir	/var/lib/nagios/spool/%{plugin}
 
 %description
 Nagios plugin which allows you to monitor various performance-related
@@ -41,19 +42,24 @@
 %{__aclocal}
 %{__autoconf}
 %{__automake}
+# NOTE: _target macro becames "noarch" if ./builder passes --target=noarch, so
+# be sure use plain rpmbuild.
 %configure \
-	--host=%{_target} \
-	--build=%{_target} \
+	--host=%{_host} \
+	--build=%{_host} \
+	--with-perl=%{__perl} \
 	--libdir=%{plugindir} \
 	--libexecdir=%{plugindir} \
+	--with-mymodules-dir=%{plugindir} \
+	--with-mymodules-dyn-dir=%{plugindir} \
+	--with-statefiles-dir=%{statedir} \
 	--with-nagios-user=nagios \
 	--with-nagios-group=nagios
 %{__make}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-
-install -d $RPM_BUILD_ROOT%{_sysconfdir}
+install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{statedir}}
 
 %{__make} install \
 	DESTDIR=$RPM_BUILD_ROOT
@@ -67,6 +73,7 @@
 %defattr(644,root,root,755)
 %attr(640,root,nagios) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{plugin}.cfg
 %attr(755,root,root) %{plugindir}/%{plugin}
+%attr(770,root,nagios) %dir %{statedir}
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -74,6 +81,10 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.8  2010/10/07 10:32:26  glen
+- up to 2.1.3
+- setup paths properly instead leaving random defaults
+
 Revision 1.7  2010/05/13 16:44:10  sparky
 - BR: autoconf, automake, libtool
 
================================================================

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



More information about the pld-cvs-commit mailing list