pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/benchmarks/netio Update "netio" package to version 1.2...
details: https://anonhg.NetBSD.org/pkgsrc/rev/0349211721be
branches: trunk
changeset: 497998:0349211721be
user: tron <tron%pkgsrc.org@localhost>
date: Tue Aug 09 22:47:09 2005 +0000
description:
Update "netio" package to version 1.23. Changes since version 1.13 include:
- UDP support
- sets socket buffer size by default for decent performance under *BSD
diffstat:
benchmarks/netio/Makefile | 15 ++++++++-------
benchmarks/netio/distinfo | 9 ++++-----
benchmarks/netio/patches/patch-aa | 35 -----------------------------------
3 files changed, 12 insertions(+), 47 deletions(-)
diffs (91 lines):
diff -r 7d593ccf3f1e -r 0349211721be benchmarks/netio/Makefile
--- a/benchmarks/netio/Makefile Tue Aug 09 22:30:34 2005 +0000
+++ b/benchmarks/netio/Makefile Tue Aug 09 22:47:09 2005 +0000
@@ -1,21 +1,21 @@
-# $NetBSD: Makefile,v 1.10 2004/07/30 15:50:37 minskim Exp $
+# $NetBSD: Makefile,v 1.11 2005/08/09 22:47:09 tron Exp $
-DISTNAME= netio114
-PKGNAME= netio-1.14
-PKGREVISION= 1
+DISTNAME= netio123
+PKGNAME= netio-1.23
CATEGORIES= benchmarks net
-MASTER_SITES= ftp://ftp.leo.org/pub/comp/os/os2/leo/systools/
+MASTER_SITES= ftp://ftp.leo.org/pub/historic/comp/os/os2/leo/systools/
EXTRACT_SUFX= .zip
MAINTAINER= tron%NetBSD.org@localhost
-COMMENT= Network benchmark for DOS, OS/2 2.x, Windows NT/2000 and Unix
+COMMENT= Network benchmark for OS/2 2.x, Windows NT/2000 and Unix
LICENSE= no-commercial-use
PKG_INSTALLATION_TYPES= overwrite pkgviews
WRKSRC= ${WRKDIR}
-MAKE_FLAGS+= CC="${CC}" CFLAGS="-DUNIX ${CFLAGS}" LFLAGS="${LDFLAGS}" \
+MAKE_FLAGS+= CC="${CC}" CFLAGS="-DUNIX ${PTHREAD_CFLAGS} ${CFLAGS}" \
+ LFLAGS="${PTHREAD_LDFLAGS} ${LDFLAGS}" \
LIBS="${LIBS}" O=.o OUT=-o X=
.include "../../mk/bsd.prefs.mk"
@@ -31,4 +31,5 @@
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/netio
${INSTALL_DATA} ${WRKSRC}/netio.doc ${PREFIX}/share/doc/netio
+.include "../../mk/pthread.buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
diff -r 7d593ccf3f1e -r 0349211721be benchmarks/netio/distinfo
--- a/benchmarks/netio/distinfo Tue Aug 09 22:30:34 2005 +0000
+++ b/benchmarks/netio/distinfo Tue Aug 09 22:47:09 2005 +0000
@@ -1,6 +1,5 @@
-$NetBSD: distinfo,v 1.7 2005/02/22 21:16:36 agc Exp $
+$NetBSD: distinfo,v 1.8 2005/08/09 22:47:09 tron Exp $
-SHA1 (netio114.zip) = 992f8e2d4cee6a268231e8d9aa296d48e687abc7
-RMD160 (netio114.zip) = 53f66c6ae0e2c9d2f1333ac419af0f2b57140d3c
-Size (netio114.zip) = 210744 bytes
-SHA1 (patch-aa) = 50760bf1e3737a878cfb713a31ee682612128e22
+SHA1 (netio123.zip) = 6a75ba56813e60a1e0e8b9bba6f2d3cc6b7290d1
+RMD160 (netio123.zip) = df6b077cd4549c7cc6e6df71c3af103d1f43cb42
+Size (netio123.zip) = 130800 bytes
diff -r 7d593ccf3f1e -r 0349211721be benchmarks/netio/patches/patch-aa
--- a/benchmarks/netio/patches/patch-aa Tue Aug 09 22:30:34 2005 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,35 +0,0 @@
-$NetBSD: patch-aa,v 1.4 2003/09/28 14:40:06 tron Exp $
-
---- netio.c.orig 2001-04-19 14:21:02.000000000 +0200
-+++ netio.c 2003-09-28 16:31:19.000000000 +0200
-@@ -502,6 +502,10 @@
- free(cBuffer);
- return;
- }
-+#if defined(UNIX) && defined(SO_RCVBUF)
-+ length = 65536;
-+ (void) setsockopt(server, SOL_SOCKET, SO_RCVBUF, &length, sizeof (length));
-+#endif
-
- sa_server.sin_family = AF_INET;
- sa_server.sin_port = htons(nPort);
-@@ -596,6 +600,10 @@
- free(cBuffer);
- return;
- }
-+#if defined(UNIX) && defined(SO_SNDBUF)
-+ i = 65536;
-+ (void) setsockopt(server, SOL_SOCKET, SO_SNDBUF, &i, sizeof (i));
-+#endif
-
- if (connect(server, (struct sockaddr *) &sa_server, sizeof(sa_server)) < 0)
- {
-@@ -618,7 +626,7 @@
- {
- while (!bTimeOver)
- {
-- if ((rc = send(server, cBuffer, tSizes[i], 0)) != tSizes[i] && errno != 0 && errno != EINTR)
-+ if ((rc = send(server, cBuffer, tSizes[i], 0)) < 0 && errno != EINTR)
- {
- psock_errno("send()");
- break;
Home |
Main Index |
Thread Index |
Old Index