Skip to content
Browse files

FL-771: unfork net-analyzer/tcpreplay

  • Loading branch information...
1 parent bd81af0 commit f3385b77d9f285a47f14d0ad751cce3b59e375e2 @danielrobbins danielrobbins committed Sep 24, 2013
View
3 net-analyzer/tcpreplay/Manifest
@@ -1,3 +0,0 @@
-DIST tcpreplay-3.4.4.tar.gz 947179 RMD160 672812755ff39b284044b08cba32c574ab2b7e70 SHA1 9e4cca81cfbfb919f8759e1a27ce1b3b963ff3b8 SHA256 7a809c58ddec86407fd6e5597ac883d7874a19bea81d716bb2b1c6e3b0e7b58f
-DIST tcpreplay-3.4.5beta2.tar.gz 1886620 RMD160 d1840f1d1c1e85a708af6b9b395c52cc96456652 SHA1 340f3593683e7b026aaef8f20e1a7fcc2ddb6046 SHA256 072a5ef9997e817a78b272d4a2af70386456998de66da1fd510283b2128900f6
-DIST tcpreplay-3.4.5beta3.tar.gz 1904204 RMD160 feaadacde4fb3b9b591304b4b69d74f1c43ff84a SHA1 df4faa73e1f9e1bb277370d5652f89755ecb285f SHA256 6d4bac54173de23667f97943337f42503387e1153dcebcf6e3b6ba83063a3a6a
View
38 net-analyzer/tcpreplay/files/tcpreplay-3.4.4-crash.patch
@@ -1,38 +0,0 @@
-=== modified file 'src/common/cidr.c'
---- src/common/cidr.c 2010-10-29 13:00:54 +0000
-+++ src/common/cidr.c 2010-10-29 13:09:01 +0000
-@@ -85,11 +85,12 @@
- destroy_cidr(tcpr_cidr_t * cidr)
- {
-
-- if (cidr != NULL)
-+ if (cidr != NULL) {
- if (cidr->next != NULL)
- destroy_cidr(cidr->next);
-
-- safe_free(cidr);
-+ safe_free(cidr);
-+ }
- return;
-
- }
-@@ -667,7 +668,7 @@
- cidr2iplist(tcpr_cidr_t * cidr, char delim)
- {
- char *list = NULL;
-- char ipaddr[16];
-+ char ipaddr[16], tempbuff[20];
- u_int32_t size, addr, first, last, numips;
- struct in_addr in;
-
-@@ -694,7 +695,8 @@
- /* loop through all but the last one */
- for (addr = first; addr < last; addr++) {
- in.s_addr = htonl(addr);
-- snprintf(ipaddr, 17, "%s%c", inet_ntoa(in), delim);
-+ snprintf(tempbuff, 17, "%s%c", inet_ntoa(in), delim);
-+ memcpy(ipaddr, tempbuff, 16);
- dbgx(2, "%s", ipaddr);
- strlcat(list, ipaddr, size);
- }
-
View
17 net-analyzer/tcpreplay/metadata.xml
@@ -1,17 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
-<herd>netmon</herd>
-<longdescription>
- Tcpreplay is a suite of utilities for UNIX systems for editing and replaying
- network traffic which was previously captured by tools like tcpdump and
- ethereal/wireshark. The goal of tcpreplay is to provide the means for
- providing reliable and repeatible means for testing a variety of network
- devices such as switches, router, firewalls, network intrusion detection and
- prevention systems (IDS and IPS).
-</longdescription>
-<use>
- <flag name='pcapnav'>Enable if you want the jump to byte offset feature via <pkg>net-libs/libpcapnav</pkg></flag>
- <flag name='tcpdump'>Use <pkg>net-analyzer/tcpdump</pkg> for packet decoding feature </flag>
-</use>
-</pkgmetadata>
View
52 net-analyzer/tcpreplay/tcpreplay-3.4.4.ebuild
@@ -1,52 +0,0 @@
-EAPI="2"
-
-DESCRIPTION="replay saved tcpdump or snoop files at arbitrary speeds"
-HOMEPAGE="http://tcpreplay.synfin.net/"
-SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
-
-LICENSE="BSD"
-SLOT="0"
-KEYWORDS="*"
-IUSE="debug pcapnav +tcpdump"
-
-DEPEND="
- >=sys-devel/autogen-5.9.8
- dev-libs/libdnet
- >=net-libs/libpcap-0.9
- tcpdump? ( net-analyzer/tcpdump )
- pcapnav? ( net-libs/libpcapnav )"
-
-RDEPEND="${DEPEND}"
-
-src_prepare() {
- echo "We don't use bundled libopts" > libopts/options.h
-}
-
-src_configure() {
- # By default it uses static linking. Avoid that, bug 252940
- # We also want to tell it to use dynamic linking
- econf --enable-shared \
- --disable-local-libopts \
- --enable-dynamic-link
- $(use_with tcpdump tcpdump /usr/sbin/tcpdump) \
- $(use_with pcapnav pcapnav-config /usr/bin/pcapnav-config) \
- $(use_enable debug)
-}
-
-src_test() {
- if [[ ! ${EUID} -eq 0 ]]; then
- ewarn "Some tests were disabled due to FEATURES=userpriv"
- ewarn "To run all tests issue the following command as root:"
- ewarn " # make -C ${S}/test"
- make -C test tcpprep || die "self test failed - see ${S}/test/test.log"
- else
- make test || {
- ewarn "Note, that some tests require eth0 iface to be UP." ;
- die "self test failed - see ${S}/test/test.log" ; }
- fi
-}
-
-src_install() {
- make DESTDIR="${D}" install || die
- dodoc README docs/{CHANGELOG,CREDIT,HACKING,TODO} || die
-}
View
55 net-analyzer/tcpreplay/tcpreplay-3.4.5_beta2.ebuild
@@ -1,55 +0,0 @@
-EAPI="2"
-
-MY_P="${P/_/}"
-DESCRIPTION="replay saved tcpdump or snoop files at arbitrary speeds"
-HOMEPAGE="http://tcpreplay.synfin.net/"
-SRC_URI="http://synfin.net/${MY_P}.tar.gz"
-
-LICENSE="BSD"
-SLOT="0"
-KEYWORDS="~*"
-IUSE="debug pcapnav +tcpdump"
-
-DEPEND="
- >=sys-devel/autogen-5.9.8
- dev-libs/libdnet
- >=net-libs/libpcap-0.9
- tcpdump? ( net-analyzer/tcpdump )
- pcapnav? ( net-libs/libpcapnav )"
-
-RDEPEND="${DEPEND}"
-
-S="${WORKDIR}/${MY_P}"
-
-src_prepare() {
- echo "We don't use bundled libopts" > libopts/options.h
- ./autogen.sh
-}
-
-src_configure() {
- # By default it uses static linking. Avoid that, bug 252940
- econf --enable-shared \
- --disable-local-libopts \
- --enable-dynamic-link
- $(use_with tcpdump tcpdump /usr/sbin/tcpdump) \
- $(use_with pcapnav pcapnav-config /usr/bin/pcapnav-config) \
- $(use_enable debug)
-}
-
-src_test() {
- if [[ ! ${EUID} -eq 0 ]]; then
- ewarn "Some tests were disabled due to FEATURES=userpriv"
- ewarn "To run all tests issue the following command as root:"
- ewarn " # make -C ${S}/test"
- make -C test tcpprep || die "self test failed - see ${S}/test/test.log"
- else
- make test || {
- ewarn "Note, that some tests require eth0 iface to be UP." ;
- die "self test failed - see ${S}/test/test.log" ; }
- fi
-}
-
-src_install() {
- make DESTDIR="${D}" install || die
- dodoc README docs/{CHANGELOG,CREDIT,HACKING,TODO} || die
-}
View
58 net-analyzer/tcpreplay/tcpreplay-3.4.5_beta3.ebuild
@@ -1,58 +0,0 @@
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=4
-
-MY_P="${P/_/}"
-DESCRIPTION="replay saved tcpdump or snoop files at arbitrary speeds"
-HOMEPAGE="http://tcpreplay.synfin.net/"
-SRC_URI="http://synfin.net/${MY_P}.tar.gz"
-
-LICENSE="BSD"
-SLOT="0"
-KEYWORDS="~amd64 ~sparc ~x86"
-IUSE="debug pcapnav +tcpdump"
-
-DEPEND="
- >=sys-devel/autogen-5.9.8
- dev-libs/libdnet
- >=net-libs/libpcap-0.9
- tcpdump? ( net-analyzer/tcpdump )
- pcapnav? ( net-libs/libpcapnav )"
-
-RDEPEND="${DEPEND}"
-
-S="${WORKDIR}/${MY_P}"
-
-src_prepare() {
- echo "We don't use bundled libopts" > libopts/options.h
- ./autogen.sh
-}
-
-src_configure() {
- # By default it uses static linking. Avoid that, bug 252940
- econf \
- --enable-shared \
- --enable-dynamic-link \
- --disable-local-libopts \
- $(use_with tcpdump tcpdump /usr/sbin/tcpdump) \
- $(use_with pcapnav pcapnav-config /usr/bin/pcapnav-config) \
- $(use_enable debug)
-}
-
-src_test() {
- if [[ ! ${EUID} -eq 0 ]]; then
- ewarn "Some tests were disabled due to FEATURES=userpriv"
- ewarn "To run all tests issue the following command as root:"
- ewarn " # make -C ${S}/test"
- make -C test tcpprep || die "self test failed - see ${S}/test/test.log"
- else
- make test || {
- ewarn "Note, that some tests require eth0 iface to be UP." ;
- die "self test failed - see ${S}/test/test.log" ; }
- fi
-}
-
-src_install() {
- make DESTDIR="${D}" install || die
- dodoc README docs/{CHANGELOG,CREDIT,HACKING,TODO} || die
-}

0 comments on commit f3385b7

Please sign in to comment.
Something went wrong with that request. Please try again.