1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-07 06:40:06 +00:00

Add go-fasthttp 20160617

A fast HTTP implementation for Go.

Currently fasthttp is successfully used by VertaMedia in a production
serving up to 200K rps from more than 1.5M concurrent keep-alive
connections per physical server.

WWW: https://github.com/valyala/fasthttp

- While I'm here:
  - Use DISTVERSIONPREFIX
  - Add LICENSE_FILE
  - Add missing RUN_DEPENDS
  - Remove GH_PROJECT

PR:		217212
Submitted by:	Guy Tabrar <guy.tabrar@me.com>
This commit is contained in:
Sunpoet Po-Chuan Hsieh 2017-02-20 15:16:06 +00:00
parent f018551a20
commit 96730a35b9
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=434469
5 changed files with 135 additions and 0 deletions

View File

@ -208,6 +208,7 @@
SUBDIR += glpi
SUBDIR += gnome-user-share
SUBDIR += gnome-web-photo
SUBDIR += go-fasthttp
SUBDIR += go-www
SUBDIR += gohugo
SUBDIR += google-appengine

25
www/go-fasthttp/Makefile Normal file
View File

@ -0,0 +1,25 @@
# $FreeBSD$
PORTNAME= fasthttp
PORTVERSION= 20160617
DISTVERSIONPREFIX= v
CATEGORIES= www net
PKGNAMEPREFIX= go-
MAINTAINER= guy.tabrar@me.com
COMMENT= Fast HTTP package for Go, tuned for high performance
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= go-compress>=0:archivers/go-compress \
go-cpuid>=0:devel/go-cpuid \
go-crc32>=0:devel/go-crc32
RUN_DEPENDS:= ${BUILD_DEPENDS}
USE_GITHUB= yes
GH_ACCOUNT= valyala
USES= go
GO_PKGNAME= github.com/valyala/fasthttp
.include <bsd.port.mk>

7
www/go-fasthttp/distinfo Normal file
View File

@ -0,0 +1,7 @@
TIMESTAMP = 1486758925
SHA256 (valyala-fasthttp-v20160617_GH0.tar.gz) = 342253f1cab10aae3c5a4ac2daa8207fec23fdcff044d5c910ee393f792b225c
SIZE (valyala-fasthttp-v20160617_GH0.tar.gz) = 148822
SHA256 (klauspost-compress-461e8fd_GH0.tar.gz) = 50be4f688309711340d5edd401f17e52cfc21f76e76198804e4bcc4735207ea6
SIZE (klauspost-compress-461e8fd_GH0.tar.gz) = 2725602
SHA256 (golang-snappy-7db9049_GH0.tar.gz) = 75a608d786217e48d85593681dcbf4ebe7fae96fde9d6fd7109f6fa04f4ac3fe
SIZE (golang-snappy-7db9049_GH0.tar.gz) = 62042

View File

@ -0,0 +1,7 @@
A fast HTTP implementation for Go.
Currently fasthttp is successfully used by VertaMedia in a production
serving up to 200K rps from more than 1.5M concurrent keep-alive
connections per physical server.
WWW: https://github.com/valyala/fasthttp

95
www/go-fasthttp/pkg-plist Normal file
View File

