Skip to content

Commit

Permalink
h2o: Update to 2.2.6 and build shared libraries.
Browse files Browse the repository at this point in the history
From @Habbie on GitHub.  Closes #56

Changes:

2.2.6 2019-08-13 17:00:00+0000
	- [security fix][http2] fix HTTP/2 DoS attack vectors CVE-2019-9512 CVE-2019-9514 CVE-2019-9515 #2090 (Kazuho Oku)
  • Loading branch information
alarixnia committed Mar 21, 2020
1 parent bc91a85 commit febddd1
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 11 deletions.
6 changes: 3 additions & 3 deletions www/h2o/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# $NetBSD: Makefile,v 1.20 2020/01/18 21:51:07 jperkin Exp $
# $NetBSD: Makefile,v 1.21 2020/03/21 14:16:04 nia Exp $

DISTNAME= h2o-2.2.5
PKGREVISION= 3
DISTNAME= h2o-2.2.6
CATEGORIES= www
MASTER_SITES= ${MASTER_SITE_GITHUB:=h2o/}
GITHUB_TAG= v${PKGVERSION_NOREV}
Expand All @@ -20,6 +19,7 @@ PKGCONFIG_OVERRIDE+= libh2o.pc.in
CMAKE_ARGS+= -DWITH_BUNDLED_SSL=off
# TODO: make it an option
CMAKE_ARGS+= -DWITH_MRUBY=off
CMAKE_ARGS+= -DBUILD_SHARED_LIBS=on

SUBST_CLASSES+= interp
SUBST_STAGE.interp= post-extract
Expand Down
10 changes: 7 additions & 3 deletions www/h2o/PLIST
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@comment $NetBSD: PLIST,v 1.5 2017/01/26 21:11:53 adam Exp $
@comment $NetBSD: PLIST,v 1.6 2020/03/21 14:16:04 nia Exp $
bin/h2o
include/h2o.h
include/h2o/cache.h
Expand Down Expand Up @@ -33,8 +33,12 @@ include/h2o/tunnel.h
include/h2o/url.h
include/h2o/version.h
include/h2o/websocket.h
lib/libh2o-evloop.a
lib/libh2o.a
lib/libh2o-evloop.so
lib/libh2o-evloop.so.0.13
lib/libh2o-evloop.so.0.13.6
lib/libh2o.so
lib/libh2o.so.0.13
lib/libh2o.so.0.13.6
lib/pkgconfig/libh2o-evloop.pc
lib/pkgconfig/libh2o.pc
share/doc/h2o/assets/8mbps100msec-nginx195-h2o150.png
Expand Down
11 changes: 6 additions & 5 deletions www/h2o/distinfo
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
$NetBSD: distinfo,v 1.11 2018/06/24 09:17:03 adam Exp $
$NetBSD: distinfo,v 1.12 2020/03/21 14:16:04 nia Exp $

SHA1 (h2o-2.2.5.tar.gz) = 188cd4792d28cd7c88a572f6a92949c6aaef5693
RMD160 (h2o-2.2.5.tar.gz) = 4036c8ec4042fd3d9191aa38cff0754072b9067f
SHA512 (h2o-2.2.5.tar.gz) = 24b07140d24fbb7796038aab44f44be5ffabc6f2841954273e2ad9f1a864e5482051dd7abfa6446297a46b6868763114695fa4f123ee3175bdac53b4c1868bc2
Size (h2o-2.2.5.tar.gz) = 16257295 bytes
SHA1 (h2o-2.2.6.tar.gz) = 5cc09af1baf35938a86d7cfafe8a0b876ff2ee81
RMD160 (h2o-2.2.6.tar.gz) = bf99a74257ccb4c9efbd7e11ce7aab2a7af01a95
SHA512 (h2o-2.2.6.tar.gz) = f2f28905c01782a0432c9dfdb2f21054e0a4741ac4c5f26802d4b439d0172840aa215aba5dc7c9af62275dcc24de105674a3819384dc38246e43ce3e8263eb20
Size (h2o-2.2.6.tar.gz) = 16257760 bytes
SHA1 (patch-CMakeLists.txt) = 32177a5bcf75a0bd4ec3e80e12ef1cb5d284072c
30 changes: 30 additions & 0 deletions www/h2o/patches/patch-CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
$NetBSD: patch-CMakeLists.txt,v 1.1 2020/03/21 14:16:04 nia Exp $

https://github.com/h2o/h2o/pull/2196

--- CMakeLists.txt.orig 2019-08-12 14:09:44.000000000 +0000
+++ CMakeLists.txt
@@ -386,13 +386,21 @@ SET_TARGET_PROPERTIES(libh2o PROPERTIES
OUTPUT_NAME h2o
VERSION ${LIBRARY_VERSION}
SOVERSION ${LIBRARY_SOVERSION})
-TARGET_LINK_LIBRARIES(libh2o ${LIBUV_LIBRARIES} ${EXTRA_LIBS})
+IF (WSLAY_FOUND)
+ TARGET_LINK_LIBRARIES(libh2o ${WSLAY_LIBRARIES} ${LIBUV_LIBRARIES} ${EXTRA_LIBS})
+ELSE ()
+ TARGET_LINK_LIBRARIES(libh2o ${LIBUV_LIBRARIES} ${EXTRA_LIBS})
+ENDIF (WSLAY_FOUND)
SET_TARGET_PROPERTIES(libh2o-evloop PROPERTIES
OUTPUT_NAME h2o-evloop
COMPILE_FLAGS "-DH2O_USE_LIBUV=0"
VERSION ${LIBRARY_VERSION}
SOVERSION ${LIBRARY_SOVERSION})
-TARGET_LINK_LIBRARIES(libh2o-evloop ${EXTRA_LIBS})
+IF (WSLAY_FOUND)
+ TARGET_LINK_LIBRARIES(libh2o-evloop ${WSLAY_LIBRARIES} ${EXTRA_LIBS})
+ELSE ()
+ TARGET_LINK_LIBRARIES(libh2o-evloop ${EXTRA_LIBS})
+ENDIF (WSLAY_FOUND)

IF (OPENSSL_FOUND)
TARGET_INCLUDE_DIRECTORIES(libh2o PUBLIC ${OPENSSL_INCLUDE_DIR})

0 comments on commit febddd1

Please sign in to comment.