From: Elan Ruusamäe Date: Tue, 22 Mar 2016 11:39:24 +0000 (+0200) Subject: v1.1 X-Git-Tag: auto/th/monitoring-plugin-check_mysql-heartbeat-1.1-1 X-Git-Url: http://git.pld-linux.org/?p=packages%2Fmonitoring-plugin-check_mysql-heartbeat.git;a=commitdiff_plain;h=1e4e030 v1.1 --- diff --git a/check_mysql-heartbeat.sh b/check_mysql-heartbeat.sh index 43a1ea2..e687031 100755 --- a/check_mysql-heartbeat.sh +++ b/check_mysql-heartbeat.sh @@ -6,7 +6,7 @@ # PROGRAM=${0##*/} -REVISION=$(echo '$Revision$' | sed -e 's/[^0-9.]//g') +VERSION=1.1 PROGPATH=${0%/*} . $PROGPATH/utils.sh @@ -61,7 +61,7 @@ while :; do exit 0 ;; -V|--version) - echo $PROGRAM $REVISION + echo "$PROGRAM $VERSION" exit 0 ;; --mk|--maatkit) diff --git a/monitoring-plugin-check_mysql-heartbeat.spec b/monitoring-plugin-check_mysql-heartbeat.spec index 4a886e7..f1d94ae 100644 --- a/monitoring-plugin-check_mysql-heartbeat.spec +++ b/monitoring-plugin-check_mysql-heartbeat.spec @@ -1,14 +1,14 @@ %define plugin check_mysql-heartbeat %define php_min_version 5.0.0 %include /usr/lib/rpm/macros.php -Summary: Nagios plugin to check MySQL heartbeat +Summary: Nagios/Icinga plugin to check MySQL heartbeat Name: monitoring-plugin-%{plugin} -Version: 1.0 -Release: 2 +Version: 1.1 +Release: 1 License: GPL v2 Group: Networking -Source0: check_mysql-heartbeat.sh -Source1: check_mysql-heartbeat.cfg +Source0: %{plugin}.sh +Source1: %{plugin}.cfg BuildRequires: rpm-php-pearprov >= 4.4.2-11 Requires: nagios-common Requires: nagios-plugins-libs @@ -19,7 +19,7 @@ BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %define plugindir %{_prefix}/lib/nagios/plugins %description -Nagios plugin to check MySQL heartbeat with maatkit or +Nagios/Icinga plugin to check MySQL heartbeat with maatkit or percona-toolkit. %prep