diff options
author | schnoebe <schnoebe> | 2016-05-28 23:09:30 +0000 |
---|---|---|
committer | schnoebe <schnoebe> | 2016-05-28 23:09:30 +0000 |
commit | c9a99c7cc60b08f2c6207d1b7f6dd3299dd2645f (patch) | |
tree | ae4b89a3b0503ab4d896fe4a6d664223eab835d9 /www | |
parent | b227bfccd1f4ecb22c265ff755bbc0cdc0909a56 (diff) | |
download | pkgsrc-c9a99c7cc60b08f2c6207d1b7f6dd3299dd2645f.tar.gz |
Add www/http-parser 2.7.0.
An parser for HTTP messages written in C, parsing both requests
and responses. It is designed to be used in performance oriented
HTTP applications. It does not make any syscalls nor allocations,
it does not buffer data, it can be interrupted at anytime. Depending
on your architecture, it only requires about 40 bytes of data per
message stream (in a web server that is per connection).
Diffstat (limited to 'www')
-rw-r--r-- | www/Makefile | 3 | ||||
-rw-r--r-- | www/http-parser/DESCR | 6 | ||||
-rw-r--r-- | www/http-parser/Makefile | 24 | ||||
-rw-r--r-- | www/http-parser/PLIST | 5 | ||||
-rw-r--r-- | www/http-parser/buildlink3.mk | 12 | ||||
-rw-r--r-- | www/http-parser/distinfo | 7 | ||||
-rw-r--r-- | www/http-parser/patches/patch-Makefile | 46 |
7 files changed, 102 insertions, 1 deletions
diff --git a/www/Makefile b/www/Makefile index d692d9591df..17c0602c508 100644 --- a/www/Makefile +++ b/www/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.1174 2016/05/26 09:35:05 markd Exp $ +# $NetBSD: Makefile,v 1.1175 2016/05/28 23:09:30 schnoebe Exp $ # COMMENT= Packages related to the World Wide Web @@ -142,6 +142,7 @@ SUBDIR+= htmldoc SUBDIR+= htmldoc-x11 SUBDIR+= htmlfix SUBDIR+= htmllint +SUBDIR+= http-parser SUBDIR+= http_load SUBDIR+= icedtea-web SUBDIR+= ies4linux diff --git a/www/http-parser/DESCR b/www/http-parser/DESCR new file mode 100644 index 00000000000..fbf391eb3fa --- /dev/null +++ b/www/http-parser/DESCR @@ -0,0 +1,6 @@ +An parser for HTTP messages written in C, parsing both requests +and responses. It is designed to be used in performance oriented +HTTP applications. It does not make any syscalls nor allocations, +it does not buffer data, it can be interrupted at anytime. Depending +on your architecture, it only requires about 40 bytes of data per +message stream (in a web server that is per connection). diff --git a/www/http-parser/Makefile b/www/http-parser/Makefile new file mode 100644 index 00000000000..a16f47ce685 --- /dev/null +++ b/www/http-parser/Makefile @@ -0,0 +1,24 @@ +# $NetBSD: Makefile,v 1.1 2016/05/28 23:09:30 schnoebe Exp $ + +DISTNAME= v${DISTVER} +PKGNAME= ${GITHUB_PROJECT}-${DISTVER} +CATEGORIES= www +MASTER_SITES= ${MASTER_SITE_GITHUB:=nodejs/} +DIST_SUBDIR= ${GITHUB_PROJECT} + +MAINTAINER= schnoebe@NetBSD.org +HOMEPAGE= ${MASTER_SITE_GITHUB:=nodejs/http-parser/} +COMMENT= Parser for HTTP messages written in C +LICENSE= mit + +GITHUB_PROJECT= http-parser +DISTVER= 2.7.0 + +WRKSRC= ${WRKDIR}/${PKGNAME_NOREV} + +USE_LANGUAGES= c +USE_TOOLS+= gmake +BUILD_TARGET= library +BUILDLINK_TRANSFORM+= rm:-Werror + +.include "../../mk/bsd.pkg.mk" diff --git a/www/http-parser/PLIST b/www/http-parser/PLIST new file mode 100644 index 00000000000..723a022ee5b --- /dev/null +++ b/www/http-parser/PLIST @@ -0,0 +1,5 @@ +@comment $NetBSD: PLIST,v 1.1 2016/05/28 23:09:30 schnoebe Exp $ +@comment $NetBSD: PLIST,v 1.1 2016/05/28 23:09:30 schnoebe Exp $ +include/http_parser.h +lib/libhttp_parser.so +lib/libhttp_parser.so.2.${OS_VERSION} diff --git a/www/http-parser/buildlink3.mk b/www/http-parser/buildlink3.mk new file mode 100644 index 00000000000..e388638ac30 --- /dev/null +++ b/www/http-parser/buildlink3.mk @@ -0,0 +1,12 @@ +# $NetBSD: buildlink3.mk,v 1.1 2016/05/28 23:09:30 schnoebe Exp $ + +BUILDLINK_TREE+= http-parser + +.if !defined(HTTP_PARSER_BUILDLINK3_MK) +HTTP_PARSER_BUILDLINK3_MK:= + +BUILDLINK_API_DEPENDS.http-parser+= http-parser>=2.7.0 +BUILDLINK_PKGSRCDIR.http-parser?= ../../www/http-parser +.endif # HTTP_PARSER_BUILDLINK3_MK + +BUILDLINK_TREE+= -http-parser diff --git a/www/http-parser/distinfo b/www/http-parser/distinfo new file mode 100644 index 00000000000..55faa3c8912 --- /dev/null +++ b/www/http-parser/distinfo @@ -0,0 +1,7 @@ +$NetBSD: distinfo,v 1.1 2016/05/28 23:09:30 schnoebe Exp $ + +SHA1 (http-parser/v2.7.0.tar.gz) = f24bd35cf6d663e2b9f916708d82a96f562bc78b +RMD160 (http-parser/v2.7.0.tar.gz) = 910c4bb7cf4c5463ad2a54eb82b78d1bc20de877 +SHA512 (http-parser/v2.7.0.tar.gz) = 1fe13b5366e9d161dbce2f6ad340890713413e4c5865d2567cb5ccf5601a52bc03682ecc43bc4e2c5ee9c4f152993a658d87fd43373070da67530c58ad577ee1 +Size (http-parser/v2.7.0.tar.gz) = 48523 bytes +SHA1 (patch-Makefile) = d2563f8f1e7d85e3b7d7e1dc53ae20089a0e8cab diff --git a/www/http-parser/patches/patch-Makefile b/www/http-parser/patches/patch-Makefile new file mode 100644 index 00000000000..8ec275e7ffb --- /dev/null +++ b/www/http-parser/patches/patch-Makefile @@ -0,0 +1,46 @@ +$NetBSD: patch-Makefile,v 1.1 2016/05/28 23:09:30 schnoebe Exp $ + +Correctly(?) include DESTDIR; + +Correct the usage of $(INSTALL) to create the directories as needed +and create a short, relative symbolic link for the shared library. + +$(INSTALL) is assumed to be NetBSD's pkgsrc install. + +Remove redundant install-strip target. + +--- Makefile.orig 2016-04-19 14:41:48.000000000 +0000 ++++ Makefile +@@ -56,8 +56,8 @@ LDFLAGS_LIB = $(LDFLAGS) -shared + + INSTALL ?= install + PREFIX ?= $(DESTDIR)/usr/local +-LIBDIR = $(PREFIX)/lib +-INCLUDEDIR = $(PREFIX)/include ++LIBDIR = $(DESTDIR)/$(PREFIX)/lib ++INCLUDEDIR = $(DESTDIR)/$(PREFIX)/include + + ifneq (darwin,$(PLATFORM)) + # TODO(bnoordhuis) The native SunOS linker expects -h rather than -soname... +@@ -122,15 +122,12 @@ parsertrace_g: http_parser_g.o contrib/p + tags: http_parser.c http_parser.h test.c + ctags $^ + +-install: library +- $(INSTALL) -D http_parser.h $(INCLUDEDIR)/http_parser.h +- $(INSTALL) -D $(SONAME) $(LIBDIR)/$(SONAME) +- ln -s $(LIBDIR)/$(SONAME) $(LIBDIR)/libhttp_parser.$(SOEXT) +- +-install-strip: library +- $(INSTALL) -D http_parser.h $(INCLUDEDIR)/http_parser.h +- $(INSTALL) -D -s $(SONAME) $(LIBDIR)/$(SONAME) +- ln -s $(LIBDIR)/$(SONAME) $(LIBDIR)/libhttp_parser.$(SOEXT) ++install install-strip: library ++ $(INSTALL) -d $(INCLUDEDIR) ++ $(INSTALL) http_parser.h $(INCLUDEDIR)/http_parser.h ++ $(INSTALL) -d $(LIBDIR) ++ $(INSTALL) $(SONAME) $(LIBDIR)/$(SONAME) ++ cd $(LIBDIR) && $(INSTALL) -l s $(SONAME) libhttp_parser.$(SOEXT) + + uninstall: + rm $(INCLUDEDIR)/http_parser.h |