Summary: A tool for network monitoring and data acquisition. Name: tcpdump Version: 3.7.1 Release: 2 License: IBM_ILA URL: http://www.tcpdump.org Group: Applications/Networking Source: ftp://ftp.ee.lbl.gov/%{name}-%{version}.tar.gz Source1: IBM_ILA Patch1: tcpdump-3.7.1-path.patch Patch2: tcpdump-3.7.1-newaix.patch Buildroot: /var/tmp/tcpdump-root %define DEFCC cc %description tcpdump is a network analysis tool. %prep %setup -q %patch1 -p0 -b .path %patch2 -p1 -b .aix # Add license info cat $RPM_SOURCE_DIR/IBM_ILA > LICENSE.new cat $RPM_SOURCE_DIR/LICENSE >> LICENSE.new mv LICENSE.new LICENSE %build # Use the default compiler for this platform - gcc otherwise if [[ -z "$CC" ]] then if test "X`type %{DEFCC} 2>/dev/null`" != 'X'; then export CC=%{DEFCC} else export CC=gcc fi fi if test "X$CC" != "Xgcc" then export RPM_OPT_FLAGS=`echo $RPM_OPT_FLAGS | sed 's:-fsigned-char::'` # Do not optimize if test "X$CC" = "Xcc" then export RPM_OPT_FLAGS=" " fi fi export CFLAGS="$RPM_OPT_FLAGS" /opt/freeware/src/packages/BUILD/tcpdump-3.7.1/configure --disable-ipv6 ###%configure --disable-ipv6 make CCOPT="$CFLAGS" %install rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT%{_prefix}/sbin mkdir -p $RPM_BUILD_ROOT%{_prefix}/man/man1 ###make install install-man DESTDIR=$RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT strip $RPM_BUILD_ROOT%{_prefix}/sbin/* || : (cd $RPM_BUILD_ROOT for dir in sbin do mkdir -p usr/linux/bin cd usr/linux/bin ln -sf ../../..%{_prefix}/$dir/* . cd - done ) %files %defattr(-,root,root) %doc LICENSE CHANGES CREDITS INSTALL README %{_prefix}/sbin/* /usr/linux/bin/tcpdump %{_prefix}/man/man1/* %clean rm -rf $RPM_BUILD_ROOT %changelog * Fri Nov 22 2002 David Clissold - Add IBM ILA license. * Fri Jul 19 2002 Chris Tysor - Update to version 3.7.1, add missing %doc files. * Mon Feb 11 2002 David Clissold - Strip the binary. * Wed May 30 2001 Marc Stephenson - Corrected summary and description * Tue May 22 2001 Marc Stephenson - Minor modifications * Mon May 21 2001 Olof Johansson - First version