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
--- 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 | |
4 | COMMENT= Packages related to the World Wide Web | | 4 | COMMENT= Packages related to the World Wide Web |
5 | | | 5 | |
6 | SUBDIR+= SOGo | | 6 | SUBDIR+= SOGo |
7 | SUBDIR+= SpeedyCGI | | 7 | SUBDIR+= SpeedyCGI |
8 | SUBDIR+= adzap | | 8 | SUBDIR+= adzap |
9 | SUBDIR+= aipo | | 9 | SUBDIR+= aipo |
10 | SUBDIR+= album | | 10 | SUBDIR+= album |
11 | SUBDIR+= album_themes | | 11 | SUBDIR+= album_themes |
12 | SUBDIR+= amaya | | 12 | SUBDIR+= amaya |
13 | SUBDIR+= analog | | 13 | SUBDIR+= analog |
14 | SUBDIR+= ap-auth-kerb | | 14 | SUBDIR+= ap-auth-kerb |
| @@ -132,26 +132,27 @@ SUBDIR+= gtkhtml314 | | | @@ -132,26 +132,27 @@ SUBDIR+= gtkhtml314 |
132 | SUBDIR+= gwt | | 132 | SUBDIR+= gwt |
133 | SUBDIR+= h2o | | 133 | SUBDIR+= h2o |
134 | SUBDIR+= haskell-cgi | | 134 | SUBDIR+= haskell-cgi |
135 | SUBDIR+= heel | | 135 | SUBDIR+= heel |
136 | SUBDIR+= hiawatha | | 136 | SUBDIR+= hiawatha |
137 | SUBDIR+= horde | | 137 | SUBDIR+= horde |
138 | SUBDIR+= hs-HTTP | | 138 | SUBDIR+= hs-HTTP |
139 | SUBDIR+= htdig | | 139 | SUBDIR+= htdig |
140 | SUBDIR+= htmlcxx | | 140 | SUBDIR+= htmlcxx |
141 | SUBDIR+= htmldoc | | 141 | SUBDIR+= htmldoc |
142 | SUBDIR+= htmldoc-x11 | | 142 | SUBDIR+= htmldoc-x11 |
143 | SUBDIR+= htmlfix | | 143 | SUBDIR+= htmlfix |
144 | SUBDIR+= htmllint | | 144 | SUBDIR+= htmllint |
| | | 145 | SUBDIR+= http-parser |
145 | SUBDIR+= http_load | | 146 | SUBDIR+= http_load |
146 | SUBDIR+= icedtea-web | | 147 | SUBDIR+= icedtea-web |
147 | SUBDIR+= ies4linux | | 148 | SUBDIR+= ies4linux |
148 | SUBDIR+= ijb | | 149 | SUBDIR+= ijb |
149 | SUBDIR+= ikiwiki | | 150 | SUBDIR+= ikiwiki |
150 | SUBDIR+= jalbum | | 151 | SUBDIR+= jalbum |
151 | SUBDIR+= jetty7 | | 152 | SUBDIR+= jetty7 |
152 | SUBDIR+= jetty9 | | 153 | SUBDIR+= jetty9 |
153 | SUBDIR+= kahua | | 154 | SUBDIR+= kahua |
154 | SUBDIR+= kannel | | 155 | SUBDIR+= kannel |
155 | SUBDIR+= kdewebdev3 | | 156 | SUBDIR+= kdewebdev3 |
156 | SUBDIR+= kdewebdev4 | | 157 | SUBDIR+= kdewebdev4 |
157 | SUBDIR+= kdewebkit | | 158 | SUBDIR+= kdewebkit |
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).
# $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"
@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}
# $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
$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
$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