From owner-svn-ports-all@freebsd.org Fri Jul 5 16:01:39 2019 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D297515CEE66; Fri, 5 Jul 2019 16:01:38 +0000 (UTC) (envelope-from danfe@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 55167762CB; Fri, 5 Jul 2019 16:01:38 +0000 (UTC) (envelope-from danfe@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 2EFC4CA5A; Fri, 5 Jul 2019 16:01:38 +0000 (UTC) (envelope-from danfe@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id x65G1ciU066797; Fri, 5 Jul 2019 16:01:38 GMT (envelope-from danfe@FreeBSD.org) Received: (from danfe@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id x65G1b5V066792; Fri, 5 Jul 2019 16:01:37 GMT (envelope-from danfe@FreeBSD.org) Message-Id: <201907051601.x65G1b5V066792@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: danfe set sender to danfe@FreeBSD.org using -f From: Alexey Dokuchaev Date: Fri, 5 Jul 2019 16:01:37 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r505902 - in head/www: . http-parser http-parser/files X-SVN-Group: ports-head X-SVN-Commit-Author: danfe X-SVN-Commit-Paths: in head/www: . http-parser http-parser/files X-SVN-Commit-Revision: 505902 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 55167762CB X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.92 / 15.00]; local_wl_from(0.00)[FreeBSD.org]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; NEURAL_HAM_SHORT(-0.92)[-0.924,0]; ASN(0.00)[asn:11403, ipnet:2610:1c1:1::/48, country:US]; NEURAL_HAM_LONG(-1.00)[-1.000,0] X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Jul 2019 16:01:39 -0000 Author: danfe Date: Fri Jul 5 16:01:36 2019 New Revision: 505902 URL: https://svnweb.freebsd.org/changeset/ports/505902 Log: This is a parser for HTTP messages written in C. WWW: https://github.com/nodejs/http-parser Added: head/www/http-parser/ head/www/http-parser/Makefile (contents, props changed) head/www/http-parser/distinfo (contents, props changed) head/www/http-parser/files/ head/www/http-parser/files/patch-Makefile (contents, props changed) head/www/http-parser/pkg-descr (contents, props changed) Modified: head/www/Makefile Modified: head/www/Makefile ============================================================================== --- head/www/Makefile Fri Jul 5 15:03:47 2019 (r505901) +++ head/www/Makefile Fri Jul 5 16:01:36 2019 (r505902) @@ -256,6 +256,7 @@ SUBDIR += htmlpp SUBDIR += httest SUBDIR += http-analyze + SUBDIR += http-parser SUBDIR += http_get SUBDIR += http_load SUBDIR += http_post Added: head/www/http-parser/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/http-parser/Makefile Fri Jul 5 16:01:36 2019 (r505902) @@ -0,0 +1,28 @@ +# Created by: Alexey Dokuchaev +# $FreeBSD$ + +PORTNAME= http-parser +PORTVERSION= 2.9.2 +DISTVERSIONPREFIX= v +CATEGORIES= www + +MAINTAINER= danfe@FreeBSD.org +COMMENT= HTTP request/response parser written in C + +LICENSE= MIT + +USE_GITHUB= yes +GH_ACCOUNT= nodejs + +USES= gmake +USE_LDCONFIG= yes +MAKE_ENV= STRIP="${STRIP}" +ALL_TARGET= library +INSTALL_TARGET= install-strip +TEST_TARGET= test + +PLIST_FILES= include/http_parser.h lib/libhttp_parser.so \ + lib/libhttp_parser.so.${PORTVERSION:R} \ + lib/libhttp_parser.so.${PORTVERSION} + +.include Added: head/www/http-parser/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/http-parser/distinfo Fri Jul 5 16:01:36 2019 (r505902) @@ -0,0 +1,3 @@ +TIMESTAMP = 1555396419 +SHA256 (nodejs-http-parser-v2.9.2_GH0.tar.gz) = 5199500e352584852c95c13423edc5f0cb329297c81dd69c3c8f52a75496da08 +SIZE (nodejs-http-parser-v2.9.2_GH0.tar.gz) = 51298 Added: head/www/http-parser/files/patch-Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/http-parser/files/patch-Makefile Fri Jul 5 16:01:36 2019 (r505902) @@ -0,0 +1,22 @@ +--- Makefile.orig 2019-04-16 06:33:39 UTC ++++ Makefile +@@ -54,7 +54,7 @@ CPPFLAGS_BENCH = $(CPPFLAGS_FAST) + + CFLAGS += -Wall -Wextra -Werror + CFLAGS_DEBUG = $(CFLAGS) -O0 -g $(CFLAGS_DEBUG_EXTRA) +-CFLAGS_FAST = $(CFLAGS) -O3 $(CFLAGS_FAST_EXTRA) ++CFLAGS_FAST = $(CFLAGS) $(CFLAGS_FAST_EXTRA) + CFLAGS_BENCH = $(CFLAGS_FAST) -Wno-unused-parameter + CFLAGS_LIB = $(CFLAGS_FAST) -fPIC + +@@ -137,8 +137,8 @@ install: library + ln -s $(LIBNAME) $(DESTDIR)$(LIBDIR)/$(SOLIBNAME).$(SOEXT) + + install-strip: library +- $(INSTALL) -D http_parser.h $(DESTDIR)$(INCLUDEDIR)/http_parser.h +- $(INSTALL) -D -s $(LIBNAME) $(DESTDIR)$(LIBDIR)/$(LIBNAME) ++ $(INSTALL) http_parser.h $(DESTDIR)$(INCLUDEDIR) ++ $(INSTALL) $(STRIP) $(LIBNAME) $(DESTDIR)$(LIBDIR) + ln -s $(LIBNAME) $(DESTDIR)$(LIBDIR)/$(SONAME) + ln -s $(LIBNAME) $(DESTDIR)$(LIBDIR)/$(SOLIBNAME).$(SOEXT) + Added: head/www/http-parser/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/www/http-parser/pkg-descr Fri Jul 5 16:01:36 2019 (r505902) @@ -0,0 +1,8 @@ +This is a parser for HTTP messages written in C. It parses both requests +and responses. The parser is designed to be used in performance HTTP +applications. It does not make any system calls nor allocations, it does +not buffer data, it can be interrupted at anytime. Depending on the +architecture, it only requires about 40 bytes of data per message stream +(in a web server that is per connection). + +WWW: https://github.com/nodejs/http-parser