summaryrefslogtreecommitdiff
path: root/benchmarks
diff options
context:
space:
mode:
authorAlex Kozlov <ak@FreeBSD.org>2015-12-30 14:07:42 +0000
committerAlex Kozlov <ak@FreeBSD.org>2015-12-30 14:07:42 +0000
commit1a638f333ab86cf1908109b696bda4e4a549da9b (patch)
tree021f8f6143c4e23cef92d56615c160a3166db4a9 /benchmarks
parentqmake5: Set QMAKE_{INC,LIB}DIR_OPENGL. (diff)
- Rename nonstandard src directory to files
- Modernize ports
Notes
Notes: svn path=/head/; revision=404857
Diffstat (limited to 'benchmarks')
-rw-r--r--benchmarks/tcpblast/Makefile13
-rw-r--r--benchmarks/tcpblast/files/tcpblast.c (renamed from benchmarks/tcpblast/src/tcpblast.c)3
-rw-r--r--benchmarks/tcpblast/src/Makefile6
3 files changed, 9 insertions, 13 deletions
diff --git a/benchmarks/tcpblast/Makefile b/benchmarks/tcpblast/Makefile
index 1a696c7e326d..cd4917f60b3b 100644
--- a/benchmarks/tcpblast/Makefile
+++ b/benchmarks/tcpblast/Makefile
@@ -5,19 +5,20 @@ PORTNAME= tcpblast
PORTVERSION= 1.1
PORTREVISION= 1
CATEGORIES= benchmarks net ipv6
+MASTER_SITES= # none
DISTFILES= # none
MAINTAINER= ports@FreeBSD.org
COMMENT= Measures the throughput of a TCP connection
+NO_WRKSUBDIR= yes
+
PLIST_FILES= bin/tcpblast
-USES= uidfix
-WRKSRC= ${WRKDIR}/src
+do-build:
+ ${CC} ${CFLAGS} ${FILESDIR}/${PORTNAME}.c -o ${WRKDIR}/${PORTNAME}
-do-extract:
- @${RM} -rf ${WRKDIR}
- @${MKDIR} ${WRKDIR}
- ${CP} -RP ${.CURDIR}/src ${WRKDIR}
+do-install:
+ ${INSTALL_PROGRAM} ${WRKDIR}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
.include <bsd.port.mk>
diff --git a/benchmarks/tcpblast/src/tcpblast.c b/benchmarks/tcpblast/files/tcpblast.c
index 5a191701dc89..47bac345b52b 100644
--- a/benchmarks/tcpblast/src/tcpblast.c
+++ b/benchmarks/tcpblast/files/tcpblast.c
@@ -17,6 +17,7 @@
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
+#include <err.h>
#include <errno.h>
#define BLKSIZE 1024
@@ -26,7 +27,7 @@ struct servent *sp;
struct hostent *host;
long starts, startms, stops, stopms, expms;
-struct timeval ti;
+struct timeval ti;
struct timezone tiz;
char greet[BLKSIZE] = "Hi!";
diff --git a/benchmarks/tcpblast/src/Makefile b/benchmarks/tcpblast/src/Makefile
deleted file mode 100644
index 068ad35579f8..000000000000
--- a/benchmarks/tcpblast/src/Makefile
+++ /dev/null
@@ -1,6 +0,0 @@
-PROG= tcpblast
-SRCS= tcpblast.c
-NO_MAN= yes
-BINDIR= ${PREFIX}/bin
-
-.include <bsd.prog.mk>