Author: glen Date: Wed May 16 12:56:19 2007 GMT Module: SPECS Tag: HEAD ---- Log message: - noarch; rel 3
---- Files affected: SPECS: nagios-plugin-check_mysql_replication.spec (1.10 -> 1.11) ---- Diffs: ================================================================ Index: SPECS/nagios-plugin-check_mysql_replication.spec diff -u SPECS/nagios-plugin-check_mysql_replication.spec:1.10 SPECS/nagios-plugin-check_mysql_replication.spec:1.11 --- SPECS/nagios-plugin-check_mysql_replication.spec:1.10 Tue Feb 13 08:16:49 2007 +++ SPECS/nagios-plugin-check_mysql_replication.spec Wed May 16 14:56:14 2007 @@ -4,7 +4,7 @@ Summary(pl.UTF-8): Wtyczka Nagiosa do sprawdzania replikacji między instancjami bazy danych MySQL Name: nagios-plugin-check_mysql_replication Version: 0.03 -Release: 2 +Release: 3 License: Opensource Group: Networking Source0: http://www.james.rcpt.to/svn/trunk/nagios/check_mysql_replication/check_mysql_replication.pl @@ -14,9 +14,11 @@ BuildRequires: rpm-perlprov >= 4.1-13 Requires: nagios-core Requires: perl-DBD-mysql +Conflicts: nagios-common < 2.9-2 +BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) -%define _plugindir %{_libdir}/nagios/plugins +%define _plugindir %{_prefix}/lib/nagios/plugins %define _sysconfdir /etc/nagios/plugins %description @@ -32,18 +34,29 @@ %setup -q -c -T install %{SOURCE0} check_mysql_replication.pl %patch0 -p1 +cat > nagios.cfg <<'EOF' +# Usage: +# check_mysql_replication!$HOSTADDRESS$!3309 +# and define $USER3$ + $USER4$ for mysql passwords +define command { + command_name check_mysql_replication + command_line %{_plugindir}/check_mysql_replication --slave $ARG1$ --slave-port $ARG2$ --slave-user $USER3$ --slave-pass $USER4$ --master-user $USER3$ --master-pass $USER4$ +} +EOF %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_plugindir}} install check_mysql_replication.pl $RPM_BUILD_ROOT%{_plugindir}/check_mysql_replication +cp -a nagios.cfg $RPM_BUILD_ROOT%{_sysconfdir}/check_mysql_replication.cfg %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) -%attr(755,root,root) %{_plugindir}/* +%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/check_mysql_replication.cfg +%attr(755,root,root) %{_plugindir}/check_mysql_replication %define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`) %changelog @@ -51,6 +64,9 @@ All persons listed below can be reached at <cvs_login>@pld-linux.org $Log$ +Revision 1.11 2007/05/16 12:56:14 glen +- noarch; rel 3 + Revision 1.10 2007/02/13 07:16:49 glen - tabs in preamble ================================================================ ---- CVS-web: http://cvs.pld-linux.org/SPECS/nagios-plugin-check_mysql_replication.spec?r1=1.10&r2=1.11&f=u _______________________________________________ pld-cvs-commit mailing list [email protected] http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit
