Date: Fri, 5 Jul 2019 16:01:37 +0000 (UTC) From: Alexey Dokuchaev <danfe@FreeBSD.org> 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 Message-ID: <201907051601.x65G1b5V066792@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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 <danfe@FreeBSD.org> +# $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 <bsd.port.mk> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201907051601.x65G1b5V066792>