]>
Commit | Line | Data |
---|---|---|
ef576ac2 AG |
1 | %define plugin check_ssl_cert |
2 | Summary: Nagios plugin to check the CA and validity of an X.509 certificate | |
80a22d15 | 3 | Summary(pl.UTF-8): Wtyczka Nagiosa sprawdzająca CA i ważność certyfikatu X.509 |
ef576ac2 | 4 | Name: nagios-plugin-%{plugin} |
bb1c1912 | 5 | Version: 1.79.0 |
7b88b913 | 6 | Release: 1 |
ef576ac2 AG |
7 | License: GPL v3 |
8 | Group: Networking | |
2fe01f09 | 9 | Source0: https://github.com/matteocorti/check_ssl_cert/releases/download/v%{version}/check_ssl_cert-%{version}.tar.gz |
bb1c1912 | 10 | # Source0-md5: 9102e6ad03c3f9a55026052f54a1bd70 |
7b88b913 | 11 | Source1: check_ssl_cert.cfg |
80a22d15 | 12 | Patch0: ca_path.patch |
2fe01f09 | 13 | URL: https://github.com/matteocorti/check_ssl_cert/wiki |
80a22d15 | 14 | BuildRequires: rpm >= 4.4.9-56 |
ef576ac2 | 15 | Requires: expect |
2fe01f09 | 16 | Requires: file |
ef576ac2 | 17 | Requires: nagios-common |
9c2bdb6e | 18 | Requires: openssl-tools >= 0.9.8i-3 |
2fe01f09 | 19 | Requires: perl-TimeDate |
eeae0d50 | 20 | Requires: perl-base |
80a22d15 | 21 | Requires: sed >= 4.0 |
91284bc4 | 22 | Requires: which |
80a22d15 | 23 | Suggests: ca-certificates-update |
ef576ac2 AG |
24 | BuildArch: noarch |
25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
26 | ||
27 | %define _sysconfdir /etc/nagios/plugins | |
28 | %define plugindir %{_prefix}/lib/nagios/plugins | |
29 | ||
30 | %description | |
31 | check_ssl_cert is a Nagios plugin to check X.509 certificates. It | |
32 | checks if the server is running and delivers a valid certificate. It | |
33 | also checks if the CA matches a given pattern, and checks the | |
34 | validity. | |
35 | ||
36 | %description -l pl.UTF-8 | |
37 | Wtyczka Nagiosa sprawdzająca certyfikaty X.509. Wtyczka ta sprawdza | |
38 | czy serwer działa poprawnie oraz czy dostarcza ważny certyfikat. | |
39 | Dodatkowo sprawdza czy CA pasuje do określonego wzorca i weryfikuje | |
40 | jego poprawność. | |
41 | ||
42 | %prep | |
43 | %setup -q -n %{plugin}-%{version} | |
80a22d15 | 44 | %patch0 -p1 |
ef576ac2 | 45 | |
ef576ac2 AG |
46 | %install |
47 | rm -rf $RPM_BUILD_ROOT | |
48 | install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{plugindir},%{_mandir}/man1} | |
49 | install -p %{plugin} $RPM_BUILD_ROOT%{plugindir}/%{plugin} | |
7b88b913 ER |
50 | cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/%{plugin}.cfg |
51 | cp -p check_ssl_cert.1 $RPM_BUILD_ROOT%{_mandir}/man1 | |
ef576ac2 AG |
52 | |
53 | %clean | |
54 | rm -rf $RPM_BUILD_ROOT | |
55 | ||
56 | %files | |
57 | %defattr(644,root,root,755) | |
2fe01f09 | 58 | %doc AUTHORS COPYRIGHT INSTALL NEWS README.md TODO VERSION |
ef576ac2 AG |
59 | %attr(640,root,nagios) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{plugin}.cfg |
60 | %attr(755,root,root) %{plugindir}/%{plugin} | |
61 | %{_mandir}/man1/check_ssl_cert.1* |