Summary: A tool for network monitoring and data acquisition. Name: tcpdump Version: 4.7.4 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 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildRequires: libpcap-devel >= 1.4.0 BuildRequires: sed Requires: libpcap >= 1.7.4 %description Tcpdump is a command-line tool for monitoring network traffic. Tcpdump can capture and display the packet headers on a particular network interface or on all interfaces. Tcpdump can display all of the packet headers, or just the ones that match particular criteria. Install tcpdump if you need a program to monitor network traffic. %prep %setup -q %build export CC="cc -qcpluscmt" export AR="/usr/bin/ar -X32_64" ./configure \ --prefix=%{_prefix} \ --mandir=%{_mandir} # --disable-ipv6 is no more an option of TCPDUMP configure make %{?_smp_mflags} %install [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} make install DESTDIR=${RPM_BUILD_ROOT} strip ${RPM_BUILD_ROOT}%{_sbindir}/* || : mv -f ${RPM_BUILD_ROOT}%{_mandir}/man1 ${RPM_BUILD_ROOT}%{_mandir}/man8 # fix section numbers /opt/freeware/bin/sed -i 's/\(\.TH[a-zA-Z ]*\)[1-9]\(.*\)/\18\2/' \ ${RPM_BUILD_ROOT}%{_mandir}/man8/* cd ${RPM_BUILD_ROOT} mkdir -p usr/linux/bin cd usr/linux/bin ln -sf ../../..%{_sbindir}/* . %clean [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} %files %defattr(-,root,system) %doc LICENSE README.md CHANGES CREDITS %{_sbindir}/* %{_mandir}/man8/* /usr/linux/bin/* %changelog * Thu Apr 14 2016 Ravi Hirekurabar 4.7.4 - Update to version 4.7.4 * 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