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