summaryrefslogtreecommitdiff
path: root/redhat/nagios-plugin-curl.spec
blob: b77cbf71b3bb4705ec3ca1584ebf5826f278fc62 (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
# Nagios Plugin Curl RPM spec file
#
# Copyright (C) 2012

Summary: curl-based web monitoring plugin for Nagios
Name: nagios-plugin-curl
Version: 0.0.4
Release: 0.1
License: GPLv3
Group: Applications/System
Source: %{name}_%{version}.tar.gz

URL: https://github.com/andreasbaumann/nagios-plugin-curl

BuildRoot: %{_tmppath}/%{name}-root

BuildRequires: curl-devel
Requires: curl

Distribution: rhel5
Packager: Andreas Baumann <abaumann@yahoo.com>


%description
Nagios plugin with similar command line options and functionality
as 'check_http', but based on the cURL web library.

%prep
%setup

%build
make %{?_smp_mflags}

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/%{_libdir}/nagios/plugins/
install -D -m0755 src/check_curl $RPM_BUILD_ROOT/%{_libdir}/nagios/plugins/

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%dir /%{_libdir}/nagios/plugins/
/%{_libdir}/nagios/plugins/check_curl

%changelog
* Wed Mar 07 2012 Andreas Baumann <abaumann@yahoo.com> 0.0.4-0.1
- added handling of cookies (for instance for JSESSIONID)
- added POST parameters

* Mon Sep 28 2009 Andreas Baumann <abaumann@yahoo.com> 0.0.3-0.1
- added client certificate and self-signed SSL chain handling

* Wed Dec 17 2008 Andreas Baumann <abaumann@yahoo.com> 0.0.2-0.1
- fixes for 64-bit, upgrade to 0.0.2

* Thu Sep 25 2008 Andreas Baumann <abaumann@yahoo.com> 0.0.1-0.1
- first preliminary packaged release