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