diff options
author | ak <ak@FreeBSD.org> | 2015-12-30 22:07:42 +0800 |
---|---|---|
committer | ak <ak@FreeBSD.org> | 2015-12-30 22:07:42 +0800 |
commit | 2eeee8bb6ce087ccd53b688476dcb5431970fd7f (patch) | |
tree | 021f8f6143c4e23cef92d56615c160a3166db4a9 /benchmarks/tcpblast | |
parent | 6a223dbffbe61cbba117d5c016eeb0fcf7261d7a (diff) | |
download | freebsd-ports-gnome-2eeee8bb6ce087ccd53b688476dcb5431970fd7f.tar.gz freebsd-ports-gnome-2eeee8bb6ce087ccd53b688476dcb5431970fd7f.tar.zst freebsd-ports-gnome-2eeee8bb6ce087ccd53b688476dcb5431970fd7f.zip |
- Rename nonstandard src directory to files
- Modernize ports
Diffstat (limited to 'benchmarks/tcpblast')
-rw-r--r-- | benchmarks/tcpblast/Makefile | 13 | ||||
-rw-r--r-- | benchmarks/tcpblast/files/tcpblast.c (renamed from benchmarks/tcpblast/src/tcpblast.c) | 3 | ||||
-rw-r--r-- | benchmarks/tcpblast/src/Makefile | 6 |
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> |