Sun Aug 22 04:00:43 2021 UTC ()
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.


(gutteridge)
diff -r1.2 -r1.3 pkgsrc/devel/libunit/distinfo
diff -r1.3 -r1.4 pkgsrc/www/unit/Makefile
diff -r1.2 -r1.3 pkgsrc/www/unit/Makefile.common
diff -r1.1 -r1.2 pkgsrc/www/unit/PLIST
diff -r1.1 -r1.2 pkgsrc/www/unit/distinfo
diff -r1.1 -r1.2 pkgsrc/www/unit/version.mk
diff -r1.1 -r0 pkgsrc/www/unit/patches/patch-src_nxt__cert.c
diff -r1.1 -r0 pkgsrc/www/unit/patches/patch-src_nxt__conf__validation.c
diff -r1.1 -r0 pkgsrc/www/unit/patches/patch-src_nxt__router.c
diff -r1.1 -r0 pkgsrc/www/unit/patches/patch-src_nxt__unit.c

cvs diff -r1.2 -r1.3 pkgsrc/devel/libunit/Attic/distinfo (expand / switch to unified diff)

--- pkgsrc/devel/libunit/Attic/distinfo 2021/03/04 14:57:41 1.2
+++ pkgsrc/devel/libunit/Attic/distinfo 2021/08/22 04:00:43 1.3
@@ -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
3SHA1 (unit-1.22.0.tar.gz) = ab38a89c12d15a56fdc1a51dd6fa8a689e02abae 3SHA1 (unit-1.25.0.tar.gz) = f235f96f7f51f169bae85222dbc8c93ece69d589
4RMD160 (unit-1.22.0.tar.gz) = a658f1c8f898e381a017303264b0d7202627cdbb 4RMD160 (unit-1.25.0.tar.gz) = d08da7f6404e3fad4a69f31ba203cc9a3b69024c
5SHA512 (unit-1.22.0.tar.gz) = 7418e9dd86c10d64184f5a2f3e26c27bacc53b90ba35658fba6af00a57df89645c16c16b510d3e570eee6f8fdeef4ec7f92971f7231093e3da118e858ed386f5 5SHA512 (unit-1.25.0.tar.gz) = fc001ab21c5aa6c07b092f7b1f44be3b88636f9e2059c8bc4049a06d863daae1bbfa2531a4a24bdd5976250d7a0e260dcf0dbb0dec63efcc008b5398c6bb4bbd
6Size (unit-1.22.0.tar.gz) = 824763 bytes 6Size (unit-1.25.0.tar.gz) = 853280 bytes

cvs diff -r1.3 -r1.4 pkgsrc/www/unit/Makefile (expand / switch to unified diff)

--- pkgsrc/www/unit/Makefile 2021/05/24 19:55:58 1.3
+++ pkgsrc/www/unit/Makefile 2021/08/22 04:00:43 1.4
@@ -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
3PKGREVISION= 1 
4.include "../../www/unit/version.mk" 3.include "../../www/unit/version.mk"
5 4
6DISTNAME= unit-${UNIT_VERSION} 5DISTNAME= unit-${UNIT_VERSION}
7 6
8COMMENT= Dynamic web application server 7COMMENT= Dynamic web application server
9 8
10MAINTAINER= osa@FreeBSD.org 9MAINTAINER= osa@FreeBSD.org
11 10
12RCD_SCRIPTS= unit 11RCD_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"

cvs diff -r1.2 -r1.3 pkgsrc/www/unit/Makefile.common (expand / switch to unified diff)

