]> git.pld-linux.org Git - packages/hping2.git/blame - hping2.spec
rel. .aos1
[packages/hping2.git] / hping2.spec
CommitLineData
d23cc65b 1Summary: A software to do TCP/IP stack auditing and much more
fe9c21ec 2Summary(pl.UTF-8): Oprogramowanie do audytu stosu TCP/IP
09670153 3Name: hping2
1911dd67 4%define _rc rc3
90c4af6b 5Version: 2.0.0
feb35d82 6Release: 7.aos1
d23cc65b
JR
7License: GPL/BSD
8Group: Networking/Utilities
1251ccbf
JB
9#Source0Download: http://www.hping.org/download.html
10Source0: http://www.hping.org/hping%{version}-%{_rc}.tar.gz
1911dd67 11# Source0-md5: 029bf240f2e0545b664b2f8b9118d9e8
4290a3ed 12Patch0: %{name}-pcap.patch
cd714762 13URL: http://www.hping.org/
4290a3ed 14BuildRequires: libpcap-devel >= 2:0.8.1
09670153
JB
15Provides: hping
16Obsoletes: hping
d23cc65b
JR
17BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19%description
8ed378d9
PG
20hping is a network tool able to send custom ICMP/UDP/TCP packets and
21to display target replies like ping do with ICMP replies. hping
a74b512e
JB
22handle fragmentation, arbitrary packet body and size and can be used
23in order to transfer files under supported protocols.
d23cc65b 24
999b5305
JR
25%description -l pl.UTF-8
26hping to narzędzie sieciowe do wysyłania własnych pakietów
27ICMP/UDP/TCP i wyświetlania odpowiedzi, podobnie jak robi to ping z
28odpowiedziami ICMP. hping obsługuje fragmentację, dowolne zawartości
29i rozmiary pakietów i może być używany do przesyłania plików przez
30obsługiwane protokoły.
3980d31f 31
d23cc65b 32%prep
09670153 33%setup -q -n %{name}-%{_rc}
4290a3ed 34%patch0 -p1
d23cc65b
JR
35
36%build
37MANPATH="%{_mandir}" \
090330cc 38
39%ifarch ppc sparc ppc64 sparc64 sparcv9
40%define byteorder -DBYTE_ORDER_BIG_ENDIAN
41%else
42%define byteorder -DBYTE_ORDER_LITTLE_ENDIAN
43%endif
44
d23cc65b 45./configure --force-libpcap
090330cc 46:>bytesex.h
d23cc65b 47
e075ec71 48%{__make} \
49 CC="%{__cc}" \
090330cc 50 CCOPT="%{rpmcflags} %{byteorder}" \
51 DEBUG=""
d23cc65b
JR
52
53%install
54rm -rf $RPM_BUILD_ROOT
55install -d $RPM_BUILD_ROOT{%{_sbindir},%{_mandir}/man8}
56
57install hping2 $RPM_BUILD_ROOT%{_sbindir}
58install docs/hping2.8 $RPM_BUILD_ROOT%{_mandir}/man8
59
60ln -sf hping2 $RPM_BUILD_ROOT%{_sbindir}/hping
61
90c4af6b 62rm -fR docs/CVS
d23cc65b
JR
63
64%clean
65rm -rf $RPM_BUILD_ROOT
66
67%files
68%defattr(644,root,root,755)
29976a05 69%doc COPYING *BUGS README TODO docs/[A-Z]*
d23cc65b
JR
70%attr(755,root,root) %{_sbindir}/*
71%{_mandir}/man8/*
This page took 0.08043 seconds and 4 git commands to generate.