rpms/tcpreplay/devel tcpreplay-Makefile.in-destdir.patch, NONE, 1.1 tcpreplay.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
Bojan Smojver (bojan)
fedora-extras-commits at redhat.com
Tue Apr 17 22:14:51 UTC 2007
- Previous message: rpms/dclib/devel dclib-0.3.8-cconfig-use-cfile.patch, NONE, 1.1 dclib.spec, 1.10, 1.11
- Next message: rpms/tcpreplay/FC-6 tcpreplay-Makefile.in-destdir.patch, NONE, 1.1 tcpreplay.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: bojan
Update of /cvs/extras/rpms/tcpreplay/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv684
Modified Files:
.cvsignore sources
Added Files:
tcpreplay-Makefile.in-destdir.patch tcpreplay.spec
Log Message:
Initial checkin of tcpreplay.
tcpreplay-Makefile.in-destdir.patch:
--- NEW FILE tcpreplay-Makefile.in-destdir.patch ---
--- Makefile.in.orig 2007-04-02 16:59:46.000000000 +1000
+++ Makefile.in 2007-04-02 17:00:56.000000000 +1000
@@ -17,7 +17,7 @@
LNAVLIB = @LNAVLIB@
LNAV_CFLAGS = @LNAV_CFLAGS@
-INSTALL = @INSTALL@
+INSTALL = @INSTALL@ -p
BINARIES = tcpreplay capinfo pcapmerge tcpprep flowreplay
@@ -78,32 +78,32 @@
-cd Docs && make distclean
install:
- test -d $(SBINDIR) || $(INSTALL) -d $(SBINDIR)
- test -d $(BINDIR) || $(INSTALL) -d $(BINDIR)
- test -d $(MAN8DIR) || $(INSTALL) -d $(MAN8DIR)
- test -d $(MAN1DIR) || $(INSTALL) -d $(MAN1DIR)
- $(INSTALL) -m 755 tcpreplay $(SBINDIR)
- $(INSTALL) -m 755 capinfo $(BINDIR)
- $(INSTALL) -m 755 tcpprep $(BINDIR)
- $(INSTALL) -m 755 pcapmerge $(BINDIR)
- $(INSTALL) -m 755 flowreplay $(BINDIR)
- $(INSTALL) -m 644 man/tcpreplay.8 $(MAN8DIR)
- $(INSTALL) -m 644 man/capinfo.1 $(MAN1DIR)
- $(INSTALL) -m 644 man/tcpprep.1 $(MAN1DIR)
- $(INSTALL) -m 644 man/pcapmerge.1 $(MAN1DIR)
- $(INSTALL) -m 644 man/flowreplay.1 $(MAN1DIR)
+ test -d $(DESTDIR)$(SBINDIR) || $(INSTALL) -d $(DESTDIR)$(SBINDIR)
+ test -d $(DESTDIR)$(BINDIR) || $(INSTALL) -d $(DESTDIR)$(BINDIR)
+ test -d $(DESTDIR)$(MAN8DIR) || $(INSTALL) -d $(DESTDIR)$(MAN8DIR)
+ test -d $(DESTDIR)$(MAN1DIR) || $(INSTALL) -d $(DESTDIR)$(MAN1DIR)
+ $(INSTALL) -m 755 tcpreplay $(DESTDIR)$(SBINDIR)
+ $(INSTALL) -m 755 capinfo $(DESTDIR)$(BINDIR)
+ $(INSTALL) -m 755 tcpprep $(DESTDIR)$(BINDIR)
+ $(INSTALL) -m 755 pcapmerge $(DESTDIR)$(BINDIR)
+ $(INSTALL) -m 755 flowreplay $(DESTDIR)$(BINDIR)
+ $(INSTALL) -m 644 man/tcpreplay.8 $(DESTDIR)$(MAN8DIR)
+ $(INSTALL) -m 644 man/capinfo.1 $(DESTDIR)$(MAN1DIR)
+ $(INSTALL) -m 644 man/tcpprep.1 $(DESTDIR)$(MAN1DIR)
+ $(INSTALL) -m 644 man/pcapmerge.1 $(DESTDIR)$(MAN1DIR)
+ $(INSTALL) -m 644 man/flowreplay.1 $(DESTDIR)$(MAN1DIR)
uninstall:
- rm -f $(SBINDIR)/tcpreplay
- rm -f $(MAN8DIR)/tcpreplay.8
- rm -f $(BINDIR)/capinfo
- rm -f $(MAN1DIR)/capinfo.1
- rm -f $(BINDIR)/tcpprep
- rm -f $(MAN1DIR)/tcpprep.1
- rm -f $(BINDIR)/pcapmerge
- rm -f $(MAN1DIR)/pcapmerge.1
- rm -f $(BINDIR)/flowreplay
- rm -f $(MAN8DIR)/flowreplay.8
+ rm -f $(DESTDIR)$(SBINDIR)/tcpreplay
+ rm -f $(DESTDIR)$(MAN8DIR)/tcpreplay.8
+ rm -f $(DESTDIR)$(BINDIR)/capinfo
+ rm -f $(DESTDIR)$(MAN1DIR)/capinfo.1
+ rm -f $(DESTDIR)$(BINDIR)/tcpprep
+ rm -f $(DESTDIR)$(MAN1DIR)/tcpprep.1
+ rm -f $(DESTDIR)$(BINDIR)/pcapmerge
+ rm -f $(DESTDIR)$(MAN1DIR)/pcapmerge.1
+ rm -f $(DESTDIR)$(BINDIR)/flowreplay
+ rm -f $(DESTDIR)$(MAN8DIR)/flowreplay.8
pretty:
indent -br -brs -ts4 -ncdw -nce -ncs -npcs -nprs -l80 -lc80 -lp -psl -i4 -nut *.c *.h
--- NEW FILE tcpreplay.spec ---
# EL4 doesn't have libpcap-devel
%if 0%{?rhel} && "%rhel" < "5"
%define pcapdep libpcap
%else
%define pcapdep libpcap-devel
%endif
Name: tcpreplay
Version: 2.3.5
Release: 4%{?dist}
Summary: Replay captured network traffic
Group: Applications/Internet
License: BSD
URL: http://tcpreplay.synfin.net/trac/
Source: http://prdownloads.sourceforge.net/tcpreplay/tcpreplay-%{version}.tar.gz
Patch0: tcpreplay-Makefile.in-destdir.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: libnet-devel >= 1.1, %{pcapdep} >= 0.5, tcpdump
Requires: /usr/sbin/tcpdump
%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
%patch0 -p0 -b .destdir
%build
%configure
# make sure we use proper CFLAGS
%{__sed} -ie 's/^CFLAGS.*/CFLAGS=${RPM_OPT_FLAGS}/' Makefile
# remove unneeded docs
%{__rm} -f Docs/INSTALL Docs/WARNINGS Docs/*.dvi Docs/*.tex Docs/*.lyx \
Docs/*.fig Docs/*.pl Docs/*.pdf Docs/*.ps Docs/*.eps Docs/*.aux \
Docs/*.log Docs/Makefile
# fix source file permissions
%{__chmod} -x *.c
%{__make} %{?_smp_mflags}
%install
%{__rm} -rf %{buildroot}
%{__make} install DESTDIR=%{buildroot}
%clean
%{__rm} -rf %{buildroot}
%files
%defattr(-, root, root, -)
%doc Docs/*
%doc %{_mandir}/man1/*
%doc %{_mandir}/man8/*
%{_bindir}/*
%{_sbindir}/*
%changelog
* Tue Apr 17 2007 Bojan Smojver <bojan at rexursive com> - 2.3.5-4
- Remove Makefile from docs
* Tue Apr 17 2007 Bojan Smojver <bojan at rexursive com> - 2.3.5-3
- Implement suggestions from package review process
* Tue Apr 03 2007 Bojan Smojver <bojan at rexursive com> - 2.3.5-2
- Add tcpdump to build and runtime dependencies
- Cater for EL4, where there is no libpcap-devel
* Mon Apr 02 2007 Bojan Smojver <bojan at rexursive com> - 2.3.5-1
- Initial release, 2.3.5
- Based on package provided by Dag Wieers
Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/tcpreplay/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore 17 Apr 2007 16:52:50 -0000 1.1
+++ .cvsignore 17 Apr 2007 22:14:17 -0000 1.2
@@ -0,0 +1 @@
+tcpreplay-2.3.5.tar.gz
Index: sources
===================================================================
RCS file: /cvs/extras/rpms/tcpreplay/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources 17 Apr 2007 16:52:50 -0000 1.1
+++ sources 17 Apr 2007 22:14:17 -0000 1.2
@@ -0,0 +1 @@
+fff1c5a382bc869caabfb20f4b3b3dad tcpreplay-2.3.5.tar.gz
- Previous message: rpms/dclib/devel dclib-0.3.8-cconfig-use-cfile.patch, NONE, 1.1 dclib.spec, 1.10, 1.11
- Next message: rpms/tcpreplay/FC-6 tcpreplay-Makefile.in-destdir.patch, NONE, 1.1 tcpreplay.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the scm-commits
mailing list