Skip to content

Commit 772917f

Browse files
helje5Lukasa
authored andcommitted
Add http-parser license and authors (#251)
* Add http-parser license and authors Motivation: Quote: > The above copyright notice and this permission notice shall be included in > all copies or substantial portions of the Software. Just linking is not enough. Modifications: Added the http-parser license. Added the AUTHORS file. Not required by the license, but the right thing to do. Result: Proper license inclusion for http-parser.
1 parent 86fce7f commit 772917f

File tree

3 files changed

+102
-2
lines changed

3 files changed

+102
-2
lines changed

Sources/CNIOHTTPParser/AUTHORS

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
# Authors ordered by first contribution.
2+
Ryan Dahl <[email protected]>
3+
Jeremy Hinegardner <[email protected]>
4+
Sergey Shepelev <[email protected]>
5+
Joe Damato <[email protected]>
6+
7+
Phoenix Sol <[email protected]>
8+
Cliff Frey <[email protected]>
9+
Ewen Cheslack-Postava <[email protected]>
10+
Santiago Gala <[email protected]>
11+
Tim Becker <[email protected]>
12+
Jeff Terrace <[email protected]>
13+
Ben Noordhuis <[email protected]>
14+
Nathan Rajlich <[email protected]>
15+
Mark Nottingham <[email protected]>
16+
Aman Gupta <[email protected]>
17+
Tim Becker <[email protected]>
18+
Sean Cunningham <[email protected]>
19+
Peter Griess <[email protected]>
20+
Salman Haq <[email protected]>
21+
Cliff Frey <[email protected]>
22+
23+
Fouad Mardini <[email protected]>
24+
Paul Querna <[email protected]>
25+
Felix Geisendörfer <[email protected]>
26+
27+
Andre Caron <[email protected]>
28+
Ivo Raisr <[email protected]>
29+
James McLaughlin <[email protected]>
30+
David Gwynne <[email protected]>
31+
Thomas LE ROUX <[email protected]>
32+
Randy Rizun <[email protected]>
33+
Andre Louis Caron <[email protected]>
34+
Simon Zimmermann <[email protected]>
35+
Erik Dubbelboer <[email protected]>
36+
Martell Malone <[email protected]>
37+
Bertrand Paquet <[email protected]>
38+
BogDan Vatra <[email protected]>
39+
Peter Faiman <[email protected]>
40+
Corey Richardson <[email protected]>
41+
Tóth Tamás <[email protected]>
42+
Cam Swords <[email protected]>
43+
Chris Dickinson <[email protected]>
44+
Uli Köhler <[email protected]>
45+
Charlie Somerville <[email protected]>
46+
Patrik Stutz <[email protected]>
47+
Fedor Indutny <[email protected]>
48+
49+
Alexis Campailla <[email protected]>
50+
David Wragg <[email protected]>
51+
Vinnie Falco <[email protected]>
52+
Alex Butum <[email protected]>
53+
54+
Alex Kocharin <[email protected]>
55+
Mark Koopman <[email protected]>
56+
Helge Heß <[email protected]>
57+
Alexis La Goutte <[email protected]>
58+
George Miroshnykov <[email protected]>
59+
Maciej Małecki <[email protected]>
60+
Marc O'Morain <[email protected]>
61+
Jeff Pinner <[email protected]>
62+
Timothy J Fontaine <[email protected]>
63+
64+
Romain Giraud <[email protected]>
65+
Jay Satiro <[email protected]>
66+
Arne Steen <[email protected]>
67+
Kjell Schubert <[email protected]>
68+
Olivier Mengué <[email protected]>

Sources/CNIOHTTPParser/LICENSE-MIT

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
Copyright Joyent, Inc. and other Node contributors.
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.

Sources/CNIOHTTPParser/update_and_patch_http_parser.sh

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,18 @@ case "$(uname -s)" in
2626
;;
2727
esac
2828

29+
if ! hash ${sed} 2>/dev/null; then
30+
echo "You need sed \"${sed}\" to run this script ..."
31+
echo
32+
echo "On macOS: brew install gnu-sed"
33+
exit 42
34+
fi
35+
36+
for f in LICENSE-MIT AUTHORS; do
37+
curl -o "${f}" \
38+
-Ls "https://raw.githubusercontent.com/nodejs/http-parser/master/${f}"
39+
done
40+
2941
for f in http_parser.c http_parser.h; do
3042
( echo "/* Additional changes for SwiftNIO:"
3143
echo " - prefixed all symbols by 'c_nio_'"
@@ -49,6 +61,9 @@ for f in http_parser.c http_parser.h; do
4961
-e 's/\b\(http_parser_version\)/c_nio_\1/g' \
5062
-e 's/\b\(http_should_keep_alive\)/c_nio_\1/g' \
5163
"$here/c_nio_$f"
64+
done
65+
66+
mv "$here/c_nio_http_parser.h" "$here/include/c_nio_http_parser.h"
5267

5368
tmp=$(mktemp -d /tmp/.test_compile_XXXXXX)
5469

@@ -61,6 +76,4 @@ test 0 -eq $num_non_nio || {
6176
}
6277

6378
rm -rf "$tmp"
64-
done
6579

66-
mv "$here/c_nio_http_parser.h" "$here/include/c_nio_http_parser.h"

0 commit comments

Comments
 (0)