diff options
Diffstat (limited to 'meta-webserver/recipes-httpd/nginx')
-rw-r--r-- | meta-webserver/recipes-httpd/nginx/nginx.inc | 24 | ||||
-rw-r--r-- | meta-webserver/recipes-httpd/nginx/nginx_1.25.3.bb | 10 | ||||
-rw-r--r-- | meta-webserver/recipes-httpd/nginx/nginx_1.26.3.bb (renamed from meta-webserver/recipes-httpd/nginx/nginx_1.26.0.bb) | 2 | ||||
-rw-r--r-- | meta-webserver/recipes-httpd/nginx/nginx_1.27.4.bb | 10 |
4 files changed, 30 insertions, 16 deletions
diff --git a/meta-webserver/recipes-httpd/nginx/nginx.inc b/meta-webserver/recipes-httpd/nginx/nginx.inc index 2714c3d22f..bcc384bd8a 100644 --- a/meta-webserver/recipes-httpd/nginx/nginx.inc +++ b/meta-webserver/recipes-httpd/nginx/nginx.inc | |||
@@ -38,7 +38,7 @@ NGINX_USER ?= "www" | |||
38 | EXTRA_OECONF = "" | 38 | EXTRA_OECONF = "" |
39 | DISABLE_STATIC = "" | 39 | DISABLE_STATIC = "" |
40 | 40 | ||
41 | PACKAGECONFIG ??= "ssl ${@bb.utils.filter('DISTRO_FEATURES', 'ipv6', d)}" | 41 | PACKAGECONFIG ??= "ssl fastcgi scgi uwsgi ${@bb.utils.filter('DISTRO_FEATURES', 'ipv6', d)}" |
42 | 42 | ||
43 | PACKAGECONFIG[gunzip] = "--with-http_gunzip_module,," | 43 | PACKAGECONFIG[gunzip] = "--with-http_gunzip_module,," |
44 | PACKAGECONFIG[http2] = "--with-http_v2_module,," | 44 | PACKAGECONFIG[http2] = "--with-http_v2_module,," |
@@ -48,7 +48,9 @@ PACKAGECONFIG[ipv6] = "--with-ipv6,," | |||
48 | PACKAGECONFIG[webdav] = "--with-http_dav_module,," | 48 | PACKAGECONFIG[webdav] = "--with-http_dav_module,," |
49 | PACKAGECONFIG[stream] = "--with-stream,," | 49 | PACKAGECONFIG[stream] = "--with-stream,," |
50 | PACKAGECONFIG[http-sub-module] = "--with-http_sub_module,," | 50 | PACKAGECONFIG[http-sub-module] = "--with-http_sub_module,," |
51 | 51 | PACKAGECONFIG[fastcgi] = ",--without-http_fastcgi_module," | |
52 | PACKAGECONFIG[scgi] = ",--without-http_scgi_module," | ||
53 | PACKAGECONFIG[uwsgi] = ",--without-http_uwsgi_module," | ||
52 | PACKAGECONFIG[xslt] = "--with-http_xslt_module,,libxslt" | 54 | PACKAGECONFIG[xslt] = "--with-http_xslt_module,,libxslt" |
53 | 55 | ||
54 | do_configure () { | 56 | do_configure () { |
@@ -81,9 +83,9 @@ do_configure () { | |||
81 | --error-log-path=${localstatedir}/log/nginx/error.log \ | 83 | --error-log-path=${localstatedir}/log/nginx/error.log \ |
82 | --http-client-body-temp-path=/run/nginx/client_body_temp \ | 84 | --http-client-body-temp-path=/run/nginx/client_body_temp \ |
83 | --http-proxy-temp-path=/run/nginx/proxy_temp \ | 85 | --http-proxy-temp-path=/run/nginx/proxy_temp \ |
84 | --http-fastcgi-temp-path=/run/nginx/fastcgi_temp \ | 86 | ${@bb.utils.contains('PACKAGECONFIG', 'fastcgi', '--http-fastcgi-temp-path=/run/nginx/fastcgi_temp', '', d)} \ |
85 | --http-uwsgi-temp-path=/run/nginx/uwsgi_temp \ | 87 | ${@bb.utils.contains('PACKAGECONFIG', 'scgi', '--http-scgi-temp-path=/run/nginx/scgi_temp', '', d)} \ |
86 | --http-scgi-temp-path=/run/nginx/scgi_temp \ | 88 | ${@bb.utils.contains('PACKAGECONFIG', 'uwsgi', '--http-uwsgi-temp-path=/run/nginx/uwsgi_temp', '', d)} \ |
87 | --pid-path=/run/nginx/nginx.pid \ | 89 | --pid-path=/run/nginx/nginx.pid \ |
88 | --prefix=${prefix} \ | 90 | --prefix=${prefix} \ |
89 | --with-threads \ | 91 | --with-threads \ |
@@ -132,6 +134,18 @@ do_install () { | |||
132 | # cleanup configuration folder | 134 | # cleanup configuration folder |
133 | rm ${D}${sysconfdir}/nginx/*.default | 135 | rm ${D}${sysconfdir}/nginx/*.default |
134 | 136 | ||
137 | # remove config files based on packageconfig | ||
138 | if ! [ "${@bb.utils.filter('PACKAGECONFIG', 'fastcgi', d)}" ]; then | ||
139 | rm -f ${D}${sysconfdir}/nginx/fastcgi.conf | ||
140 | rm -f ${D}${sysconfdir}/nginx/fastcgi_params | ||
141 | fi | ||
142 | if ! [ "${@bb.utils.filter('PACKAGECONFIG', 'scgi', d)}" ]; then | ||
143 | rm -f ${D}${sysconfdir}/nginx/scgi_params | ||
144 | fi | ||
145 | if ! [ "${@bb.utils.filter('PACKAGECONFIG', 'uwsgi', d)}" ]; then | ||
146 | rm -f ${D}${sysconfdir}/nginx/uwsgi_params | ||
147 | fi | ||
148 | |||
135 | # add additional configuration folders | 149 | # add additional configuration folders |
136 | install -d ${D}${sysconfdir}/nginx/modules-available | 150 | install -d ${D}${sysconfdir}/nginx/modules-available |
137 | install -d ${D}${sysconfdir}/nginx/modules-enabled | 151 | install -d ${D}${sysconfdir}/nginx/modules-enabled |
diff --git a/meta-webserver/recipes-httpd/nginx/nginx_1.25.3.bb b/meta-webserver/recipes-httpd/nginx/nginx_1.25.3.bb deleted file mode 100644 index d0371dd3cc..0000000000 --- a/meta-webserver/recipes-httpd/nginx/nginx_1.25.3.bb +++ /dev/null | |||
@@ -1,10 +0,0 @@ | |||
1 | require nginx.inc | ||
2 | |||
3 | # 1.24.x branch is the current stable branch, the recommended default | ||
4 | # 1.25.x is the current mainline branches containing all new features | ||
5 | DEFAULT_PREFERENCE = "-1" | ||
6 | |||
7 | LIC_FILES_CHKSUM = "file://LICENSE;md5=79ad2eb837299421c4435dedc8897b3d" | ||
8 | |||
9 | SRC_URI[sha256sum] = "64c5b975ca287939e828303fa857d22f142b251f17808dfe41733512d9cded86" | ||
10 | |||
diff --git a/meta-webserver/recipes-httpd/nginx/nginx_1.26.0.bb b/meta-webserver/recipes-httpd/nginx/nginx_1.26.3.bb index 0ce940d429..7eab7ecdf5 100644 --- a/meta-webserver/recipes-httpd/nginx/nginx_1.26.0.bb +++ b/meta-webserver/recipes-httpd/nginx/nginx_1.26.3.bb | |||
@@ -2,5 +2,5 @@ require nginx.inc | |||
2 | 2 | ||
3 | LIC_FILES_CHKSUM = "file://LICENSE;md5=a6547d7e5628787ee2a9c5a3480eb628" | 3 | LIC_FILES_CHKSUM = "file://LICENSE;md5=a6547d7e5628787ee2a9c5a3480eb628" |
4 | 4 | ||
5 | SRC_URI[sha256sum] = "d2e6c8439d6c6db5015d8eaab2470ab52aef85a7bf363182879977e084370497" | 5 | SRC_URI[sha256sum] = "69ee2b237744036e61d24b836668aad3040dda461fe6f570f1787eab570c75aa" |
6 | 6 | ||
diff --git a/meta-webserver/recipes-httpd/nginx/nginx_1.27.4.bb b/meta-webserver/recipes-httpd/nginx/nginx_1.27.4.bb new file mode 100644 index 0000000000..6c32ea7315 --- /dev/null +++ b/meta-webserver/recipes-httpd/nginx/nginx_1.27.4.bb | |||
@@ -0,0 +1,10 @@ | |||
1 | require nginx.inc | ||
2 | |||
3 | # 1.26.x branch is the current stable branch, the recommended default | ||
4 | # 1.27.x is the current mainline branches containing all new features | ||
5 | DEFAULT_PREFERENCE = "-1" | ||
6 | |||
7 | LIC_FILES_CHKSUM = "file://LICENSE;md5=3dc49537b08b14c8b66ad247bb4c4593" | ||
8 | |||
9 | SRC_URI[sha256sum] = "294816f879b300e621fa4edd5353dd1ec00badb056399eceb30de7db64b753b2" | ||
10 | |||