here's an update to net/tcpreplay. works for me on i386 and amd64.
ok? cheers, rui Index: Makefile =================================================================== RCS file: /cvs/ports/net/tcpreplay/Makefile,v retrieving revision 1.21 diff -u -r1.21 Makefile --- Makefile 15 Sep 2007 22:36:59 -0000 1.21 +++ Makefile 12 Jan 2008 23:21:08 -0000 @@ -2,25 +2,22 @@ COMMENT= resend network traffic saved by tcpdump -DISTNAME= tcpreplay-1.0.1 +DISTNAME= tcpreplay-3.2.3 CATEGORIES= net -MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=tcpreplay/} +HOMEPAGE= http://tcpreplay.synfin.net -LIB_DEPENDS= lib/libnet-1.0/net.=0:libnet-1.0*:net/libnet/1.0 +MAINTAINER= Rui Reis <[EMAIL PROTECTED]> PERMIT_PACKAGE_CDROM= Yes PERMIT_PACKAGE_FTP= Yes PERMIT_DISTFILES_CDROM= Yes PERMIT_DISTFILES_FTP= Yes -WANTLIB= c pcap -CONFIGURE_STYLE= gnu dest +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=tcpreplay/} -NO_REGRESS= Yes +WANTLIB= c -do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/tcpreplay ${PREFIX}/sbin - ${INSTALL_MAN} ${WRKSRC}/tcpreplay.8 ${PREFIX}/man/man8 +CONFIGURE_STYLE= gnu .include <bsd.port.mk> Index: distinfo =================================================================== RCS file: /cvs/ports/net/tcpreplay/distinfo,v retrieving revision 1.3 diff -u -r1.3 distinfo --- distinfo 5 Apr 2007 16:20:16 -0000 1.3 +++ distinfo 12 Jan 2008 23:21:08 -0000 @@ -1,5 +1,5 @@ -MD5 (tcpreplay-1.0.1.tar.gz) = S5M1dh6SAqv8F1wGsWnpkQ== -RMD160 (tcpreplay-1.0.1.tar.gz) = eriFbw93QQFKZcWWth4aGyX3ORg= -SHA1 (tcpreplay-1.0.1.tar.gz) = q9/kvGNPgsVPvaZIK4+m5pwrNus= -SHA256 (tcpreplay-1.0.1.tar.gz) = QGuoaDW+E/KFc2v6yXgHCKBTfqJtUP5qIRYo0P2vtuw= -SIZE (tcpreplay-1.0.1.tar.gz) = 252686 +MD5 (tcpreplay-3.2.3.tar.gz) = 3DseATzaX/mL50LgH5U3iA== +RMD160 (tcpreplay-3.2.3.tar.gz) = K2w83UdYulQIboR1PyqSH84QYfo= +SHA1 (tcpreplay-3.2.3.tar.gz) = uvyoJIvL3J+72h3fpUEKsCRyPQ0= +SHA256 (tcpreplay-3.2.3.tar.gz) = Xkpdq/mMx1z9PnGQGN5KER2B9V61gqschlomkwl323Q= +SIZE (tcpreplay-3.2.3.tar.gz) = 776918 Index: patches/patch-Makefile_in =================================================================== RCS file: patches/patch-Makefile_in diff -N patches/patch-Makefile_in --- patches/patch-Makefile_in 24 May 2005 00:08:29 -0000 1.1 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,42 +0,0 @@ -$OpenBSD: patch-Makefile_in,v 1.1 2005/05/24 00:08:29 mjc Exp $ ---- Makefile.in.orig Wed Apr 21 15:16:41 1999 -+++ Makefile.in Mon May 23 12:13:01 2005 -@@ -9,28 +9,28 @@ MANDIR = $(PREFIX)/man/man8 - CC = @CC@ - CFLAGS = @CFLAGS@ - LDFLAGS = @LDFLAGS@ --DEFS = @DEFS@ -+DEFS = @DEFS@ `libnet-config-1.0 --defines` - INCS = $(LNETINCS) $(PCAPINCS) - LIBS = @LIBS@ $(LNETLIBS) $(PCAPLIBS) - - INSTALL = @INSTALL@ - INSTALL_PROGRAM = @INSTALL_PROGRAM@ - --PCAPDIR = libpcap-0.4 --PCAPINCS = -I$(PCAPDIR) --PCAPLIBS = -L$(PCAPDIR) -lpcap --PCAPDEP = $(PCAPDIR)/pcap.h $(PCAPDIR)/libpcap.a -+PCAPDIR = -+PCAPINCS = -+PCAPLIBS = -lpcap -+PCAPDEP = - --LNETDIR = Libnet-0.99 --LNETINCS = -I$(LNETDIR)/include --LNETLIBS = -L$(LNETDIR)/lib -lnet --LNETDEP = $(LNETDIR)/include/libnet.h $(LNETDIR)/libnet.a -+LNETDIR = -+LNETINCS = -I$(PREFIX)/include/libnet-1.0 -+LNETLIBS = -L$(PREFIX)/lib/libnet-1.0 -lnet -+LNETDEP = - - PROGRAMS = tcpreplay - - all: $(PROGRAMS) - --tcpreplay: $(PCAPDEP) $(LNETDEP) tcpreplay.c -+tcpreplay: tcpreplay.c - -rm -f tcpreplay - $(CC) $(CFLAGS) $(DEFS) $(INCS) -o $@ tcpreplay.c $(LDFLAGS) $(LIBS) - Index: patches/patch-configure =================================================================== RCS file: patches/patch-configure diff -N patches/patch-configure --- patches/patch-configure 24 May 2005 00:08:29 -0000 1.1 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,21 +0,0 @@ -$OpenBSD: patch-configure,v 1.1 2005/05/24 00:08:29 mjc Exp $ ---- configure.orig Wed May 19 12:55:31 1999 -+++ configure Mon May 23 12:06:01 2005 -@@ -1194,7 +1194,7 @@ fi - done - - --subdirs="Libnet-0.99 libpcap-0.4" -+subdirs="" - - - -@@ -1579,7 +1579,7 @@ if test "$no_recursion" != yes; then - esac - done - -- for ac_config_dir in Libnet-0.99 libpcap-0.4; do -+ for ac_config_dir in ; do - - # Do not complain, so a configure script can configure whichever - # parts of a large source tree are present. Index: patches/patch-tcpreplay_c =================================================================== RCS file: patches/patch-tcpreplay_c diff -N patches/patch-tcpreplay_c --- patches/patch-tcpreplay_c 24 May 2005 00:08:29 -0000 1.1 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,30 +0,0 @@ -$OpenBSD: patch-tcpreplay_c,v 1.1 2005/05/24 00:08:29 mjc Exp $ ---- tcpreplay.c.orig Wed May 19 13:00:35 1999 -+++ tcpreplay.c Mon May 23 12:06:01 2005 -@@ -229,7 +229,7 @@ void write_packet(u_char * user,struct p - } - - while (write_status < 0) { -- write_status = write_link_layer((struct link_int *)user, interface, -+ write_status = libnet_write_link_layer((struct libnet_link_int *)user, interface, - data,pcap_hdr->caplen); - #ifdef DEBUG - if (debug > 1) { -@@ -255,7 +255,7 @@ void write_packet(u_char * user,struct p - int main(int argc, char * argv[]) - { - pcap_t * in_file; -- struct link_int * write_if; -+ struct libnet_link_int * write_if; - float Mrate = 0; - double starttime_local, startusec; - char ebuf[256]; -@@ -327,7 +327,7 @@ int main(int argc, char * argv[]) - failed_writes = 0; - pkts_sent = 0; - bytes_sent = 0; -- write_if = open_link_interface(interface,ebuf); -+ write_if = libnet_open_link_interface(interface,ebuf); - if (write_if <= 0) { - fprintf(stderr, "output i/f: %s\n",ebuf); - exit(1); Index: pkg/PLIST =================================================================== RCS file: /cvs/ports/net/tcpreplay/pkg/PLIST,v retrieving revision 1.3 diff -u -r1.3 PLIST --- pkg/PLIST 15 Sep 2004 18:17:46 -0000 1.3 +++ pkg/PLIST 12 Jan 2008 23:21:08 -0000 @@ -1,3 +1,9 @@ @comment $OpenBSD: PLIST,v 1.3 2004/09/15 18:17:46 espie Exp $ [EMAIL PROTECTED] man/man8/tcpreplay.8 -sbin/tcpreplay +bin/tcpbridge +bin/tcpprep +bin/tcpreplay +bin/tcprewrite [EMAIL PROTECTED] man/man1/tcpbridge.1 [EMAIL PROTECTED] man/man1/tcpprep.1 [EMAIL PROTECTED] man/man1/tcpreplay.1 [EMAIL PROTECTED] man/man1/tcprewrite.1