summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--net/Makefile3
-rw-r--r--net/go-tcplisten/DESCR9
-rw-r--r--net/go-tcplisten/Makefile18
-rw-r--r--net/go-tcplisten/PLIST11
-rw-r--r--net/go-tcplisten/buildlink3.mk15
-rw-r--r--net/go-tcplisten/distinfo6
6 files changed, 61 insertions, 1 deletions
diff --git a/net/Makefile b/net/Makefile
index 18d02515245..ac4928da1cf 100644
--- a/net/Makefile
+++ b/net/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1276 2019/11/05 02:21:22 gdt Exp $
+# $NetBSD: Makefile,v 1.1277 2019/11/06 11:54:49 ng0 Exp $
#
COMMENT= Networking tools
@@ -200,6 +200,7 @@ SUBDIR+= go-framestream
SUBDIR+= go-grpc
SUBDIR+= go-net
SUBDIR+= go-ovh
+SUBDIR+= go-tcplisten
SUBDIR+= go-websocket
SUBDIR+= gofish
SUBDIR+= gopher
diff --git a/net/go-tcplisten/DESCR b/net/go-tcplisten/DESCR
new file mode 100644
index 00000000000..c5d0617d74b
--- /dev/null
+++ b/net/go-tcplisten/DESCR
@@ -0,0 +1,9 @@
+go-tcplisten provides customizable TCP net.Listener with various
+performance-related options:
+* SO_REUSEPORT. This option allows linear scaling server performance
+ on multi-CPU servers.
+ See https://www.nginx.com/blog/socket-sharding-nginx-release-1-9-1/
+ for details.
+* TCP_DEFER_ACCEPT. This option expects the server reads from the
+ accepted connection before writing to them.
+* TCP_FASTOPEN. See https://lwn.net/Articles/508865/ for details.
diff --git a/net/go-tcplisten/Makefile b/net/go-tcplisten/Makefile
new file mode 100644
index 00000000000..5b7440bb077
--- /dev/null
+++ b/net/go-tcplisten/Makefile
@@ -0,0 +1,18 @@
+# $NetBSD: Makefile,v 1.1 2019/11/06 11:54:49 ng0 Exp $
+
+GITHUB_TAG= ceec8f93295a060cdb565ec25e4ccf17941dbd55
+DISTNAME= go-tcplisten-0.0.0.20161114
+CATEGORIES= net
+MASTER_SITES= ${MASTER_SITE_GITHUB:=valyala/}
+GITHUB_PROJECT= tcplisten
+
+MAINTAINER= ng0@NetBSD.org
+HOMEPAGE= https://github.com/valyala/tcplisten/
+COMMENT= Customizable TCP net.Listener for Go
+LICENSE= mit
+
+GO_SRCPATH= github.com/valyala/tcplisten
+GO_DIST_BASE= tcplisten-${GITHUB_TAG}
+
+.include "../../lang/go/go-package.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/net/go-tcplisten/PLIST b/net/go-tcplisten/PLIST
new file mode 100644
index 00000000000..33622738fd3
--- /dev/null
+++ b/net/go-tcplisten/PLIST
@@ -0,0 +1,11 @@
+@comment $NetBSD: PLIST,v 1.1 2019/11/06 11:54:49 ng0 Exp $
+gopkg/pkg/${GO_PLATFORM}/github.com/valyala/tcplisten.a
+gopkg/src/github.com/valyala/tcplisten/LICENSE
+gopkg/src/github.com/valyala/tcplisten/README.md
+gopkg/src/github.com/valyala/tcplisten/socket.go
+gopkg/src/github.com/valyala/tcplisten/socket_darwin.go
+gopkg/src/github.com/valyala/tcplisten/socket_other.go
+gopkg/src/github.com/valyala/tcplisten/tcplisten.go
+gopkg/src/github.com/valyala/tcplisten/tcplisten_bsd.go
+gopkg/src/github.com/valyala/tcplisten/tcplisten_linux.go
+gopkg/src/github.com/valyala/tcplisten/tcplisten_test.go
diff --git a/net/go-tcplisten/buildlink3.mk b/net/go-tcplisten/buildlink3.mk
new file mode 100644
index 00000000000..2ca59f2b552
--- /dev/null
+++ b/net/go-tcplisten/buildlink3.mk
@@ -0,0 +1,15 @@
+# $NetBSD: buildlink3.mk,v 1.1 2019/11/06 11:54:49 ng0 Exp $
+
+BUILDLINK_TREE+= go-tcplisten
+
+.if !defined(GO_TCPLISTEN_BUILDLINK3_MK)
+GO_TCPLISTEN_BUILDLINK3_MK:=
+
+BUILDLINK_CONTENTS_FILTER.go-tcplisten= ${EGREP} gopkg/
+BUILDLINK_DEPMETHOD.go-tcplisten?= build
+
+BUILDLINK_API_DEPENDS.go-tcplisten+= go-tcplisten>=0.0.0
+BUILDLINK_PKGSRCDIR.go-tcplisten?= ../../net/go-tcplisten
+.endif # GO_TCPLISTEN_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -go-tcplisten
diff --git a/net/go-tcplisten/distinfo b/net/go-tcplisten/distinfo
new file mode 100644
index 00000000000..c5792fb87cc
--- /dev/null
+++ b/net/go-tcplisten/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2019/11/06 11:54:49 ng0 Exp $
+
+SHA1 (go-tcplisten-0.0.0.20161114-ceec8f93295a060cdb565ec25e4ccf17941dbd55.tar.gz) = 651663dc71d67afad481f36f3afab28704d58a8a
+RMD160 (go-tcplisten-0.0.0.20161114-ceec8f93295a060cdb565ec25e4ccf17941dbd55.tar.gz) = 128c0fc5e0bf5c9a5358f3b9d2f4964ba4041656
+SHA512 (go-tcplisten-0.0.0.20161114-ceec8f93295a060cdb565ec25e4ccf17941dbd55.tar.gz) = 69f9afd7e71c9dabb851b2592f99d565d83be9dea2ff55ee0208401debf6445e92d74973079f369d4028c64bcf6e9156a9144ba536cef8b6f72685762f28197e
+Size (go-tcplisten-0.0.0.20161114-ceec8f93295a060cdb565ec25e4ccf17941dbd55.tar.gz) = 4579 bytes