From c017fd6563123fd953e03ecd8361bc2b2a42db04 Mon Sep 17 00:00:00 2001 From: Luca Matei Pintilie Date: Sun, 24 Mar 2024 14:32:08 +0100 Subject: [PATCH] New package: nginx-headers-more-0.37. --- srcpkgs/nginx-headers-more | 1 + srcpkgs/nginx/template | 18 +++++++++++++++--- 2 files changed, 16 insertions(+), 3 deletions(-) create mode 120000 srcpkgs/nginx-headers-more diff --git a/srcpkgs/nginx-headers-more b/srcpkgs/nginx-headers-more new file mode 120000 index 00000000000000..da70e2081bc008 --- /dev/null +++ b/srcpkgs/nginx-headers-more @@ -0,0 +1 @@ +nginx \ No newline at end of file diff --git a/srcpkgs/nginx/template b/srcpkgs/nginx/template index c72073d9a7ca21..4a565e132e1574 100644 --- a/srcpkgs/nginx/template +++ b/srcpkgs/nginx/template @@ -7,6 +7,7 @@ version=1.24.0 revision=5 _tests_commit=36a4563f7f00 _njs_version=0.7.12 +_headers_more_version=0.37 create_wrksrc=yes build_wrksrc="nginx-${version}" build_style=gnu-makefile @@ -52,7 +53,8 @@ configure_args="--prefix=${_cfgdir} --with-mail_ssl_module --with-pcre-jit --with-threads - --add-dynamic-module=../njs-${_njs_version}/nginx" + --add-dynamic-module=../njs-${_njs_version}/nginx + --add-dynamic-module=../headers-more-nginx-module-${_headers_more_version}" hostmakedepends="geoip geoip-devel openssl-devel pcre2-devel perl libxslt-devel which" makedepends="${hostmakedepends}" @@ -64,10 +66,12 @@ homepage="https://nginx.org" changelog="https://nginx.org/en/CHANGES-${version%.*}" distfiles="https://nginx.org/download/nginx-${version}.tar.gz https://hg.nginx.org/nginx-tests/archive/${_tests_commit}.tar.gz - https://hg.nginx.org/njs/archive/${_njs_version}.tar.gz" + https://hg.nginx.org/njs/archive/${_njs_version}.tar.gz + https://github.com/openresty/headers-more-nginx-module/archive/refs/tags/v${_headers_more_version}.tar.gz" checksum="77a2541637b92a621e3ee76776c8b7b40cf6d707e69ba53a940283e30ff2f55d a90641a75314427b6c02e3a5e811c66d6fe7c0cad93752a6a2725d0129e08fbf - af648336c236f625311edcd90b83f37702fadad160c2a5ed57b34656609e918a" + af648336c236f625311edcd90b83f37702fadad160c2a5ed57b34656609e918a + cf6e169d6b350c06d0c730b0eaf4973394026ad40094cddd3b3a5b346577019d" # Tests fail when nginx run as root and there is no nginx user make_check=ci-skip @@ -228,3 +232,11 @@ nginx-mod-stream-geoip_package() { vmove usr/lib/nginx/modules/ngx_stream_geoip_module.so } } + +nginx-headers-more_package() { + short_desc+=" - Manipulate output headers module" + depends="${sourcepkg}>=${version}_${revision}" + pkg_install() { + vmove usr/lib/nginx/modules/ngx_http_headers_more_filter_module.so + } +}