]> git.pld-linux.org Git - packages/nagios-plugin-check_ssl_cert.git/blob - nagios-plugin-check_ssl_cert.spec
- up to 1.11.0
[packages/nagios-plugin-check_ssl_cert.git] / nagios-plugin-check_ssl_cert.spec
1 %define         plugin  check_ssl_cert
2 Summary:        Nagios plugin to check the CA and validity of an X.509 certificate
3 Summary(pl.UTF-8):      Wtyczka Nagiosa sprawdzająca CA i ważność certyfikatu X.509
4 Name:           nagios-plugin-%{plugin}
5 Version:        1.11.0
6 Release:        1
7 License:        GPL v3
8 Group:          Networking
9 Source0:        https://trac.id.ethz.ch/projects/nagios_plugins/downloads/%{plugin}-%{version}.tar.gz
10 # Source0-md5:  051548a08ee6372c687d200efe148c0f
11 Source1:        check_ssl_cert.cfg
12 Patch0:         ca_path.patch
13 URL:            https://trac.id.ethz.ch/projects/nagios_plugins/wiki/check_ssl_cert
14 BuildRequires:  rpm >= 4.4.9-56
15 Requires:       expect
16 Requires:       nagios-common
17 Requires:       sed >= 4.0
18 Requires:       which
19 Suggests:       ca-certificates-update
20 BuildArch:      noarch
21 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23 %define         _sysconfdir     /etc/nagios/plugins
24 %define         plugindir       %{_prefix}/lib/nagios/plugins
25 %if "%{pld_release}" == "th"
26 %define         openssldir      /etc/openssl/certs
27 %else
28 %define         openssldir      /var/lib/openssl/certs
29 %endif
30
31 %description
32 check_ssl_cert is a Nagios plugin to check X.509 certificates. It
33 checks if the server is running and delivers a valid certificate. It
34 also checks if the CA matches a given pattern, and checks the
35 validity.
36
37 %description -l pl.UTF-8
38 Wtyczka Nagiosa sprawdzająca certyfikaty X.509. Wtyczka ta sprawdza
39 czy serwer działa poprawnie oraz czy dostarcza ważny certyfikat.
40 Dodatkowo sprawdza czy CA pasuje do określonego wzorca i weryfikuje
41 jego poprawność.
42
43 %prep
44 %setup -q -n %{plugin}-%{version}
45 %patch0 -p1
46 %{__sed} -i -e 's,@cadir@,%{openssldir},' %{plugin}
47
48 %install
49 rm -rf $RPM_BUILD_ROOT
50 install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{plugindir},%{_mandir}/man1}
51 install -p %{plugin} $RPM_BUILD_ROOT%{plugindir}/%{plugin}
52 cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/%{plugin}.cfg
53 cp -p check_ssl_cert.1 $RPM_BUILD_ROOT%{_mandir}/man1
54
55 %clean
56 rm -rf $RPM_BUILD_ROOT
57
58 %files
59 %defattr(644,root,root,755)
60 %doc AUTHORS COPYRIGHT INSTALL NEWS README TODO VERSION
61 %attr(640,root,nagios) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{plugin}.cfg
62 %attr(755,root,root) %{plugindir}/%{plugin}
63 %{_mandir}/man1/check_ssl_cert.1*
This page took 0.075426 seconds and 4 git commands to generate.