Rafael Sadowski <raf...@sizeofvoid.org> writes: > Hi ports@, > > simple update to the last stable release (found by unreachable > homepage). > > - HOMEPAGE / MASTER_SITES update > - cleanup > - remove unnecessary patch > > OK? Comments?
Here's an updated diff. - fix PKGNAME (duplicated DISTNAME lines) - unneeded EXTRACT_SUFX & WRKSRC - -DHAVE_GETRUSAGE now useless in CFLAGS - use MAKE_FILE instead of renameing makefile - also build and install the IPv6 version Sadly NPtcp now shows erratic behavior, most of the time the client doesn't get a proper handshake from the server. Tested with NPtcp -r and NPtcp -h 127.0.0.1. Index: Makefile =================================================================== RCS file: /d/cvs/ports/benchmarks/netpipe/Makefile,v retrieving revision 1.27 diff -u -p -r1.27 Makefile --- Makefile 22 Jan 2015 17:47:50 -0000 1.27 +++ Makefile 17 Oct 2016 20:59:52 -0000 @@ -2,26 +2,29 @@ COMMENT= self-scaling network benchmark -DISTNAME= netpipe-2.4 -DISTFILES= NetPIPE_2.4.tar.gz -REVISION= 0 +DISTNAME= NetPIPE-3.7.2 +PKGNAME= netpipe-3.7.2 CATEGORIES= benchmarks net -HOMEPAGE= http://www.scl.ameslab.gov/netpipe/ +HOMEPAGE= http://bitspjoule.org/netpipe/ PERMIT_PACKAGE_CDROM= Yes WANTLIB= c MASTER_SITES= ${HOMEPAGE}/code/ -MAKE_FLAGS= CC="${CC}" CFLAGS="${CFLAGS} -DHAVE_GETRUSAGE" -ALL_TARGET= NPtcp +MAKE_FLAGS= CC="${CC}" CFLAGS="${CFLAGS}" NO_TEST= Yes +MAKE_FILE= makefile + +ALL_TARGET= tcp tcp6 + do-install: ${INSTALL_PROGRAM} ${WRKBUILD}/NPtcp ${PREFIX}/bin - ${INSTALL_MAN} ${WRKBUILD}/netpipe.1 ${PREFIX}/man/man1 cd ${PREFIX}/bin && ln -sf NPtcp netpipe - + ${INSTALL_PROGRAM} ${WRKBUILD}/NPtcp6 ${PREFIX}/bin + ${INSTALL_MAN} ${WRKBUILD}/dox/netpipe.1 ${PREFIX}/man/man1 + .include <bsd.port.mk> Index: distinfo =================================================================== RCS file: /d/cvs/ports/benchmarks/netpipe/distinfo,v retrieving revision 1.5 diff -u -p -r1.5 distinfo --- distinfo 18 Jan 2015 03:12:51 -0000 1.5 +++ distinfo 17 Oct 2016 19:49:54 -0000 @@ -1,2 +1,2 @@ -SHA256 (NetPIPE_2.4.tar.gz) = LUYjlHvxj0Qd6Dd+EOC76pTLN2RgcrssQ0qN8V30/nE= -SIZE (NetPIPE_2.4.tar.gz) = 23009 +SHA256 (NetPIPE-3.7.2.tar.gz) = E9rIhP9SlRY29lHEIfX/SoUyGKlaoopKhSQC7jhaKrg= +SIZE (NetPIPE-3.7.2.tar.gz) = 400248 Index: patches/patch-netpipe_h =================================================================== RCS file: /d/cvs/ports/benchmarks/netpipe/patches/patch-netpipe_h,v retrieving revision 1.1 diff -u -p -r1.1 patch-netpipe_h --- patches/patch-netpipe_h 8 Jul 2011 09:33:25 -0000 1.1 +++ patches/patch-netpipe_h 17 Oct 2016 19:49:54 -0000 @@ -1,24 +0,0 @@ -$OpenBSD: patch-netpipe_h,v 1.1 2011/07/08 09:33:25 jasper Exp $ ---- netpipe.h.orig Tue Apr 27 22:55:57 1999 -+++ netpipe.h Fri Jul 8 11:32:28 2011 -@@ -20,6 +20,7 @@ - #include <stdlib.h> /* malloc(3) */ - #include <string.h> - #include <sys/types.h> -+#include <sys/param.h> - #include <sys/time.h> /* struct timeval */ - #ifdef HAVE_GETRUSAGE - #include <sys/resource.h> -@@ -38,8 +39,12 @@ - #define MAXINT 2147483647 - - #define ABS(x) (((x) < 0)?(-(x)):(x)) -+#ifndef MIN - #define MIN(x,y) (((x) < (y))?(x):(y)) -+#endif -+#ifndef MAX - #define MAX(x,y) (((x) > (y))?(x):(y)) -+#endif - - /* Need to include the protocol structure header file. */ - /* Change this to reflect the protocol */ Index: pkg/PLIST =================================================================== RCS file: /d/cvs/ports/benchmarks/netpipe/pkg/PLIST,v retrieving revision 1.3 diff -u -p -r1.3 PLIST --- pkg/PLIST 6 Aug 2004 14:37:29 -0000 1.3 +++ pkg/PLIST 17 Oct 2016 20:59:30 -0000 @@ -1,4 +1,4 @@ @comment $OpenBSD: PLIST,v 1.3 2004/08/06 14:37:29 espie Exp $ -bin/NPtcp -bin/netpipe +@bin bin/NPtcp +@bin bin/NPtcp6 @man man/man1/netpipe.1 -- jca | PGP : 0x1524E7EE / 5135 92C1 AD36 5293 2BDF DDCC 0DFA 74AE 1524 E7EE