]> git.pld-linux.org Git - packages/nagios-plugin-check_chef_stale.git/blob - nagios-plugin-check_chef_stale.spec
up to 0.4.0
[packages/nagios-plugin-check_chef_stale.git] / nagios-plugin-check_chef_stale.spec
1 %define         plugin  check_chef_stale
2 Summary:        Nagios/Icinga plugin to check stale nodes in Chef
3 Name:           nagios-plugin-%{plugin}
4 Version:        0.4.0
5 Release:        1
6 License:        GPL v2
7 Group:          Networking
8 Source0:        https://github.com/glensc/monitoring-plugin-check_chef_stale/archive/v%{version}/%{plugin}-%{version}.tar.gz
9 # Source0-md5:  28db2a26d0b78f045f7c70ac702e435d
10 URL:            https://github.com/glensc/monitoring-plugin-check_chef_stale
11 Requires:       knife
12 Requires:       nagios-common
13 BuildArch:      noarch
14 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15
16 %define         _sysconfdir     /etc/nagios/plugins
17 %define         plugindir       %{_prefix}/lib/nagios/plugins
18
19 %description
20 Alerting for stale nodes on Chef with Nagios/Icinga.
21
22 %prep
23 %setup -q -n monitoring-plugin-check_chef_stale-%{version}
24
25 %install
26 rm -rf $RPM_BUILD_ROOT
27 install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{plugindir}}
28 install -p %{plugin}.rb $RPM_BUILD_ROOT%{plugindir}/%{plugin}
29 cp -p %{plugin}.cfg $RPM_BUILD_ROOT%{_sysconfdir}/%{plugin}.cfg
30
31 %clean
32 rm -rf $RPM_BUILD_ROOT
33
34 %files
35 %defattr(644,root,root,755)
36 %doc README.md
37 %attr(640,root,nagios) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{plugin}.cfg
38 %attr(755,root,root) %{plugindir}/%{plugin}
This page took 0.045315 seconds and 3 git commands to generate.