Sophie

Sophie

distrib > Mandriva > 2006.0 > x86_64 > media > contrib-src > by-pkgid > 52cc8358ba55cb3c82a3048368f44b15 > files > 3

hping2-2.0.0-0.rc3.2mdk.src.rpm

%define name		hping2
%define version		2.0.0
%define beta		rc3
%define rel %mkrel 2
%define release		0.%{beta}.%rel
%define summary		TCP/IP packet assembler/analyzer

Name:		%{name}
Version:	%{version}
Release:	%{release}
Summary:	%{summary}
License:	GPL
Group:		Monitoring
Source:		http://www.kyuzz.org/antirez/hping-src/%{name}.0.0-%{beta}.tar.bz2
Patch0: hping2.endianamd64.patch.bz2
URL:		http://www.kyuzz.org/antirez/hping.html
BuildRoot:	%{_tmppath}/%{name}-buildroot

%description
hping is a command-line oriented TCP/IP packet assembler/analyzer. The 
interface is very similar to the ping(8) unix command, with many
extensions. It supports TCP, UDP, ICMP and RAW-IP protocols. A scripting
language is under developing.

%prep
rm -rf $RPM_BUILD_ROOT

%setup -q -n %{name}-%{beta}
%patch0 -p0 -b .endianamd64

%build
%configure
%make

%install
install -d 755 $RPM_BUILD_ROOT%{_sbindir}
install -d 755 $RPM_BUILD_ROOT%{_mandir}/man8
install -m 755 hping2 $RPM_BUILD_ROOT%{_sbindir}
install -m 644 docs/hping2.8 $RPM_BUILD_ROOT%{_mandir}/man8
cd $RPM_BUILD_ROOT%{_sbindir} && ln -s hping2 hping

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc BUGS CHANGES COPYING INSTALL KNOWN-BUGS TODO
%{_sbindir}/*
%{_mandir}/man8/hping2.8.*

%changelog
* Fri Apr 08 2005 Olivier Thauvin <thauvin@aerov.jussieu.fr> 2.0.0-0.rc3.2mdk
- Patch0: add x86_64 as little endian

* Mon May 03 2004 Olivier Thauvin <thauvin@aerov.jussieu.fr> 2.0.0-0.rc3.1mdk
- 2.0.0-rc3

* Mon Feb 23 2004 Lenny Cartier <lenny@mandrakesoft.com> 2.0.0-0.%{beta}.3mdk
- rebuild

* Wed Jan 29 2003 Lenny Cartier <lenny@mandrakesoft.com> 2.0.0-0.%{beta}.2mdk
- rebuild

* Thu Nov 21 2002 Lenny Cartier <lenny@mandrakesoft.com> 2.0.0-0.rc2.1mdk
- rc2

* Wed May 29 2002 Olivier Thauvin <thauvin@aerov.jussieu.fr> 2.0.0-0.rc1.2mdk
- rc1
- remove patch0
- ./configure to %%configure

* Fri Oct 26 2001 Guillaume Rousse <g.rousse@linux-mandrake.com> 2.0.0-0.beta54.2mdk
- new in contribs

* Fri Jul 20 2001 Guillaume Rousse <g.rousse@linux-mandrake.com> 2.0.0-0.beta54.1mdk
- first mdk version