Summary: A network traffic monitoring tool Name: tcpdump Version: 4.9.1 Release: 1 License: BSD with advertising URL: http://www.tcpdump.org Group: Applications/Internet Source0: http://www.tcpdump.org/release/%{name}-%{version}.tar.gz Source1: http://www.tcpdump.org/release/%{name}-%{version}.tar.gz.sig BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildRequires: openssl-devel >= 1.0.2l-1 BuildRequires: libpcap-devel >= 1.8.1-1 BuildRequires: libsmi-devel >= 0.4.8-1 BuildRequires: sed Requires: openssl >= 1.0.2l-1 Requires: libpcap >= 1.8.1-1 Requires: libsmi >= 0.4.8-1 %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_r -qcpluscmt" ./configure \ --prefix=%{_prefix} \ --mandir=%{_mandir} \ --disable-ipv6 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 * Fri Sep 15 2017 Michael Perzl - 4.9.1-1 - updated to version 4.9.1 * Tue Feb 07 2017 Michael Perzl - 4.9.0-1 - updated to version 4.9.0 * Wed Nov 16 2016 Michael Perzl - 4.8.1-2 - recompiled against latest versions * Sat Oct 29 2016 Michael Perzl - 4.8.1-1 - updated to version 4.8.1 * Fri Mar 04 2016 Michael Perzl - 4.7.4-2 - recompiled against latest versions * Fri Jan 01 2016 Michael Perzl - 4.7.4-1 - updated to version 4.7.4 * Mon Mar 23 2015 Michael Perzl - 4.7.3-1 - updated to version 4.7.3 * Wed Aug 13 2014 Michael Perzl - 4.6.2-1 - updated to version 4.6.2 * Wed Aug 13 2014 Michael Perzl - 4.6.1-1 - updated to version 4.6.1 * Thu Nov 28 2013 Michael Perzl - 4.5.1-1 - updated to version 4.5.1 * Wed Jun 26 2013 Michael Perzl - 4.4.0-1 - updated to version 4.4.0 * Mon Jun 25 2012 Michael Perzl - 4.3.0-1 - updated to version 4.3.0 * Sat Jan 28 2012 Michael Perzl - 4.2.1-1 - updated to version 4.2.1 * Tue Apr 13 2010 Michael Perzl - 4.1.1-1 - updated to version 4.1.1 * Tue Apr 13 2010 Michael Perzl - 3.9.8-1 - first version for AIX V5.1 and higher