summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorGeorge V. Neville-Neil <gnn@FreeBSD.org>2016-10-07 15:10:09 +0000
committerGeorge V. Neville-Neil <gnn@FreeBSD.org>2016-10-07 15:10:09 +0000
commit1a3ddb1090cca94393827582487f7cf22e77be28 (patch)
treeb50698157574e6ef82350c171ada59a5fa9b72c6 /net
parentAdd a port for a set of scripts to test TCP using packetdrill (diff)
Undo accidental inclusion of packetdrill update in tcptestsuite commit
Notes
Notes: svn path=/head/; revision=423467
Diffstat (limited to 'net')
-rw-r--r--net/packetdrill/Makefile37
-rw-r--r--net/packetdrill/distinfo6
2 files changed, 24 insertions, 19 deletions
diff --git a/net/packetdrill/Makefile b/net/packetdrill/Makefile
index 6cf67f391aa2..7a77221bfaf3 100644
--- a/net/packetdrill/Makefile
+++ b/net/packetdrill/Makefile
@@ -1,34 +1,39 @@
# $FreeBSD$
PORTNAME= packetdrill
-PORTVERSION= 0.0.1
+PORTVERSION= 0.0.20130820
CATEGORIES= net ipv6
-DISTNAME= ${PORTNAME}-467b39b
+MASTER_SITES= LOCAL/hrs
+DISTNAME= ${PORTNAME}-ea8f2fec724d
-MAINTAINER= gnn@freebsd.org
+MAINTAINER= hrs@FreeBSD.org
COMMENT= Network stack testing tool
LICENSE= GPLv2
-USES= bison
+USES= bison uidfix
PORTDATA= packetdrill.el packetdrill.vim
PORTDOCS= README
PORTEXAMPLES= tests
OPTIONS_DEFINE= DOCS EXAMPLES
-USE_GITHUB= yes
-GH_ACCOUNT= freebsd-net
-GH_PROJECT= packetdrill
-GH_TAGNAME= 467b39b
-
-GNU_CONFIGURE= yes
-
-WRKSRC_SUBDIR= gtests/net/packetdrill
-
-do-install:
-.for f in packetdrill checksum_test packet_parser_test packet_to_string_test
- ${INSTALL_PROGRAM} ${WRKSRC}/${f} ${STAGEDIR}${PREFIX}/bin
+do-configure:
+ ${PRINTF} "%s\n" "#include <stdio.h>" "int main(void) {" \
+ "char *p = fmemopen; char *q = open_memstream; return 0; }" \
+ > ${WRKDIR}/configure.c
+ ${TOUCH} ${WRKSRC}/ports_config.h
+ cd ${WRKDIR} && \
+ if ${CC} -o /dev/null configure.c > /dev/null 2>&1; then \
+ ${PRINTF} "%s\n" "#define HAVE_FMEMOPEN 1" \
+ "#define HAVE_OPEN_MEMSTREAM 1" > ${WRKSRC}/ports_config.h; \
+ fi
+
+pre-build:
+ ${INSTALL_DATA} ${FILESDIR}/Makefile ${FILESDIR}/Makefile.inc ${WRKSRC}
+.for F in libpd packetdrill checksum_test packet_parser_test packet_to_string_test
+ ${MKDIR} ${WRKSRC}/${F}
+ ${INSTALL_DATA} ${FILESDIR}/Makefile.${F} ${WRKSRC}/${F}/Makefile
.endfor
post-install:
diff --git a/net/packetdrill/distinfo b/net/packetdrill/distinfo
index d1d50736fcd1..76b3d3791d83 100644
--- a/net/packetdrill/distinfo
+++ b/net/packetdrill/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1475845808
-SHA256 (packetdrill-467b39b_GH0.tar.gz) = c5d948d2d56c829dbba95eefcc3f10fcac77f32b70c059de23b37aab968b47f5
-SIZE (packetdrill-467b39b_GH0.tar.gz) = 316573
+TIMESTAMP = 1475852995
+SHA256 (packetdrill-ea8f2fec724d.tar.gz) = f07c46f4adfd273f09c0bb98e0eadef83d8d13b080d2c9f5a59c6fd91120aa2b
+SIZE (packetdrill-ea8f2fec724d.tar.gz) = 146043