git.lirion.de

Of git, get, and gud

summaryrefslogtreecommitdiffstats
path: root/nagios-plugins-contrib-24.20190301~bpo9+1/check_email_delivery/check_email_delivery-0.7.1b/nagios-plugins-check_email_delivery.spec
blob: 7af2882d6b77ae9e805d5d0ad41accf7547eb851 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
Summary: A Nagios plugin to check IMAP delivery times
#Name: check_email_delivery
Name: nagios-plugins-check_email_delivery
Version: 0.7.1a
Release: 0.2%{?dist}
License: GPLv2
Group: Applications/System
URL: http://buhacoff.net/software/check_email_delivery/
Source0: http://buhacoff.net/software/check_email_delivery/archive/check_email_delivery-%{version}.tar.gz
#http://exchange.nagios.org/components/com_mtree/attachment.php?link_id=1339&cf_id=30
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root

# For handling --help options
Requires: /usr/bin/nroff

%description
The Nagios email delivery 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
%setup -n check_email_delivery-%{version}

# Avoid filenames with unnecessary punction in them
%{__mv} "./docs/check_smtp_send (Greek's conflicted copy 2011-08-24).pod" \
       ./docs/check_smtp_send-Greeks-conflicted-copy-2011-08-24.pod
%{__mv} "docs/How to connect to IMAP server manually.txt" \
       docs/How-to-connect-to-IMAP-server-manually.txt

%build
# No build required, just drop in place

%install
rm -rf $RPM_BUILD_ROOT
%{__install} -d -m0755 %{buildroot}%{_libdir}/nagios/plugins

# No instlalation procedure, install manually
%{__install} -m0755 -m0755 check_* %{buildroot}%{_libdir}/nagios/plugins
%{__install} -m0755 -m0755 imap_* %{buildroot}%{_libdir}/nagios/plugins


%clean
rm -rf $RPM_BUILD_ROOT


%files
%defattr(-, root, root, 0755)
%{_libdir}/nagios/plugins/check_*
%{_libdir}/nagios/plugins/imap_*
%doc CHANGES.txt LICENSE.txt README.txt
%doc docs/*

%changelog
* Sun Feb  5 2012 Nico Kadel-Garcia  - 0.68-0.1
- Update to 0.7.1a
- Add nroff dependency for --help options

* Thu Nov  3 2011 Nico Kadel-Garcia  - 0.68-0.1
- Initial build.