From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Thu, 12 Sep 2024 14:17:32 +0200 Received: from metis.whiteo.stw.pengutronix.de ([2a0a:edc0:2:b01:1d::104]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1soilQ-003mwQ-1y for lore@lore.pengutronix.de; Thu, 12 Sep 2024 14:17:32 +0200 Received: from localhost ([127.0.0.1] helo=metis.whiteo.stw.pengutronix.de) by metis.whiteo.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1soilP-0000PW-OC; Thu, 12 Sep 2024 14:17:31 +0200 Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1soig3-0002D1-DF; Thu, 12 Sep 2024 14:11:59 +0200 Received: from [2a0a:edc0:0:1101:1d::54] (helo=dude05.red.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1soig3-007NS4-0U; Thu, 12 Sep 2024 14:11:59 +0200 Received: from mol by dude05.red.stw.pengutronix.de with local (Exim 4.96) (envelope-from ) id 1soig2-00BHGa-38; Thu, 12 Sep 2024 14:11:58 +0200 From: Michael Olbrich To: ptxdist@pengutronix.de Date: Thu, 12 Sep 2024 14:11:58 +0200 Message-Id: <20240912121158.2687973-1-m.olbrich@pengutronix.de> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240830132722.65713-1-abbotti@mev.co.uk> References: <20240830132722.65713-1-abbotti@mev.co.uk> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: Re: [ptxdist] [APPLIED] nginx: Allow ngx_http_charset_module to be built X-BeenThere: ptxdist@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Cc: Ian Abbott Sender: "ptxdist" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: ptxdist-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false Thanks, applied as 0d9b9bf68cdec06c8b93dfbc517e2bcd35291454. Michael [sent from post-receive hook] On Thu, 12 Sep 2024 14:11:58 +0200, Ian Abbott wrote: > Add a configuration option to build the http charset module. It allows a > charset to be specified in the HTTP "Content-Type" header, for example > for setting the charset to "utf-8". > > It can also do charset conversions with some limitations, but the > nginx.make file has not been modified to install any of the supplied > conversion tables. > > Signed-off-by: Ian Abbott > Message-Id: <20240830132722.65713-1-abbotti@mev.co.uk> > Signed-off-by: Michael Olbrich > > diff --git a/rules/nginx.in b/rules/nginx.in > index ca043460c851..6ee8a2ec1cb8 100644 > --- a/rules/nginx.in > +++ b/rules/nginx.in > @@ -41,6 +41,14 @@ config NGINX_HTTP_AUTOINDEX_MODULE > ngx_http_autoindex_module processes requests ending with the > slash character and produces a directory listing. > > +config NGINX_HTTP_CHARSET_MODULE > + bool > + prompt "ngx_http_charset_module" > + help > + ngx_http_charset_module adds a charset to the "Content-Type" > + response header field. The module can convert data from one > + charset to another with some limitations. > + > config NGINX_HTTP_FASTCGI_MODULE > bool > prompt "ngx_http_fastcgi_module" > diff --git a/rules/nginx.make b/rules/nginx.make > index 5b5669de00a3..85df855e1d0e 100644 > --- a/rules/nginx.make > +++ b/rules/nginx.make > @@ -68,7 +68,7 @@ NGINX_CONF_OPT := \ > $(call ptx/ifdef, PTXCONF_NGINX_HTTP_V2_MODULE,--with-http_v2_module) \ > --with-http_sub_module \ > $(call ptx/ifdef, PTXCONF_NGINX_HTTP_GZIP_STATIC_MODULE,--with-http_gzip_static_module) \ > - --without-http_charset_module \ > + $(call ptx/ifdef, PTXCONF_NGINX_HTTP_CHARSET_MODULE,,--without-http_charset_module) \ > $(call ptx/ifdef, PTXCONF_NGINX_HTTP_GZIP_MODULE,,--without-http_gzip_module) \ > --without-http_ssi_module \ > --without-http_userid_module \