Summary: A network scanner that reports network changes Name: netdiff Version: 1.0 Release: 1.5.2.fc3 License: GPL Group: Applications/Networking BuildArch: noarch Source0: http://ftp.engardelinux.org/pub/engarde/people/pax/%{name}/%{name}-%{version}.tar.gz Requires: nmap BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) %description netdiff is a network reporting tool written in perl that runs nmap portscans of a specified network or networks and stores the results to a MySQL database. It then can report the differences between successive scans, giving administrators a snapshot view of recent changes on their network. %prep %setup %build %install [ "%{buildroot}" != "/" ] && rm -fr "%{buildroot}" install -d %{buildroot}/%{_sbindir} install -m 755 -p netdiff %{buildroot}/%{_sbindir} install -d -m 750 %{buildroot}/%{_sysconfdir}/%{name} install -m 640 netdiff.conf %{buildroot}/%{_sysconfdir}/%{name}/netdiff.conf install -m 640 netdiff-create-tables.sql %{buildroot}/%{_sysconfdir}/%{name}/netdiff-create-tables.sql install -d %{buildroot}/%{_sysconfdir}/cron.d install -m 640 netdiff.cron %{buildroot}/%{_sysconfdir}/cron.d/netdiff install -d %{buildroot}%{_docdir}/%{name}-%{version}-%{release} %files %defattr(-,root,root) %attr(0755,root,root) %{_sbindir}/netdiff %dir %{_sysconfdir}/%{name} %attr(0640,root,root) %config(noreplace) %{_sysconfdir}/%{name}/netdiff.conf %attr(0640,root,root) %{_sysconfdir}/%{name}/netdiff-create-tables.sql %attr(0640,root,root) %config(noreplace) %{_sysconfdir}/cron.d/netdiff %{_docdir}/* %clean [ "%{buildroot}" != "/" ] && rm -rf %{buildroot} %changelog * Tue Aug 09 2005 Dale Bewley - Version 1.0, Release 1.5.2.fc3 - Rebuild for Fedora Core 3 by: - remove requires MySQL since that may be on another server - define buildroot - use buildroot when installing files rather than real root - use install rather than cp - various cleanup suggested by rpmlint * Fri Apr 22 2005 Pax Dickinson - Version 1.0, Release 1 - Initial build for EnGarde Secure Linux