forked from appneta/tcpreplay
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtcpreplay.spec.in
74 lines (61 loc) · 2.18 KB
/
tcpreplay.spec.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# $Id$
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 <[email protected]>
Requires: libnet >= 1.1, libpcap >= 0.5
BuildPreReq: libnet >= 1.1, libpcap >= 0.5
URL: http://tcpreplay.sf.net/
# set to 1 to enable debugging
%define enable_debug 0
%description
Tcpreplay is a suite of tools to edit and replay captured network traffic.
The tcpreplay suite includes tcpprep to pre-process pcap files, tcprewrite a
pcap editor and tcpreplay to send packets. Also included is tcpbridge which
is a user-space bridge and flowreplay, a client-side agent using pcap files
as the basis of connections.
%prep
%setup -q
%build
%if %{enable_debug}
./configure --enable-debug
%else
./configure
%endif
make
%install
mkdir -p $RPM_BUILD_ROOT%{_bindir}
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1
install -m755 src/tcpreplay $RPM_BUILD_ROOT%{_bindir}
install -m755 src/tcpprep $RPM_BUILD_ROOT%{_bindir}
install -m755 src/flowreplay $RPM_BUILD_ROOT%{_bindir}
install -m755 src/tcpbridge $RPM_BUILD_ROOT%{_bindir}
install -m755 src/tcprewrite $RPM_BUILD_ROOT%{_bindir}
install -m644 man/tcpreplay.1 $RPM_BUILD_ROOT%{_mandir}/man1
install -m644 man/tcpprep.1 $RPM_BUILD_ROOT%{_mandir}/man1
install -m644 man/flowreplay.1 $RPM_BUILD_ROOT%{_mandir}/man1
install -m644 man/tcpbridge.1 $RPM_BUILD_ROOT%{_mandir}/man1
install -m644 man/tcprewrite.1 $RPM_BUILD_ROOT%{_mandir}/man1
%clean
rm -rf ${RPM_BUILD_ROOT}
%files
%defattr(-,root,root)
%doc docs/CHANGELOG docs/LICENSE docs/README docs/TODO docs/CREDIT \
docs/NOTES docs/INSTALL docs/FAQ.pdf docs/manual.pdf docs/flowreplay.pdf
%{_bindir}/*
%{_mandir}/man1/*
%changelog
* Thu Jun 16 2005 Aaron Turner <[email protected]>
- Make things right for 3.0
* Wed May 29 2003 Aaron Turner <[email protected]>
- Update paths for man pages and docs
* Sun Dec 22 2002 Aaron Turner <[email protected]>
- Update packaging to add pcapmerge and remove tcpprep.FAQ
* Fri Jun 28 2002 Aaron Turner <[email protected]>
- Initial packaging