File monitoring-plugins-email_delivery.spec of Package monitoring-plugins-email_delivery
#
# spec file for package monitoring-plugins-email_delivery
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
Name: monitoring-plugins-email_delivery
Version: 0.7.1b
Release: 100
License: GPL-3.0
Summary: Check IMAP delivery times
Url: http://buhacoff.net/software/check_email_delivery/
Group: System/Monitoring
%define realname check_email_delivery
Source: http://buhacoff.net/software/check_email_delivery/archive/%{realname}-%{version}.tar.gz
BuildRequires: nagios-rpm-macros
Provides: nagios-plugins-email_delivery = %{version}-%{release}
Obsoletes: nagios-plugins-email_delivery < %{version}-%{release}
BuildArch: noarch
Requires: perl(Mail::IMAPClient)
Requires: perl(Email::Simple)
Requires: groff
Recommends: perl(MIME::Base64)
Recommends: perl(Authen::SASL)
Recommends: perl(Net::SMTP_auth)
Recommends: perl(Net::SMTP::SSL)
Recommends: perl(Time::HiRes)
Recommends: perl(IO::Socket::SSL)
Recommends: perl(Text::Template)
Recommends: perl(Net::DNS)
Recommends: perl(Email::Address)
Recommends: perl(Date::Manip)
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
The email delivery monitoring plugin uses two other plugins (smtp send and imap
receive), also included, to send a message to an email account and then check
that account for the message and delete it. The plugin times how long it takes
for the message to be delivered and the warning and critical thresholds are for
this elapsed time.
%prep
%setup -q -n %{realname}-%{version}
sed -i "s|||g" README.*
%build
#
%install
%{__mkdir} -p %{buildroot}%{nagios_plugindir}
%{__install} -D -m0755 check_* %{buildroot}%{nagios_plugindir}
%{__install} -D -m0755 imap_* %{buildroot}%{nagios_plugindir}
%clean
%{__rm} -rf %{buildroot}
%files
%defattr(-,root,root)
%doc CHANGES.txt LICENSE.txt README.txt docs
# avoid build dependency of nagios - own the dirs
%dir %{nagios_libdir}
%{nagios_plugindir}/
%changelog