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

Group: Applications/Internet
License: GPLv2
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
Patch4: hping3-man.patch
Patch5: hping3-20051105-typo.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
%patch4 -p0 -b .man
%patch5 -p1

%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
* Tue Jul 17 2012 Paul Wouters <pwouters@redhat.com> - 0.0.20051105-18
- Fix typo in output (tramitting -> transmitting), rhbz#781325

* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.20051105-17
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild

* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.20051105-16
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild

* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.20051105-15
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild

* Mon May 25 2009 Dan Horak <dan[at]danny.cz> - 0.0.20051105-14
- update the bytesex patch to include s390/s390x arch

* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.20051105-13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild

* Fri Nov 27 2008 Paul Wouters <paul@xelerance.com> - 0.0.20051105-12
- Fix for "sh" arch, see https://bugzilla.redhat.com/show_bug.cgi?id=471709

* Fri Nov  7 2008 Paul Wouters <paul@xelerance.com> - 0.0.20051105-11
- Fix for man page, see https://bugzilla.redhat.com/show_bug.cgi?id=456675

* Thu Jul 31 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.0.20051105-10
- fix license tag

* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.0.20051105-9
- Autorebuild for GCC 4.3

* Thu Jan  3 2008 Alex Lancaster <alexlan[AT]fedoraproject.org> - 0.0.20051105-8
- Rebuild against new Tcl 8.5

* Fri Feb 22 2007 Paul Wouters <paul@xelerance.com> 0.0.20051105-7
- Rebuild for new tcl 8.4 dependancy (it got rolled back)

* 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