--- pkgsrc/www/unit/Makefile.common 2021/02/14 13:43:39 1.2
+++ pkgsrc/www/unit/Makefile.common 2021/08/22 04:00:43 1.3
@@ -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
12CATEGORIES= www 12CATEGORIES= www
13MASTER_SITES= https://unit.nginx.org/download/ 13MASTER_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}
39USE_PKGLOCALEDIR= yes 39USE_PKGLOCALEDIR= yes
40HAS_CONFIGURE= yes 40HAS_CONFIGURE= yes
41CONFIGURE_ENV+= PATH=${PATH} 41CONFIGURE_ENV+= PATH=${PATH}
42CONFIGURE_ARGS+= --prefix=${PREFIX} 42CONFIGURE_ARGS+= --prefix=${PREFIX}
43CONFIGURE_ARGS+= --ld-opt="-L${PREFIX}/lib -R${PREFIX}/lib" 43CONFIGURE_ARGS+= --ld-opt="-L${PREFIX}/lib -R${PREFIX}/lib"
44CONFIGURE_ARGS+= --log=${UNIT_LOGDIR}/unit.log 44CONFIGURE_ARGS+= --log=${UNIT_LOGDIR}/unit.log
45CONFIGURE_ARGS+= --modules=${UNIT_EXTENSION_DIR} 45CONFIGURE_ARGS+= --modules=${UNIT_EXTENSION_DIR}
46CONFIGURE_ARGS+= --pid=${UNIT_PIDDIR}/unit.pid 46CONFIGURE_ARGS+= --pid=${UNIT_PIDDIR}/unit.pid
47CONFIGURE_ARGS+= --state=${UNIT_DATADIR} 47CONFIGURE_ARGS+= --state=${UNIT_DATADIR}
48CONFIGURE_ARGS+= --control=unix:${UNIT_RUNDIR}/control.unit.sock 48CONFIGURE_ARGS+= --control=unix:${UNIT_RUNDIR}/control.unit.sock
49CONFIGURE_ARGS+= --tmp=${UNIT_TMPDIR} 49CONFIGURE_ARGS+= --tmp=${UNIT_TMPDIR}
50CONFIGURE_ARGS+= --user=${UNIT_USER} 50CONFIGURE_ARGS+= --user=${UNIT_USER}
51CONFIGURE_ARGS+= --group=${UNIT_GROUP} 51CONFIGURE_ARGS+= --group=${UNIT_GROUP}
 52CONFIGURE_ARGS+= --mandir=${PREFIX}/${PKGMANDIR}
 53
 54CHECK_WRKREF_SKIP= libexec/unit/modules/ruby.unit.so
52 55
53.include "../../www/unit/options.mk" 56.include "../../www/unit/options.mk"
54 57
55INSTALLATION_DIRS+= sbin ${UNIT_EXTENSION_DIR} 58INSTALLATION_DIRS+= sbin ${UNIT_EXTENSION_DIR}
56MAKE_DIRS+= ${UNIT_PIDDIR} ${UNIT_DATADIR} ${UNIT_RUNDIR} 59MAKE_DIRS+= ${UNIT_PIDDIR} ${UNIT_DATADIR} ${UNIT_RUNDIR}
57OWN_DIRS= ${UNIT_LOGDIR} ${UNIT_RUNDIR} 60OWN_DIRS= ${UNIT_LOGDIR} ${UNIT_RUNDIR}
58OWN_DIRS_PERMS+= ${UNIT_DATADIR} ${UNIT_USER} ${UNIT_GROUP} 0700 61OWN_DIRS_PERMS+= ${UNIT_DATADIR} ${UNIT_USER} ${UNIT_GROUP} 0700
59 62
60USE_LANGUAGES= c 63USE_LANGUAGES= c

cvs diff -r1.1 -r1.2 pkgsrc/www/unit/PLIST (expand / switch to unified diff)

--- pkgsrc/www/unit/PLIST 2021/02/14 11:56:57 1.1
+++ pkgsrc/www/unit/PLIST 2021/08/22 04:00:43 1.2
@@ -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 $
2sbin/unitd 2sbin/unitd
 3man/man8/unitd.8

cvs diff -r1.1 -r1.2 pkgsrc/www/unit/distinfo (expand / switch to unified diff)

