debian/0000755000000000000000000000000012220140702007154 5ustar debian/rules0000755000000000000000000000070412220134722010242 0ustar #!/usr/bin/make -f export DH_VERBOSE=1 DPKG_EXPORT_BUILDFLAGS = 1 include /usr/share/dpkg/buildflags.mk DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH) %: dh $@ override_dh_auto_build: make package make library override_dh_makeshlibs: dh_makeshlibs -V 'libhttp-parser2.1 (>=2.1)' override_dh_strip: dh_strip --dbg-package=libhttp-parser2.1-dbg .PHONY: override_dh_strip override_dh_makeshlibs override_dh_auto_build debian/watch0000644000000000000000000000014312157550174010224 0ustar version=3 https://github.com/joyent/http-parser/tags .*/v?(\d.*)\.(?:tgz|tbz2|tar\.(?:gz|bz2|xz)) debian/source/0000755000000000000000000000000012161042443010463 5ustar debian/source/format0000644000000000000000000000001412157550174011703 0ustar 3.0 (quilt) debian/libhttp-parser-dev.install0000755000000000000000000000013612157605030014274 0ustar #!/usr/bin/dh-exec http_parser.h usr/include libhttp_parser.a usr/lib/${DEB_HOST_MULTIARCH}/ debian/libhttp-parser2.1.lintian-overrides0000644000000000000000000000012112157607433015731 0ustar # Upstread does not provide a changelog libhttp-parser2.1: no-upstream-changelog debian/libhttp-parser2.1.symbols0000644000000000000000000000053212161042443013756 0ustar libhttp_parser.so.2.1 libhttp-parser2.1 #MINVER# http_body_is_final@Base 2.1 http_errno_description@Base 2.1 http_errno_name@Base 2.1 http_message_needs_eof@Base 2.1 http_method_str@Base 2.1 http_parser_execute@Base 2.1 http_parser_init@Base 2.1 http_parser_parse_url@Base 2.1 http_parser_pause@Base 2.1 http_should_keep_alive@Base 2.1 debian/clean0000644000000000000000000000002612157607150010175 0ustar libhttp_parser.so.2.1 debian/libhttp-parser2.1.install0000755000000000000000000000011112157607433013743 0ustar #!/usr/bin/dh-exec libhttp_parser.so.2.1 usr/lib/${DEB_HOST_MULTIARCH}/ debian/libhttp-parser2.1-dbg.lintian-overrides0000644000000000000000000000012512161042443016454 0ustar # Upstread does not provide a changelog libhttp-parser2.1-dbg: no-upstream-changelog debian/copyright0000644000000000000000000000517712157550174011142 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: http-parser Source: https://github.com/joyent/http-parser Files: * Copyright: Igor Sysoev 2009-2013 Joyent, Inc. and other Node contributors License: Expat http_parser.c is based on src/http/ngx_http_parse.c from NGINX copyright Igor Sysoev. . Additional changes are licensed under the same terms as NGINX and copyright Joyent, Inc. and other Node contributors. All rights reserved. . Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: . The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. . THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Files: debian/* Copyright: 2013 Praveen Arimbrathodiyil License: Expat License: Expat Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: . The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. . THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. debian/control0000644000000000000000000000423112220132226010561 0ustar Source: http-parser Priority: extra Maintainer: Praveen Arimbrathodiyil Build-Depends: debhelper (>= 9), dh-exec (>=0.3), dpkg-dev (>= 1.16.1~) Standards-Version: 3.9.4 Section: libs Homepage: https://github.com/joyent/http-parser Vcs-Git: git://anonscm.debian.org/collab-maint/http-parser.git Vcs-Browser: http://anonscm.debian.org/gitweb?p=collab-maint/http-parser.git;a=summary Package: libhttp-parser-dev Section: libdevel Architecture: any Depends: libhttp-parser2.1 (= ${binary:Version}), ${misc:Depends} Description: parser for HTTP messages: development libraries and header files It parses both requests and responses. The parser is designed to be used in performance 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). . This package contains development libraries and header files. Package: libhttp-parser2.1 Architecture: any Multi-Arch: same Pre-Depends: ${misc:Pre-Depends} Depends: ${shlibs:Depends}, ${misc:Depends} Description: 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 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). Package: libhttp-parser2.1-dbg Architecture: any Multi-Arch: same Section: debug Depends: libhttp-parser2.1 (= ${binary:Version}), ${misc:Depends} Description: debugging symbols for libhttp-parser2.1 It parses both requests and responses. The parser is designed to be used in performance 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). . This package contains the debugging symbols for libhttp-parser2.1. debian/libhttp-parser2.1.docs0000644000000000000000000000004012157607433013223 0ustar README.md AUTHORS CONTRIBUTIONS debian/libhttp-parser-dev.lintian-overrides0000644000000000000000000000012212157550174016264 0ustar # Upstread does not provide a changelog libhttp-parser-dev: no-upstream-changelog debian/patches/0000755000000000000000000000000012157611465010625 5ustar debian/patches/series0000644000000000000000000000004312157607665012046 0ustar fix-soname.patch use-ldflags.patch debian/patches/fix-soname.patch0000644000000000000000000000535412157611436013721 0ustar Description: set SONAME in shared object file Author: Ben Noordhuis Bug: https://github.com/joyent/http-parser/issues/151 Origin: https://github.com/joyent/http-parser/commit/1b96c76.patch Last-Update: 2013-06-13 --- .gitignore | 2 +- Makefile | 34 ++++++++++++++++++++++++++++++++-- http_parser.h | 1 + 3 files changed, 34 insertions(+), 3 deletions(-) --- a/Makefile +++ b/Makefile @@ -1,3 +1,26 @@ +# Copyright Joyent, Inc. and other Node contributors. All rights reserved. +# +# Permission is hereby granted, free of charge, to any person obtaining a copy +# of this software and associated documentation files (the "Software"), to +# deal in the Software without restriction, including without limitation the +# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or +# sell copies of the Software, and to permit persons to whom the Software is +# furnished to do so, subject to the following conditions: +# +# The above copyright notice and this permission notice shall be included in +# all copies or substantial portions of the Software. +# +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS +# IN THE SOFTWARE. + +PLATFORM ?= $(shell sh -c 'uname -s | tr "[A-Z]" "[a-z]"') +SONAME ?= libhttp_parser.so.2.1 + CC?=gcc AR?=ar @@ -12,6 +35,13 @@ CFLAGS_FAST = $(CFLAGS) -O3 $(CFLAGS_FAST_EXTRA) CFLAGS_LIB = $(CFLAGS_FAST) -fPIC +LDFLAGS_LIB = -shared + +ifneq (darwin,$(PLATFORM)) +# TODO(bnoordhuis) The native SunOS linker expects -h rather than -soname... +LDFLAGS_LIB += -Wl,-soname=$(SONAME) +endif + test: test_g test_fast ./test_g ./test_fast @@ -44,7 +74,7 @@ $(CC) $(CPPFLAGS_FAST) $(CFLAGS_LIB) -c http_parser.c -o libhttp_parser.o library: libhttp_parser.o - $(CC) -shared -o libhttp_parser.so libhttp_parser.o + $(CC) $(LDFLAGS_LIB) -o $(SONAME) $< package: http_parser.o $(AR) rcs libhttp_parser.a http_parser.o @@ -66,7 +96,7 @@ clean: rm -f *.o *.a tags test test_fast test_g \ - http_parser.tar libhttp_parser.so \ + http_parser.tar libhttp_parser.so.* \ url_parser url_parser_g parsertrace parsertrace_g contrib/url_parser.c: http_parser.h --- a/http_parser.h +++ b/http_parser.h @@ -24,6 +24,7 @@ extern "C" { #endif +/* Also update SONAME in the Makefile whenever you change these. */ #define HTTP_PARSER_VERSION_MAJOR 2 #define HTTP_PARSER_VERSION_MINOR 1 debian/patches/use-ldflags.patch0000644000000000000000000000063712157611465014062 0ustar Description: Use hardened LDFLAGS Add "read-only relocation" link flag when building library Author: Praveen Arimbrathodiyil Last-Update: 2013-06-13 --- a/Makefile +++ b/Makefile @@ -36,6 +36,7 @@ CFLAGS_LIB = $(CFLAGS_FAST) -fPIC LDFLAGS_LIB = -shared +LDFLAGS_LIB += $(LDFLAGS) ifneq (darwin,$(PLATFORM)) # TODO(bnoordhuis) The native SunOS linker expects -h rather than -soname... debian/compat0000644000000000000000000000000212157550174010373 0ustar 9 debian/libhttp-parser-dev.links0000755000000000000000000000033412157607150013753 0ustar #!/usr/bin/dh-exec usr/lib/${DEB_HOST_MULTIARCH}/libhttp_parser.so.2.1 usr/lib/${DEB_HOST_MULTIARCH}/libhttp_parser.so.2 usr/lib/${DEB_HOST_MULTIARCH}/libhttp_parser.so.2 usr/lib/${DEB_HOST_MULTIARCH}/libhttp_parser.so debian/changelog0000644000000000000000000000177112220140271011035 0ustar http-parser (2.1-2) unstable; urgency=low * Team upload. [ Per Andersson ] * Update copyright with years * Fix Vcs-* URLs [ Cédric Boutillier ] * debian/rules: - export build flags - override dh_auto_install instead of defining build: target (Closes: #719036) * debian/patches: - add fix-soname.patch from upstream to define a proper SONAME - update use-ldflags.patch to add LDFLAGS to LDFLAGS_LIB * Fix multiarch installation path (Closes: #719780) - ld can now find it with -lhttp_parser (Closes: #724204) * Install symlinks for the -dev package [ Praveen Arimbrathodiyil ] * add symbols file * unapply patches after build * override dh_makeshlibs * add a -dbg package * add dpkg-dev (>= 1.16.1~) to build deps -- Cédric Boutillier Tue, 24 Sep 2013 00:29:11 +0200 http-parser (2.1-1) unstable; urgency=low * Initial release (Closes: #712052) -- Praveen Arimbrathodiyil Thu, 13 Jun 2013 20:37:49 +0530 debian/libhttp-parser0/0000755000000000000000000000000012157604150012207 5ustar debian/libhttp-parser0/usr/0000755000000000000000000000000012157604150013020 5ustar debian/libhttp-parser0/usr/lib/0000755000000000000000000000000012157604150013566 5ustar debian/libhttp-parser0/usr/lib/x86_64-linux-gnu/0000755000000000000000000000000012157604150016450 5ustar