]> git.pld-linux.org Git - packages/tcpdump.git/blob - tcpdump.spec
- release 2: make %%{debug ready.
[packages/tcpdump.git] / tcpdump.spec
1 %define         longver 3_5rel2
2 %define         shortver 3.5
3 Summary:        dumps packets that are sent or received over a network interface
4 Summary(de):    deponiert Pakete, die über eine Netzwerkschnittstelle gesandt oder empfangen werden 
5 Summary(fr):    vide les paquets émis ou reçus sur une interface réseau
6 Summary(pl):    Pokazuje pakiety przechodz±ce przez inerfejsy sieciowe
7 Summary(tr):    Bir að arabirimi üzerinden gelen ya da giden paketleri listeler
8 Name:           tcpdump
9 Version:        3.5.2
10 Release:        2
11 Epoch:          1
12 License:        BSD
13 Group:          Applications/Networking
14 Group(pl):      Aplikacje/Sieciowe
15 Source0:        http://www.tcpdump.org/release/%{name}-%{version}.tar.gz
16 Patch0:         ftp://ftp.inr.ac.ru/ip-routing/lbl-tools/%{name}-3.4-ss990523.dif.gz
17 Patch1:         %{name}-glibc2.1.patch
18 Patch2:         %{name}-make.patch
19 Patch3:         %{name}-giop.patch
20 Patch4:         %{name}-iphl.patch
21 Patch5:         %{name}-sparc64.patch
22 Patch6:         ftp://ftp2.v6.linux.or.jp/pub/Linux/IPv6-2/tcpdump/%{name}_%{longver}-linux-20000720.patch.gz
23 Patch7:         %{name}-ssl.patch
24 Patch8:         ftp://ftp.freebsd.org/pub/FreeBSD/CERT/patches/SA-00:61/%{name}-4.x.patch
25 BuildRequires:  libpcap-devel
26 BuildConflicts: libsmi-devel
27 BuildRequires:  openssl-devel
28 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29
30 %description
31 Tcpdump prints out the headers of packets on a network interface. It
32 is very useful for debugging network problems and security operations.
33
34 %description -l de
35 Tcpdump druckt die Headers von Paketen auf einer Netzschnittstelle. Es
36 ist überaus nützlich zum Debuggen von Netzwerkproblemen und von
37 Sicherheitsoperationen.
38
39 %description -l fr
40 tcpdump affiche les en-têtes des paquets d'une interface réseau. Il
41 est très utile pour détecter les problèmes de réseau et de sécurité.
42
43 %description -l pl
44 Tcpdump s³u¿y do analizy pakietów przechodz±cych przez interfejscy
45 sieciowe, jest u¿ytecznym narzêdziem do ¶ledzenia ruchu w sieci.
46
47 %description -l tr
48 Tcpdump, bir að arabirimi üzerinden geçen paketlerin baþlýklarýný
49 döker. Güvenlik iþlemleri ve að problemlerinin irdelenmesi konularýnda
50 son derece yararlýdýr.
51
52 %prep
53 %setup -q -n %{name}-%{shortver}
54 #%patch0 -p1
55 #%patch1 -p1
56 %patch2 -p1
57 %patch3 -p1 
58 %patch4 -p1
59 #%patch5 -p1
60 %patch6 -p1
61 %patch7 -p1
62 %patch8 -p0
63
64 %build
65 autoconf
66 CFLAGS="%{!?debug:$RPM_OPT_FLAGS}%{?debug:-O -g} -DIP_MAX_MEMBERSHIPS=20"
67 %configure --enable-ipv6
68 %{__make}
69
70 %install
71 rm -rf $RPM_BUILD_ROOT
72 install -d $RPM_BUILD_ROOT{%{_sbindir},%{_mandir}/man1}
73
74 %{__make} install install-man DESTDIR=$RPM_BUILD_ROOT
75
76 gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man1/*
77
78 %clean
79 rm -rf $RPM_BUILD_ROOT
80
81 %files
82 %defattr(644,root,root,755)
83 %attr(755,root,root) %{_sbindir}/tcpdump
84 %{_mandir}/man1/*
This page took 0.043276 seconds and 4 git commands to generate.