Changed files:
nagios-plugin-check_rbl.spec -> 1.3
verbose-reporting.patch -> 1.1
Summary: check_rbl is a Nagios plugin to check if an SMTP server is blacklisted
Name: nagios-plugin-%{plugin}
Version: 1.1.0
-Release: 0.4
+Release: 0.7
License: GPL
Group: Networking
-Source0: http://www.id.ethz.ch/people/allid_list/corti/%{plugin}-%{version}.tar.gz
+Source0: https://trac.id.ethz.ch/projects/nagios_plugins/downloads/%{plugin}-%{version}.tar.gz
# Source0-md5: 724cd353d48df3f4e9a98743146cfd0f
Source1: %{plugin}.cfg
Source2: %{plugin}.ini
+Patch0: verbose-reporting.patch
URL: https://trac.id.ethz.ch/projects/nagios_plugins/wiki/check_rbl
BuildRequires: sed >= 4.0
Requires: nagios-common
%prep
%setup -q -n %{plugin}-%{version}
+%patch0 -p1
%{__sed} -i -e '
# no need for debug dependency
--- /dev/null
+--- check_rbl-1.1.0/check_rbl~ 2010-02-01 18:27:44.918315737 +0200
++++ check_rbl-1.1.0/check_rbl 2010-02-01 18:28:07.075134119 +0200
+@@ -272,7 +275,7 @@
+ my $total = scalar @BLACKLISTED;
+
+ my $status =
+- "BLACKLISTED on $total " . ( ( $total == 1 ) ? 'server' : 'servers' );
++ $OPTIONS->host. " BLACKLISTED on $total " . ( ( $total == 1 ) ? 'server' : 'servers' );
+
+ if ( $total > 0 ) {
+ $status .= " (@BLACKLISTED)";