Commit graph

1158 commits

Author SHA1 Message Date
Sergey A. Osokin
a9108d8c08 */*: add new port NGINX JavaScript (njs) command line utility
NGINX JavaScript, also knows as njs, is a subset of the JavaScript
language that allows extending nginx functionality.  njs is created
in compliance with ECMAScript 5.1 (strict mode) with some ECMAScript 6
and later extensions.  It's easy to use njs command line utility to
develop and debug additional functionality.  Also, it's light-weight
and very useful as a shebang in some cases as the nodejs substitutor.

Remove build of njs command-line utlity from the www/nginx-devel (*)
process.

Bump PORTREVISION. (*)
2022-03-11 16:24:27 -05:00
Sergey A. Osokin
eebf3d7bb9 www/nginx-devel: update third-party lua module
Update third-party lua module from v0.10.21rc1 to v0.10.21rc2.
Bump PORTREVISION.
2022-03-08 21:46:33 -05:00
Sergey A. Osokin
6ffc18618c www/nginx-devel: update third-party ngx_fancyindex module
Update third-party ngx-fancyindex module from v0.5.1 to v0.5.2.
Bump PORTREVISION.
2022-02-17 19:06:08 -05:00
Sergey A. Osokin
117d256c41 www/nginx-devel: update HTTPv3/QUIC patch to the recent commit 2022-02-01 09:57:26 -05:00
Sergey A. Osokin
e13773c397 www/nginx-devel: update third-party modules
o) lua from 0.10.20 to 0.10.21rc1
o) encrypted-session from 0.08 to 0.09

Bump PORTREVISION.
2022-01-28 10:27:03 -05:00
Sergey A. Osokin
79959846f0 www/nginx-devel: update third-party vod module to 1.29
Update the list of dependences for the module.
Bump PORTREVISION.
2022-01-27 18:14:18 -05:00
Sergey A. Osokin
50f5293810 www/nginx-devel: update third-party spnego-http-auth module
The Kerberos MIT implementation is the only one is supported by the
third-party spnego module, so remove needless staff.

Bump PORTREVISION.
2022-01-27 11:26:43 -05:00
Sergey A. Osokin
de23c20ec2 www/nginx-devel: update from 1.21.5 to 1.21.6.
<Changelog>

*) Bugfix: when using EPOLLEXCLUSIVE on Linux client connections were
   unevenly distributed among worker processes.

*) Bugfix: nginx returned the "Connection: keep-alive" header line in
   responses during graceful shutdown of old worker processes.

*) Bugfix: in the "ssl_session_ticket_key" when using TLSv1.3.

</Changelog>
2022-01-25 10:25:56 -05:00
Sergey A. Osokin
bcffc4947f www/nginx-devel: update NGINX JavaScript module to 0.7.2.
Bump PORTREVISION.

<ChangeLog>

Core:

*) Bugfix: fixed Array.prototype.join() when array is changed
   while iterating.

*) Bugfix: fixed Array.prototype.slice() when array is changed
   while iterating.

*) Bugfix: fixed Array.prototype.concat() when array is changed
   while iterating.

*) Bugfix: fixed Array.prototype.reverse() when array is changed
   while iterating.

*) Bugfix: fixed Buffer.concat() with subarrays.
   Thanks to Sylvain Etienne.

*) Bugfix: fixed type confusion bug while resolving promises.

*) Bugfix: fixed Function.prototype.apply() with large array
   arguments.

*) Bugfix: fixed recursive async function calls.

*) Bugfix: fixed function redeclaration. The bug was introduced
   in 0.7.0.

</ChangeLog>
2022-01-25 09:04:54 -05:00
Sergey A. Osokin
5f4f061728 www/nginx-devel: update HTTPv3/QUIC patch to the recent commit
Bump PORTREVISION.
2022-01-25 08:59:51 -05:00
Sergey A. Osokin
f9a2f32279 www/nginx-devel: update HTTPv3/QUIC patch to the recent commit
Bump PORTREVISION.
2022-01-19 08:31:27 -05:00
Tobias Kortkamp
a180b4ade2
*: Fix USE_GNOME usage
USE_GNOME no longer implies USES=gnome. USE_GNOME will not have
any effect unless you add USES=gnome yourself.

Reported by:	portscan
2022-01-17 14:20:24 +01:00
Sergey A. Osokin
e3af330927 nginx-devel/Makefile: update HTTPv3 patch to the recent commit
The extra-patch-httpv3 contains the README file now, previously a
diff for that file was omitted.  To avoid a rejection for the README
file the original file from nginx distribution is going to be preserved.

Bump PORTREVISION.
2022-01-13 23:30:33 -05:00
Sergey A. Osokin
cdc19d1011 www/nginx-devel: fix dependences for some modules
HTTP_DAV_EXT module requires libraries, so let's define them
with a more canonical way.
While I'm here use the same way to define dependences for the
HTTP_XSLT module as well.

PR:	261134
2022-01-12 07:25:38 -05:00
Sergey A. Osokin
bc5c2f7d98 www/nginx-devel: able to build with security/openssl-quictls
While I'm here fix a typo in a start-up template, introduced in
c42df2fcbb.

Bump PORTREVISION.

Differential Revision:	https://reviews.freebsd.org/D33773
Reviewed by:		pluknet
2022-01-11 06:18:16 -05:00
Sergey A. Osokin
eb1eade85a www/nginx-devel: remove rpath-specific configure options
Bump PORTREVISION.
2022-01-09 08:55:24 -05:00
Sergey A. Osokin
c42df2fcbb www/nginx-devel: able to customize the stop signal
Bump PORTREVISION.

PR:	254962
2022-01-05 17:30:52 -05:00
Sergey A. Osokin
cada18903c www/nginx-devel: initial support for HTTPv3
Bump PORTREVISION.

Based on ideas from:	ashish
2022-01-05 11:47:20 -05:00
Sergey A. Osokin
270b0ad882 www/nginx-devel: update third-party opentracing module
Update third-party opentracing module to its recent commit.
Bump PORTREVISION.
2021-12-30 11:22:26 -05:00
Sergey A. Osokin
04beea03a3 www/nginx-devel: update third-party http_substitutions_filter module
Update the third-party module to its recent version to support
both PCRE1 and PCRE2 libraries.

Bump PORTREVISION.

Idea from:	http://hg.nginx.org/pkg-oss/rev/45cb552c6860
Thanks to:	Mikhail Isachenkov <mikhail.isachenkov@nginx.com>
2021-12-30 11:14:24 -05:00
Sergey A. Osokin
8d9d1a87a1 www/nginx-devel: choose PCRE library for build
NGINX 1.21.5 adds support for PCRE2 library, in addition to
support PCRE1.  It's possible to choose regular expression
library for the port now.

Please note: several modules are required patching to support
PCRE2 library, so let's keep PCRE1 as default version for now.

Bump PORTREVISION.
2021-12-29 16:27:52 -05:00
Sergey A. Osokin
2c513be320 www/nginx-devel: update from 1.21.4 to 1.21.5.
Please note: it's possible to build the recent version of nginx
with PCRE2 library, but several third-party modules have some
build issues, so let's keep www/nginx-devel depends on PCRE1
library for now, but keep in mind it needs to switched to the
modern, i.e. second, version of PCRE.

<Changelog>

Changes with nginx 1.21.5

*) Change: now nginx is built with the PCRE2 library by default.

*) Change: now nginx always uses sendfile(SF_NODISKIO) on FreeBSD.

*) Feature: support for sendfile(SF_NOCACHE) on FreeBSD.

*) Feature: the $ssl_curve variable.

*) Bugfix: connections might hang when using HTTP/2 without SSL with the
   "sendfile" and "aio" directives.

Changes with njs 0.7.1

nginx modules:

*) Change: the "js_include" directive deprecated since 0.4.0 was
   removed.

*) Change: PCRE/PCRE2-specific code was moved to the modules.
   This ensures that njs uses the same RegExp library as nginx.

Core:

*) Feature: extended "fs" module. Added stat(), fstat()
   and friends.

*) Change: default RegExp engine for CLI is switched
   to PCRE2.

*) Bugfix: fixed decodeURI() and decodeURIComponent() with
   invalid byte strings. The bug was introduced in 0.4.3.

*) Bugfix: fixed heap-use-after-free in await frame.
   The bug was introduced in 0.7.0.

*) Bugfix: fixed WebCrypto sign() and verify() methods
   with OpenSSL 3.0.

*) Bugfix: fixed exception throwing when RegExp match fails.
   The bug was introduced in 0.1.15.

*) Bugfix: fixed catching of exception thrown in try block
   of async function. The bug was introduced in 0.7.0.

*) Bugfix: fixed execution of async function in synchronous
   context. The bug was introduced in 0.7.0.

*) Bugfix: fixed function redeclaration in CLI when interactive
   mode is on. The bug was introduced in 0.6.2.

*) Bugfix: fixed typeof operator with DataView object.

*) Bugfix: eliminated information leak in Buffer.from().

</Changelog>
2021-12-29 13:16:31 -05:00
Tobias C. Berner
45526ecbee framework: Add new USES 'magick' for graphics/ImageMagick*
A new USES has been added to depend on ImageMagick.

	USES=magick

adds a LIB_DEPENDS on graphics/ImageMagick${IMAGEMAGICK_DEFAULT}.

If a specific version is required, use for example

	USES=magick:6        resp.     USES=magick:7

If only a build, run or test is required, use for example

	USES=magick:build    resp.     USES=magick:6,build,test

If a dependency on the nox11 flavor is required, use for example

	USES=magick:nox11    resp.     USES=magick:7,nox11,run,test

See magick.mk for more details on the available flags.

The tree has been completely converted to make use of this.

Approved by:	bapt
Differential Revision: https://reviews.freebsd.org/D32754
2021-12-11 14:50:53 +01:00
Sergey A. Osokin
238ad20c42 www/nginx-devel: update third-party passenger module
Bump PORTREVISION.
2021-12-08 12:22:55 -05:00
Sergey A. Osokin
62502a5055 www/nginx-devel: update from 1.21.3 to 1.21.4.
New kernel TLS feature is available starting with FreeBSD 13.0,
and it requires OpenSSL 3.0, compiled with "enable-ktls" option.
Further, KTLS needs to be enabled in kernel, and in OpenSSL,
either via OpenSSL configuration file or with

  ssl_conf_command Options KTLS;

in nginx configuration.

To enable kernel TLS on FreeBSD 13 and above:

  # kldload ktls_ocf
  # sysctl kern.ipc.tls.enable=1

to load a software backend, see man ktls(4) for details.

Also, please visit the following link to get more details
https://hg.nginx.org/nginx/rev/65946a191197

<Changelog>

*) Change: support for NPN instead of ALPN to establish HTTP/2
   connections has been removed.

*) Change: now nginx rejects SSL connections if ALPN is used by the
   client, but no supported protocols can be negotiated.

*) Change: the default value of the "sendfile_max_chunk" directive was
   changed to 2 megabytes.

*) Feature: the "proxy_half_close" directive in the stream module.

*) Feature: the "ssl_alpn" directive in the stream module.

*) Feature: the $ssl_alpn_protocol variable.

*) Feature: support for SSL_sendfile() when using OpenSSL 3.0.

*) Feature: the "mp4_start_key_frame" directive in the
   ngx_http_mp4_module.
   Thanks to Tracey Jaquith.

*) Bugfix: in the $content_length variable when using chunked transfer
   encoding.

*) Bugfix: after receiving a response with incorrect length from a
   proxied backend nginx might nevertheless cache the connection.
   Thanks to Awdhesh Mathpal.

*) Bugfix: invalid headers from backends were logged at the "info" level
   instead of "error"; the bug had appeared in 1.21.1.

*) Bugfix: requests might hang when using HTTP/2 and the "aio_write"
   directive.

</Changelog>
2021-11-02 12:13:40 -04:00
Bernhard Froehlich
8b5d254d0d
www/nginx-devel: Update deprecated CPE_VENDOR nginx to f5
Approved by:	portmgr (blanket)
2021-11-02 14:26:39 +00:00
Sergey A. Osokin
5be8d54749 www/nginx-devel: fix the Kerberos5 implementation knob name (*)
No functional changes, so do not bump PORTREVISION.

Introduced:	adc7097c90 (*)
2021-10-19 17:29:11 -04:00
Sergey A. Osokin
adc7097c90 www/nginx-devel: update third-party SPNEGO module to it recent commit
Notify that one of the implementation of Kerberos5 needs to be chosen.

Bump PORTREVISION.
2021-10-19 10:42:01 -04:00
Sergey A. Osokin
7ff64baadf www/nginx-devel: update NGINX JavaScript module to 0.7.0.
Bump PORTREVISION.

<ChangeLog>

nginx modules:

*) Feature: added HTTPS support for Fetch API.

*) Feature: added setReturnValue() method.

Core:

*) Feature: introduced Async/Await implementation.

*) Feature: added WebCrypto API implementation.

*) Bugfix: fixed copying of closures for declared
   functions. The bug was introduced in 0.6.0.

*) Bugfix: fixed unhandled promise rejection in handle
   events.

*) Bugfix: fixed Response.headers getter in Fetch API.

</ChangeLog>
2021-10-19 09:11:07 -04:00
Jimmy Olgeni
4460cf727a *: fix tab vs. space issues, and comments according to the guide. 2021-10-16 11:51:39 +02:00
Sergey A. Osokin
1ef4b772ac www/nginx-devel: update third-party passenger module to 6.0.11
Bump PORTREVISION.
2021-10-01 21:24:40 -04:00
Sergey A. Osokin
d1fcd22b61 www/nginx-devel: regenerate distinfo in full 2021-10-01 21:17:29 -04:00
Sergey A. Osokin
90a9ef9387 www/nginx-devel: update third-party modules
o) http_push (aka nchan)
o) rtmp

Remove needless patches.
Bump PORTREVISION.
2021-10-01 21:12:51 -04:00
Sergey A. Osokin
4225322c2a www/nginx-devel: update PORTSCOUT.
No functional changes.
2021-09-14 07:39:47 -04:00
Sergey A. Osokin
7355368506 www/nginx-devel: update from 1.21.2 to 1.21.3.
<Changelog>

*) Change: optimization of client request body reading when using
   HTTP/2.

*) Bugfix: in request body filters internal API when using HTTP/2 and
   buffering of the data being processed.

</Changelog>
2021-09-07 11:41:35 -04:00
Sergey A. Osokin
ecdbe7a9e9 www/nginx-devel: update from 1.21.1 to 1.21.2.
While I'm here, fix build of the third-party ajp module by changing
a distribution point.

<Changelog>

*) Change: now nginx rejects HTTP/1.0 requests with the
   "Transfer-Encoding" header line.

*) Change: export ciphers are no longer supported.

*) Feature: OpenSSL 3.0 compatibility.

*) Feature: the "Auth-SSL-Protocol" and "Auth-SSL-Cipher" header lines
   are now passed to the mail proxy authentication server.
   Thanks to Rob Mueller.

*) Feature: request body filters API now permits buffering of the data
   being processed.

*) Bugfix: backend SSL connections in the stream module might hang after
   an SSL handshake.

*) Bugfix: the security level, which is available in OpenSSL 1.1.0 or
   newer, did not affect loading of the server certificates when set
   with "@SECLEVEL=N" in the "ssl_ciphers" directive.

*) Bugfix: SSL connections with gRPC backends might hang if select,
   poll, or /dev/poll methods were used.

*) Bugfix: when using HTTP/2 client request body was always written to
   disk if the "Content-Length" header line was not present in the
   request.

</Changelog>
2021-08-31 11:53:10 -04:00
Sergey A. Osokin
770d6f0d89 www/nginx-devel: update NGINX JavaScript module to 0.6.2.
<ChangeLog>
nginx modules:

*) Bugfix: fixed CPU hog when js_filter is registered
   in both directions.

Core:

*) Feature: introduced AggregateError implementation.

*) Feature: added remaining Promise constructor methods.
   The following methods were added: Promise.all(),
   Promise.allSettled(), Promise.any(), Promise.race().

*) Improvement: removed recursion from code generator.

*) Bugfix: fixed rest parameter parsing without binding
   identifier.

*) Bugfix: fixed resolve/reject callback for
   Promise.prototype.finally().

*) Bugfix: fixed %TypedArray%.prototype.join() with
   detached buffer.

*) Bugfix: fixed memory leak in interactive shell.

</ChangeLog>
2021-08-31 11:24:55 -04:00
Sergey A. Osokin
45577c162a www/nginx-devel: update third-party opentracing module to a recent commit.
Bump PORTREVISION.
2021-08-31 09:58:36 -04:00
Sergey A. Osokin
564f4eeb79 www/nginx-devel: update third-party modules
o) lua: from 0.10.19 to 0.10.20;
o) modsecurity3: from 1.0.1 to 1.0.2.

Bump PORTREVISION.
2021-08-27 15:24:27 -04:00
Sergey A. Osokin
cef6514285 www/nginx-devel: update third-party Passenger module to 6.0.10. 2021-08-09 11:21:55 -04:00
Sergey A. Osokin
336e344f0f www/nginx-devel: update from 1.21.0 to 1.21.1.
<Changelog>

*) Change: now nginx always returns an error for the CONNECT method.

*) Change: now nginx always returns an error if both "Content-Length"
   and "Transfer-Encoding" header lines are present in the request.

*) Change: now nginx always returns an error if spaces or control
   characters are used in the request line.

*) Change: now nginx always returns an error if spaces or control
   characters are used in a header name.

*) Change: now nginx always returns an error if spaces or control
   characters are used in the "Host" request header line.

*) Change: optimization of configuration testing when using many
   listening sockets.

*) Bugfix: nginx did not escape """, "<", ">", "\", "^", "`", "{", "|",
   and "}" characters when proxying with changed URI.

*) Bugfix: SSL variables might be empty when used in logs; the bug had
   appeared in 1.19.5.

*) Bugfix: keepalive connections with gRPC backends might not be closed
   after receiving a GOAWAY frame.

*) Bugfix: reduced memory consumption for long-lived requests when
   proxying with more than 64 buffers.

</Changelog>
2021-07-06 21:00:00 -04:00
Sergey A. Osokin
33280a22a7 www/nginx-devel: update NGINX JavaScript module to 0.6.1.
<ChangeLog>

*) Bugfix: fixed RegExpBuiltinExec() with UTF-8 only regexps.
   The bug was introduced in 0.4.2.

*) Bugfix: fixed parsing of export default declaration with
   non-assignment expressions.
   Thanks to Artem S. Povalyukhin.

</ChangeLog>
2021-06-29 09:11:51 -04:00
Sergey A. Osokin
592f0d5c2d www/nginx-devel: update NGINX JavaScript module to 0.6.0.
Bump PORTREVISION.

<ChangeLog for njs 0.5.3>

Core:

*) Feature: added let and const declaration support.

*) Feature: added RegExp.prototype[Symbol.split].

*) Feature: added sticky flag support for RegExp.

*) Bugfix: fixed heap-buffer-overflow in
   String.prototype.lastIndexOf().

*) Bugfix: fixed RegExp.prototype.test() according to the
   specification.

*) Bugfix: fixed String.prototype.split() according to the
   specification.

*) Bugfix: fixed use-of-uninitialized-value while tracking
   rejected promises.

*) Bugfix: fixed njs.dump() for objects with circular
   references.

</ChangeLog>
2021-06-15 09:54:13 -04:00
Sergey A. Osokin
07d1217a85 www/nginx-devel: security update from 1.20.0 to 1.21.0.
Security:	0882f019-bd60-11eb-9bdd-8c164567ca3c
Security:	CVE-2021-23017

<Changelog>

*) Security: 1-byte memory overwrite might occur during DNS server
   response processing if the "resolver" directive was used, allowing an
   attacker who is able to forge UDP packets from the DNS server to
   cause worker process crash or, potentially, arbitrary code execution
   (CVE-2021-23017).

*) Feature: variables support in the "proxy_ssl_certificate",
   "proxy_ssl_certificate_key" "grpc_ssl_certificate",
   "grpc_ssl_certificate_key", "uwsgi_ssl_certificate", and
   "uwsgi_ssl_certificate_key" directives.

*) Feature: the "max_errors" directive in the mail proxy module.

*) Feature: the mail proxy module supports POP3 and IMAP pipelining.

*) Feature: the "fastopen" parameter of the "listen" directive in the
   stream module.
   Thanks to Anbang Wen.

*) Bugfix: special characters were not escaped during automatic redirect
   with appended trailing slash.

*) Bugfix: connections with clients in the mail proxy module might be
   closed unexpectedly when using SMTP pipelining.

</Changelog>
2021-05-25 11:49:35 -04:00
Sergey A. Osokin
afc068e157 Port should not change its name depending on options. 2021-05-03 10:32:06 -04:00
Sergey A. Osokin
e98803fc4a www/nginx-devel: welcome to the new stable release 1.20.0. 2021-04-20 11:00:24 -04:00
Sergey A. Osokin
41816bd0de www/nginx-devel: update third-party vod module to 1.27 2021-04-14 16:53:30 -04:00
Sergey A. Osokin
b11f6f70fa www/nginx-devel: move third-party module definition to Makefile.extmod. 2021-04-14 16:41:30 -04:00
Sergey A. Osokin
1b400d1185 www/nginx-devel: update from 1.19.9 to 1.19.10.
<Changelog>

*) Change: the default value of the "keepalive_requests" directive was
   changed to 1000.

*) Feature: the "keepalive_time" directive.

*) Feature: the $connection_time variable.

*) Workaround: "gzip filter failed to use preallocated memory" alerts
   appeared in logs when using zlib-ng.

</Changelog>
2021-04-13 11:49:35 -04:00
Sergey A. Osokin
0b8b0662b9 Update the patches for third-party passenger module.
The issue was introduced by:	2e741e74b8
PR:	254824
2021-04-06 14:55:57 -04:00