]>
Commit | Line | Data |
---|---|---|
d23cc65b | 1 | Summary: A software to do TCP/IP stack auditing and much more |
fe9c21ec | 2 | Summary(pl.UTF-8): Oprogramowanie do audytu stosu TCP/IP |
09670153 | 3 | Name: hping2 |
1911dd67 | 4 | %define _rc rc3 |
90c4af6b | 5 | Version: 2.0.0 |
feb35d82 | 6 | Release: 7.aos1 |
d23cc65b JR |
7 | License: GPL/BSD |
8 | Group: Networking/Utilities | |
1251ccbf JB |
9 | #Source0Download: http://www.hping.org/download.html |
10 | Source0: http://www.hping.org/hping%{version}-%{_rc}.tar.gz | |
1911dd67 | 11 | # Source0-md5: 029bf240f2e0545b664b2f8b9118d9e8 |
4290a3ed | 12 | Patch0: %{name}-pcap.patch |
cd714762 | 13 | URL: http://www.hping.org/ |
4290a3ed | 14 | BuildRequires: libpcap-devel >= 2:0.8.1 |
09670153 JB |
15 | Provides: hping |
16 | Obsoletes: hping | |
d23cc65b JR |
17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
18 | ||
19 | %description | |
8ed378d9 PG |
20 | hping is a network tool able to send custom ICMP/UDP/TCP packets and |
21 | to display target replies like ping do with ICMP replies. hping | |
a74b512e JB |
22 | handle fragmentation, arbitrary packet body and size and can be used |
23 | in order to transfer files under supported protocols. | |
d23cc65b | 24 | |
999b5305 JR |
25 | %description -l pl.UTF-8 |
26 | hping to narzędzie sieciowe do wysyłania własnych pakietów | |
27 | ICMP/UDP/TCP i wyświetlania odpowiedzi, podobnie jak robi to ping z | |
28 | odpowiedziami ICMP. hping obsługuje fragmentację, dowolne zawartości | |
29 | i rozmiary pakietów i może być używany do przesyłania plików przez | |
30 | obsługiwane protokoły. | |
3980d31f | 31 | |
d23cc65b | 32 | %prep |
09670153 | 33 | %setup -q -n %{name}-%{_rc} |
4290a3ed | 34 | %patch0 -p1 |
d23cc65b JR |
35 | |
36 | %build | |
37 | MANPATH="%{_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 | |
54 | rm -rf $RPM_BUILD_ROOT | |
55 | install -d $RPM_BUILD_ROOT{%{_sbindir},%{_mandir}/man8} | |
56 | ||
57 | install hping2 $RPM_BUILD_ROOT%{_sbindir} | |
58 | install docs/hping2.8 $RPM_BUILD_ROOT%{_mandir}/man8 | |
59 | ||
60 | ln -sf hping2 $RPM_BUILD_ROOT%{_sbindir}/hping | |
61 | ||
90c4af6b | 62 | rm -fR docs/CVS |
d23cc65b JR |
63 | |
64 | %clean | |
65 | rm -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/* |