]> git.pld-linux.org Git - packages/nagios-plugin-check_scan.git/blame - nagios-plugin-check_scan.spec
package subdirs
[packages/nagios-plugin-check_scan.git] / nagios-plugin-check_scan.spec
CommitLineData
1aa82fb7
ER
1%define plugin check_scan
2Summary: A nmap scanner plugin for Nagios
3Name: nagios-plugin-%{plugin}
ddb074f7
ER
4Version: 20051011
5Release: 1
1aa82fb7
ER
6License: GPL v2+
7Group: Networking
8Source0: http://www.altsec.info/check_scan.sh
9# Source0-md5: 8e79becb95012c2aedf0b9c68373f928
b0bc1bec 10Source1: %{plugin}.cfg
f870cc69 11Patch0: pld.patch
1aa82fb7 12URL: http://www.altsec.info/check_scan.html
f870cc69 13Requires: coreutils
1aa82fb7 14Requires: grep
f870cc69 15Requires: nagios-common
1aa82fb7 16Requires: nmap
1aa82fb7
ER
17BuildArch: noarch
18BuildRoot: %{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
f870cc69 23%define statedir /var/lib/nagios/check_scan
1aa82fb7
ER
24
25%description
26A nmap scanner plugin for Nagios
27
28Here'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
35check_scan.sh does a "TCP connect scan", so it doesn't have to run as
36root.
37
38%prep
39%setup -qcT
40cp -p %{SOURCE0} %{plugin}
f870cc69 41%patch0 -p1
1aa82fb7
ER
42
43%install
44rm -rf $RPM_BUILD_ROOT
2df0d49f 45install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{plugindir},%{statedir}/{files,scans}}
1aa82fb7 46install -p %{plugin} $RPM_BUILD_ROOT%{plugindir}/%{plugin}
b0bc1bec 47cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/%{plugin}.cfg
1aa82fb7
ER
48
49%clean
50rm -rf $RPM_BUILD_ROOT
51
52%files
53%defattr(644,root,root,755)
b0bc1bec 54%attr(640,root,nagios) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{plugin}.cfg
1aa82fb7 55%attr(755,root,root) %{plugindir}/%{plugin}
2df0d49f
ER
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.061073 seconds and 4 git commands to generate.