]> git.pld-linux.org Git - SPECS.git/blob - nagios-plugin-check_temperature.spec
SPECS updated Wed 28 Jul 14:48:01 CEST 2021
[SPECS.git] / nagios-plugin-check_temperature.spec
1 %define         plugin  check_temperature
2 Summary:        Nagios plugin to check temperatures
3 Name:           nagios-plugin-%{plugin}
4 Version:        1.2
5 Release:        1
6 License:        BSD
7 Group:          Networking
8 Source0:        http://www.hoppie.nl/tempsens/check_temperature
9 # Source0-md5:  52af8cf292537680f9a624e41d557edf
10 Patch0:         paths.patch
11 Patch1:         compatible-devs.patch
12 Source1:        %{plugin}.cfg
13 URL:            http://www.hoppie.nl/tempsens/
14 BuildRequires:  rpm-perlprov >= 4.1-13
15 Requires:       nagios-common
16 BuildArch:      noarch
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19 %define         _sysconfdir     /etc/nagios/plugins
20 %define         plugindir       %{_prefix}/lib/nagios/plugins
21
22 %description
23 Nagios plugin to check temperatures using Digitemp (or compatible
24 device).
25
26 %prep
27 %setup -qcT
28 cp -p %{SOURCE0} %{plugin}
29 %patch0 -p1
30 %patch1 -p1
31
32 %install
33 rm -rf $RPM_BUILD_ROOT
34 install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{plugindir}}
35 install -p %{plugin} $RPM_BUILD_ROOT%{plugindir}/%{plugin}
36 cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/%{plugin}.cfg
37
38 %clean
39 rm -rf $RPM_BUILD_ROOT
40
41 %files
42 %defattr(644,root,root,755)
43 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{plugin}.cfg
44 %attr(755,root,root) %{plugindir}/%{plugin}
This page took 0.398045 seconds and 3 git commands to generate.