Blob Blame History Raw
%define	cvs	20051105
Name:    hping3
Version: 0.0.%{cvs}
Release: 6%{?dist}
Summary: TCP/IP stack auditing and much more

Group: Applications/Internet
License: GPL
URL: http://www.hping.org/
Source0: http://www.hping.org/hping3-20051105.tar.gz
Patch0: hping3-include.patch
Patch1: hping3-bytesex.patch
Patch2: hping3-getifnamedebug.patch
Patch3: hping3-cflags.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: libpcap-devel, tcl-devel
Obsoletes: hping2
Provides: hping2

%description
hping3 is a network tool able to send custom TCP/IP packets and to
display target replies like ping do with ICMP replies. hping3 can handle
fragmentation, and almost arbitrary packet size and content, using the
command line interface.
Since version 3, hping implements scripting capabilties

%prep

%setup -q  -n hping3-20051105
%patch0 -p0 -b .include
%patch1 -p0 -b .bytesex
%patch2 -p1 -b .getifnamedebug
%patch3 -p0 -b .cflags

%build
%configure --force-libpcap
make %{?_smp_mflags}

%install
rm -rf $RPM_BUILD_ROOT

install -d $RPM_BUILD_ROOT{%{_sbindir},%{_mandir}/man8}

install -m0755 hping3 $RPM_BUILD_ROOT%{_sbindir}
install -m0644 docs/hping3.8 $RPM_BUILD_ROOT%{_mandir}/man8

ln -sf hping3 $RPM_BUILD_ROOT%{_sbindir}/hping
ln -sf hping3 $RPM_BUILD_ROOT%{_sbindir}/hping2

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(0644,root,root,0755)
%doc COPYING *BUGS CHANGES README TODO docs/AS-BACKDOOR docs/HPING2-HOWTO.txt
%doc docs/HPING2-IS-OPEN docs/MORE-FUN-WITH-IPID docs/SPOOFED_SCAN.txt
%doc docs/HPING3.txt
%attr(755,root,root) %{_sbindir}/*
%{_mandir}/man8/*

%changelog
* Fri Feb  2 2007 Paul Wouters <paul@xelerance.com> 0.0.20051105-6
- Rebuild for new tcl 8.5 dependancy

* Wed Nov 29 2006 Paul Wouters <paul@xelerance.com> 0.0.20051105-5
- Rebuild for new libpcap dependancy

* Thu Sep  7 2006 Paul Wouters <paul@xelerance.com> 0.0.20051105-4
- Rebuild requested for PT_GNU_HASH support from gcc

* Sun May 19 2006 Paul Wouters <paul@xelerance.com> 0.0.20051105-2
- Added Provides hping2 to fix upgrade path

* Sun May 07 2006 Paul Wouters <paul@xelerance.com> 0.0.20051105-1
- Initial Release based on hping2 package