]> git.pld-linux.org Git - packages/tcpdump.git/blobdiff - tcpdump.spec
- changed all BuildRoot definitons
[packages/tcpdump.git] / tcpdump.spec
index 79baf7e069356670558677ece3bb35a95cc31f19..7e7d1ee414a03e58b30ac91df56a7afb34e204d4 100644 (file)
@@ -1,21 +1,24 @@
-Summary:     dumps packets that are sent or received over a network interface
-Summary(de): deponiert Pakete, die über eine Netzwerkschnittstelle gesandt oder empfangen werden  
-Summary(fr): vide les paquets émis ou reçus sur une interface réseau
-Summary(pl): Pokazuje pakiety przechodz±ce przez inerfejsy sieciowe
-Summary(tr): Bir að arabirimi üzerinden gelen ya da giden paketleri listeler
-Name:        tcpdump
-Version:     3.4a6
-Release:     1d
-Copyright:   BSD
-Group:       Applications/Networking
-Source0:     ftp://ftp.inner.net/pub/ipv6/%{name}-%{version}+ipv6-1.tar.gz
-Source1:     ftp://ftp.inner.net/pub/ipv6/libpcap-0.4a6+ipv6-1.tar.gz
-Patch0:      tcpdump.patch
-Patch1:      libcap.patch
-Patch2:      GNUmakefile.patch
-Patch3:      Makefile.patch
-Patch4:      pcap.so_attach_filter.patch
-BuildRoot:     /tmp/%{name}-%{version}-root
+Summary:       dumps packets that are sent or received over a network interface
+Summary(de):   deponiert Pakete, die über eine Netzwerkschnittstelle gesandt oder empfangen werden 
+Summary(fr):   vide les paquets émis ou reçus sur une interface réseau
+Summary(pl):   Pokazuje pakiety przechodz±ce przez inerfejsy sieciowe
+Summary(tr):   Bir að arabirimi üzerinden gelen ya da giden paketleri listeler
+Name:          tcpdump
+Version:       3.4
+Release:       17
+Copyright:     BSD
+Serial:                1
+Group:         Applications/Networking
+Group(pl):     Aplikacje/Sieciowe
+Source0:       ftp://ftp.ee.lbl.gov//%{name}-%{version}.tar.Z
+Patch0:         ftp://ftp.inr.ac.ru/ip-routing/lbl-tools/tcpdump-3.4-ss990523.dif.gz
+Patch1:                tcpdump-glibc2.1.patch
+Patch2:                tcpdump-make.patch
+Patch3:                tcpdump-giop.patch
+Patch4:                tcpdump-iphl.patch
+Patch5:                tcpdump-sparc64.patch
+BuildRequires: libpcap-devel
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
 Tcpdump prints out the headers of packets on a network interface.  It
@@ -40,38 +43,28 @@ G
 yararlýdýr.
 
 %prep
-%setup -q -c -a 1
-
-cd %{name}-%{version}
-%patch -p1
+%setup -q
+%patch0 -p1
+%patch1 -p1
 %patch2 -p1
-cd ..
+%patch3 -p1
+%patch4 -p1
+%patch5 -p1
 
 %build
-cd libpcap-0.4a6
-
-patch -p2 < $RPM_SOURCE_DIR/libcap.patch
-patch -p1 < $RPM_SOURCE_DIR/Makefile.patch
-patch -p1 < $RPM_SOURCE_DIR/pcap.so_attach_filter.patch
-
-CFLAGS=$RPM_OPT_FLAGS ./configure --prefix=/usr
-make
-cd ..
-
-cd tcpdump-3.4a6
-CFLAGS="$RPM_OPT_FLAGS -DIP_MAX_MEMBERSHIPS=20" ./configure --prefix=/usr
+CFLAGS="$RPM_OPT_FLAGS -DIP_MAX_MEMBERSHIPS=20"
+LDFLAGS="-s"
+export CFLAGS LDFLAGS
+%configure
 make
 
 %install
 rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_sbindir},%{_mandir}/man1}
 
-install -d $RPM_BUILD_ROOT/usr/{sbin,man/man8}
-
-cd tcpdump-3.4a6
-install -s tcpdump $RPM_BUILD_ROOT%{_sbindir}
-install tcpdump.1 $RPM_BUILD_ROOT%{_mandir}/man8/tcpdump.8
+make install install-man DESTDIR=$RPM_BUILD_ROOT
 
-bzip2 -9 $RPM_BUILD_ROOT%{_mandir}/man8/*
+gzip -9nf $RPM_BUILD_ROOT%{_mandir}/man1/*
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -79,27 +72,4 @@ rm -rf $RPM_BUILD_ROOT
 %files
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_sbindir}/tcpdump
-%{_mandir}/man8/*
-
-%changelog
-* Tue Jul 2 1998 Wojtek ¦lusarczyk <wojtek@shadow.eu.org>
-  [3.4a6-1d]
-- build against glibc-2.1,
-- added IPv6 support,
-- updatet to relase 3.4a6,
-- translation modified for pl,
-- changed permission of tcpdump to 711,
-- moved %changelog at the end of spec.
-
-* Thu May 07 1998 Prospector System <bugs@redhat.com>
-- translations modified for de, fr, tr
-
-* Sat May  2 1998 Alan Cox <alan@rehat.com>
-- Added the SACK printing fix so you can dump Linux 2.1+.
-
-* Tue Oct 21 1997 Erik Troan <ewt@redhat.com>
-- updated to release 3.4a5
-- uses a buildroot and %attr 
-
-* Thu Jul 17 1997 Erik Troan <ewt@redhat.com>
-- built against glibc
+%{_mandir}/man1/*
This page took 0.058222 seconds and 4 git commands to generate.