-
Notifications
You must be signed in to change notification settings - Fork 0
/
nagios-plugins-egi_ops.spec
51 lines (42 loc) · 1.37 KB
/
nagios-plugins-egi_ops.spec
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
Name: nagios-plugins-egi_ops
Version: 1.0.0
Release: 1%{?dist}
Summary: EGI OPS Service Availability Monitoring
Group: System/Monitoring
License: GPLv2+
URL: https://github.com/jcasals/
# Source0: %{name}-%{version}-%{release}.tar.gz
Source0: %{name}.tar.gz
# BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRoot: %{_tmppath}/%{name}
Requires: jq
%description
nagios-plugins-egi_ops is a generic plugin that checks EGI OPS Services Availability Monitoring
%prep
# %setup -q -n %{name}-%{version}-%{release}
%setup -q -n %{name}
%install
rm -rf %{buildroot}
mkdir -p %{buildroot}/usr/lib64/nagios/plugins
cp ./usr/lib64/nagios/plugins/check_egi_ops %{buildroot}/usr/lib64/nagios/plugins/check_egi_ops
%post
echo "===================================================="
echo ""
echo "Plugin installed succesfully!"
echo ""
echo "Please, take a look at the requirements in"
echo "the documentation to set up the plugin at:"
echo "http://jcasals.github.io/nagios-plugins-egi_ops"
echo ""
echo "Thank you and enjoy this plugin as much as we do :D"
echo ""
echo "===================================================="
%clean
rm -rf %{buildroot}
%files
%attr(0755, root,root) /usr/lib64/nagios/plugins/check_egi_ops
%defattr(-,root,root,-)
%doc
%changelog
* Fri Mar 18 2016 Jordi Casals <[email protected]> 1.0.0
- First Release!