File: tcpreplay.spec.in

package info (click to toggle)
tcpreplay 3.3.1-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 5,204 kB
  • ctags: 5,239
  • sloc: ansic: 21,432; sh: 10,933; makefile: 835; perl: 138
file content (71 lines) | stat: -rw-r--r-- 2,068 bytes parent folder | download
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
# $Id: tcpreplay.spec.in 1910 2007-10-23 21:49:53Z aturner $
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.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.

%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/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/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
%{_bindir}/*
%{_mandir}/man1/*


%changelog
* Thu Jun 16 2005 Aaron Turner <aturner@pobox.com>
- Make things right for 3.0

* 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