1
0

tcpreplay.spec.in 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. Summary: A tool to replay captured network traffic.
  2. Name: tcpreplay
  3. Version: @TCPREPLAY_VERSION@
  4. Release: @TCPREPLAY_RELEASE@
  5. License: BSD
  6. Group: Applications/Internet
  7. Source0: http://prdownloads.sf.net/tcpreplay/tcpreplay-%{version}.tar.gz
  8. Prefix: %{_prefix}
  9. BuildRoot: %{_tmppath}/%{name}-root
  10. Packager: Aaron Turner <aturner@pobox.com>
  11. Requires: libnet >= 1.1, libpcap >= 0.7.1
  12. BuildPreReq: libnet >= 1.1, libpcap >= 0.7.1
  13. URL: http://tcpreplay.sf.net/
  14. # set to 1 to enable debugging
  15. %define enable_debug 0
  16. %description
  17. Tcpreplay is a tool to replay captured network traffic. Currently, tcpreplay
  18. supports pcap (tcpdump) and snoop capture formats. Also included, is tcpprep
  19. a tool to pre-process capture files to allow increased performance under
  20. certain conditions as well as capinfo which provides basic information about
  21. capture files.
  22. %prep
  23. %setup -q
  24. %build
  25. %if %{enable_debug}
  26. ./configure --with-debug
  27. %else
  28. ./configure
  29. %endif
  30. make
  31. %install
  32. mkdir -p $RPM_BUILD_ROOT%{_bindir}
  33. mkdir -p $RPM_BUILD_ROOT%{_sbindir}
  34. mkdir -p $RPM_BUILD_ROOT%{_mandir}/man8
  35. mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1
  36. install -m755 tcpreplay $RPM_BUILD_ROOT%{_sbindir}
  37. install -m755 tcpprep $RPM_BUILD_ROOT%{_bindir}
  38. install -m755 capinfo $RPM_BUILD_ROOT%{_bindir}
  39. install -m755 pcapmerge $RPM_BUILD_ROOT%{_bindir}
  40. install -m755 flowreplay $RPM_BUILD_ROOT%{_bindir}
  41. install -m644 man/tcpreplay.8 $RPM_BUILD_ROOT%{_mandir}/man8
  42. install -m644 man/tcpprep.1 $RPM_BUILD_ROOT%{_mandir}/man1
  43. install -m644 man/capinfo.1 $RPM_BUILD_ROOT%{_mandir}/man1
  44. install -m644 man/pcapmerge.1 $RPM_BUILD_ROOT%{_mandir}/man1
  45. install -m644 man/flowreplay.8 $RPM_BUILD_ROOT%{_mandir}/man8
  46. %clean
  47. rm -rf ${RPM_BUILD_ROOT}
  48. %files
  49. %defattr(-,root,root)
  50. %doc Docs/CHANGELOG Docs/LICENSE Docs/README Docs/FAQ.html Docs/FAQ.txt Docs/FAQ.pdf Docs/FAQ.ps Docs/FAQ.css
  51. %{_bindir}/*
  52. %{_sbindir}/*
  53. %{_mandir}/man8/*
  54. %{_mandir}/man1/*
  55. %changelog
  56. * Wed May 29 2003 Aaron Turner <aturner@pobox.com>
  57. - Update paths for man pages and docs
  58. * Sun Dec 22 2002 Aaron Turner <aturner@pobox.com>
  59. - Update packaging to add pcapmerge and remove tcpprep.FAQ
  60. * Fri Jun 28 2002 Aaron Turner <aturner@pobox.com>
  61. - Initial packaging