Sat May 28 23:09:30 2016 UTC ()
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).


(schnoebe)
diff -r1.1174 -r1.1175 pkgsrc/www/Makefile
diff -r0 -r1.1 pkgsrc/www/http-parser/DESCR
diff -r0 -r1.1 pkgsrc/www/http-parser/Makefile
diff -r0 -r1.1 pkgsrc/www/http-parser/PLIST
diff -r0 -r1.1 pkgsrc/www/http-parser/buildlink3.mk
diff -r0 -r1.1 pkgsrc/www/http-parser/distinfo
diff -r0 -r1.1 pkgsrc/www/http-parser/patches/patch-Makefile

cvs diff -r1.1174 -r1.1175 pkgsrc/www/Makefile (expand / switch to unified diff)

--- pkgsrc/www/Makefile 2016/05/26 09:35:05 1.1174
+++ pkgsrc/www/Makefile 2016/05/28 23:09:30 1.1175
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1# $NetBSD: Makefile,v 1.1174 2016/05/26 09:35:05 markd Exp $ 1# $NetBSD: Makefile,v 1.1175 2016/05/28 23:09:30 schnoebe Exp $
2# 2#
3 3
4COMMENT= Packages related to the World Wide Web 4COMMENT= Packages related to the World Wide Web
5 5
6SUBDIR+= SOGo 6SUBDIR+= SOGo
7SUBDIR+= SpeedyCGI 7SUBDIR+= SpeedyCGI
8SUBDIR+= adzap 8SUBDIR+= adzap
9SUBDIR+= aipo 9SUBDIR+= aipo
10SUBDIR+= album 10SUBDIR+= album
11SUBDIR+= album_themes 11SUBDIR+= album_themes
12SUBDIR+= amaya 12SUBDIR+= amaya
13SUBDIR+= analog 13SUBDIR+= analog
14SUBDIR+= ap-auth-kerb 14SUBDIR+= ap-auth-kerb
@@ -132,26 +132,27 @@ SUBDIR+= gtkhtml314 @@ -132,26 +132,27 @@ SUBDIR+= gtkhtml314
132SUBDIR+= gwt 132SUBDIR+= gwt
133SUBDIR+= h2o 133SUBDIR+= h2o
134SUBDIR+= haskell-cgi 134SUBDIR+= haskell-cgi
135SUBDIR+= heel 135SUBDIR+= heel
136SUBDIR+= hiawatha 136SUBDIR+= hiawatha
137SUBDIR+= horde 137SUBDIR+= horde
138SUBDIR+= hs-HTTP 138SUBDIR+= hs-HTTP
139SUBDIR+= htdig 139SUBDIR+= htdig
140SUBDIR+= htmlcxx 140SUBDIR+= htmlcxx
141SUBDIR+= htmldoc 141SUBDIR+= htmldoc
142SUBDIR+= htmldoc-x11 142SUBDIR+= htmldoc-x11
143SUBDIR+= htmlfix 143SUBDIR+= htmlfix
144SUBDIR+= htmllint 144SUBDIR+= htmllint
 145SUBDIR+= http-parser
145SUBDIR+= http_load 146SUBDIR+= http_load
146SUBDIR+= icedtea-web 147SUBDIR+= icedtea-web
147SUBDIR+= ies4linux 148SUBDIR+= ies4linux
148SUBDIR+= ijb 149SUBDIR+= ijb
149SUBDIR+= ikiwiki 150SUBDIR+= ikiwiki
150SUBDIR+= jalbum 151SUBDIR+= jalbum
151SUBDIR+= jetty7 152SUBDIR+= jetty7
152SUBDIR+= jetty9 153SUBDIR+= jetty9
153SUBDIR+= kahua 154SUBDIR+= kahua
154SUBDIR+= kannel 155SUBDIR+= kannel
155SUBDIR+= kdewebdev3 156SUBDIR+= kdewebdev3
156SUBDIR+= kdewebdev4 157SUBDIR+= kdewebdev4
157SUBDIR+= kdewebkit 158SUBDIR+= kdewebkit

File Added: pkgsrc/www/http-parser/DESCR
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).

File Added: pkgsrc/www/http-parser/Makefile
# $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"

File Added: pkgsrc/www/http-parser/PLIST
@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}

File Added: pkgsrc/www/http-parser/buildlink3.mk
# $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

File Added: pkgsrc/www/http-parser/distinfo
$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

File Added: pkgsrc/www/http-parser/patches/Attic/patch-Makefile
$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