--- pkgsrc/www/unit/distinfo 2021/02/14 11:56:57 1.1
+++ pkgsrc/www/unit/distinfo 2021/08/22 04:00:43 1.2
@@ -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
3SHA1 (unit-1.22.0.tar.gz) = ab38a89c12d15a56fdc1a51dd6fa8a689e02abae 3SHA1 (unit-1.25.0.tar.gz) = f235f96f7f51f169bae85222dbc8c93ece69d589
4RMD160 (unit-1.22.0.tar.gz) = a658f1c8f898e381a017303264b0d7202627cdbb 4RMD160 (unit-1.25.0.tar.gz) = d08da7f6404e3fad4a69f31ba203cc9a3b69024c
5SHA512 (unit-1.22.0.tar.gz) = 7418e9dd86c10d64184f5a2f3e26c27bacc53b90ba35658fba6af00a57df89645c16c16b510d3e570eee6f8fdeef4ec7f92971f7231093e3da118e858ed386f5 5SHA512 (unit-1.25.0.tar.gz) = fc001ab21c5aa6c07b092f7b1f44be3b88636f9e2059c8bc4049a06d863daae1bbfa2531a4a24bdd5976250d7a0e260dcf0dbb0dec63efcc008b5398c6bb4bbd
6Size (unit-1.22.0.tar.gz) = 824763 bytes 6Size (unit-1.25.0.tar.gz) = 853280 bytes
7SHA1 (patch-auto_events) = 0347dfefbedaacd206c8c2bfd8ea38b18995dd9f 7SHA1 (patch-auto_events) = 0347dfefbedaacd206c8c2bfd8ea38b18995dd9f
8SHA1 (patch-auto_os_conf) = 6d1cd7aef662a60d4288014eb6fadbe8c1268e55 8SHA1 (patch-auto_os_conf) = 6d1cd7aef662a60d4288014eb6fadbe8c1268e55
9SHA1 (patch-src_nxt__cert.c) = c91e45f148a079b543a0d3cb277388bffb3e2854 
10SHA1 (patch-src_nxt__conf__validation.c) = bc00a598fc3e8a6bb9ccee3b773b603e788b426f 
11SHA1 (patch-src_nxt__kqueue__engine.c) = c341425f4b21d4cff6e003958f88a04b53dc4ee1 9SHA1 (patch-src_nxt__kqueue__engine.c) = c341425f4b21d4cff6e003958f88a04b53dc4ee1
12SHA1 (patch-src_nxt__php__sapi.c) = 2d5e557ff2066bec78f5bfbca6a64688f60da01b 10SHA1 (patch-src_nxt__php__sapi.c) = 2d5e557ff2066bec78f5bfbca6a64688f60da01b
13SHA1 (patch-src_nxt__router.c) = cc679af06fce1589d555c001574cd4cbd1af53b7 
14SHA1 (patch-src_nxt__unit.c) = fd9a43fc2cbcd342cd5e82e074c3c5a3d6a090cb 
15SHA1 (patch-src_nxt__unix.h) = c0db5bc4d9c45a3ead48627567284d8b3041b0a0 11SHA1 (patch-src_nxt__unix.h) = c0db5bc4d9c45a3ead48627567284d8b3041b0a0
16SHA1 (patch-src_nxt__websocket__header.h) = 1b50405b187cc8a662372a1c20ab7737278135ae 12SHA1 (patch-src_nxt__websocket__header.h) = 1b50405b187cc8a662372a1c20ab7737278135ae

cvs diff -r1.1 -r1.2 pkgsrc/www/unit/version.mk (expand / switch to unified diff)

--- pkgsrc/www/unit/version.mk 2021/02/14 11:56:57 1.1
+++ pkgsrc/www/unit/version.mk 2021/08/22 04:00:43 1.2
@@ -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)
12UNITVERSION_MK= defined 12UNITVERSION_MK= defined
13 13
14# Define NGINX Unit's version. 14# Define NGINX Unit's version.
15UNIT_VERSION= 1.22.0 15UNIT_VERSION= 1.25.0
16 16
17# Define NGINX Unit's modules directory 17# Define NGINX Unit's modules directory
18UNIT_EXTENSION_DIR= libexec/unit/modules 18UNIT_EXTENSION_DIR= libexec/unit/modules
19 19
20.endif # UNITVERSION_MK 20.endif # UNITVERSION_MK

File Deleted: pkgsrc/www/unit/patches/Attic/patch-src_nxt__cert.c

File Deleted: pkgsrc/www/unit/patches/Attic/patch-src_nxt__conf__validation.c

File Deleted: pkgsrc/www/unit/patches/Attic/patch-src_nxt__router.c

File Deleted: pkgsrc/www/unit/patches/Attic/patch-src_nxt__unit.c