1
0

tcpreplay.spec.in 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. # $Id: tcpreplay.spec.in 1921 2007-10-25 18:18:50Z 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.
  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/tcpbridge $RPM_BUILD_ROOT%{_bindir}
  37. install -m755 src/tcprewrite $RPM_BUILD_ROOT%{_bindir}
  38. install -m644 man/tcpreplay.1 $RPM_BUILD_ROOT%{_mandir}/man1
  39. install -m644 man/tcpprep.1 $RPM_BUILD_ROOT%{_mandir}/man1
  40. install -m644 man/tcpbridge.1 $RPM_BUILD_ROOT%{_mandir}/man1
  41. install -m644 man/tcprewrite.1 $RPM_BUILD_ROOT%{_mandir}/man1
  42. %clean
  43. rm -rf ${RPM_BUILD_ROOT}
  44. %files
  45. %defattr(-,root,root)
  46. %doc docs/CHANGELOG docs/LICENSE docs/README docs/TODO docs/CREDIT \
  47. docs/NOTES docs/INSTALL docs/FAQ.pdf docs/manual.pdf
  48. %{_bindir}/*
  49. %{_mandir}/man1/*
  50. %changelog
  51. * Thu Jun 16 2005 Aaron Turner <aturner@pobox.com>
  52. - Make things right for 3.0
  53. * Wed May 29 2003 Aaron Turner <aturner@pobox.com>
  54. - Update paths for man pages and docs
  55. * Sun Dec 22 2002 Aaron Turner <aturner@pobox.com>
  56. - Update packaging to add pcapmerge and remove tcpprep.FAQ
  57. * Fri Jun 28 2002 Aaron Turner <aturner@pobox.com>
  58. - Initial packaging