Summary: A tool for network monitoring and data acquisition. Name: tcpdump Version: 3.8.1 Release: 1 License: IBM_ILA URL: http://www.tcpdump.org Group: Applications/Networking Source: http://www.tcpdump.org/release/%{name}-%{version}.tar.gz Source1: IBM_ILA Patch1: tcpdump-boundscheck.patch Buildroot: /var/tmp/tcpdump-root Prefix: %{_prefix} %define DEFCC cc %description tcpdump is a network analysis tool. %prep %setup -q %patch1 -p0 -b .bounds # 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" ./configure --disable-ipv6 make CCOPT="$CFLAGS" %install rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT%{_prefix} ##mkdir -p $RPM_BUILD_ROOT%{_prefix}/sbin ##mkdir -p $RPM_BUILD_ROOT%{_prefix}/man/man1 make install DESTDIR=$RPM_BUILD_ROOT #The prefix isn't being honored. Move stuff where we want it. (cd $RPM_BUILD_ROOT mv ./usr/local/sbin $RPM_BUILD_ROOT/%{prefix}/sbin mv ./usr/local/man $RPM_BUILD_ROOT/%{prefix}/man rmdir ./usr/local ) 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 * Mon Jan 19 2004 David Clissold 3.8.1-1 - Update to version 3.8.1 * 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