2021-05-24 21:49:01 +02:00
|
|
|
# $NetBSD: Makefile,v 1.23 2021/05/24 19:55:14 wiz Exp $
|
2014-12-30 13:50:11 +01:00
|
|
|
|
2020-03-21 15:16:04 +01:00
|
|
|
DISTNAME= h2o-2.2.6
|
2021-05-24 21:49:01 +02:00
|
|
|
PKGREVISION= 2
|
2014-12-30 13:50:11 +01:00
|
|
|
CATEGORIES= www
|
2016-02-15 16:11:09 +01:00
|
|
|
MASTER_SITES= ${MASTER_SITE_GITHUB:=h2o/}
|
2018-06-24 11:17:03 +02:00
|
|
|
GITHUB_TAG= v${PKGVERSION_NOREV}
|
2014-12-30 13:50:11 +01:00
|
|
|
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2017-07-31 00:32:10 +02:00
|
|
|
HOMEPAGE= https://github.com/h2o/h2o
|
2014-12-30 13:50:11 +01:00
|
|
|
COMMENT= Optimized HTTP server with support for HTTP/1.x and HTTP/2
|
|
|
|
LICENSE= mit
|
|
|
|
|
2016-04-23 20:41:29 +02:00
|
|
|
USE_CMAKE= yes
|
|
|
|
USE_LANGUAGES= c c++
|
|
|
|
USE_TOOLS+= perl:run pkg-config
|
|
|
|
PKGCONFIG_OVERRIDE+= libh2o-evloop.pc.in
|
|
|
|
PKGCONFIG_OVERRIDE+= libh2o.pc.in
|
2015-05-28 02:28:25 +02:00
|
|
|
|
2016-04-23 20:41:29 +02:00
|
|
|
CMAKE_ARGS+= -DWITH_BUNDLED_SSL=off
|
|
|
|
# TODO: make it an option
|
|
|
|
CMAKE_ARGS+= -DWITH_MRUBY=off
|
2020-03-21 15:16:04 +01:00
|
|
|
CMAKE_ARGS+= -DBUILD_SHARED_LIBS=on
|
Update to 1.2.0
Upstream changes:
1.2.0 2015-04-14 07:13:00+0000
- [core] bundle libyaml #248 (Kazuho Oku)
- [core] implement master-worker process mode and daemon mode (bundles Server::Starter) #258 #270 (Kazuho Oku)
- [file] more mime-types by default #250 #254 #280 (Tatsuhiko Kubo, George Liu, Kazuho Oku)
- [file][http1] fix connection being closed if the length of content is zero #276 (Kazuho Oku)
- [headers] fix heap overrun during configuration #251 (Kazuho Oku)
- [http2] do not delay sending PUSH_PROMISE #221 (Kazuho Oku)
- [http2] reduce memory footprint under high load #271 (Kazuho Oku)
- [http2] fix incorrect error sent when number of streams exceed the limit #268 (Kazuho Oku)
- [proxy] fix heap overrun when building request sent to upstream #266 #269 (Moto Ishizawa, Kazuho Oku)
- [proxy] fix laggy response in case the length of content is zero #274 #276 (Kazuho Oku)
- [SSL] fix potential stall while reading data from client #268 (Kazuho Oku)
- [SSL] bundle LibreSSL #236 #272 (Kazuho Oku)
- [SSL] obtain source-level compatibility with BoringSSL #228 (Kazuho Oku)
- [SSL] add directive `listen.ssl.cipher-preference` for controlling the selection logic of cipher-suites #233 (Kazuho Oku)
- [SSL] disable TLS compression #252 (bisho)
- [libh2o] fix C++ compatibility (do not use empty struct) #225 (Kazuho Oku)
- [libh2o] search external dependencies using pkg-config #227 (Kazuho Oku)
- [misc] fix GCC version detection bug used for controlling compiler warnings #224 (Kazuho Oku)
- [misc] check merory allocation failures in socket pool #265 (Tatsuhiko Kubo)
1.1.1 2015-03-09 06:12:00+0000
- [proxy] fix crash on NetBSD when upstream connection is persistent #217 (Kazuho Oku)
- [misc] fix compile error on FreeBSD #211 #212 (Syohei Yoshida)
1.1.0 2015-03-06 06:41:00+0000
- [core][file] send redirects appending '/' as abs-path redirects #209 (Kazuho Oku)
- [headers] add directives for manipulating response headers #204 (Kazuho Oku)
- [http2] do not send a corrupt response if header value is longer than 126 bytes #193 (Kazuho Oku)
- [http2] fix interoperability issue with nghttp2 0.7.5 and above 5c42eb1 (Kazuho Oku)
- [proxy] send `via` header to upstream #191 (Kazuho Oku)
- [proxy] resolve hostname asynchronously #207 (Kazuho Oku)
- [proxy] distribute load between upstream servers (using `rand()`) #208 (Kazuho Oku)
- [proxy] fix a bug that may cause a corrupt `location` header being forwarded #190 (Kazuho Oku)
- [reproxy] add support for `x-reproxy-url` header #187 #197 (Daisuke Maki, Kazuho Oku)
1.0.1 2015-02-23 05:50:00+0000
- [core] change backlog size from 65,536 to 65,535 #183 (Tatsuhiko Kubo)
- [http2] fix assertion failure in HPACK encoder #186 (Kazuho Oku)
- [http2] add `extern` to some global variables that were not marked as such #178 (Kazuho Oku)
- [proxy] close persistent upstream connection if client abruptly closes the stream #188 (Kazuho Oku)
- [proxy] fix internal state corruption in case upstream sends response headers divided into multpile packets #189 (Kazuho Oku)
- [SSL] add host header to OCSP request #176 (Masaaki Hirose)
- [libh2o] do not require header files under `deps/` when using libh2o #173 (Kazuho Oku)
- [libh2o] fix compile error in examples when compiled with `H2O_USE_LIBUV=0` #177 (Kazuho Oku)
- [libh2o] in example, add missing / after the reference path #180 (Matthieu Garrigues)
- [misc] fix invalid HTML in sample page #175 (Deepak Prakash)
1.0.0 2015-02-18 20:01:00+0000
- [core] add redirect handler #150 (Kazuho Oku)
- [core] add `pid-file` directive for specifying the pid file #164 (Kazuho Oku)
- [core] connections accepted by host-specific listeners should not be handled by handlers of other hosts #163 (Kazuho Oku)
- [core] (FreeBSD) fix a bug that prevented the standalone server from booting when run as root #160 (Kazuho Oku)
- [core] switch to pipe-based interthread messaging #154 (Kazuho Oku)
- [core] use kqueue on all BSDs #156 (Kazuho Oku)
- [access-log] more logging directives: %H, %m, %q, %U, %V, %v #158 (Kazuho Oku)
- [access-log] bugfix: header values were not logged when specified using uppercase letters #157 (Kazuho Oku)
- [file] add application/json to defalt MIME-types #159 (Tatsuhiko Kubo)
- [http2] add support for the finalized version of HTTP/2 #166 (Kazuho Oku)
- [http2] fix issues reported by h2spec v0.0.6 #165 (Kazuho Oku)
- [proxy] merge the cookie headers before sending to upstream #161 (Kazuho Oku)
- [proxy] simplify the configuration directives (and make persistent upstream connections as default) #162 (Kazuho Oku)
- [SSL] add configuration directive to preload DH params #148 (Jeff Marrison)
- [libh2o] separate versioning scheme using H2O_LIBRARY_VERSION_* #167 (Kazuho Oku)
0.9.2 2015-02-10 04:17:00+0000
- [core] graceful shutdown on SIGTERM #119 (Kazuho Oku)
- [core] less TCP errors under high load #81 (Kazuho Oku)
- [file] add support for HEAD requests #110 (Mark Hoersken)
- [http1] MSIE workaround (send `Cache-Control: private` in place of Vary) #114 (Kazuho Oku)
- [http2] support server-push #133 (Kazuho Oku)
- [http2] fix spurious RST_STREAMS being sent #132 (Kazuho Oku)
- [http2] weight-based distribution of bandwidth #135 (Kazuho Oku)
- [proxy] added configuration directive `proxy.preserve-host` #112 (Masahiro Nagano)
- [proxy] sends X-Forwarded-For and X-Forwarded-Proto headers #112 (Masahiro Nagano)
- [proxy] stability improvements #61 (Kazuho Oku)
- [misc] adjustments to make the source code more analyzer-friendly #113,#117 (Nick Desaulniers, Maks Naumov)
0.9.1 2015-01-19 21:13:00+0000
- added configuration directives: ssl/cipher-suite, ssl/ocsp-update-interval, ssl/ocsp-max-failures, expires, file.send-gzip
- [http2] added support for draft-16 (draft-14 is also supported)
- [http2] dependency-based prioritization
- [http2] improved conformance to the specification
- [SSL] OCSP stapling (automatically enabled by default)
- [SSL] fix compile error with OpenSSL below version 1.0.1
- [file] content negotiation (serving .gz files)
- [expires] added support for Cache-Control: max-age
- [libh2o] libh2o and the header files installed by `make install`
- [libh2o] fix compile error when used from C++
- automatically setuids to nobody when run as root and if `user` directive is not set
- automatically raises RLIMIT_NOFILE
- uses all CPU cores by default
- now compiles on NetBSD and other BSD-based systems
2015-05-20 04:06:29 +02:00
|
|
|
|
2016-04-23 20:41:29 +02:00
|
|
|
SUBST_CLASSES+= interp
|
|
|
|
SUBST_STAGE.interp= post-extract
|
|
|
|
SUBST_MESSAGE.interp= Fixing interpreter.
|
|
|
|
SUBST_FILES.interp= share/h2o/*
|
|
|
|
SUBST_SED.interp= -e 's,^\#\! /bin/sh,\#\!/bin/perl,'
|
|
|
|
SUBST_SED.interp+= -e '/^exec perl/d'
|
|
|
|
SUBST_SED.interp+= -e '/\#\! perl/d'
|
|
|
|
|
|
|
|
REPLACE_PERL= share/h2o/*
|
|
|
|
|
|
|
|
.include "../../devel/libuv/buildlink3.mk"
|
|
|
|
.include "../../devel/zlib/buildlink3.mk"
|
2015-01-18 16:52:05 +01:00
|
|
|
.include "../../security/openssl/buildlink3.mk"
|
2016-04-23 20:41:29 +02:00
|
|
|
.include "../../textproc/libyaml/buildlink3.mk"
|
|
|
|
.include "../../www/wslay/buildlink3.mk"
|
2014-12-30 13:50:11 +01:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|