tcpreplay.spec.in 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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.5
  12. BuildPreReq: libnet >= 1.1, libpcap >= 0.5
  13. URL: http://tcpreplay.sf.net/
  14. # set to 1 to enable debugging
  15. %define enable_debug 0
  16. %description
  17. Tcpreplay is a suite of tools to edit and replay captured network traffic.
  18. The tcpreplay suite includes tcpprep to pre-process pcap files, tcprewrite a
  19. pcap editor and tcpreplay to send packets. Also included is tcpbridge which
  20. is a user-space bridge and flowreplay, a client-side agent using pcap files
  21. as the basis of connections.
  22. %prep
  23. %setup -q
  24. %build
  25. %if %{enable_debug}
  26. ./configure --enable-debug
  27. %else
  28. ./configure
  29. %endif
  30. make
  31. %install
  32. mkdir -p $RPM_BUILD_ROOT%{_bindir}
  33. mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1
  34. install -m755 src/tcpreplay $RPM_BUILD_ROOT%{_bindir}
  35. install -m755 src/tcpprep $RPM_BUILD_ROOT%{_bindir}
  36. install -m755 src/flowreplay $RPM_BUILD_ROOT%{_bindir}
  37. install -m755 src/tcpbridge $RPM_BUILD_ROOT%{_bindir}
  38. install -m755 src/tcprewrite $RPM_BUILD_ROOT%{_bindir}
  39. install -m644 man/tcpreplay.1 $RPM_BUILD_ROOT%{_mandir}/man1
  40. install -m644 man/tcpprep.1 $RPM_BUILD_ROOT%{_mandir}/man1
  41. install -m644 man/flowreplay.1 $RPM_BUILD_ROOT%{_mandir}/man1
  42. install -m644 man/tcpbridge.1 $RPM_BUILD_ROOT%{_mandir}/man1
  43. install -m644 man/tcprewrite.1 $RPM_BUILD_ROOT%{_mandir}/man1
  44. %clean
  45. rm -rf ${RPM_BUILD_ROOT}
  46. %files
  47. %defattr(-,root,root)
  48. %doc docs/CHANGELOG docs/LICENSE docs/README docs/TODO docs/CREDIT \
  49. docs/NOTES docs/INSTALL docs/FAQ.pdf docs/manual.pdf docs/flowreplay.pdf
  50. %{_bindir}/*
  51. %{_mandir}/man1/*
  52. %changelog
  53. * Thu Jun 16 2005 Aaron Turner <aturner@pobox.com>
  54. - Make things right for 3.0
  55. * Wed May 29 2003 Aaron Turner <aturner@pobox.com>
  56. - Update paths for man pages and docs
  57. * Sun Dec 22 2002 Aaron Turner <aturner@pobox.com>
  58. - Update packaging to add pcapmerge and remove tcpprep.FAQ
  59. * Fri Jun 28 2002 Aaron Turner <aturner@pobox.com>
  60. - Initial packaging