Skip to content

Commit 5853d3b

Browse files
committed
Commit vendor deps
1 parent 7e5c36f commit 5853d3b

File tree

5,036 files changed

+339652
-16
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

5,036 files changed

+339652
-16
lines changed

.gitignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
11
/node_modules/
2-
/vendor/libgit2/
3-
/vendor/libssh2/
4-
/vendor/http_parser/
52
/build/
63
/test/coverage/
74
/test/repos/

package.json

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,6 @@
22
"name": "nodegit",
33
"description": "Node.js libgit2 asynchronous native bindings",
44
"version": "0.4.1",
5-
"libgit2": {
6-
"url": "https://github.com/nodegit/libgit2/tarball/2cb4b6534fbcbe600ecf3db95ba19e4525c8d4b8",
7-
"sha": "2cb4b6534fbcbe600ecf3db95ba19e4525c8d4b8",
8-
"version": "0.23.1"
9-
},
10-
"libssh2": {
11-
"url": "http://www.libssh2.org/download/libssh2-1.4.3.tar.gz",
12-
"version": "1.4.3"
13-
},
14-
"http_parser": {
15-
"url": "https://github.com/joyent/http-parser/archive/v2.5.0.tar.gz",
16-
"version": "2.5.0"
17-
},
185
"homepage": "http://nodegit.org",
196
"keywords": [
207
"libgit2",
@@ -72,6 +59,14 @@
7259
"request": "^2.55.0",
7360
"tar": "^2.1.0"
7461
},
62+
"vendorDependencies": {
63+
"libgit2": {
64+
"sha": "2cb4b6534fbcbe600ecf3db95ba19e4525c8d4b8",
65+
"version": "0.23.1"
66+
},
67+
"libssh2": "1.4.3",
68+
"http_parser": "2.5.0"
69+
},
7570
"binary": {
7671
"module_name": "nodegit",
7772
"module_path": "./build/Release/",

vendor/http_parser/.gitignore

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
/out/
2+
core
3+
tags
4+
*.o
5+
test
6+
test_g
7+
test_fast
8+
bench
9+
url_parser
10+
parsertrace
11+
parsertrace_g
12+
*.mk
13+
*.Makefile
14+
*.so.*
15+
*.a
16+
17+
18+
# Visual Studio uglies
19+
*.suo
20+
*.sln
21+
*.vcxproj
22+
*.vcxproj.filters
23+
*.vcxproj.user
24+
*.opensdf
25+
*.ncrunchsolution*
26+
*.sdf
27+
*.vsp
28+
*.psess

vendor/http_parser/.mailmap

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# update AUTHORS with:
2+
# git log --all --reverse --format='%aN <%aE>' | perl -ne 'BEGIN{print "# Authors ordered by first contribution.\n"} print unless $h{$_}; $h{$_} = 1' > AUTHORS
3+
Ryan Dahl <ry@tinyclouds.org>
4+
Salman Haq <salman.haq@asti-usa.com>
5+
Simon Zimmermann <simonz05@gmail.com>
6+
Thomas LE ROUX <thomas@november-eleven.fr> LE ROUX Thomas <thomas@procheo.fr>
7+
Thomas LE ROUX <thomas@november-eleven.fr> Thomas LE ROUX <thomas@procheo.fr>
8+
Fedor Indutny <fedor@indutny.com>

vendor/http_parser/.travis.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
language: c
2+
3+
compiler:
4+
- clang
5+
- gcc
6+
7+
script:
8+
- "make"
9+
10+
notifications:
11+
email: false
12+
irc:
13+
- "irc.freenode.net#node-ci"

vendor/http_parser/AUTHORS

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
# Authors ordered by first contribution.
2+
Ryan Dahl <ry@tinyclouds.org>
3+
Jeremy Hinegardner <jeremy@hinegardner.org>
4+
Sergey Shepelev <temotor@gmail.com>
5+
Joe Damato <ice799@gmail.com>
6+
tomika <tomika_nospam@freemail.hu>
7+
Phoenix Sol <phoenix@burninglabs.com>
8+
Cliff Frey <cliff@meraki.com>
9+
Ewen Cheslack-Postava <ewencp@cs.stanford.edu>
10+
Santiago Gala <sgala@apache.org>
11+
Tim Becker <tim.becker@syngenio.de>
12+
Jeff Terrace <jterrace@gmail.com>
13+
Ben Noordhuis <info@bnoordhuis.nl>
14+
Nathan Rajlich <nathan@tootallnate.net>
15+
Mark Nottingham <mnot@mnot.net>
16+
Aman Gupta <aman@tmm1.net>
17+
Tim Becker <tim.becker@kuriositaet.de>
18+
Sean Cunningham <sean.cunningham@mandiant.com>
19+
Peter Griess <pg@std.in>
20+
Salman Haq <salman.haq@asti-usa.com>
21+
Cliff Frey <clifffrey@gmail.com>
22+
Jon Kolb <jon@b0g.us>
23+
Fouad Mardini <f.mardini@gmail.com>
24+
Paul Querna <pquerna@apache.org>
25+
Felix Geisendörfer <felix@debuggable.com>
26+
koichik <koichik@improvement.jp>
27+
Andre Caron <andre.l.caron@gmail.com>
28+
Ivo Raisr <ivosh@ivosh.net>
29+
James McLaughlin <jamie@lacewing-project.org>
30+
David Gwynne <loki@animata.net>
31+
Thomas LE ROUX <thomas@november-eleven.fr>
32+
Randy Rizun <rrizun@ortivawireless.com>
33+
Andre Louis Caron <andre.louis.caron@usherbrooke.ca>
34+
Simon Zimmermann <simonz05@gmail.com>
35+
Erik Dubbelboer <erik@dubbelboer.com>
36+
Martell Malone <martellmalone@gmail.com>
37+
Bertrand Paquet <bpaquet@octo.com>
38+
BogDan Vatra <bogdan@kde.org>
39+
Peter Faiman <peter@thepicard.org>
40+
Corey Richardson <corey@octayn.net>
41+
Tóth Tamás <tomika_nospam@freemail.hu>
42+
Cam Swords <cam.swords@gmail.com>
43+
Chris Dickinson <christopher.s.dickinson@gmail.com>
44+
Uli Köhler <ukoehler@btronik.de>
45+
Charlie Somerville <charlie@charliesomerville.com>
46+
Patrik Stutz <patrik.stutz@gmail.com>
47+
Fedor Indutny <fedor.indutny@gmail.com>
48+
runner <runner.mei@gmail.com>
49+
Alexis Campailla <alexis@janeasystems.com>
50+
David Wragg <david@wragg.org>
51+
Vinnie Falco <vinnie.falco@gmail.com>
52+
Alex Butum <alexbutum@linux.com>
53+
Rex Feng <rexfeng@gmail.com>
54+
Alex Kocharin <alex@kocharin.ru>
55+
Mark Koopman <markmontymark@yahoo.com>
56+
Helge Heß <me@helgehess.eu>
57+
Alexis La Goutte <alexis.lagoutte@gmail.com>
58+
George Miroshnykov <george.miroshnykov@gmail.com>
59+
Maciej Małecki <me@mmalecki.com>
60+
Marc O'Morain <github.com@marcomorain.com>
61+
Jeff Pinner <jpinner@twitter.com>
62+
Timothy J Fontaine <tjfontaine@gmail.com>
63+
Akagi201 <akagi201@gmail.com>
64+
Romain Giraud <giraud.romain@gmail.com>
65+
Jay Satiro <raysatiro@yahoo.com>
66+
Arne Steen <Arne.Steen@gmx.de>
67+
Kjell Schubert <kjell.schubert@gmail.com>

vendor/http_parser/LICENSE-MIT

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
http_parser.c is based on src/http/ngx_http_parse.c from NGINX copyright
2+
Igor Sysoev.
3+
4+
Additional changes are licensed under the same terms as NGINX and
5+
copyright Joyent, Inc. and other Node contributors. All rights reserved.
6+
7+
Permission is hereby granted, free of charge, to any person obtaining a copy
8+
of this software and associated documentation files (the "Software"), to
9+
deal in the Software without restriction, including without limitation the
10+
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
11+
sell copies of the Software, and to permit persons to whom the Software is
12+
furnished to do so, subject to the following conditions:
13+
14+
The above copyright notice and this permission notice shall be included in
15+
all copies or substantial portions of the Software.
16+
17+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
22+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
23+
IN THE SOFTWARE.

vendor/http_parser/Makefile

Lines changed: 136 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,136 @@
1+
# Copyright Joyent, Inc. and other Node contributors. All rights reserved.
2+
#
3+
# Permission is hereby granted, free of charge, to any person obtaining a copy
4+
# of this software and associated documentation files (the "Software"), to
5+
# deal in the Software without restriction, including without limitation the
6+
# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
7+
# sell copies of the Software, and to permit persons to whom the Software is
8+
# furnished to do so, subject to the following conditions:
9+
#
10+
# The above copyright notice and this permission notice shall be included in
11+
# all copies or substantial portions of the Software.
12+
#
13+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
18+
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
19+
# IN THE SOFTWARE.
20+
21+
PLATFORM ?= $(shell sh -c 'uname -s | tr "[A-Z]" "[a-z]"')
22+
SONAME ?= libhttp_parser.so.2.5.0
23+
24+
CC?=gcc
25+
AR?=ar
26+
27+
CPPFLAGS ?=
28+
LDFLAGS ?=
29+
30+
CPPFLAGS += -I.
31+
CPPFLAGS_DEBUG = $(CPPFLAGS) -DHTTP_PARSER_STRICT=1
32+
CPPFLAGS_DEBUG += $(CPPFLAGS_DEBUG_EXTRA)
33+
CPPFLAGS_FAST = $(CPPFLAGS) -DHTTP_PARSER_STRICT=0
34+
CPPFLAGS_FAST += $(CPPFLAGS_FAST_EXTRA)
35+
CPPFLAGS_BENCH = $(CPPFLAGS_FAST)
36+
37+
CFLAGS += -Wall -Wextra -Werror
38+
CFLAGS_DEBUG = $(CFLAGS) -O0 -g $(CFLAGS_DEBUG_EXTRA)
39+
CFLAGS_FAST = $(CFLAGS) -O3 $(CFLAGS_FAST_EXTRA)
40+
CFLAGS_BENCH = $(CFLAGS_FAST) -Wno-unused-parameter
41+
CFLAGS_LIB = $(CFLAGS_FAST) -fPIC
42+
43+
LDFLAGS_LIB = $(LDFLAGS) -shared
44+
45+
INSTALL ?= install
46+
PREFIX ?= $(DESTDIR)/usr/local
47+
LIBDIR = $(PREFIX)/lib
48+
INCLUDEDIR = $(PREFIX)/include
49+
50+
ifneq (darwin,$(PLATFORM))
51+
# TODO(bnoordhuis) The native SunOS linker expects -h rather than -soname...
52+
LDFLAGS_LIB += -Wl,-soname=$(SONAME)
53+
endif
54+
55+
test: test_g test_fast
56+
./test_g
57+
./test_fast
58+
59+
test_g: http_parser_g.o test_g.o
60+
$(CC) $(CFLAGS_DEBUG) $(LDFLAGS) http_parser_g.o test_g.o -o $@
61+
62+
test_g.o: test.c http_parser.h Makefile
63+
$(CC) $(CPPFLAGS_DEBUG) $(CFLAGS_DEBUG) -c test.c -o $@
64+
65+
http_parser_g.o: http_parser.c http_parser.h Makefile
66+
$(CC) $(CPPFLAGS_DEBUG) $(CFLAGS_DEBUG) -c http_parser.c -o $@
67+
68+
test_fast: http_parser.o test.o http_parser.h
69+
$(CC) $(CFLAGS_FAST) $(LDFLAGS) http_parser.o test.o -o $@
70+
71+
test.o: test.c http_parser.h Makefile
72+
$(CC) $(CPPFLAGS_FAST) $(CFLAGS_FAST) -c test.c -o $@
73+
74+
bench: http_parser.o bench.o
75+
$(CC) $(CFLAGS_BENCH) $(LDFLAGS) http_parser.o bench.o -o $@
76+
77+
bench.o: bench.c http_parser.h Makefile
78+
$(CC) $(CPPFLAGS_BENCH) $(CFLAGS_BENCH) -c bench.c -o $@
79+
80+
http_parser.o: http_parser.c http_parser.h Makefile
81+
$(CC) $(CPPFLAGS_FAST) $(CFLAGS_FAST) -c http_parser.c
82+
83+
test-run-timed: test_fast
84+
while(true) do time ./test_fast > /dev/null; done
85+
86+
test-valgrind: test_g
87+
valgrind ./test_g
88+
89+
libhttp_parser.o: http_parser.c http_parser.h Makefile
90+
$(CC) $(CPPFLAGS_FAST) $(CFLAGS_LIB) -c http_parser.c -o libhttp_parser.o
91+
92+
library: libhttp_parser.o
93+
$(CC) $(LDFLAGS_LIB) -o $(SONAME) $<
94+
95+
package: http_parser.o
96+
$(AR) rcs libhttp_parser.a http_parser.o
97+
98+
url_parser: http_parser.o contrib/url_parser.c
99+
$(CC) $(CPPFLAGS_FAST) $(CFLAGS_FAST) $^ -o $@
100+
101+
url_parser_g: http_parser_g.o contrib/url_parser.c
102+
$(CC) $(CPPFLAGS_DEBUG) $(CFLAGS_DEBUG) $^ -o $@
103+
104+
parsertrace: http_parser.o contrib/parsertrace.c
105+
$(CC) $(CPPFLAGS_FAST) $(CFLAGS_FAST) $^ -o parsertrace
106+
107+
parsertrace_g: http_parser_g.o contrib/parsertrace.c
108+
$(CC) $(CPPFLAGS_DEBUG) $(CFLAGS_DEBUG) $^ -o parsertrace_g
109+
110+
tags: http_parser.c http_parser.h test.c
111+
ctags $^
112+
113+
install: library
114+
$(INSTALL) -D http_parser.h $(INCLUDEDIR)/http_parser.h
115+
$(INSTALL) -D $(SONAME) $(LIBDIR)/$(SONAME)
116+
ln -s $(LIBDIR)/$(SONAME) $(LIBDIR)/libhttp_parser.so
117+
118+
install-strip: library
119+
$(INSTALL) -D http_parser.h $(INCLUDEDIR)/http_parser.h
120+
$(INSTALL) -D -s $(SONAME) $(LIBDIR)/$(SONAME)
121+
ln -s $(LIBDIR)/$(SONAME) $(LIBDIR)/libhttp_parser.so
122+
123+
uninstall:
124+
rm $(INCLUDEDIR)/http_parser.h
125+
rm $(LIBDIR)/$(SONAME)
126+
rm $(LIBDIR)/libhttp_parser.so
127+
128+
clean:
129+
rm -f *.o *.a tags test test_fast test_g \
130+
http_parser.tar libhttp_parser.so.* \
131+
url_parser url_parser_g parsertrace parsertrace_g
132+
133+
contrib/url_parser.c: http_parser.h
134+
contrib/parsertrace.c: http_parser.h
135+
136+
.PHONY: clean package test-run test-run-timed test-valgrind install install-strip uninstall

0 commit comments

Comments
 (0)