]>
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} |
e2aee15d | 5 | Version: 1.17.1 |
7b88b913 | 6 | Release: 1 |
ef576ac2 AG |
7 | License: GPL v3 |
8 | Group: Networking | |
9 | Source0: https://trac.id.ethz.ch/projects/nagios_plugins/downloads/%{plugin}-%{version}.tar.gz | |
e2aee15d | 10 | # Source0-md5: ffcc0c4debd7d7dc568101b762c34cd9 |
7b88b913 | 11 | Source1: check_ssl_cert.cfg |
80a22d15 | 12 | Patch0: ca_path.patch |
ef576ac2 | 13 | URL: https://trac.id.ethz.ch/projects/nagios_plugins/wiki/check_ssl_cert |
80a22d15 | 14 | BuildRequires: rpm >= 4.4.9-56 |
ef576ac2 AG |
15 | Requires: expect |
16 | Requires: nagios-common | |
9c2bdb6e | 17 | Requires: openssl-tools >= 0.9.8i-3 |
eeae0d50 ER |
18 | Requires: perl(Date::Parse) |
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} | |
80a22d15 | 43 | %patch0 -p1 |
ef576ac2 | 44 | |
ef576ac2 AG |
45 | %install |
46 | rm -rf $RPM_BUILD_ROOT | |
47 | install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{plugindir},%{_mandir}/man1} | |
48 | install -p %{plugin} $RPM_BUILD_ROOT%{plugindir}/%{plugin} | |
7b88b913 ER |
49 | cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/%{plugin}.cfg |
50 | cp -p check_ssl_cert.1 $RPM_BUILD_ROOT%{_mandir}/man1 | |
ef576ac2 AG |
51 | |
52 | %clean | |
53 | rm -rf $RPM_BUILD_ROOT | |
54 | ||
55 | %files | |
56 | %defattr(644,root,root,755) | |
57 | %doc AUTHORS COPYRIGHT INSTALL NEWS README TODO VERSION | |
58 | %attr(640,root,nagios) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{plugin}.cfg | |
59 | %attr(755,root,root) %{plugindir}/%{plugin} | |
60 | %{_mandir}/man1/check_ssl_cert.1* |