]> git.pld-linux.org Git - packages/monitoring-plugin-check_file_exists.git/blob - monitoring-plugin-check_file_exists.spec
4c1ce14bf0fa3f8235ad6c6cfae2d807abe1250e
[packages/monitoring-plugin-check_file_exists.git] / monitoring-plugin-check_file_exists.spec
1 %define         plugin  check_file_exists
2 Summary:        Monitoring plugin to check if a file exists or not
3 Name:           monitoring-plugin-%{plugin}
4 Version:        1.0
5 Release:        1
6 License:        GPL
7 Group:          Networking
8 Source0:        https://exchange.nagios.org/components/com_mtree/attachment.php?link_id=2330&cf_id=24&/%{plugin}.sh
9 # Source0-md5:  388097c05f6e58f4eeaca2cdf132331e
10 Source1:        %{plugin}.cfg
11 URL:            https://exchange.nagios.org/directory/Plugins/System-Metrics/File-System/check_file_exists/details
12 BuildRequires:  rpmbuild(macros) >= 1.654
13 Requires:       nagios-common
14 Requires:       nagios-plugins-libs
15 BuildArch:      noarch
16 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18 %define         _sysconfdir     /etc/nagios/plugins
19 %define         nrpeddir        /etc/nagios/nrpe.d
20 %define         plugindir       %{_prefix}/lib/nagios/plugins
21
22 %description
23 Monitoring plugin to check if a file exists or not.
24
25 %prep
26 %setup -qcT
27 cp -p %{SOURCE0} %{plugin}
28
29 %install
30 rm -rf $RPM_BUILD_ROOT
31 install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{nrpeddir},%{plugindir}}
32 install -p %{plugin} $RPM_BUILD_ROOT%{plugindir}/%{plugin}
33 cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/%{plugin}.cfg
34
35 %clean
36 rm -rf $RPM_BUILD_ROOT
37
38 %files
39 %defattr(644,root,root,755)
40 %attr(640,root,nagios) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{plugin}.cfg
41 %attr(755,root,root) %{plugindir}/%{plugin}
This page took 0.063292 seconds and 2 git commands to generate.