diff mbox series

[meta-webserver,v2] meta-webserver: nginx: Add ipv6 support

Message ID 20221027173334.312517-1-JPEWhacker@gmail.com
State Under Review
Headers show
Series [meta-webserver,v2] meta-webserver: nginx: Add ipv6 support | expand

Commit Message

Joshua Watt Oct. 27, 2022, 5:33 p.m. UTC
Adds a PACKAGECONFIG to enable ipv6 in nginx

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
---
 meta-webserver/recipes-httpd/nginx/nginx.inc | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

Comments

Tim Orling Oct. 28, 2022, 1:57 a.m. UTC | #1
On Thu, Oct 27, 2022 at 10:33 AM Joshua Watt <JPEWhacker@gmail.com> wrote:

> Adds a PACKAGECONFIG to enable ipv6 in nginx
>
> Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
> ---
>  meta-webserver/recipes-httpd/nginx/nginx.inc | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/meta-webserver/recipes-httpd/nginx/nginx.inc
> b/meta-webserver/recipes-httpd/nginx/nginx.inc
> index dfced3330..260f5f320 100644
> --- a/meta-webserver/recipes-httpd/nginx/nginx.inc
> +++ b/meta-webserver/recipes-httpd/nginx/nginx.inc
> @@ -37,12 +37,13 @@ NGINX_USER   ?= "www"
>  EXTRA_OECONF = ""
>  DISABLE_STATIC = ""
>
> -PACKAGECONFIG ??= "ssl"
> +PACKAGECONFIG ??= "ssl ${@bb.utils.filter('DISTRO_FEATURES', 'ipv6', d)}"


much better, I was also going to suggest this

>
>
>  PACKAGECONFIG[gunzip] = "--with-http_gunzip_module,,"
>  PACKAGECONFIG[http2] = "--with-http_v2_module,,"
>  PACKAGECONFIG[ssl] = "--with-http_ssl_module,,openssl"
>  PACKAGECONFIG[http-auth-request] = "--with-http_auth_request_module,,"
> +PACKAGECONFIG[ipv6] = "--with-ipv6,,"
>
>  do_configure () {
>      if [ "${SITEINFO_BITS}" = "64" ]; then
> --
> 2.33.0
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#99325):
> https://lists.openembedded.org/g/openembedded-devel/message/99325
> Mute This Topic: https://lists.openembedded.org/mt/94609597/924729
> Group Owner: openembedded-devel+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [
> ticotimo@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
>
diff mbox series

Patch

diff --git a/meta-webserver/recipes-httpd/nginx/nginx.inc b/meta-webserver/recipes-httpd/nginx/nginx.inc
index dfced3330..260f5f320 100644
--- a/meta-webserver/recipes-httpd/nginx/nginx.inc
+++ b/meta-webserver/recipes-httpd/nginx/nginx.inc
@@ -37,12 +37,13 @@  NGINX_USER   ?= "www"
 EXTRA_OECONF = ""
 DISABLE_STATIC = ""
 
-PACKAGECONFIG ??= "ssl"
+PACKAGECONFIG ??= "ssl ${@bb.utils.filter('DISTRO_FEATURES', 'ipv6', d)}"
 
 PACKAGECONFIG[gunzip] = "--with-http_gunzip_module,,"
 PACKAGECONFIG[http2] = "--with-http_v2_module,,"
 PACKAGECONFIG[ssl] = "--with-http_ssl_module,,openssl"
 PACKAGECONFIG[http-auth-request] = "--with-http_auth_request_module,,"
+PACKAGECONFIG[ipv6] = "--with-ipv6,,"
 
 do_configure () {
     if [ "${SITEINFO_BITS}" = "64" ]; then