tcpreplay.spec.in 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. # $Id: tcpreplay.spec.in 1463 2006-04-13 05:25:09Z aturner $
  2. Summary: A tool to replay captured network traffic.
  3. Name: tcpreplay
  4. Version: @TCPREPLAY_VERSION@
  5. Release: @TCPREPLAY_RELEASE@
  6. License: BSD
  7. Group: Applications/Internet
  8. Source0: http://prdownloads.sf.net/tcpreplay/tcpreplay-%{version}.tar.gz
  9. Prefix: %{_prefix}
  10. BuildRoot: %{_tmppath}/%{name}-root
  11. Packager: Aaron Turner <aturner@pobox.com>
  12. Requires: libnet >= 1.1, libpcap >= 0.5
  13. BuildPreReq: libnet >= 1.1, libpcap >= 0.5
  14. URL: http://tcpreplay.sf.net/
  15. # set to 1 to enable debugging
  16. %define enable_debug 0
  17. %description
  18. Tcpreplay is a suite of tools to edit and replay captured network traffic.
  19. The tcpreplay suite includes tcpprep to pre-process pcap files, tcprewrite a
  20. pcap editor and tcpreplay to send packets. Also included is tcpbridge which
  21. is a user-space bridge and flowreplay, a client-side agent using pcap files
  22. as the basis of connections.
  23. %prep
  24. %setup -q
  25. %build
  26. %if %{enable_debug}
  27. ./configure --enable-debug
  28. %else
  29. ./configure
  30. %endif
  31. make
  32. %install
  33. mkdir -p $RPM_BUILD_ROOT%{_bindir}
  34. mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1
  35. install -m755 src/tcpreplay $RPM_BUILD_ROOT%{_bindir}
  36. install -m755 src/tcpprep $RPM_BUILD_ROOT%{_bindir}
  37. install -m755 src/flowreplay $RPM_BUILD_ROOT%{_bindir}
  38. install -m755 src/tcpbridge $RPM_BUILD_ROOT%{_bindir}
  39. install -m755 src/tcprewrite $RPM_BUILD_ROOT%{_bindir}
  40. install -m644 man/tcpreplay.1 $RPM_BUILD_ROOT%{_mandir}/man1
  41. install -m644 man/tcpprep.1 $RPM_BUILD_ROOT%{_mandir}/man1
  42. install -m644 man/flowreplay.1 $RPM_BUILD_ROOT%{_mandir}/man1
  43. install -m644 man/tcpbridge.1 $RPM_BUILD_ROOT%{_mandir}/man1
  44. install -m644 man/tcprewrite.1 $RPM_BUILD_ROOT%{_mandir}/man1
  45. %clean
  46. rm -rf ${RPM_BUILD_ROOT}
  47. %files
  48. %defattr(-,root,root)
  49. %doc docs/CHANGELOG docs/LICENSE docs/README docs/TODO docs/CREDIT \
  50. docs/NOTES docs/INSTALL docs/FAQ.pdf docs/manual.pdf docs/flowreplay.pdf
  51. %{_bindir}/*
  52. %{_mandir}/man1/*
  53. %changelog
  54. * Thu Jun 16 2005 Aaron Turner <aturner@pobox.com>
  55. - Make things right for 3.0
  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