938da06
Name:           arp-scan
938da06
Version:        1.6 
938da06
Release:        1%{?dist}
938da06
Summary:        Scanning and fingerprinting tool
938da06
938da06
Group:          Applications/Internet
938da06
License:        GPL
938da06
URL:            http://www.nta-monitor.com/tools/arp-scan/
938da06
Source0:        http://www.nta-monitor.com/tools/arp-scan/download/%{name}-%{version}.tar.gz
938da06
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
938da06
938da06
BuildRequires:  libpcap-devel
938da06
Requires:       perl(LWP::Simple)
938da06
938da06
938da06
%description
938da06
arp-scan is a command-line tool that uses the ARP protocol to discover and
938da06
fingerprint IP hosts on the local network.
938da06
938da06
%prep
938da06
%setup -q
938da06
938da06
938da06
%build
938da06
#install to sbindir
938da06
%configure --bindir=%{_sbindir}
938da06
make %{?_smp_mflags}
938da06
938da06
938da06
%install
938da06
rm -rf $RPM_BUILD_ROOT
938da06
make install DESTDIR=$RPM_BUILD_ROOT
938da06
938da06
#fix permissions for -debuginfo package
938da06
chmod 0644 $RPM_BUILD_DIR/%{name}-%{version}/mt19937ar.c
938da06
938da06
#fix permissions for files in sbindir
938da06
chmod 0755 $RPM_BUILD_ROOT%{_sbindir}/*
938da06
938da06
%clean
938da06
rm -rf $RPM_BUILD_ROOT
938da06
938da06
938da06
%files
938da06
%defattr(-,root,root,-)
938da06
%doc AUTHORS ChangeLog COPYING README TODO 
938da06
%{_sbindir}/*
938da06
%{_datadir}/arp-scan
938da06
%{_mandir}/man?/*
938da06
938da06
938da06
%changelog
938da06
* Sun May 06 2007 Sindre Pedersen Bjørdal <foolish[AT]guezz.net> - 1.6-1
938da06
- Initial build