@ -0,0 +1,95 @@
%%GO_LIBDIR%%/%%GO_PKGNAME%%.a
%%GO_SRCDIR%%/%%GO_PKGNAME%%/LICENSE
%%GO_SRCDIR%%/%%GO_PKGNAME%%/README.md
%%GO_SRCDIR%%/%%GO_PKGNAME%%/TODO
%%GO_SRCDIR%%/%%GO_PKGNAME%%/args.go
%%GO_SRCDIR%%/%%GO_PKGNAME%%/args_test.go
%%GO_SRCDIR%%/%%GO_PKGNAME%%/args_timing_test.go
%%GO_SRCDIR%%/%%GO_PKGNAME%%/bytebuffer.go
%%GO_SRCDIR%%/%%GO_PKGNAME%%/bytebuffer_example_test.go
%%GO_SRCDIR%%/%%GO_PKGNAME%%/bytebuffer_test.go
%%GO_SRCDIR%%/%%GO_PKGNAME%%/bytebuffer_timing_test.go
%%GO_SRCDIR%%/%%GO_PKGNAME%%/bytesconv.go
%%GO_SRCDIR%%/%%GO_PKGNAME%%/bytesconv_32.go
%%GO_SRCDIR%%/%%GO_PKGNAME%%/bytesconv_32_test.go
%%GO_SRCDIR%%/%%GO_PKGNAME%%/bytesconv_64.go
%%GO_SRCDIR%%/%%GO_PKGNAME%%/bytesconv_64_test.go
%%GO_SRCDIR%%/%%GO_PKGNAME%%/bytesconv_test.go
%%GO_SRCDIR%%/%%GO_PKGNAME%%/bytesconv_timing_test.go
%%GO_SRCDIR%%/%%GO_PKGNAME%%/client.go
%%GO_SRCDIR%%/%%GO_PKGNAME%%/client_example_test.go
%%GO_SRCDIR%%/%%GO_PKGNAME%%/client_test.go
%%GO_SRCDIR%%/%%GO_PKGNAME%%/client_timing_test.go
%%GO_SRCDIR%%/%%GO_PKGNAME%%/compress.go
%%GO_SRCDIR%%/%%GO_PKGNAME%%/compress_test.go
%%GO_SRCDIR%%/%%GO_PKGNAME%%/cookie.go
%%GO_SRCDIR%%/%%GO_PKGNAME%%/cookie_test.go
%%GO_SRCDIR%%/%%GO_PKGNAME%%/cookie_timing_test.go
%%GO_SRCDIR%%/%%GO_PKGNAME%%/doc.go
%%GO_SRCDIR%%/%%GO_PKGNAME%%/examples/README.md
%%GO_SRCDIR%%/%%GO_PKGNAME%%/examples/fileserver/.gitignore
%%GO_SRCDIR%%/%%GO_PKGNAME%%/examples/fileserver/Makefile
%%GO_SRCDIR%%/%%GO_PKGNAME%%/examples/fileserver/README.md
%%GO_SRCDIR%%/%%GO_PKGNAME%%/examples/fileserver/fileserver.go
%%GO_SRCDIR%%/%%GO_PKGNAME%%/examples/fileserver/ssl-cert-snakeoil.key
%%GO_SRCDIR%%/%%GO_PKGNAME%%/examples/fileserver/ssl-cert-snakeoil.pem
%%GO_SRCDIR%%/%%GO_PKGNAME%%/examples/helloworldserver/.gitignore
%%GO_SRCDIR%%/%%GO_PKGNAME%%/examples/helloworldserver/Makefile
%%GO_SRCDIR%%/%%GO_PKGNAME%%/examples/helloworldserver/README.md
%%GO_SRCDIR%%/%%GO_PKGNAME%%/examples/helloworldserver/helloworldserver.go
%%GO_SRCDIR%%/%%GO_PKGNAME%%/expvarhandler/expvar.go
%%GO_SRCDIR%%/%%GO_PKGNAME%%/expvarhandler/expvar_test.go
%%GO_SRCDIR%%/%%GO_PKGNAME%%/fasthttpadaptor/adaptor.go
%%GO_SRCDIR%%/%%GO_PKGNAME%%/fasthttpadaptor/adaptor_test.go
%%GO_SRCDIR%%/%%GO_PKGNAME%%/fasthttputil/doc.go
%%GO_SRCDIR%%/%%GO_PKGNAME%%/fasthttputil/inmemory_listener.go
%%GO_SRCDIR%%/%%GO_PKGNAME%%/fasthttputil/inmemory_listener_test.go
%%GO_SRCDIR%%/%%GO_PKGNAME%%/fasthttputil/inmemory_listener_timing_test.go
%%GO_SRCDIR%%/%%GO_PKGNAME%%/fasthttputil/pipeconns.go
%%GO_SRCDIR%%/%%GO_PKGNAME%%/fasthttputil/pipeconns_test.go
%%GO_SRCDIR%%/%%GO_PKGNAME%%/fasthttputil/ssl-cert-snakeoil.key
%%GO_SRCDIR%%/%%GO_PKGNAME%%/fasthttputil/ssl-cert-snakeoil.pem
%%GO_SRCDIR%%/%%GO_PKGNAME%%/fs.go
%%GO_SRCDIR%%/%%GO_PKGNAME%%/fs_example_test.go
%%GO_SRCDIR%%/%%GO_PKGNAME%%/fs_handler_example_test.go
%%GO_SRCDIR%%/%%GO_PKGNAME%%/fs_test.go
%%GO_SRCDIR%%/%%GO_PKGNAME%%/header.go
%%GO_SRCDIR%%/%%GO_PKGNAME%%/header_regression_test.go
%%GO_SRCDIR%%/%%GO_PKGNAME%%/header_test.go
%%GO_SRCDIR%%/%%GO_PKGNAME%%/header_timing_test.go
%%GO_SRCDIR%%/%%GO_PKGNAME%%/http.go
%%GO_SRCDIR%%/%%GO_PKGNAME%%/http_test.go
%%GO_SRCDIR%%/%%GO_PKGNAME%%/nocopy.go
%%GO_SRCDIR%%/%%GO_PKGNAME%%/peripconn.go
%%GO_SRCDIR%%/%%GO_PKGNAME%%/peripconn_test.go
%%GO_SRCDIR%%/%%GO_PKGNAME%%/requestctx_setbodystreamwriter_example_test.go
%%GO_SRCDIR%%/%%GO_PKGNAME%%/reuseport/LICENSE
%%GO_SRCDIR%%/%%GO_PKGNAME%%/reuseport/reuseport.go
%%GO_SRCDIR%%/%%GO_PKGNAME%%/reuseport/reuseport_bsd.go
%%GO_SRCDIR%%/%%GO_PKGNAME%%/reuseport/reuseport_example_test.go
%%GO_SRCDIR%%/%%GO_PKGNAME%%/reuseport/reuseport_linux.go
%%GO_SRCDIR%%/%%GO_PKGNAME%%/reuseport/reuseport_test.go
%%GO_SRCDIR%%/%%GO_PKGNAME%%/server.go
%%GO_SRCDIR%%/%%GO_PKGNAME%%/server_example_test.go
%%GO_SRCDIR%%/%%GO_PKGNAME%%/server_test.go
%%GO_SRCDIR%%/%%GO_PKGNAME%%/server_timing_test.go
%%GO_SRCDIR%%/%%GO_PKGNAME%%/ssl-cert-snakeoil.key
%%GO_SRCDIR%%/%%GO_PKGNAME%%/ssl-cert-snakeoil.pem
%%GO_SRCDIR%%/%%GO_PKGNAME%%/status.go
%%GO_SRCDIR%%/%%GO_PKGNAME%%/stream.go
%%GO_SRCDIR%%/%%GO_PKGNAME%%/stream_test.go
%%GO_SRCDIR%%/%%GO_PKGNAME%%/stream_timing_test.go
%%GO_SRCDIR%%/%%GO_PKGNAME%%/strings.go
%%GO_SRCDIR%%/%%GO_PKGNAME%%/tcpdialer.go
%%GO_SRCDIR%%/%%GO_PKGNAME%%/timer.go
%%GO_SRCDIR%%/%%GO_PKGNAME%%/uri.go
%%GO_SRCDIR%%/%%GO_PKGNAME%%/uri_test.go
%%GO_SRCDIR%%/%%GO_PKGNAME%%/uri_timing_test.go
%%GO_SRCDIR%%/%%GO_PKGNAME%%/uri_unix.go
%%GO_SRCDIR%%/%%GO_PKGNAME%%/uri_windows.go
%%GO_SRCDIR%%/%%GO_PKGNAME%%/uri_windows_test.go
%%GO_SRCDIR%%/%%GO_PKGNAME%%/userdata.go
%%GO_SRCDIR%%/%%GO_PKGNAME%%/userdata_test.go
%%GO_SRCDIR%%/%%GO_PKGNAME%%/userdata_timing_test.go
%%GO_SRCDIR%%/%%GO_PKGNAME%%/workerpool.go
%%GO_SRCDIR%%/%%GO_PKGNAME%%/workerpool_test.go