pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/www Add www/http-parser 2.7.0.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/909b88f6529f
branches:  trunk
changeset: 347735:909b88f6529f
user:      schnoebe <schnoebe%pkgsrc.org@localhost>
date:      Sat May 28 23:09:30 2016 +0000

description:
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:

 www/Makefile                           |   3 +-
 www/http-parser/DESCR                  |   6 ++++
 www/http-parser/Makefile               |  24 +++++++++++++++++
 www/http-parser/PLIST                  |   5 +++
 www/http-parser/buildlink3.mk          |  12 ++++++++
 www/http-parser/distinfo               |   7 +++++
 www/http-parser/patches/patch-Makefile |  46 ++++++++++++++++++++++++++++++++++
 7 files changed, 102 insertions(+), 1 deletions(-)

diffs (141 lines):

diff -r 37b5aadba089 -r 909b88f6529f www/Makefile
--- a/www/Makefile      Sat May 28 21:05:12 2016 +0000
+++ b/www/Makefile      Sat May 28 23:09:30 2016 +0000
@@ -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-x11
 SUBDIR+=       htmlfix
 SUBDIR+=       htmllint
+SUBDIR+=       http-parser
 SUBDIR+=       http_load
 SUBDIR+=       icedtea-web
 SUBDIR+=       ies4linux
diff -r 37b5aadba089 -r 909b88f6529f www/http-parser/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/http-parser/DESCR     Sat May 28 23:09:30 2016 +0000
@@ -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 -r 37b5aadba089 -r 909b88f6529f www/http-parser/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/http-parser/Makefile  Sat May 28 23:09:30 2016 +0000
@@ -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@localhost
+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 -r 37b5aadba089 -r 909b88f6529f www/http-parser/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/http-parser/PLIST     Sat May 28 23:09:30 2016 +0000
@@ -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 -r 37b5aadba089 -r 909b88f6529f www/http-parser/buildlink3.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/http-parser/buildlink3.mk     Sat May 28 23:09:30 2016 +0000
@@ -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 -r 37b5aadba089 -r 909b88f6529f www/http-parser/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/http-parser/distinfo  Sat May 28 23:09:30 2016 +0000
@@ -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 -r 37b5aadba089 -r 909b88f6529f www/http-parser/patches/patch-Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/www/http-parser/patches/patch-Makefile    Sat May 28 23:09:30 2016 +0000
@@ -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



Home | Main Index | Thread Index | Old Index