123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- Summary: A tool to replay captured network traffic.
- Name: tcpreplay
- Version: @TCPREPLAY_VERSION@
- Release: @TCPREPLAY_RELEASE@
- License: BSD
- Group: Applications/Internet
- Source0: http://prdownloads.sf.net/tcpreplay/tcpreplay-%{version}.tar.gz
- Prefix: %{_prefix}
- BuildRoot: %{_tmppath}/%{name}-root
- Packager: Aaron Turner <aturner@pobox.com>
- Requires: libnet >= 1.1, libpcap >= 0.7.1
- BuildPreReq: libnet >= 1.1, libpcap >= 0.7.1
- URL: http://tcpreplay.sf.net/
- # set to 1 to enable debugging
- %define enable_debug 0
- %description
- Tcpreplay is a tool to replay captured network traffic. Currently, tcpreplay
- supports pcap (tcpdump) and snoop capture formats. Also included, is tcpprep
- a tool to pre-process capture files to allow increased performance under
- certain conditions as well as capinfo which provides basic information about
- capture files.
- %prep
- %setup -q
- %build
- %if %{enable_debug}
- ./configure --with-debug
- %else
- ./configure
- %endif
- make
- %install
- mkdir -p $RPM_BUILD_ROOT%{_bindir}
- mkdir -p $RPM_BUILD_ROOT%{_sbindir}
- mkdir -p $RPM_BUILD_ROOT%{_mandir}/man8
- mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1
- install -m755 tcpreplay $RPM_BUILD_ROOT%{_sbindir}
- install -m755 tcpprep $RPM_BUILD_ROOT%{_bindir}
- install -m755 capinfo $RPM_BUILD_ROOT%{_bindir}
- install -m755 pcapmerge $RPM_BUILD_ROOT%{_bindir}
- install -m755 flowreplay $RPM_BUILD_ROOT%{_bindir}
- install -m644 man/tcpreplay.8 $RPM_BUILD_ROOT%{_mandir}/man8
- install -m644 man/tcpprep.1 $RPM_BUILD_ROOT%{_mandir}/man1
- install -m644 man/capinfo.1 $RPM_BUILD_ROOT%{_mandir}/man1
- install -m644 man/pcapmerge.1 $RPM_BUILD_ROOT%{_mandir}/man1
- install -m644 man/flowreplay.8 $RPM_BUILD_ROOT%{_mandir}/man8
- %clean
- rm -rf ${RPM_BUILD_ROOT}
- %files
- %defattr(-,root,root)
- %doc Docs/CHANGELOG Docs/LICENSE Docs/README Docs/FAQ.html Docs/FAQ.txt Docs/FAQ.pdf Docs/FAQ.ps Docs/FAQ.css
- %{_bindir}/*
- %{_sbindir}/*
- %{_mandir}/man8/*
- %{_mandir}/man1/*
- %changelog
- * Wed May 29 2003 Aaron Turner <aturner@pobox.com>
- - Update paths for man pages and docs
- * Sun Dec 22 2002 Aaron Turner <aturner@pobox.com>
- - Update packaging to add pcapmerge and remove tcpprep.FAQ
- * Fri Jun 28 2002 Aaron Turner <aturner@pobox.com>
- - Initial packaging
|