unit & libunit: update to 1.25.0 Changes with Unit 1.25.0 19 Aug 2021 *) Feature: client IP address replacement from a specified HTTP header field. *) Feature: TLS sessions cache. *) Feature: TLS session tickets. *) Feature: application restart control. *) Feature: process and thread lifecycle hooks in Ruby. *) Bugfix: the router process could crash on TLS connection open when multiple listeners with TLS certificates were configured; the bug had appeared in 1.23.0. *) Bugfix: TLS connections were rejected for configurations with multiple certificate bundles in a listener if the client did not use SNI. *) Bugfix: the router process could crash with frequent mutithreaded application reconfiguration. *) Bugfix: compatibility issues with some Python ASGI apps, notably based on the Starlette framework. *) Bugfix: a descriptor and memory leak occurred in the router process when an app process stopped or crashed. *) Bugfix: the controller or router process could crash if the configuration contained a full-form IPv6 in a listener address. *) Bugfix: the router process crashed when a request was passed to an empty "routes" or "upstreams" using a variable "pass" option. *) Bugfix: the router process crashed while matching a request to an empty array of source or destination address patterns. Changes with Unit 1.24.0 27 May 2021 *) Change: PHP added to the default MIME type list. *) Feature: arbitrary configuration of TLS connections via OpenSSL commands. *) Feature: the ability to limit static file serving by MIME types. *) Feature: support for chrooting, rejecting symlinks, and rejecting mount point traversal on a per-request basis when serving static files. *) Feature: a loader for automatically overriding the "http" and "websocket" modules in Node.js. *) Feature: multiple "targets" in Python applications. *) Feature: compatibility with Ruby 3.0. *) Bugfix: the router process could crash while closing a TLS connection. *) Bugfix: a segmentation fault might have occurred in the PHP module if fastcgi_finish_request() was used with the "auto_globals_jit" option enabled. Changes with Unit 1.23.0 25 Mar 2021 *) Feature: support for multiple certificate bundles on a listener via the Server Name Indication (SNI) TLS extension. *) Feature: "--mandir" ./configure option to specify the directory for man page installation. *) Bugfix: the router process could crash on premature TLS connection close; the bug had appeared in 1.17.0. *) Bugfix: a connection leak occurred on premature TLS connection close; the bug had appeared in 1.6. *) Bugfix: a descriptor and memory leak occurred in the router process when processing small WebSocket frames from a client; the bug had appeared in 1.19.0. *) Bugfix: a descriptor leak occurred in the router process when removing or reconfiguring an application; the bug had appeared in 1.19.0. *) Bugfix: persistent storage of certificates might've not worked with some filesystems in Linux, and all uploaded certificate bundles were forgotten after restart. *) Bugfix: the controller process could crash while requesting information about a certificate with a non-DNS SAN entry. *) Bugfix: the controller process could crash on manipulations with a certificate containing a SAN and no standard name attributes in subject or issuer. *) Bugfix: the Ruby module didn't respect the user locale for defaults in the Encoding class. *) Bugfix: the PHP 5 module failed to build with thread safety enabled; the bug had appeared in 1.22.0.diff -r1.2 -r1.3 pkgsrc/devel/libunit/distinfo
(gutteridge)
@@ -1,6 +1,6 @@ | @@ -1,6 +1,6 @@ | |||
1 | $NetBSD: distinfo,v 1.2 2021/03/04 14:57:41 mef Exp $ | 1 | $NetBSD: distinfo,v 1.3 2021/08/22 04:00:43 gutteridge Exp $ | |
2 | 2 | |||
3 | SHA1 (unit-1.22.0.tar.gz) = ab38a89c12d15a56fdc1a51dd6fa8a689e02abae | 3 | SHA1 (unit-1.25.0.tar.gz) = f235f96f7f51f169bae85222dbc8c93ece69d589 | |
4 | RMD160 (unit-1.22.0.tar.gz) = a658f1c8f898e381a017303264b0d7202627cdbb | 4 | RMD160 (unit-1.25.0.tar.gz) = d08da7f6404e3fad4a69f31ba203cc9a3b69024c | |
5 | SHA512 (unit-1.22.0.tar.gz) = 7418e9dd86c10d64184f5a2f3e26c27bacc53b90ba35658fba6af00a57df89645c16c16b510d3e570eee6f8fdeef4ec7f92971f7231093e3da118e858ed386f5 | 5 | SHA512 (unit-1.25.0.tar.gz) = fc001ab21c5aa6c07b092f7b1f44be3b88636f9e2059c8bc4049a06d863daae1bbfa2531a4a24bdd5976250d7a0e260dcf0dbb0dec63efcc008b5398c6bb4bbd | |
6 | Size (unit-1.22.0.tar.gz) = 824763 bytes | 6 | Size (unit-1.25.0.tar.gz) = 853280 bytes |
@@ -1,15 +1,14 @@ | @@ -1,15 +1,14 @@ | |||
1 | # $NetBSD: Makefile,v 1.3 2021/05/24 19:55:58 wiz Exp $ | 1 | # $NetBSD: Makefile,v 1.4 2021/08/22 04:00:43 gutteridge Exp $ | |
2 | 2 | |||
3 | PKGREVISION= 1 | |||
4 | .include "../../www/unit/version.mk" | 3 | .include "../../www/unit/version.mk" | |
5 | 4 | |||
6 | DISTNAME= unit-${UNIT_VERSION} | 5 | DISTNAME= unit-${UNIT_VERSION} | |
7 | 6 | |||
8 | COMMENT= Dynamic web application server | 7 | COMMENT= Dynamic web application server | |
9 | 8 | |||
10 | MAINTAINER= osa@FreeBSD.org | 9 | MAINTAINER= osa@FreeBSD.org | |
11 | 10 | |||
12 | RCD_SCRIPTS= unit | 11 | RCD_SCRIPTS= unit | |
13 | 12 | |||
14 | .include "../../www/unit/Makefile.common" | 13 | .include "../../www/unit/Makefile.common" | |
15 | .include "../../mk/bsd.pkg.mk" | 14 | .include "../../mk/bsd.pkg.mk" |
@@ -1,14 +1,14 @@ | @@ -1,14 +1,14 @@ | |||
1 | # $NetBSD: Makefile.common,v 1.2 2021/02/14 13:43:39 otis Exp $ | 1 | # $NetBSD: Makefile.common,v 1.3 2021/08/22 04:00:43 gutteridge Exp $ | |
2 | # | 2 | # | |
3 | # used by www/libunit/Makefile | 3 | # used by www/libunit/Makefile | |
4 | # used by www/unit/Makefile | 4 | # used by www/unit/Makefile | |
5 | # used by www/unit-perl/Makefile | 5 | # used by www/unit-perl/Makefile | |
6 | # used by www/unit-php/Makefile | 6 | # used by www/unit-php/Makefile | |
7 | # used by www/unit-python/Makefile | 7 | # used by www/unit-python/Makefile | |
8 | # used by www/unit-ruby/Makefile | 8 | # used by www/unit-ruby/Makefile | |
9 | 9 | |||
10 | # Do *not* add any version-specific data here | 10 | # Do *not* add any version-specific data here | |
11 | 11 | |||
12 | CATEGORIES= www | 12 | CATEGORIES= www | |
13 | MASTER_SITES= https://unit.nginx.org/download/ | 13 | MASTER_SITES= https://unit.nginx.org/download/ | |
14 | 14 | |||
@@ -39,22 +39,25 @@ PKG_SHELL.${UNIT_USER}= ${NOLOGIN} | @@ -39,22 +39,25 @@ PKG_SHELL.${UNIT_USER}= ${NOLOGIN} | |||
39 | USE_PKGLOCALEDIR= yes | 39 | USE_PKGLOCALEDIR= yes | |
40 | HAS_CONFIGURE= yes | 40 | HAS_CONFIGURE= yes | |
41 | CONFIGURE_ENV+= PATH=${PATH} | 41 | CONFIGURE_ENV+= PATH=${PATH} | |
42 | CONFIGURE_ARGS+= --prefix=${PREFIX} | 42 | CONFIGURE_ARGS+= --prefix=${PREFIX} | |
43 | CONFIGURE_ARGS+= --ld-opt="-L${PREFIX}/lib -R${PREFIX}/lib" | 43 | CONFIGURE_ARGS+= --ld-opt="-L${PREFIX}/lib -R${PREFIX}/lib" | |
44 | CONFIGURE_ARGS+= --log=${UNIT_LOGDIR}/unit.log | 44 | CONFIGURE_ARGS+= --log=${UNIT_LOGDIR}/unit.log | |
45 | CONFIGURE_ARGS+= --modules=${UNIT_EXTENSION_DIR} | 45 | CONFIGURE_ARGS+= --modules=${UNIT_EXTENSION_DIR} | |
46 | CONFIGURE_ARGS+= --pid=${UNIT_PIDDIR}/unit.pid | 46 | CONFIGURE_ARGS+= --pid=${UNIT_PIDDIR}/unit.pid | |
47 | CONFIGURE_ARGS+= --state=${UNIT_DATADIR} | 47 | CONFIGURE_ARGS+= --state=${UNIT_DATADIR} | |
48 | CONFIGURE_ARGS+= --control=unix:${UNIT_RUNDIR}/control.unit.sock | 48 | CONFIGURE_ARGS+= --control=unix:${UNIT_RUNDIR}/control.unit.sock | |
49 | CONFIGURE_ARGS+= --tmp=${UNIT_TMPDIR} | 49 | CONFIGURE_ARGS+= --tmp=${UNIT_TMPDIR} | |
50 | CONFIGURE_ARGS+= --user=${UNIT_USER} | 50 | CONFIGURE_ARGS+= --user=${UNIT_USER} | |
51 | CONFIGURE_ARGS+= --group=${UNIT_GROUP} | 51 | CONFIGURE_ARGS+= --group=${UNIT_GROUP} | |
52 | CONFIGURE_ARGS+= --mandir=${PREFIX}/${PKGMANDIR} | |||
53 | ||||
54 | CHECK_WRKREF_SKIP= libexec/unit/modules/ruby.unit.so | |||
52 | 55 | |||
53 | .include "../../www/unit/options.mk" | 56 | .include "../../www/unit/options.mk" | |
54 | 57 | |||
55 | INSTALLATION_DIRS+= sbin ${UNIT_EXTENSION_DIR} | 58 | INSTALLATION_DIRS+= sbin ${UNIT_EXTENSION_DIR} | |
56 | MAKE_DIRS+= ${UNIT_PIDDIR} ${UNIT_DATADIR} ${UNIT_RUNDIR} | 59 | MAKE_DIRS+= ${UNIT_PIDDIR} ${UNIT_DATADIR} ${UNIT_RUNDIR} | |
57 | OWN_DIRS= ${UNIT_LOGDIR} ${UNIT_RUNDIR} | 60 | OWN_DIRS= ${UNIT_LOGDIR} ${UNIT_RUNDIR} | |
58 | OWN_DIRS_PERMS+= ${UNIT_DATADIR} ${UNIT_USER} ${UNIT_GROUP} 0700 | 61 | OWN_DIRS_PERMS+= ${UNIT_DATADIR} ${UNIT_USER} ${UNIT_GROUP} 0700 | |
59 | 62 | |||
60 | USE_LANGUAGES= c | 63 | USE_LANGUAGES= c |
@@ -1,2 +1,3 @@ | @@ -1,2 +1,3 @@ | |||
1 | @comment $NetBSD: PLIST,v 1.1 2021/02/14 11:56:57 otis Exp $ | 1 | @comment $NetBSD: PLIST,v 1.2 2021/08/22 04:00:43 gutteridge Exp $ | |
2 | sbin/unitd | 2 | sbin/unitd | |
3 | man/man8/unitd.8 |
@@ -1,16 +1,12 @@ | @@ -1,16 +1,12 @@ | |||
1 | $NetBSD: distinfo,v 1.1 2021/02/14 11:56:57 otis Exp $ | 1 | $NetBSD: distinfo,v 1.2 2021/08/22 04:00:43 gutteridge Exp $ | |
2 | 2 | |||
3 | SHA1 (unit-1.22.0.tar.gz) = ab38a89c12d15a56fdc1a51dd6fa8a689e02abae | 3 | SHA1 (unit-1.25.0.tar.gz) = f235f96f7f51f169bae85222dbc8c93ece69d589 | |
4 | RMD160 (unit-1.22.0.tar.gz) = a658f1c8f898e381a017303264b0d7202627cdbb | 4 | RMD160 (unit-1.25.0.tar.gz) = d08da7f6404e3fad4a69f31ba203cc9a3b69024c | |
5 | SHA512 (unit-1.22.0.tar.gz) = 7418e9dd86c10d64184f5a2f3e26c27bacc53b90ba35658fba6af00a57df89645c16c16b510d3e570eee6f8fdeef4ec7f92971f7231093e3da118e858ed386f5 | 5 | SHA512 (unit-1.25.0.tar.gz) = fc001ab21c5aa6c07b092f7b1f44be3b88636f9e2059c8bc4049a06d863daae1bbfa2531a4a24bdd5976250d7a0e260dcf0dbb0dec63efcc008b5398c6bb4bbd | |
6 | Size (unit-1.22.0.tar.gz) = 824763 bytes | 6 | Size (unit-1.25.0.tar.gz) = 853280 bytes | |
7 | SHA1 (patch-auto_events) = 0347dfefbedaacd206c8c2bfd8ea38b18995dd9f | 7 | SHA1 (patch-auto_events) = 0347dfefbedaacd206c8c2bfd8ea38b18995dd9f | |
8 | SHA1 (patch-auto_os_conf) = 6d1cd7aef662a60d4288014eb6fadbe8c1268e55 | 8 | SHA1 (patch-auto_os_conf) = 6d1cd7aef662a60d4288014eb6fadbe8c1268e55 | |
9 | SHA1 (patch-src_nxt__cert.c) = c91e45f148a079b543a0d3cb277388bffb3e2854 | |||
10 | SHA1 (patch-src_nxt__conf__validation.c) = bc00a598fc3e8a6bb9ccee3b773b603e788b426f | |||
11 | SHA1 (patch-src_nxt__kqueue__engine.c) = c341425f4b21d4cff6e003958f88a04b53dc4ee1 | 9 | SHA1 (patch-src_nxt__kqueue__engine.c) = c341425f4b21d4cff6e003958f88a04b53dc4ee1 | |
12 | SHA1 (patch-src_nxt__php__sapi.c) = 2d5e557ff2066bec78f5bfbca6a64688f60da01b | 10 | SHA1 (patch-src_nxt__php__sapi.c) = 2d5e557ff2066bec78f5bfbca6a64688f60da01b | |
13 | SHA1 (patch-src_nxt__router.c) = cc679af06fce1589d555c001574cd4cbd1af53b7 | |||
14 | SHA1 (patch-src_nxt__unit.c) = fd9a43fc2cbcd342cd5e82e074c3c5a3d6a090cb | |||
15 | SHA1 (patch-src_nxt__unix.h) = c0db5bc4d9c45a3ead48627567284d8b3041b0a0 | 11 | SHA1 (patch-src_nxt__unix.h) = c0db5bc4d9c45a3ead48627567284d8b3041b0a0 | |
16 | SHA1 (patch-src_nxt__websocket__header.h) = 1b50405b187cc8a662372a1c20ab7737278135ae | 12 | SHA1 (patch-src_nxt__websocket__header.h) = 1b50405b187cc8a662372a1c20ab7737278135ae |
@@ -1,20 +1,20 @@ | @@ -1,20 +1,20 @@ | |||
1 | # $NetBSD: version.mk,v 1.1 2021/02/14 11:56:57 otis Exp $ | 1 | # $NetBSD: version.mk,v 1.2 2021/08/22 04:00:43 gutteridge Exp $ | |
2 | # | 2 | # | |
3 | # UNIT_EXTENSION_DIR | 3 | # UNIT_EXTENSION_DIR | |
4 | # Relative path to ${PREFIX} for NGINX Unit's modules. | 4 | # Relative path to ${PREFIX} for NGINX Unit's modules. | |
5 | # | 5 | # | |
6 | # Example: libexec/unit/modules | 6 | # Example: libexec/unit/modules | |
7 | # | 7 | # | |
8 | # Keywords: unit | 8 | # Keywords: unit | |
9 | # | 9 | # | |
10 | 10 | |||
11 | .if !defined(UNITVERSION_MK) | 11 | .if !defined(UNITVERSION_MK) | |
12 | UNITVERSION_MK= defined | 12 | UNITVERSION_MK= defined | |
13 | 13 | |||
14 | # Define NGINX Unit's version. | 14 | # Define NGINX Unit's version. | |
15 | UNIT_VERSION= 1.22.0 | 15 | UNIT_VERSION= 1.25.0 | |
16 | 16 | |||
17 | # Define NGINX Unit's modules directory | 17 | # Define NGINX Unit's modules directory | |
18 | UNIT_EXTENSION_DIR= libexec/unit/modules | 18 | UNIT_EXTENSION_DIR= libexec/unit/modules | |
19 | 19 | |||
20 | .endif # UNITVERSION_MK | 20 | .endif # UNITVERSION_MK |