]> git.pld-linux.org Git - packages/nagios-plugin-check_scan.git/blob - nagios-plugin-check_scan.spec
package subdirs
[packages/nagios-plugin-check_scan.git] / nagios-plugin-check_scan.spec
1 %define         plugin  check_scan
2 Summary:        A nmap scanner plugin for Nagios
3 Name:           nagios-plugin-%{plugin}
4 Version:        20051011
5 Release:        1
6 License:        GPL v2+
7 Group:          Networking
8 Source0:        http://www.altsec.info/check_scan.sh
9 # Source0-md5:  8e79becb95012c2aedf0b9c68373f928
10 Source1:        %{plugin}.cfg
11 Patch0:         pld.patch
12 URL:            http://www.altsec.info/check_scan.html
13 Requires:       coreutils
14 Requires:       grep
15 Requires:       nagios-common
16 Requires:       nmap
17 BuildArch:      noarch
18 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20 %define         _sysconfdir     /etc/nagios/plugins
21 %define         nrpeddir        /etc/nagios/nrpe.d
22 %define         plugindir       %{_prefix}/lib/nagios/plugins
23 %define         statedir        /var/lib/nagios/check_scan
24
25 %description
26 A nmap scanner plugin for Nagios
27
28 Here's what it does:
29 - On the initial scan, it creates a baseline scan for future
30   comparison.
31 - On each subsequent check, it compares the new scan against the
32   baseline.
33 - Changes are reported in "warning" status, showing the open port.
34
35 check_scan.sh does a "TCP connect scan", so it doesn't have to run as
36 root.
37
38 %prep
39 %setup -qcT
40 cp -p %{SOURCE0} %{plugin}
41 %patch0 -p1
42
43 %install
44 rm -rf $RPM_BUILD_ROOT
45 install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{plugindir},%{statedir}/{files,scans}}
46 install -p %{plugin} $RPM_BUILD_ROOT%{plugindir}/%{plugin}
47 cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/%{plugin}.cfg
48
49 %clean
50 rm -rf $RPM_BUILD_ROOT
51
52 %files
53 %defattr(644,root,root,755)
54 %attr(640,root,nagios) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{plugin}.cfg
55 %attr(755,root,root) %{plugindir}/%{plugin}
56 %dir %attr(750,root,nagios) %{statedir}
57 %dir %attr(770,root,nagios) %{statedir}/files
58 %dir %attr(770,root,nagios) %{statedir}/scans
This page took 0.048172 seconds and 3 git commands to generate.