Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] New package: ngx_headers_more-0.33
@ 2021-04-16  2:06 AluminumTank
  2021-04-16 21:15 ` [PR PATCH] [Updated] " AluminumTank
                   ` (41 more replies)
  0 siblings, 42 replies; 43+ messages in thread
From: AluminumTank @ 2021-04-16  2:06 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1829 bytes --]

There is a new pull request by AluminumTank against master on the void-packages repository

https://github.com/AluminumTank/void-packages ngx_headers_more
https://github.com/void-linux/void-packages/pull/30257

New package: ngx_headers_more-0.33
<!-- Mark items with [x] where applicable -->

#### General
- [X] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)

#### Have the results of the proposed changes been tested?
- [X] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR

<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->
<!-- 
#### Does it build and run successfully? 
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [ ] I built this PR locally for my native architecture, (ARCH-LIBC)
- [ ] I built this PR locally for these architectures (if supported. mark crossbuilds):
  - [ ] aarch64-musl
  - [ ] armv7l
  - [ ] armv6l-musl
-->

This NGINX module is useful for quickly adding headers across all server blocks for an NGINX installation, which is useful for e.g. a [one-line opting-out of Google's FLoC](https://plausible.io/blog/google-floc).

A patch file from https://github.com/void-linux/void-packages/pull/30257.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-ngx_headers_more-30257.patch --]
[-- Type: text/x-diff, Size: 2380 bytes --]

From 119da9598d5867846700dec7bae709633d39d0a8 Mon Sep 17 00:00:00 2001
From: AluminumTank <joel@beckmeyer.us>
Date: Thu, 15 Apr 2021 20:51:13 -0400
Subject: [PATCH] New package: ngx_headers_more-0.33

---
 srcpkgs/ngx_headers_more/INSTALL.msg |  4 +++
 srcpkgs/ngx_headers_more/template    | 42 ++++++++++++++++++++++++++++
 2 files changed, 46 insertions(+)
 create mode 100644 srcpkgs/ngx_headers_more/INSTALL.msg
 create mode 100644 srcpkgs/ngx_headers_more/template

diff --git a/srcpkgs/ngx_headers_more/INSTALL.msg b/srcpkgs/ngx_headers_more/INSTALL.msg
new file mode 100644
index 000000000000..310e61ebaba6
--- /dev/null
+++ b/srcpkgs/ngx_headers_more/INSTALL.msg
@@ -0,0 +1,4 @@
+Dynamic modules are loaded into NGINX with the `load_module` directive. Place
+the following line at the top of /etc/nginx/nginx.conf:
+
+load_module "/usr/lib/nginx/ngx_http_headers_more_filter_module.so"
diff --git a/srcpkgs/ngx_headers_more/template b/srcpkgs/ngx_headers_more/template
new file mode 100644
index 000000000000..515768cbce92
--- /dev/null
+++ b/srcpkgs/ngx_headers_more/template
@@ -0,0 +1,42 @@
+# Template file for 'ngx_headers_more'
+pkgname=ngx_headers_more
+version=0.33
+revision=1
+_nginx_version=1.18.0
+wrksrc=nginx-${_nginx_version}
+build_style=gnu-makefile
+make_build_args="modules"
+hostmakedepends="openssl-devel pcre-devel"
+makedepends="${hostmakedepends}"
+short_desc="Nginx module to set and clear input and output headers"
+maintainer="Joel Beckmeyer <joel@beckmeyer.us>"
+license="BSD-2-Clause"
+homepage="https://github.com/openresty/headers-more-nginx-module"
+distfiles="https://nginx.org/download/nginx-${_nginx_version}.tar.gz
+https://github.com/openresty/headers-more-nginx-module/archive/v${version}.tar.gz"
+checksum="4c373e7ab5bf91d34a4f11a0c9496561061ba5eee6020db272a17a7228d35f99
+a3dcbab117a9c103bc1ea5200fc00a7b7d2af97ff7fd525f16f8ac2632e30fbf"
+
+do_configure() {
+	local cfgdir=/etc/nginx
+	local tmpdir=/var/tmp/nginx
+
+	if [ "$CROSS_BUILD" ]; then
+		# fake configure run on host
+		unset CC CPP LD CFLAGS CPPFLAGS LDFLAGS
+	fi
+
+	./configure --with-compat \
+		--add-dynamic-module=../headers-more-nginx-module-${version}
+}
+
+pre_build() {
+	sed -i 's/-lcrypt/$(LDFLAGS) &/' objs/Makefile
+}
+
+do_install() {
+	vmkdir usr/lib/nginx
+	vinstall objs/ngx_http_headers_more_filter_module.so 644 usr/lib/nginx
+
+	vlicense LICENSE
+}

^ permalink raw reply	[flat|nested] 43+ messages in thread

* Re: [PR PATCH] [Updated] New package: ngx_headers_more-0.33
  2021-04-16  2:06 [PR PATCH] New package: ngx_headers_more-0.33 AluminumTank
@ 2021-04-16 21:15 ` AluminumTank
  2021-04-16 21:16 ` AluminumTank
                   ` (40 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: AluminumTank @ 2021-04-16 21:15 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1834 bytes --]

There is an updated pull request by AluminumTank against master on the void-packages repository

https://github.com/AluminumTank/void-packages ngx_headers_more
https://github.com/void-linux/void-packages/pull/30257

New package: ngx_headers_more-0.33
<!-- Mark items with [x] where applicable -->

#### General
- [X] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)

#### Have the results of the proposed changes been tested?
- [X] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR

<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->
<!-- 
#### Does it build and run successfully? 
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [ ] I built this PR locally for my native architecture, (ARCH-LIBC)
- [ ] I built this PR locally for these architectures (if supported. mark crossbuilds):
  - [ ] aarch64-musl
  - [ ] armv7l
  - [ ] armv6l-musl
-->

This NGINX module is useful for quickly adding headers across all server blocks for an NGINX installation, which is useful for e.g. a [one-line opting-out of Google's FLoC](https://plausible.io/blog/google-floc).

A patch file from https://github.com/void-linux/void-packages/pull/30257.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-ngx_headers_more-30257.patch --]
[-- Type: text/x-diff, Size: 4577 bytes --]

From 119da9598d5867846700dec7bae709633d39d0a8 Mon Sep 17 00:00:00 2001
From: AluminumTank <joel@beckmeyer.us>
Date: Thu, 15 Apr 2021 20:51:13 -0400
Subject: [PATCH 1/2] New package: ngx_headers_more-0.33

---
 srcpkgs/ngx_headers_more/INSTALL.msg |  4 +++
 srcpkgs/ngx_headers_more/template    | 42 ++++++++++++++++++++++++++++
 2 files changed, 46 insertions(+)
 create mode 100644 srcpkgs/ngx_headers_more/INSTALL.msg
 create mode 100644 srcpkgs/ngx_headers_more/template

diff --git a/srcpkgs/ngx_headers_more/INSTALL.msg b/srcpkgs/ngx_headers_more/INSTALL.msg
new file mode 100644
index 000000000000..310e61ebaba6
--- /dev/null
+++ b/srcpkgs/ngx_headers_more/INSTALL.msg
@@ -0,0 +1,4 @@
+Dynamic modules are loaded into NGINX with the `load_module` directive. Place
+the following line at the top of /etc/nginx/nginx.conf:
+
+load_module "/usr/lib/nginx/ngx_http_headers_more_filter_module.so"
diff --git a/srcpkgs/ngx_headers_more/template b/srcpkgs/ngx_headers_more/template
new file mode 100644
index 000000000000..515768cbce92
--- /dev/null
+++ b/srcpkgs/ngx_headers_more/template
@@ -0,0 +1,42 @@
+# Template file for 'ngx_headers_more'
+pkgname=ngx_headers_more
+version=0.33
+revision=1
+_nginx_version=1.18.0
+wrksrc=nginx-${_nginx_version}
+build_style=gnu-makefile
+make_build_args="modules"
+hostmakedepends="openssl-devel pcre-devel"
+makedepends="${hostmakedepends}"
+short_desc="Nginx module to set and clear input and output headers"
+maintainer="Joel Beckmeyer <joel@beckmeyer.us>"
+license="BSD-2-Clause"
+homepage="https://github.com/openresty/headers-more-nginx-module"
+distfiles="https://nginx.org/download/nginx-${_nginx_version}.tar.gz
+https://github.com/openresty/headers-more-nginx-module/archive/v${version}.tar.gz"
+checksum="4c373e7ab5bf91d34a4f11a0c9496561061ba5eee6020db272a17a7228d35f99
+a3dcbab117a9c103bc1ea5200fc00a7b7d2af97ff7fd525f16f8ac2632e30fbf"
+
+do_configure() {
+	local cfgdir=/etc/nginx
+	local tmpdir=/var/tmp/nginx
+
+	if [ "$CROSS_BUILD" ]; then
+		# fake configure run on host
+		unset CC CPP LD CFLAGS CPPFLAGS LDFLAGS
+	fi
+
+	./configure --with-compat \
+		--add-dynamic-module=../headers-more-nginx-module-${version}
+}
+
+pre_build() {
+	sed -i 's/-lcrypt/$(LDFLAGS) &/' objs/Makefile
+}
+
+do_install() {
+	vmkdir usr/lib/nginx
+	vinstall objs/ngx_http_headers_more_filter_module.so 644 usr/lib/nginx
+
+	vlicense LICENSE
+}

From 7eb1c5e921ee7fbc14a0a281b7dce315c5eab445 Mon Sep 17 00:00:00 2001
From: AluminumTank <joel@beckmeyer.us>
Date: Fri, 16 Apr 2021 17:15:02 -0400
Subject: [PATCH 2/2] [WIP] New package: ngx_brotli-1.0.0rc

---
 srcpkgs/ngx_brotli/INSTALL.msg |  5 +++++
 srcpkgs/ngx_brotli/template    | 39 ++++++++++++++++++++++++++++++++++
 2 files changed, 44 insertions(+)
 create mode 100644 srcpkgs/ngx_brotli/INSTALL.msg
 create mode 100644 srcpkgs/ngx_brotli/template

diff --git a/srcpkgs/ngx_brotli/INSTALL.msg b/srcpkgs/ngx_brotli/INSTALL.msg
new file mode 100644
index 000000000000..868789a1f864
--- /dev/null
+++ b/srcpkgs/ngx_brotli/INSTALL.msg
@@ -0,0 +1,5 @@
+Dynamic modules are loaded into NGINX with the `load_module` directive. Place
+the following lines at the top of /etc/nginx/nginx.conf:
+
+load_module /usr/lib/nginx/ngx_http_brotli_filter_module.so;
+load_module /usr/lib/nginx/ngx_http_brotli_static_module.so;
diff --git a/srcpkgs/ngx_brotli/template b/srcpkgs/ngx_brotli/template
new file mode 100644
index 000000000000..ef8b11fc73ab
--- /dev/null
+++ b/srcpkgs/ngx_brotli/template
@@ -0,0 +1,39 @@
+# Template file for 'ngx_brotli'
+pkgname=ngx_brotli
+version=1.0.0rc
+revision=1
+_nginx_version=1.18.0
+wrksrc=nginx-${_nginx_version}
+build_style=gnu-makefile
+make_build_args="modules"
+makedepends="pcre-devel brotli-devel"
+short_desc="Nginx module for Brotli compression"
+maintainer="Joel Beckmeyer <joel@beckmeyer.us>"
+license="BSD-2-Clause"
+homepage="https://github.com/google/ngx_brotli"
+distfiles="https://nginx.org/download/nginx-${_nginx_version}.tar.gz
+https://github.com/google/ngx_brotli/archive/v${version}.tar.gz"
+checksum="4c373e7ab5bf91d34a4f11a0c9496561061ba5eee6020db272a17a7228d35f99
+c85cdcfd76703c95aa4204ee4c2e619aa5b075cac18f428202f65552104add3b"
+
+do_configure() {
+	if [ "$CROSS_BUILD" ]; then
+		# fake configure run on host
+		unset CC CPP LD CFLAGS CPPFLAGS LDFLAGS
+	fi
+
+	./configure --with-compat \
+		--add-dynamic-module=../ngx_brotli-${version}
+}
+
+pre_build() {
+	sed -i 's/-lcrypt/$(LDFLAGS) &/' objs/Makefile
+}
+
+do_install() {
+	vmkdir usr/lib/nginx
+	ls -alh objs/
+	vcopy "objs/*.so" usr/lib/nginx
+
+	vlicense LICENSE
+}

^ permalink raw reply	[flat|nested] 43+ messages in thread

* Re: [PR PATCH] [Updated] New package: ngx_headers_more-0.33
  2021-04-16  2:06 [PR PATCH] New package: ngx_headers_more-0.33 AluminumTank
  2021-04-16 21:15 ` [PR PATCH] [Updated] " AluminumTank
@ 2021-04-16 21:16 ` AluminumTank
  2021-04-16 21:28 ` AluminumTank
                   ` (39 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: AluminumTank @ 2021-04-16 21:16 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1834 bytes --]

There is an updated pull request by AluminumTank against master on the void-packages repository

https://github.com/AluminumTank/void-packages ngx_headers_more
https://github.com/void-linux/void-packages/pull/30257

New package: ngx_headers_more-0.33
<!-- Mark items with [x] where applicable -->

#### General
- [X] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)

#### Have the results of the proposed changes been tested?
- [X] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR

<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->
<!-- 
#### Does it build and run successfully? 
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [ ] I built this PR locally for my native architecture, (ARCH-LIBC)
- [ ] I built this PR locally for these architectures (if supported. mark crossbuilds):
  - [ ] aarch64-musl
  - [ ] armv7l
  - [ ] armv6l-musl
-->

This NGINX module is useful for quickly adding headers across all server blocks for an NGINX installation, which is useful for e.g. a [one-line opting-out of Google's FLoC](https://plausible.io/blog/google-floc).

A patch file from https://github.com/void-linux/void-packages/pull/30257.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-ngx_headers_more-30257.patch --]
[-- Type: text/x-diff, Size: 2380 bytes --]

From 119da9598d5867846700dec7bae709633d39d0a8 Mon Sep 17 00:00:00 2001
From: AluminumTank <joel@beckmeyer.us>
Date: Thu, 15 Apr 2021 20:51:13 -0400
Subject: [PATCH] New package: ngx_headers_more-0.33

---
 srcpkgs/ngx_headers_more/INSTALL.msg |  4 +++
 srcpkgs/ngx_headers_more/template    | 42 ++++++++++++++++++++++++++++
 2 files changed, 46 insertions(+)
 create mode 100644 srcpkgs/ngx_headers_more/INSTALL.msg
 create mode 100644 srcpkgs/ngx_headers_more/template

diff --git a/srcpkgs/ngx_headers_more/INSTALL.msg b/srcpkgs/ngx_headers_more/INSTALL.msg
new file mode 100644
index 000000000000..310e61ebaba6
--- /dev/null
+++ b/srcpkgs/ngx_headers_more/INSTALL.msg
@@ -0,0 +1,4 @@
+Dynamic modules are loaded into NGINX with the `load_module` directive. Place
+the following line at the top of /etc/nginx/nginx.conf:
+
+load_module "/usr/lib/nginx/ngx_http_headers_more_filter_module.so"
diff --git a/srcpkgs/ngx_headers_more/template b/srcpkgs/ngx_headers_more/template
new file mode 100644
index 000000000000..515768cbce92
--- /dev/null
+++ b/srcpkgs/ngx_headers_more/template
@@ -0,0 +1,42 @@
+# Template file for 'ngx_headers_more'
+pkgname=ngx_headers_more
+version=0.33
+revision=1
+_nginx_version=1.18.0
+wrksrc=nginx-${_nginx_version}
+build_style=gnu-makefile
+make_build_args="modules"
+hostmakedepends="openssl-devel pcre-devel"
+makedepends="${hostmakedepends}"
+short_desc="Nginx module to set and clear input and output headers"
+maintainer="Joel Beckmeyer <joel@beckmeyer.us>"
+license="BSD-2-Clause"
+homepage="https://github.com/openresty/headers-more-nginx-module"
+distfiles="https://nginx.org/download/nginx-${_nginx_version}.tar.gz
+https://github.com/openresty/headers-more-nginx-module/archive/v${version}.tar.gz"
+checksum="4c373e7ab5bf91d34a4f11a0c9496561061ba5eee6020db272a17a7228d35f99
+a3dcbab117a9c103bc1ea5200fc00a7b7d2af97ff7fd525f16f8ac2632e30fbf"
+
+do_configure() {
+	local cfgdir=/etc/nginx
+	local tmpdir=/var/tmp/nginx
+
+	if [ "$CROSS_BUILD" ]; then
+		# fake configure run on host
+		unset CC CPP LD CFLAGS CPPFLAGS LDFLAGS
+	fi
+
+	./configure --with-compat \
+		--add-dynamic-module=../headers-more-nginx-module-${version}
+}
+
+pre_build() {
+	sed -i 's/-lcrypt/$(LDFLAGS) &/' objs/Makefile
+}
+
+do_install() {
+	vmkdir usr/lib/nginx
+	vinstall objs/ngx_http_headers_more_filter_module.so 644 usr/lib/nginx
+
+	vlicense LICENSE
+}

^ permalink raw reply	[flat|nested] 43+ messages in thread

* Re: [PR PATCH] [Updated] New package: ngx_headers_more-0.33
  2021-04-16  2:06 [PR PATCH] New package: ngx_headers_more-0.33 AluminumTank
  2021-04-16 21:15 ` [PR PATCH] [Updated] " AluminumTank
  2021-04-16 21:16 ` AluminumTank
@ 2021-04-16 21:28 ` AluminumTank
  2021-08-11 20:59 ` [PR REVIEW] " paper42
                   ` (38 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: AluminumTank @ 2021-04-16 21:28 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1834 bytes --]

There is an updated pull request by AluminumTank against master on the void-packages repository

https://github.com/AluminumTank/void-packages ngx_headers_more
https://github.com/void-linux/void-packages/pull/30257

New package: ngx_headers_more-0.33
<!-- Mark items with [x] where applicable -->

#### General
- [X] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)

#### Have the results of the proposed changes been tested?
- [X] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR

<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->
<!-- 
#### Does it build and run successfully? 
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [ ] I built this PR locally for my native architecture, (ARCH-LIBC)
- [ ] I built this PR locally for these architectures (if supported. mark crossbuilds):
  - [ ] aarch64-musl
  - [ ] armv7l
  - [ ] armv6l-musl
-->

This NGINX module is useful for quickly adding headers across all server blocks for an NGINX installation, which is useful for e.g. a [one-line opting-out of Google's FLoC](https://plausible.io/blog/google-floc).

A patch file from https://github.com/void-linux/void-packages/pull/30257.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-ngx_headers_more-30257.patch --]
[-- Type: text/x-diff, Size: 2268 bytes --]

From 8f0e6cdf9e03af665115ad1fb17003f25f79453c Mon Sep 17 00:00:00 2001
From: AluminumTank <joel@beckmeyer.us>
Date: Thu, 15 Apr 2021 20:51:13 -0400
Subject: [PATCH] New package: ngx_headers_more-0.33

---
 srcpkgs/ngx_headers_more/INSTALL.msg |  4 +++
 srcpkgs/ngx_headers_more/template    | 39 ++++++++++++++++++++++++++++
 2 files changed, 43 insertions(+)
 create mode 100644 srcpkgs/ngx_headers_more/INSTALL.msg
 create mode 100644 srcpkgs/ngx_headers_more/template

diff --git a/srcpkgs/ngx_headers_more/INSTALL.msg b/srcpkgs/ngx_headers_more/INSTALL.msg
new file mode 100644
index 000000000000..f211c3ed0d58
--- /dev/null
+++ b/srcpkgs/ngx_headers_more/INSTALL.msg
@@ -0,0 +1,4 @@
+Dynamic modules are loaded into NGINX with the `load_module` directive. Place
+the following line at the top of /etc/nginx/nginx.conf:
+
+load_module /usr/lib/nginx/ngx_http_headers_more_filter_module.so;
diff --git a/srcpkgs/ngx_headers_more/template b/srcpkgs/ngx_headers_more/template
new file mode 100644
index 000000000000..9f109cc20a80
--- /dev/null
+++ b/srcpkgs/ngx_headers_more/template
@@ -0,0 +1,39 @@
+# Template file for 'ngx_headers_more'
+pkgname=ngx_headers_more
+version=0.33
+revision=1
+_nginx_version=1.18.0
+wrksrc=nginx-${_nginx_version}
+build_style=gnu-makefile
+make_build_args="modules"
+hostmakedepends="pcre-devel"
+makedepends="${hostmakedepends}"
+short_desc="Nginx module to set and clear input and output headers"
+maintainer="Joel Beckmeyer <joel@beckmeyer.us>"
+license="BSD-2-Clause"
+homepage="https://github.com/openresty/headers-more-nginx-module"
+distfiles="https://nginx.org/download/nginx-${_nginx_version}.tar.gz
+https://github.com/openresty/headers-more-nginx-module/archive/v${version}.tar.gz"
+checksum="4c373e7ab5bf91d34a4f11a0c9496561061ba5eee6020db272a17a7228d35f99
+a3dcbab117a9c103bc1ea5200fc00a7b7d2af97ff7fd525f16f8ac2632e30fbf"
+
+do_configure() {
+	if [ "$CROSS_BUILD" ]; then
+		# fake configure run on host
+		unset CC CPP LD CFLAGS CPPFLAGS LDFLAGS
+	fi
+
+	./configure --with-compat \
+		--add-dynamic-module=../headers-more-nginx-module-${version}
+}
+
+pre_build() {
+	sed -i 's/-lcrypt/$(LDFLAGS) &/' objs/Makefile
+}
+
+do_install() {
+	vmkdir usr/lib/nginx
+	vcopy "objs/*.so" usr/lib/nginx
+
+	vlicense LICENSE
+}

^ permalink raw reply	[flat|nested] 43+ messages in thread

* Re: [PR REVIEW] New package: ngx_headers_more-0.33
  2021-04-16  2:06 [PR PATCH] New package: ngx_headers_more-0.33 AluminumTank
                   ` (3 preceding siblings ...)
  2021-08-11 20:59 ` [PR REVIEW] " paper42
@ 2021-08-11 20:59 ` paper42
  2021-08-11 20:59 ` paper42
                   ` (36 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: paper42 @ 2021-08-11 20:59 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 190 bytes --]

New review comment by paper42 on void-packages repository

https://github.com/void-linux/void-packages/pull/30257#discussion_r687183718

Comment:
add a space to the start of the second line

^ permalink raw reply	[flat|nested] 43+ messages in thread

* Re: [PR REVIEW] New package: ngx_headers_more-0.33
  2021-04-16  2:06 [PR PATCH] New package: ngx_headers_more-0.33 AluminumTank
                   ` (2 preceding siblings ...)
  2021-04-16 21:28 ` AluminumTank
@ 2021-08-11 20:59 ` paper42
  2021-08-11 20:59 ` paper42
                   ` (37 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: paper42 @ 2021-08-11 20:59 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 221 bytes --]

New review comment by paper42 on void-packages repository

https://github.com/void-linux/void-packages/pull/30257#discussion_r687187012

Comment:
I think we can remove hostmakedepends and leave pcre-devel in makedepends.

^ permalink raw reply	[flat|nested] 43+ messages in thread

* Re: [PR REVIEW] New package: ngx_headers_more-0.33
  2021-04-16  2:06 [PR PATCH] New package: ngx_headers_more-0.33 AluminumTank
                   ` (4 preceding siblings ...)
  2021-08-11 20:59 ` paper42
@ 2021-08-11 20:59 ` paper42
  2021-08-11 20:59 ` paper42
                   ` (35 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: paper42 @ 2021-08-11 20:59 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 273 bytes --]

New review comment by paper42 on void-packages repository

https://github.com/void-linux/void-packages/pull/30257#discussion_r687179267

Comment:
Why did you choose to name this package ngx_headers_more? Other distributions use nginx-mod-headers-more or something similar.

^ permalink raw reply	[flat|nested] 43+ messages in thread

* Re: [PR REVIEW] New package: ngx_headers_more-0.33
  2021-04-16  2:06 [PR PATCH] New package: ngx_headers_more-0.33 AluminumTank
                   ` (5 preceding siblings ...)
  2021-08-11 20:59 ` paper42
@ 2021-08-11 20:59 ` paper42
  2021-08-11 20:59 ` paper42
                   ` (34 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: paper42 @ 2021-08-11 20:59 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 277 bytes --]

New review comment by paper42 on void-packages repository

https://github.com/void-linux/void-packages/pull/30257#discussion_r687187296

Comment:
Could you add a note to the nginx package near the version field that nginx version needs to be kept in sync with all its modules?

^ permalink raw reply	[flat|nested] 43+ messages in thread

* Re: [PR REVIEW] New package: ngx_headers_more-0.33
  2021-04-16  2:06 [PR PATCH] New package: ngx_headers_more-0.33 AluminumTank
                   ` (7 preceding siblings ...)
  2021-08-11 20:59 ` paper42
@ 2021-08-11 20:59 ` paper42
  2021-08-11 21:23 ` paper42
                   ` (32 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: paper42 @ 2021-08-11 20:59 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 208 bytes --]

New review comment by paper42 on void-packages repository

https://github.com/void-linux/void-packages/pull/30257#discussion_r687185328

Comment:
This package contains only one file, so don't use a glob here

^ permalink raw reply	[flat|nested] 43+ messages in thread

* Re: [PR REVIEW] New package: ngx_headers_more-0.33
  2021-04-16  2:06 [PR PATCH] New package: ngx_headers_more-0.33 AluminumTank
                   ` (6 preceding siblings ...)
  2021-08-11 20:59 ` paper42
@ 2021-08-11 20:59 ` paper42
  2021-08-11 20:59 ` paper42
                   ` (33 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: paper42 @ 2021-08-11 20:59 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 163 bytes --]

New review comment by paper42 on void-packages repository

https://github.com/void-linux/void-packages/pull/30257#discussion_r687183800

Comment:
also add a space

^ permalink raw reply	[flat|nested] 43+ messages in thread

* Re: [PR REVIEW] New package: ngx_headers_more-0.33
  2021-04-16  2:06 [PR PATCH] New package: ngx_headers_more-0.33 AluminumTank
                   ` (8 preceding siblings ...)
  2021-08-11 20:59 ` paper42
@ 2021-08-11 21:23 ` paper42
  2021-08-14 19:05 ` AluminumTank
                   ` (31 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: paper42 @ 2021-08-11 21:23 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 217 bytes --]

New review comment by paper42 on void-packages repository

https://github.com/void-linux/void-packages/pull/30257#discussion_r687202025

Comment:
Or maybe we should make this a subpackage of nginx? What do you think?

^ permalink raw reply	[flat|nested] 43+ messages in thread

* Re: [PR REVIEW] New package: ngx_headers_more-0.33
  2021-04-16  2:06 [PR PATCH] New package: ngx_headers_more-0.33 AluminumTank
                   ` (9 preceding siblings ...)
  2021-08-11 21:23 ` paper42
@ 2021-08-14 19:05 ` AluminumTank
  2021-08-14 19:05 ` AluminumTank
                   ` (30 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: AluminumTank @ 2021-08-14 19:05 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 358 bytes --]

New review comment by AluminumTank on void-packages repository

https://github.com/void-linux/void-packages/pull/30257#discussion_r687230627

Comment:
I was following naming conventions of void-packages, I thought it was taboo to just copy package names from other distros: https://github.com/void-linux/void-packages/blob/master/Manual.md#namingconventions

^ permalink raw reply	[flat|nested] 43+ messages in thread

* Re: [PR REVIEW] New package: ngx_headers_more-0.33
  2021-04-16  2:06 [PR PATCH] New package: ngx_headers_more-0.33 AluminumTank
                   ` (10 preceding siblings ...)
  2021-08-14 19:05 ` AluminumTank
@ 2021-08-14 19:05 ` AluminumTank
  2021-08-14 19:14 ` [PR PATCH] [Updated] " AluminumTank
                   ` (29 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: AluminumTank @ 2021-08-14 19:05 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 318 bytes --]

New review comment by AluminumTank on void-packages repository

https://github.com/void-linux/void-packages/pull/30257#discussion_r687231149

Comment:
Either way is acceptable. Problem with adding subpackages to nginx is, as we add more and more nginx modules, it could grow out of control. Or maybe this would be ok?

^ permalink raw reply	[flat|nested] 43+ messages in thread

* Re: [PR PATCH] [Updated] New package: ngx_headers_more-0.33
  2021-04-16  2:06 [PR PATCH] New package: ngx_headers_more-0.33 AluminumTank
                   ` (11 preceding siblings ...)
  2021-08-14 19:05 ` AluminumTank
@ 2021-08-14 19:14 ` AluminumTank
  2021-08-14 19:18 ` [PR REVIEW] " AluminumTank
                   ` (28 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: AluminumTank @ 2021-08-14 19:14 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1834 bytes --]

There is an updated pull request by AluminumTank against master on the void-packages repository

https://github.com/AluminumTank/void-packages ngx_headers_more
https://github.com/void-linux/void-packages/pull/30257

New package: ngx_headers_more-0.33
<!-- Mark items with [x] where applicable -->

#### General
- [X] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)

#### Have the results of the proposed changes been tested?
- [X] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR

<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->
<!-- 
#### Does it build and run successfully? 
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [ ] I built this PR locally for my native architecture, (ARCH-LIBC)
- [ ] I built this PR locally for these architectures (if supported. mark crossbuilds):
  - [ ] aarch64-musl
  - [ ] armv7l
  - [ ] armv6l-musl
-->

This NGINX module is useful for quickly adding headers across all server blocks for an NGINX installation, which is useful for e.g. a [one-line opting-out of Google's FLoC](https://plausible.io/blog/google-floc).

A patch file from https://github.com/void-linux/void-packages/pull/30257.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-ngx_headers_more-30257.patch --]
[-- Type: text/x-diff, Size: 2347 bytes --]

From 732525d3c5aa8be03e8c35e966a347d3126a855a Mon Sep 17 00:00:00 2001
From: AluminumTank <joel@beckmeyer.us>
Date: Thu, 15 Apr 2021 20:51:13 -0400
Subject: [PATCH] New package: ngx_headers_more-0.33

---
 srcpkgs/ngx_headers_more/INSTALL.msg |  4 +++
 srcpkgs/ngx_headers_more/template    | 42 ++++++++++++++++++++++++++++
 2 files changed, 46 insertions(+)
 create mode 100644 srcpkgs/ngx_headers_more/INSTALL.msg
 create mode 100644 srcpkgs/ngx_headers_more/template

diff --git a/srcpkgs/ngx_headers_more/INSTALL.msg b/srcpkgs/ngx_headers_more/INSTALL.msg
new file mode 100644
index 000000000000..310e61ebaba6
--- /dev/null
+++ b/srcpkgs/ngx_headers_more/INSTALL.msg
@@ -0,0 +1,4 @@
+Dynamic modules are loaded into NGINX with the `load_module` directive. Place
+the following line at the top of /etc/nginx/nginx.conf:
+
+load_module "/usr/lib/nginx/ngx_http_headers_more_filter_module.so"
diff --git a/srcpkgs/ngx_headers_more/template b/srcpkgs/ngx_headers_more/template
new file mode 100644
index 000000000000..d8992595ab2a
--- /dev/null
+++ b/srcpkgs/ngx_headers_more/template
@@ -0,0 +1,42 @@
+# Template file for 'ngx_headers_more'
+pkgname=ngx_headers_more
+version=0.33
+revision=1
+_nginx_version=1.18.0
+wrksrc=nginx-${_nginx_version}
+build_style=gnu-makefile
+make_build_args="modules"
+makedepends="pcre-devel"
+depends="nginx"
+short_desc="Nginx module to set and clear input and output headers"
+maintainer="Joel Beckmeyer <joel@beckmeyer.us>"
+license="BSD-2-Clause"
+homepage="https://github.com/openresty/headers-more-nginx-module"
+distfiles="https://nginx.org/download/nginx-${_nginx_version}.tar.gz
+ https://github.com/openresty/headers-more-nginx-module/archive/v${version}.tar.gz"
+checksum="4c373e7ab5bf91d34a4f11a0c9496561061ba5eee6020db272a17a7228d35f99
+ a3dcbab117a9c103bc1ea5200fc00a7b7d2af97ff7fd525f16f8ac2632e30fbf"
+
+do_configure() {
+	local cfgdir=/etc/nginx
+	local tmpdir=/var/tmp/nginx
+
+	if [ "$CROSS_BUILD" ]; then
+		# fake configure run on host
+		unset CC CPP LD CFLAGS CPPFLAGS LDFLAGS
+	fi
+
+	./configure --with-compat \
+		--add-dynamic-module=../headers-more-nginx-module-${version}
+}
+
+pre_build() {
+	sed -i 's/-lcrypt/$(LDFLAGS) &/' objs/Makefile
+}
+
+do_install() {
+	vmkdir usr/lib/nginx
+	vinstall objs/ngx_http_headers_more_filter_module.so 644 usr/lib/nginx
+
+	vlicense LICENSE
+}

^ permalink raw reply	[flat|nested] 43+ messages in thread

* Re: [PR REVIEW] New package: ngx_headers_more-0.33
  2021-04-16  2:06 [PR PATCH] New package: ngx_headers_more-0.33 AluminumTank
                   ` (12 preceding siblings ...)
  2021-08-14 19:14 ` [PR PATCH] [Updated] " AluminumTank
@ 2021-08-14 19:18 ` AluminumTank
  2021-08-14 19:19 ` AluminumTank
                   ` (27 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: AluminumTank @ 2021-08-14 19:18 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 465 bytes --]

New review comment by AluminumTank on void-packages repository

https://github.com/void-linux/void-packages/pull/30257#discussion_r688982342

Comment:
I took the name directly from the readme: https://github.com/openresty/headers-more-nginx-module#name. We could also take the name "headers-more-nginx-module" since that's that what the repo is called, but since the README explicitly lists a different name, I thought that would be the appropriate name to choose.

^ permalink raw reply	[flat|nested] 43+ messages in thread

* Re: [PR REVIEW] New package: ngx_headers_more-0.33
  2021-04-16  2:06 [PR PATCH] New package: ngx_headers_more-0.33 AluminumTank
                   ` (13 preceding siblings ...)
  2021-08-14 19:18 ` [PR REVIEW] " AluminumTank
@ 2021-08-14 19:19 ` AluminumTank
  2021-08-14 19:27 ` [PR PATCH] [Updated] " AluminumTank
                   ` (26 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: AluminumTank @ 2021-08-14 19:19 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 460 bytes --]

New review comment by AluminumTank on void-packages repository

https://github.com/void-linux/void-packages/pull/30257#discussion_r688982342

Comment:
I took the name directly from the readme: https://github.com/openresty/headers-more-nginx-module#name. We could also take the name "headers-more-nginx-module" since that's what the repo is called, but since the README explicitly lists a different name, I thought that would be the appropriate name to choose.

^ permalink raw reply	[flat|nested] 43+ messages in thread

* Re: [PR PATCH] [Updated] New package: ngx_headers_more-0.33
  2021-04-16  2:06 [PR PATCH] New package: ngx_headers_more-0.33 AluminumTank
                   ` (14 preceding siblings ...)
  2021-08-14 19:19 ` AluminumTank
@ 2021-08-14 19:27 ` AluminumTank
  2021-08-14 19:27 ` [PR REVIEW] " AluminumTank
                   ` (25 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: AluminumTank @ 2021-08-14 19:27 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1834 bytes --]

There is an updated pull request by AluminumTank against master on the void-packages repository

https://github.com/AluminumTank/void-packages ngx_headers_more
https://github.com/void-linux/void-packages/pull/30257

New package: ngx_headers_more-0.33
<!-- Mark items with [x] where applicable -->

#### General
- [X] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)

#### Have the results of the proposed changes been tested?
- [X] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR

<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->
<!-- 
#### Does it build and run successfully? 
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [ ] I built this PR locally for my native architecture, (ARCH-LIBC)
- [ ] I built this PR locally for these architectures (if supported. mark crossbuilds):
  - [ ] aarch64-musl
  - [ ] armv7l
  - [ ] armv6l-musl
-->

This NGINX module is useful for quickly adding headers across all server blocks for an NGINX installation, which is useful for e.g. a [one-line opting-out of Google's FLoC](https://plausible.io/blog/google-floc).

A patch file from https://github.com/void-linux/void-packages/pull/30257.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-ngx_headers_more-30257.patch --]
[-- Type: text/x-diff, Size: 2385 bytes --]

From 00f0f025cca06b0763fc497821203a81a7414fa8 Mon Sep 17 00:00:00 2001
From: AluminumTank <joel@beckmeyer.us>
Date: Thu, 15 Apr 2021 20:51:13 -0400
Subject: [PATCH] New package: ngx_headers_more-0.33

---
 srcpkgs/ngx_headers_more/INSTALL.msg |  4 +++
 srcpkgs/ngx_headers_more/template    | 43 ++++++++++++++++++++++++++++
 2 files changed, 47 insertions(+)
 create mode 100644 srcpkgs/ngx_headers_more/INSTALL.msg
 create mode 100644 srcpkgs/ngx_headers_more/template

diff --git a/srcpkgs/ngx_headers_more/INSTALL.msg b/srcpkgs/ngx_headers_more/INSTALL.msg
new file mode 100644
index 000000000000..310e61ebaba6
--- /dev/null
+++ b/srcpkgs/ngx_headers_more/INSTALL.msg
@@ -0,0 +1,4 @@
+Dynamic modules are loaded into NGINX with the `load_module` directive. Place
+the following line at the top of /etc/nginx/nginx.conf:
+
+load_module "/usr/lib/nginx/ngx_http_headers_more_filter_module.so"
diff --git a/srcpkgs/ngx_headers_more/template b/srcpkgs/ngx_headers_more/template
new file mode 100644
index 000000000000..6fc32ef3a617
--- /dev/null
+++ b/srcpkgs/ngx_headers_more/template
@@ -0,0 +1,43 @@
+# Template file for 'ngx_headers_more'
+pkgname=ngx_headers_more
+version=0.33
+revision=1
+_nginx_version=1.18.0
+wrksrc=nginx-${_nginx_version}
+build_style=gnu-makefile
+make_build_args="modules"
+hostmakedepends="pcre-devel"
+makedepends="${hostmakedepends}"
+depends="nginx"
+short_desc="Nginx module to set and clear input and output headers"
+maintainer="Joel Beckmeyer <joel@beckmeyer.us>"
+license="BSD-2-Clause"
+homepage="https://github.com/openresty/headers-more-nginx-module"
+distfiles="https://nginx.org/download/nginx-${_nginx_version}.tar.gz
+ https://github.com/openresty/headers-more-nginx-module/archive/v${version}.tar.gz"
+checksum="4c373e7ab5bf91d34a4f11a0c9496561061ba5eee6020db272a17a7228d35f99
+ a3dcbab117a9c103bc1ea5200fc00a7b7d2af97ff7fd525f16f8ac2632e30fbf"
+
+do_configure() {
+	local cfgdir=/etc/nginx
+	local tmpdir=/var/tmp/nginx
+
+	if [ "$CROSS_BUILD" ]; then
+		# fake configure run on host
+		unset CC CPP LD CFLAGS CPPFLAGS LDFLAGS
+	fi
+
+	./configure --with-compat \
+		--add-dynamic-module=../headers-more-nginx-module-${version}
+}
+
+pre_build() {
+	sed -i 's/-lcrypt/$(LDFLAGS) &/' objs/Makefile
+}
+
+do_install() {
+	vmkdir usr/lib/nginx
+	vinstall objs/ngx_http_headers_more_filter_module.so 644 usr/lib/nginx
+
+	vlicense LICENSE
+}

^ permalink raw reply	[flat|nested] 43+ messages in thread

* Re: [PR REVIEW] New package: ngx_headers_more-0.33
  2021-04-16  2:06 [PR PATCH] New package: ngx_headers_more-0.33 AluminumTank
                   ` (15 preceding siblings ...)
  2021-08-14 19:27 ` [PR PATCH] [Updated] " AluminumTank
@ 2021-08-14 19:27 ` AluminumTank
  2021-08-14 19:29 ` Duncaen
                   ` (24 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: AluminumTank @ 2021-08-14 19:27 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 187 bytes --]

New review comment by AluminumTank on void-packages repository

https://github.com/void-linux/void-packages/pull/30257#discussion_r688983083

Comment:
Removing makes cross-compiling fail

^ permalink raw reply	[flat|nested] 43+ messages in thread

* Re: [PR REVIEW] New package: ngx_headers_more-0.33
  2021-04-16  2:06 [PR PATCH] New package: ngx_headers_more-0.33 AluminumTank
                   ` (16 preceding siblings ...)
  2021-08-14 19:27 ` [PR REVIEW] " AluminumTank
@ 2021-08-14 19:29 ` Duncaen
  2021-08-14 19:29 ` Duncaen
                   ` (23 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: Duncaen @ 2021-08-14 19:29 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 251 bytes --]

New review comment by Duncaen on void-packages repository

https://github.com/void-linux/void-packages/pull/30257#discussion_r688983267

Comment:
And we would require updating rebuilds of everything, including rebuilds of nginx if one module updates.

^ permalink raw reply	[flat|nested] 43+ messages in thread

* Re: [PR REVIEW] New package: ngx_headers_more-0.33
  2021-04-16  2:06 [PR PATCH] New package: ngx_headers_more-0.33 AluminumTank
                   ` (17 preceding siblings ...)
  2021-08-14 19:29 ` Duncaen
@ 2021-08-14 19:29 ` Duncaen
  2021-08-14 19:29 ` Duncaen
                   ` (22 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: Duncaen @ 2021-08-14 19:29 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 242 bytes --]

New review comment by Duncaen on void-packages repository

https://github.com/void-linux/void-packages/pull/30257#discussion_r688983267

Comment:
And we would require rebuilds of everything, including rebuilds of nginx if one module updates.

^ permalink raw reply	[flat|nested] 43+ messages in thread

* Re: [PR REVIEW] New package: ngx_headers_more-0.33
  2021-04-16  2:06 [PR PATCH] New package: ngx_headers_more-0.33 AluminumTank
                   ` (18 preceding siblings ...)
  2021-08-14 19:29 ` Duncaen
@ 2021-08-14 19:29 ` Duncaen
  2021-08-14 19:30 ` Duncaen
                   ` (21 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: Duncaen @ 2021-08-14 19:29 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 254 bytes --]

New review comment by Duncaen on void-packages repository

https://github.com/void-linux/void-packages/pull/30257#discussion_r688983267

Comment:
And we would require rebuilds of everything, including rebuilds and updates of nginx if one module updates.

^ permalink raw reply	[flat|nested] 43+ messages in thread

* Re: [PR REVIEW] New package: ngx_headers_more-0.33
  2021-04-16  2:06 [PR PATCH] New package: ngx_headers_more-0.33 AluminumTank
                   ` (19 preceding siblings ...)
  2021-08-14 19:29 ` Duncaen
@ 2021-08-14 19:30 ` Duncaen
  2021-08-14 19:30 ` Duncaen
                   ` (20 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: Duncaen @ 2021-08-14 19:30 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 259 bytes --]

New review comment by Duncaen on void-packages repository

https://github.com/void-linux/void-packages/pull/30257#discussion_r688983267

Comment:
And we would require rebuilds of everything, including rebuilds and updates of nginx if one module gets updated.

^ permalink raw reply	[flat|nested] 43+ messages in thread

* Re: [PR REVIEW] New package: ngx_headers_more-0.33
  2021-04-16  2:06 [PR PATCH] New package: ngx_headers_more-0.33 AluminumTank
                   ` (20 preceding siblings ...)
  2021-08-14 19:30 ` Duncaen
@ 2021-08-14 19:30 ` Duncaen
  2021-08-14 19:31 ` Duncaen
                   ` (19 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: Duncaen @ 2021-08-14 19:30 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 329 bytes --]

New review comment by Duncaen on void-packages repository

https://github.com/void-linux/void-packages/pull/30257#discussion_r688983267

Comment:
And we would require rebuilds of all modules, including rebuilds and updates of nginx if one module gets updated.
So its probably good that they are split up into separate packages.

^ permalink raw reply	[flat|nested] 43+ messages in thread

* Re: [PR REVIEW] New package: ngx_headers_more-0.33
  2021-04-16  2:06 [PR PATCH] New package: ngx_headers_more-0.33 AluminumTank
                   ` (21 preceding siblings ...)
  2021-08-14 19:30 ` Duncaen
@ 2021-08-14 19:31 ` Duncaen
  2021-08-14 20:13 ` paper42
                   ` (18 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: Duncaen @ 2021-08-14 19:31 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 321 bytes --]

New review comment by Duncaen on void-packages repository

https://github.com/void-linux/void-packages/pull/30257#discussion_r688983267

Comment:
And we would require rebuilds of all modules, including rebuilds and updates of nginx if one module gets updated.
So its good that they are split up into separate templates.

^ permalink raw reply	[flat|nested] 43+ messages in thread

* Re: [PR REVIEW] New package: ngx_headers_more-0.33
  2021-04-16  2:06 [PR PATCH] New package: ngx_headers_more-0.33 AluminumTank
                   ` (22 preceding siblings ...)
  2021-08-14 19:31 ` Duncaen
@ 2021-08-14 20:13 ` paper42
  2021-08-14 20:15 ` paper42
                   ` (17 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: paper42 @ 2021-08-14 20:13 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 756 bytes --]

New review comment by paper42 on void-packages repository

https://github.com/void-linux/void-packages/pull/30257#discussion_r688987310

Comment:
In this case, I would go with nginx-headers-more or nginx-mod-headers-more, because imo it makes more sense than ngx_headers_more. I personally like prefixing modules with the base package name. Naming this package is important, because it will influence naming of all other nginx modules.

It's not a taboo to name packages the same way as other distributions. When there are reasons to name a package a specific way, it doesn't matter if the package is named similarly elsewhere or not. My point was that no other distribution I looked at went with ngx_headers_more, so I don't see a reason why we should.

^ permalink raw reply	[flat|nested] 43+ messages in thread

* Re: [PR REVIEW] New package: ngx_headers_more-0.33
  2021-04-16  2:06 [PR PATCH] New package: ngx_headers_more-0.33 AluminumTank
                   ` (23 preceding siblings ...)
  2021-08-14 20:13 ` paper42
@ 2021-08-14 20:15 ` paper42
  2021-08-14 20:21 ` Duncaen
                   ` (16 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: paper42 @ 2021-08-14 20:15 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 376 bytes --]

New review comment by paper42 on void-packages repository

https://github.com/void-linux/void-packages/pull/30257#discussion_r688987489

Comment:
> And we would require rebuilds of all modules, including rebuilds and updates of nginx if one module gets updated.
> So its good that they are split up into separate templates.

Ok, let's just add a note to the nginx package.

^ permalink raw reply	[flat|nested] 43+ messages in thread

* Re: [PR REVIEW] New package: ngx_headers_more-0.33
  2021-04-16  2:06 [PR PATCH] New package: ngx_headers_more-0.33 AluminumTank
                   ` (24 preceding siblings ...)
  2021-08-14 20:15 ` paper42
@ 2021-08-14 20:21 ` Duncaen
  2021-08-14 20:24 ` paper42
                   ` (15 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: Duncaen @ 2021-08-14 20:21 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 261 bytes --]

New review comment by Duncaen on void-packages repository

https://github.com/void-linux/void-packages/pull/30257#discussion_r688987936

Comment:
INSTALL messages are not the right place for documentation, this should go into a readme file if really necessary.

^ permalink raw reply	[flat|nested] 43+ messages in thread

* Re: [PR REVIEW] New package: ngx_headers_more-0.33
  2021-04-16  2:06 [PR PATCH] New package: ngx_headers_more-0.33 AluminumTank
                   ` (25 preceding siblings ...)
  2021-08-14 20:21 ` Duncaen
@ 2021-08-14 20:24 ` paper42
  2021-08-14 20:31 ` Duncaen
                   ` (14 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: paper42 @ 2021-08-14 20:24 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 176 bytes --]

New review comment by paper42 on void-packages repository

https://github.com/void-linux/void-packages/pull/30257#discussion_r688988180

Comment:
What are these variables for?

^ permalink raw reply	[flat|nested] 43+ messages in thread

* Re: [PR REVIEW] New package: ngx_headers_more-0.33
  2021-04-16  2:06 [PR PATCH] New package: ngx_headers_more-0.33 AluminumTank
                   ` (26 preceding siblings ...)
  2021-08-14 20:24 ` paper42
@ 2021-08-14 20:31 ` Duncaen
  2021-08-14 20:36 ` Duncaen
                   ` (13 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: Duncaen @ 2021-08-14 20:31 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 384 bytes --]

New review comment by Duncaen on void-packages repository

https://github.com/void-linux/void-packages/pull/30257#discussion_r688988853

Comment:
I feel like something is pretty wrong here regarding cross builds, this just copied the nginx template with removing all the actual cross platform setup required.
Wouldn't be surprised if the cross compiled binaries use wrong sizes etc.

^ permalink raw reply	[flat|nested] 43+ messages in thread

* Re: New package: ngx_headers_more-0.33
  2021-04-16  2:06 [PR PATCH] New package: ngx_headers_more-0.33 AluminumTank
                   ` (27 preceding siblings ...)
  2021-08-14 20:31 ` Duncaen
@ 2021-08-14 20:36 ` Duncaen
  2021-08-16 12:39 ` [PR PATCH] [Updated] " AluminumTank
                   ` (12 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: Duncaen @ 2021-08-14 20:36 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 359 bytes --]

New comment by Duncaen on void-packages repository

https://github.com/void-linux/void-packages/pull/30257#issuecomment-898956222

Comment:
I also think this does not clean up the build dir correctly because of the multiple archives being extracted under different directory names.
Should probably use `create_wrksrc=yes` to get it cleaned up automatically.

^ permalink raw reply	[flat|nested] 43+ messages in thread

* Re: [PR PATCH] [Updated] New package: ngx_headers_more-0.33
  2021-04-16  2:06 [PR PATCH] New package: ngx_headers_more-0.33 AluminumTank
                   ` (28 preceding siblings ...)
  2021-08-14 20:36 ` Duncaen
@ 2021-08-16 12:39 ` AluminumTank
  2021-09-10 14:32 ` New package: nginx-mod-headers-more-0.33 TinfoilSubmarine
                   ` (11 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: AluminumTank @ 2021-08-16 12:39 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1834 bytes --]

There is an updated pull request by AluminumTank against master on the void-packages repository

https://github.com/AluminumTank/void-packages ngx_headers_more
https://github.com/void-linux/void-packages/pull/30257

New package: ngx_headers_more-0.33
<!-- Mark items with [x] where applicable -->

#### General
- [X] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)

#### Have the results of the proposed changes been tested?
- [X] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR

<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->
<!-- 
#### Does it build and run successfully? 
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [ ] I built this PR locally for my native architecture, (ARCH-LIBC)
- [ ] I built this PR locally for these architectures (if supported. mark crossbuilds):
  - [ ] aarch64-musl
  - [ ] armv7l
  - [ ] armv6l-musl
-->

This NGINX module is useful for quickly adding headers across all server blocks for an NGINX installation, which is useful for e.g. a [one-line opting-out of Google's FLoC](https://plausible.io/blog/google-floc).

A patch file from https://github.com/void-linux/void-packages/pull/30257.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-ngx_headers_more-30257.patch --]
[-- Type: text/x-diff, Size: 1893 bytes --]

From c797065aa2e78bfa8eaa5e1aa6ae123637269079 Mon Sep 17 00:00:00 2001
From: AluminumTank <joel@beckmeyer.us>
Date: Thu, 15 Apr 2021 20:51:13 -0400
Subject: [PATCH] New package: ngx_headers_more-0.33

---
 srcpkgs/nginx-mod-headers-more/template | 42 +++++++++++++++++++++++++
 1 file changed, 42 insertions(+)
 create mode 100644 srcpkgs/nginx-mod-headers-more/template

diff --git a/srcpkgs/nginx-mod-headers-more/template b/srcpkgs/nginx-mod-headers-more/template
new file mode 100644
index 000000000000..4223cc59ee12
--- /dev/null
+++ b/srcpkgs/nginx-mod-headers-more/template
@@ -0,0 +1,42 @@
+# Template file for 'nginx-mod-headers-more'
+pkgname=nginx-mod-headers-more
+version=0.33
+revision=1
+_nginx_version=1.18.0
+create_wrksrc=yes
+build_wrksrc="nginx-${_nginx_version}"
+build_style=gnu-makefile
+make_build_args="modules"
+hostmakedepends="pcre-devel"
+makedepends="${hostmakedepends}"
+depends="nginx"
+short_desc="Nginx module to set and clear input and output headers"
+maintainer="Joel Beckmeyer <joel@beckmeyer.us>"
+license="BSD-2-Clause"
+homepage="https://github.com/openresty/headers-more-nginx-module"
+distfiles="https://nginx.org/download/nginx-${_nginx_version}.tar.gz
+ https://github.com/openresty/headers-more-nginx-module/archive/v${version}.tar.gz"
+checksum="4c373e7ab5bf91d34a4f11a0c9496561061ba5eee6020db272a17a7228d35f99
+ a3dcbab117a9c103bc1ea5200fc00a7b7d2af97ff7fd525f16f8ac2632e30fbf"
+
+do_configure() {
+	cd ${wrksrc}/${build_wrksrc}
+	if [ "$CROSS_BUILD" ]; then
+		# fake configure run on host
+		unset CC CPP LD CFLAGS CPPFLAGS LDFLAGS
+	fi
+
+	./configure --with-compat \
+		--add-dynamic-module=../headers-more-nginx-module-${version}
+}
+
+pre_build() {
+	sed -i 's/-lcrypt/$(LDFLAGS) &/' objs/Makefile
+}
+
+do_install() {
+	vmkdir usr/lib/nginx
+	vinstall objs/ngx_http_headers_more_filter_module.so 644 usr/lib/nginx
+
+	vlicense LICENSE
+}

^ permalink raw reply	[flat|nested] 43+ messages in thread

* Re: New package: nginx-mod-headers-more-0.33
  2021-04-16  2:06 [PR PATCH] New package: ngx_headers_more-0.33 AluminumTank
                   ` (29 preceding siblings ...)
  2021-08-16 12:39 ` [PR PATCH] [Updated] " AluminumTank
@ 2021-09-10 14:32 ` TinfoilSubmarine
  2021-09-10 15:44 ` [PR PATCH] [Updated] " TinfoilSubmarine
                   ` (10 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: TinfoilSubmarine @ 2021-09-10 14:32 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 270 bytes --]

New comment by TinfoilSubmarine on void-packages repository

https://github.com/void-linux/void-packages/pull/30257#issuecomment-916950603

Comment:
Coming back to this... need to fix the cross build and add a note to nginx template about keeping nginx version in sync.

^ permalink raw reply	[flat|nested] 43+ messages in thread

* Re: [PR PATCH] [Updated] New package: nginx-mod-headers-more-0.33
  2021-04-16  2:06 [PR PATCH] New package: ngx_headers_more-0.33 AluminumTank
                   ` (30 preceding siblings ...)
  2021-09-10 14:32 ` New package: nginx-mod-headers-more-0.33 TinfoilSubmarine
@ 2021-09-10 15:44 ` TinfoilSubmarine
  2021-09-10 15:47 ` TinfoilSubmarine
                   ` (9 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: TinfoilSubmarine @ 2021-09-10 15:44 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1848 bytes --]

There is an updated pull request by TinfoilSubmarine against master on the void-packages repository

https://github.com/TinfoilSubmarine/void-packages ngx_headers_more
https://github.com/void-linux/void-packages/pull/30257

New package: nginx-mod-headers-more-0.33
<!-- Mark items with [x] where applicable -->

#### General
- [X] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)

#### Have the results of the proposed changes been tested?
- [X] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR

<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->
<!-- 
#### Does it build and run successfully? 
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [ ] I built this PR locally for my native architecture, (ARCH-LIBC)
- [ ] I built this PR locally for these architectures (if supported. mark crossbuilds):
  - [ ] aarch64-musl
  - [ ] armv7l
  - [ ] armv6l-musl
-->

This NGINX module is useful for quickly adding headers across all server blocks for an NGINX installation, which is useful for e.g. a [one-line opting-out of Google's FLoC](https://plausible.io/blog/google-floc).

A patch file from https://github.com/void-linux/void-packages/pull/30257.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-ngx_headers_more-30257.patch --]
[-- Type: text/x-diff, Size: 22138 bytes --]

From e3ffb7e09760a6dc073a8f0ef10cb48c179d686f Mon Sep 17 00:00:00 2001
From: AluminumTank <joel@beckmeyer.us>
Date: Thu, 15 Apr 2021 20:51:13 -0400
Subject: [PATCH] New package: ngx_headers_more-0.33

---
 .../files/ngx_auto_config.h.aarch64           | 529 ++++++++++++++++++
 .../files/ngx_auto_config.h.armv6l            | 529 ++++++++++++++++++
 .../files/ngx_auto_config.h.armv6l.patch      |  86 +++
 srcpkgs/nginx-mod-headers-more/template       |  49 ++
 srcpkgs/nginx/template                        |   4 +
 5 files changed, 1197 insertions(+)
 create mode 100644 srcpkgs/nginx-mod-headers-more/files/ngx_auto_config.h.aarch64
 create mode 100644 srcpkgs/nginx-mod-headers-more/files/ngx_auto_config.h.armv6l
 create mode 100644 srcpkgs/nginx-mod-headers-more/files/ngx_auto_config.h.armv6l.patch
 create mode 100644 srcpkgs/nginx-mod-headers-more/template

diff --git a/srcpkgs/nginx-mod-headers-more/files/ngx_auto_config.h.aarch64 b/srcpkgs/nginx-mod-headers-more/files/ngx_auto_config.h.aarch64
new file mode 100644
index 000000000000..3ce0f7e45f31
--- /dev/null
+++ b/srcpkgs/nginx-mod-headers-more/files/ngx_auto_config.h.aarch64
@@ -0,0 +1,529 @@
+#define NGX_CONFIGURE " --with-compat --add-dynamic-module=../headers-more-nginx-module-0.33"
+
+#ifndef NGX_COMPILER
+#define NGX_COMPILER  "gcc 10.2.1 20201203 (GCC) "
+#endif
+
+
+#ifndef NGX_HAVE_GCC_ATOMIC
+#define NGX_HAVE_GCC_ATOMIC  1
+#endif
+
+
+#ifndef NGX_HAVE_C99_VARIADIC_MACROS
+#define NGX_HAVE_C99_VARIADIC_MACROS  1
+#endif
+
+
+#ifndef NGX_HAVE_GCC_VARIADIC_MACROS
+#define NGX_HAVE_GCC_VARIADIC_MACROS  1
+#endif
+
+
+#ifndef NGX_HAVE_GCC_BSWAP64
+#define NGX_HAVE_GCC_BSWAP64  1
+#endif
+
+
+#ifndef NGX_HAVE_EPOLL
+#define NGX_HAVE_EPOLL  1
+#endif
+
+
+#ifndef NGX_HAVE_CLEAR_EVENT
+#define NGX_HAVE_CLEAR_EVENT  1
+#endif
+
+
+#ifndef NGX_HAVE_EPOLLRDHUP
+#define NGX_HAVE_EPOLLRDHUP  1
+#endif
+
+
+#ifndef NGX_HAVE_EPOLLEXCLUSIVE
+#define NGX_HAVE_EPOLLEXCLUSIVE  1
+#endif
+
+
+#ifndef NGX_HAVE_O_PATH
+#define NGX_HAVE_O_PATH  1
+#endif
+
+
+#ifndef NGX_HAVE_SENDFILE
+#define NGX_HAVE_SENDFILE  1
+#endif
+
+
+#ifndef NGX_HAVE_SENDFILE64
+#define NGX_HAVE_SENDFILE64  1
+#endif
+
+
+#ifndef NGX_HAVE_PR_SET_DUMPABLE
+#define NGX_HAVE_PR_SET_DUMPABLE  1
+#endif
+
+
+#ifndef NGX_HAVE_PR_SET_KEEPCAPS
+#define NGX_HAVE_PR_SET_KEEPCAPS  1
+#endif
+
+
+#ifndef NGX_HAVE_CAPABILITIES
+#define NGX_HAVE_CAPABILITIES  1
+#endif
+
+
+#ifndef NGX_HAVE_GNU_CRYPT_R
+#define NGX_HAVE_GNU_CRYPT_R  1
+#endif
+
+
+#ifndef NGX_ALIGNMENT
+#define NGX_ALIGNMENT  16
+#endif
+
+
+#ifndef NGX_CPU_CACHE_LINE
+#define NGX_CPU_CACHE_LINE  64
+#endif
+
+
+#define NGX_KQUEUE_UDATA_T  (void *)
+
+
+#ifndef NGX_HAVE_POSIX_FADVISE
+#define NGX_HAVE_POSIX_FADVISE  1
+#endif
+
+
+#ifndef NGX_HAVE_O_DIRECT
+#define NGX_HAVE_O_DIRECT  1
+#endif
+
+
+#ifndef NGX_HAVE_ALIGNED_DIRECTIO
+#define NGX_HAVE_ALIGNED_DIRECTIO  1
+#endif
+
+
+#ifndef NGX_HAVE_STATFS
+#define NGX_HAVE_STATFS  1
+#endif
+
+
+#ifndef NGX_HAVE_STATVFS
+#define NGX_HAVE_STATVFS  1
+#endif
+
+
+#ifndef NGX_HAVE_DLOPEN
+#define NGX_HAVE_DLOPEN  1
+#endif
+
+
+#ifndef NGX_HAVE_SCHED_YIELD
+#define NGX_HAVE_SCHED_YIELD  1
+#endif
+
+
+#ifndef NGX_HAVE_SCHED_SETAFFINITY
+#define NGX_HAVE_SCHED_SETAFFINITY  1
+#endif
+
+
+#ifndef NGX_HAVE_REUSEPORT
+#define NGX_HAVE_REUSEPORT  1
+#endif
+
+
+#ifndef NGX_HAVE_TRANSPARENT_PROXY
+#define NGX_HAVE_TRANSPARENT_PROXY  1
+#endif
+
+
+#ifndef NGX_HAVE_IP_BIND_ADDRESS_NO_PORT
+#define NGX_HAVE_IP_BIND_ADDRESS_NO_PORT  1
+#endif
+
+
+#ifndef NGX_HAVE_IP_PKTINFO
+#define NGX_HAVE_IP_PKTINFO  1
+#endif
+
+
+#ifndef NGX_HAVE_IPV6_RECVPKTINFO
+#define NGX_HAVE_IPV6_RECVPKTINFO  1
+#endif
+
+
+#ifndef NGX_HAVE_DEFERRED_ACCEPT
+#define NGX_HAVE_DEFERRED_ACCEPT  1
+#endif
+
+
+#ifndef NGX_HAVE_KEEPALIVE_TUNABLE
+#define NGX_HAVE_KEEPALIVE_TUNABLE  1
+#endif
+
+
+#ifndef NGX_HAVE_TCP_FASTOPEN
+#define NGX_HAVE_TCP_FASTOPEN  1
+#endif
+
+
+#ifndef NGX_HAVE_TCP_INFO
+#define NGX_HAVE_TCP_INFO  1
+#endif
+
+
+#ifndef NGX_HAVE_ACCEPT4
+#define NGX_HAVE_ACCEPT4  1
+#endif
+
+
+#ifndef NGX_HAVE_EVENTFD
+#define NGX_HAVE_EVENTFD  1
+#endif
+
+
+#ifndef NGX_HAVE_SYS_EVENTFD_H
+#define NGX_HAVE_SYS_EVENTFD_H  1
+#endif
+
+
+#ifndef NGX_HAVE_UNIX_DOMAIN
+#define NGX_HAVE_UNIX_DOMAIN  1
+#endif
+
+
+#ifndef NGX_PTR_SIZE
+#define NGX_PTR_SIZE  8
+#endif
+
+
+#ifndef NGX_SIG_ATOMIC_T_SIZE
+#define NGX_SIG_ATOMIC_T_SIZE  4
+#endif
+
+
+#ifndef NGX_HAVE_LITTLE_ENDIAN
+#define NGX_HAVE_LITTLE_ENDIAN  1
+#endif
+
+
+#ifndef NGX_MAX_SIZE_T_VALUE
+#define NGX_MAX_SIZE_T_VALUE  9223372036854775807LL
+#endif
+
+
+#ifndef NGX_SIZE_T_LEN
+#define NGX_SIZE_T_LEN  (sizeof("-9223372036854775808") - 1)
+#endif
+
+
+#ifndef NGX_MAX_OFF_T_VALUE
+#define NGX_MAX_OFF_T_VALUE  9223372036854775807LL
+#endif
+
+
+#ifndef NGX_OFF_T_LEN
+#define NGX_OFF_T_LEN  (sizeof("-9223372036854775808") - 1)
+#endif
+
+
+#ifndef NGX_TIME_T_SIZE
+#define NGX_TIME_T_SIZE  8
+#endif
+
+
+#ifndef NGX_TIME_T_LEN
+#define NGX_TIME_T_LEN  (sizeof("-9223372036854775808") - 1)
+#endif
+
+
+#ifndef NGX_MAX_TIME_T_VALUE
+#define NGX_MAX_TIME_T_VALUE  9223372036854775807LL
+#endif
+
+
+#ifndef NGX_HAVE_INET6
+#define NGX_HAVE_INET6  1
+#endif
+
+
+#ifndef NGX_HAVE_PREAD
+#define NGX_HAVE_PREAD  1
+#endif
+
+
+#ifndef NGX_HAVE_PWRITE
+#define NGX_HAVE_PWRITE  1
+#endif
+
+
+#ifndef NGX_HAVE_PWRITEV
+#define NGX_HAVE_PWRITEV  1
+#endif
+
+
+#ifndef NGX_SYS_NERR
+#define NGX_SYS_NERR  41
+#endif
+
+
+#ifndef NGX_HAVE_LOCALTIME_R
+#define NGX_HAVE_LOCALTIME_R  1
+#endif
+
+
+#ifndef NGX_HAVE_CLOCK_MONOTONIC
+#define NGX_HAVE_CLOCK_MONOTONIC  1
+#endif
+
+
+#ifndef NGX_HAVE_POSIX_MEMALIGN
+#define NGX_HAVE_POSIX_MEMALIGN  1
+#endif
+
+
+#ifndef NGX_HAVE_MEMALIGN
+#define NGX_HAVE_MEMALIGN  1
+#endif
+
+
+#ifndef NGX_HAVE_MAP_ANON
+#define NGX_HAVE_MAP_ANON  1
+#endif
+
+
+#ifndef NGX_HAVE_MAP_DEVZERO
+#define NGX_HAVE_MAP_DEVZERO  1
+#endif
+
+
+#ifndef NGX_HAVE_SYSVSHM
+#define NGX_HAVE_SYSVSHM  1
+#endif
+
+
+#ifndef NGX_HAVE_POSIX_SEM
+#define NGX_HAVE_POSIX_SEM  1
+#endif
+
+
+#ifndef NGX_HAVE_MSGHDR_MSG_CONTROL
+#define NGX_HAVE_MSGHDR_MSG_CONTROL  1
+#endif
+
+
+#ifndef NGX_HAVE_FIONBIO
+#define NGX_HAVE_FIONBIO  1
+#endif
+
+
+#ifndef NGX_HAVE_FIONREAD
+#define NGX_HAVE_FIONREAD  1
+#endif
+
+
+#ifndef NGX_HAVE_GMTOFF
+#define NGX_HAVE_GMTOFF  1
+#endif
+
+
+#ifndef NGX_HAVE_D_TYPE
+#define NGX_HAVE_D_TYPE  1
+#endif
+
+
+#ifndef NGX_HAVE_SC_NPROCESSORS_ONLN
+#define NGX_HAVE_SC_NPROCESSORS_ONLN  1
+#endif
+
+
+#ifndef NGX_HAVE_OPENAT
+#define NGX_HAVE_OPENAT  1
+#endif
+
+
+#ifndef NGX_HAVE_GETADDRINFO
+#define NGX_HAVE_GETADDRINFO  1
+#endif
+
+
+#ifndef NGX_HTTP_CACHE
+#define NGX_HTTP_CACHE  1
+#endif
+
+
+#ifndef NGX_HTTP_GZIP
+#define NGX_HTTP_GZIP  1
+#endif
+
+
+#ifndef NGX_HTTP_SSI
+#define NGX_HTTP_SSI  1
+#endif
+
+
+#ifndef NGX_CRYPT
+#define NGX_CRYPT  1
+#endif
+
+
+#ifndef NGX_HTTP_X_FORWARDED_FOR
+#define NGX_HTTP_X_FORWARDED_FOR  1
+#endif
+
+
+#ifndef NGX_HTTP_X_FORWARDED_FOR
+#define NGX_HTTP_X_FORWARDED_FOR  1
+#endif
+
+
+#ifndef NGX_HTTP_UPSTREAM_ZONE
+#define NGX_HTTP_UPSTREAM_ZONE  1
+#endif
+
+
+#ifndef NGX_COMPAT
+#define NGX_COMPAT  1
+#endif
+
+
+#ifndef NGX_HTTP_GZIP
+#define NGX_HTTP_GZIP  1
+#endif
+
+
+#ifndef NGX_HTTP_DAV
+#define NGX_HTTP_DAV  1
+#endif
+
+
+#ifndef NGX_HTTP_REALIP
+#define NGX_HTTP_REALIP  1
+#endif
+
+
+#ifndef NGX_HTTP_X_FORWARDED_FOR
+#define NGX_HTTP_X_FORWARDED_FOR  1
+#endif
+
+
+#ifndef NGX_HTTP_HEADERS
+#define NGX_HTTP_HEADERS  1
+#endif
+
+
+#ifndef NGX_HTTP_UPSTREAM_ZONE
+#define NGX_HTTP_UPSTREAM_ZONE  1
+#endif
+
+
+#ifndef NGX_STREAM_UPSTREAM_ZONE
+#define NGX_STREAM_UPSTREAM_ZONE  1
+#endif
+
+
+#ifndef NGX_PCRE
+#define NGX_PCRE  1
+#endif
+
+
+#ifndef NGX_HAVE_PCRE_JIT
+#define NGX_HAVE_PCRE_JIT  1
+#endif
+
+
+#ifndef NGX_ZLIB
+#define NGX_ZLIB  1
+#endif
+
+
+#ifndef NGX_PREFIX
+#define NGX_PREFIX  "/usr/local/nginx/"
+#endif
+
+
+#ifndef NGX_CONF_PREFIX
+#define NGX_CONF_PREFIX  "conf/"
+#endif
+
+
+#ifndef NGX_SBIN_PATH
+#define NGX_SBIN_PATH  "sbin/nginx"
+#endif
+
+
+#ifndef NGX_CONF_PATH
+#define NGX_CONF_PATH  "conf/nginx.conf"
+#endif
+
+
+#ifndef NGX_PID_PATH
+#define NGX_PID_PATH  "logs/nginx.pid"
+#endif
+
+
+#ifndef NGX_LOCK_PATH
+#define NGX_LOCK_PATH  "logs/nginx.lock"
+#endif
+
+
+#ifndef NGX_ERROR_LOG_PATH
+#define NGX_ERROR_LOG_PATH  "logs/error.log"
+#endif
+
+
+#ifndef NGX_HTTP_LOG_PATH
+#define NGX_HTTP_LOG_PATH  "logs/access.log"
+#endif
+
+
+#ifndef NGX_HTTP_CLIENT_TEMP_PATH
+#define NGX_HTTP_CLIENT_TEMP_PATH  "client_body_temp"
+#endif
+
+
+#ifndef NGX_HTTP_PROXY_TEMP_PATH
+#define NGX_HTTP_PROXY_TEMP_PATH  "proxy_temp"
+#endif
+
+
+#ifndef NGX_HTTP_FASTCGI_TEMP_PATH
+#define NGX_HTTP_FASTCGI_TEMP_PATH  "fastcgi_temp"
+#endif
+
+
+#ifndef NGX_HTTP_UWSGI_TEMP_PATH
+#define NGX_HTTP_UWSGI_TEMP_PATH  "uwsgi_temp"
+#endif
+
+
+#ifndef NGX_HTTP_SCGI_TEMP_PATH
+#define NGX_HTTP_SCGI_TEMP_PATH  "scgi_temp"
+#endif
+
+
+#ifndef NGX_SUPPRESS_WARN
+#define NGX_SUPPRESS_WARN  1
+#endif
+
+
+#ifndef NGX_SMP
+#define NGX_SMP  1
+#endif
+
+
+#ifndef NGX_USER
+#define NGX_USER  "nobody"
+#endif
+
+
+#ifndef NGX_GROUP
+#define NGX_GROUP  "nogroup"
+#endif
+
diff --git a/srcpkgs/nginx-mod-headers-more/files/ngx_auto_config.h.armv6l b/srcpkgs/nginx-mod-headers-more/files/ngx_auto_config.h.armv6l
new file mode 100644
index 000000000000..b1d8bc06629d
--- /dev/null
+++ b/srcpkgs/nginx-mod-headers-more/files/ngx_auto_config.h.armv6l
@@ -0,0 +1,529 @@
+#define NGX_CONFIGURE " --with-compat --add-dynamic-module=../headers-more-nginx-module-0.33"
+
+#ifndef NGX_COMPILER
+#define NGX_COMPILER  "gcc 10.2.1 20201203 (GCC) "
+#endif
+
+
+#ifndef NGX_HAVE_GCC_ATOMIC
+#define NGX_HAVE_GCC_ATOMIC  1
+#endif
+
+
+#ifndef NGX_HAVE_C99_VARIADIC_MACROS
+#define NGX_HAVE_C99_VARIADIC_MACROS  1
+#endif
+
+
+#ifndef NGX_HAVE_GCC_VARIADIC_MACROS
+#define NGX_HAVE_GCC_VARIADIC_MACROS  1
+#endif
+
+
+#ifndef NGX_HAVE_GCC_BSWAP64
+#define NGX_HAVE_GCC_BSWAP64  1
+#endif
+
+
+#ifndef NGX_HAVE_EPOLL
+#define NGX_HAVE_EPOLL  1
+#endif
+
+
+#ifndef NGX_HAVE_CLEAR_EVENT
+#define NGX_HAVE_CLEAR_EVENT  1
+#endif
+
+
+#ifndef NGX_HAVE_EPOLLRDHUP
+#define NGX_HAVE_EPOLLRDHUP  1
+#endif
+
+
+#ifndef NGX_HAVE_EPOLLEXCLUSIVE
+#define NGX_HAVE_EPOLLEXCLUSIVE  1
+#endif
+
+
+#ifndef NGX_HAVE_O_PATH
+#define NGX_HAVE_O_PATH  1
+#endif
+
+
+#ifndef NGX_HAVE_SENDFILE
+#define NGX_HAVE_SENDFILE  1
+#endif
+
+
+#ifndef NGX_HAVE_SENDFILE64
+#define NGX_HAVE_SENDFILE64  1
+#endif
+
+
+#ifndef NGX_HAVE_PR_SET_DUMPABLE
+#define NGX_HAVE_PR_SET_DUMPABLE  1
+#endif
+
+
+#ifndef NGX_HAVE_PR_SET_KEEPCAPS
+#define NGX_HAVE_PR_SET_KEEPCAPS  1
+#endif
+
+
+#ifndef NGX_HAVE_CAPABILITIES
+#define NGX_HAVE_CAPABILITIES  1
+#endif
+
+
+#ifndef NGX_HAVE_GNU_CRYPT_R
+#define NGX_HAVE_GNU_CRYPT_R  1
+#endif
+
+
+#ifndef NGX_ALIGNMENT
+#define NGX_ALIGNMENT  16
+#endif
+
+
+#ifndef NGX_CPU_CACHE_LINE
+#define NGX_CPU_CACHE_LINE  32
+#endif
+
+
+#define NGX_KQUEUE_UDATA_T  (void *)
+
+
+#ifndef NGX_HAVE_POSIX_FADVISE
+#define NGX_HAVE_POSIX_FADVISE  1
+#endif
+
+
+#ifndef NGX_HAVE_O_DIRECT
+#define NGX_HAVE_O_DIRECT  1
+#endif
+
+
+#ifndef NGX_HAVE_ALIGNED_DIRECTIO
+#define NGX_HAVE_ALIGNED_DIRECTIO  1
+#endif
+
+
+#ifndef NGX_HAVE_STATFS
+#define NGX_HAVE_STATFS  1
+#endif
+
+
+#ifndef NGX_HAVE_STATVFS
+#define NGX_HAVE_STATVFS  1
+#endif
+
+
+#ifndef NGX_HAVE_DLOPEN
+#define NGX_HAVE_DLOPEN  1
+#endif
+
+
+#ifndef NGX_HAVE_SCHED_YIELD
+#define NGX_HAVE_SCHED_YIELD  1
+#endif
+
+
+#ifndef NGX_HAVE_SCHED_SETAFFINITY
+#define NGX_HAVE_SCHED_SETAFFINITY  1
+#endif
+
+
+#ifndef NGX_HAVE_REUSEPORT
+#define NGX_HAVE_REUSEPORT  1
+#endif
+
+
+#ifndef NGX_HAVE_TRANSPARENT_PROXY
+#define NGX_HAVE_TRANSPARENT_PROXY  1
+#endif
+
+
+#ifndef NGX_HAVE_IP_BIND_ADDRESS_NO_PORT
+#define NGX_HAVE_IP_BIND_ADDRESS_NO_PORT  1
+#endif
+
+
+#ifndef NGX_HAVE_IP_PKTINFO
+#define NGX_HAVE_IP_PKTINFO  1
+#endif
+
+
+#ifndef NGX_HAVE_IPV6_RECVPKTINFO
+#define NGX_HAVE_IPV6_RECVPKTINFO  1
+#endif
+
+
+#ifndef NGX_HAVE_DEFERRED_ACCEPT
+#define NGX_HAVE_DEFERRED_ACCEPT  1
+#endif
+
+
+#ifndef NGX_HAVE_KEEPALIVE_TUNABLE
+#define NGX_HAVE_KEEPALIVE_TUNABLE  1
+#endif
+
+
+#ifndef NGX_HAVE_TCP_FASTOPEN
+#define NGX_HAVE_TCP_FASTOPEN  1
+#endif
+
+
+#ifndef NGX_HAVE_TCP_INFO
+#define NGX_HAVE_TCP_INFO  1
+#endif
+
+
+#ifndef NGX_HAVE_ACCEPT4
+#define NGX_HAVE_ACCEPT4  1
+#endif
+
+
+#ifndef NGX_HAVE_EVENTFD
+#define NGX_HAVE_EVENTFD  1
+#endif
+
+
+#ifndef NGX_HAVE_SYS_EVENTFD_H
+#define NGX_HAVE_SYS_EVENTFD_H  1
+#endif
+
+
+#ifndef NGX_HAVE_UNIX_DOMAIN
+#define NGX_HAVE_UNIX_DOMAIN  1
+#endif
+
+
+#ifndef NGX_PTR_SIZE
+#define NGX_PTR_SIZE  4
+#endif
+
+
+#ifndef NGX_SIG_ATOMIC_T_SIZE
+#define NGX_SIG_ATOMIC_T_SIZE  4
+#endif
+
+
+#ifndef NGX_HAVE_LITTLE_ENDIAN
+#define NGX_HAVE_LITTLE_ENDIAN  1
+#endif
+
+
+#ifndef NGX_MAX_SIZE_T_VALUE
+#define NGX_MAX_SIZE_T_VALUE  2147483647
+#endif
+
+
+#ifndef NGX_SIZE_T_LEN
+#define NGX_SIZE_T_LEN  (sizeof("-2147483648") - 1)
+#endif
+
+
+#ifndef NGX_MAX_OFF_T_VALUE
+#define NGX_MAX_OFF_T_VALUE  9223372036854775807LL
+#endif
+
+
+#ifndef NGX_OFF_T_LEN
+#define NGX_OFF_T_LEN  (sizeof("-9223372036854775808") - 1)
+#endif
+
+
+#ifndef NGX_TIME_T_SIZE
+#define NGX_TIME_T_SIZE  4
+#endif
+
+
+#ifndef NGX_TIME_T_LEN
+#define NGX_TIME_T_LEN  (sizeof("-2147483648") - 1)
+#endif
+
+
+#ifndef NGX_MAX_TIME_T_VALUE
+#define NGX_MAX_TIME_T_VALUE  2147483647
+#endif
+
+
+#ifndef NGX_HAVE_INET6
+#define NGX_HAVE_INET6  1
+#endif
+
+
+#ifndef NGX_HAVE_PREAD
+#define NGX_HAVE_PREAD  1
+#endif
+
+
+#ifndef NGX_HAVE_PWRITE
+#define NGX_HAVE_PWRITE  1
+#endif
+
+
+#ifndef NGX_HAVE_PWRITEV
+#define NGX_HAVE_PWRITEV  1
+#endif
+
+
+#ifndef NGX_SYS_NERR
+#define NGX_SYS_NERR  41
+#endif
+
+
+#ifndef NGX_HAVE_LOCALTIME_R
+#define NGX_HAVE_LOCALTIME_R  1
+#endif
+
+
+#ifndef NGX_HAVE_CLOCK_MONOTONIC
+#define NGX_HAVE_CLOCK_MONOTONIC  1
+#endif
+
+
+#ifndef NGX_HAVE_POSIX_MEMALIGN
+#define NGX_HAVE_POSIX_MEMALIGN  1
+#endif
+
+
+#ifndef NGX_HAVE_MEMALIGN
+#define NGX_HAVE_MEMALIGN  1
+#endif
+
+
+#ifndef NGX_HAVE_MAP_ANON
+#define NGX_HAVE_MAP_ANON  1
+#endif
+
+
+#ifndef NGX_HAVE_MAP_DEVZERO
+#define NGX_HAVE_MAP_DEVZERO  1
+#endif
+
+
+#ifndef NGX_HAVE_SYSVSHM
+#define NGX_HAVE_SYSVSHM  1
+#endif
+
+
+#ifndef NGX_HAVE_POSIX_SEM
+#define NGX_HAVE_POSIX_SEM  1
+#endif
+
+
+#ifndef NGX_HAVE_MSGHDR_MSG_CONTROL
+#define NGX_HAVE_MSGHDR_MSG_CONTROL  1
+#endif
+
+
+#ifndef NGX_HAVE_FIONBIO
+#define NGX_HAVE_FIONBIO  1
+#endif
+
+
+#ifndef NGX_HAVE_FIONREAD
+#define NGX_HAVE_FIONREAD  1
+#endif
+
+
+#ifndef NGX_HAVE_GMTOFF
+#define NGX_HAVE_GMTOFF  1
+#endif
+
+
+#ifndef NGX_HAVE_D_TYPE
+#define NGX_HAVE_D_TYPE  1
+#endif
+
+
+#ifndef NGX_HAVE_SC_NPROCESSORS_ONLN
+#define NGX_HAVE_SC_NPROCESSORS_ONLN  1
+#endif
+
+
+#ifndef NGX_HAVE_OPENAT
+#define NGX_HAVE_OPENAT  1
+#endif
+
+
+#ifndef NGX_HAVE_GETADDRINFO
+#define NGX_HAVE_GETADDRINFO  1
+#endif
+
+
+#ifndef NGX_HTTP_CACHE
+#define NGX_HTTP_CACHE  1
+#endif
+
+
+#ifndef NGX_HTTP_GZIP
+#define NGX_HTTP_GZIP  1
+#endif
+
+
+#ifndef NGX_HTTP_SSI
+#define NGX_HTTP_SSI  1
+#endif
+
+
+#ifndef NGX_CRYPT
+#define NGX_CRYPT  1
+#endif
+
+
+#ifndef NGX_HTTP_X_FORWARDED_FOR
+#define NGX_HTTP_X_FORWARDED_FOR  1
+#endif
+
+
+#ifndef NGX_HTTP_X_FORWARDED_FOR
+#define NGX_HTTP_X_FORWARDED_FOR  1
+#endif
+
+
+#ifndef NGX_HTTP_UPSTREAM_ZONE
+#define NGX_HTTP_UPSTREAM_ZONE  1
+#endif
+
+
+#ifndef NGX_COMPAT
+#define NGX_COMPAT  1
+#endif
+
+
+#ifndef NGX_HTTP_GZIP
+#define NGX_HTTP_GZIP  1
+#endif
+
+
+#ifndef NGX_HTTP_DAV
+#define NGX_HTTP_DAV  1
+#endif
+
+
+#ifndef NGX_HTTP_REALIP
+#define NGX_HTTP_REALIP  1
+#endif
+
+
+#ifndef NGX_HTTP_X_FORWARDED_FOR
+#define NGX_HTTP_X_FORWARDED_FOR  1
+#endif
+
+
+#ifndef NGX_HTTP_HEADERS
+#define NGX_HTTP_HEADERS  1
+#endif
+
+
+#ifndef NGX_HTTP_UPSTREAM_ZONE
+#define NGX_HTTP_UPSTREAM_ZONE  1
+#endif
+
+
+#ifndef NGX_STREAM_UPSTREAM_ZONE
+#define NGX_STREAM_UPSTREAM_ZONE  1
+#endif
+
+
+#ifndef NGX_PCRE
+#define NGX_PCRE  1
+#endif
+
+
+#ifndef NGX_HAVE_PCRE_JIT
+#define NGX_HAVE_PCRE_JIT  1
+#endif
+
+
+#ifndef NGX_ZLIB
+#define NGX_ZLIB  1
+#endif
+
+
+#ifndef NGX_PREFIX
+#define NGX_PREFIX  "/usr/local/nginx/"
+#endif
+
+
+#ifndef NGX_CONF_PREFIX
+#define NGX_CONF_PREFIX  "conf/"
+#endif
+
+
+#ifndef NGX_SBIN_PATH
+#define NGX_SBIN_PATH  "sbin/nginx"
+#endif
+
+
+#ifndef NGX_CONF_PATH
+#define NGX_CONF_PATH  "conf/nginx.conf"
+#endif
+
+
+#ifndef NGX_PID_PATH
+#define NGX_PID_PATH  "logs/nginx.pid"
+#endif
+
+
+#ifndef NGX_LOCK_PATH
+#define NGX_LOCK_PATH  "logs/nginx.lock"
+#endif
+
+
+#ifndef NGX_ERROR_LOG_PATH
+#define NGX_ERROR_LOG_PATH  "logs/error.log"
+#endif
+
+
+#ifndef NGX_HTTP_LOG_PATH
+#define NGX_HTTP_LOG_PATH  "logs/access.log"
+#endif
+
+
+#ifndef NGX_HTTP_CLIENT_TEMP_PATH
+#define NGX_HTTP_CLIENT_TEMP_PATH  "client_body_temp"
+#endif
+
+
+#ifndef NGX_HTTP_PROXY_TEMP_PATH
+#define NGX_HTTP_PROXY_TEMP_PATH  "proxy_temp"
+#endif
+
+
+#ifndef NGX_HTTP_FASTCGI_TEMP_PATH
+#define NGX_HTTP_FASTCGI_TEMP_PATH  "fastcgi_temp"
+#endif
+
+
+#ifndef NGX_HTTP_UWSGI_TEMP_PATH
+#define NGX_HTTP_UWSGI_TEMP_PATH  "uwsgi_temp"
+#endif
+
+
+#ifndef NGX_HTTP_SCGI_TEMP_PATH
+#define NGX_HTTP_SCGI_TEMP_PATH  "scgi_temp"
+#endif
+
+
+#ifndef NGX_SUPPRESS_WARN
+#define NGX_SUPPRESS_WARN  1
+#endif
+
+
+#ifndef NGX_SMP
+#define NGX_SMP  1
+#endif
+
+
+#ifndef NGX_USER
+#define NGX_USER  "nobody"
+#endif
+
+
+#ifndef NGX_GROUP
+#define NGX_GROUP  "nogroup"
+#endif
+
diff --git a/srcpkgs/nginx-mod-headers-more/files/ngx_auto_config.h.armv6l.patch b/srcpkgs/nginx-mod-headers-more/files/ngx_auto_config.h.armv6l.patch
new file mode 100644
index 000000000000..aa35606688c3
--- /dev/null
+++ b/srcpkgs/nginx-mod-headers-more/files/ngx_auto_config.h.armv6l.patch
@@ -0,0 +1,86 @@
+Note: this file is provided as a reference. It is not used when building nginx.
+
+On ARM targets, certain config variables must be changed to accommodate the
+architecture. This typically means translating 64 bit values to 32 bit. When
+updating nginx, the difference between objs/ngx_auto_config.h and the vendored
+srcpkgs/nginx/files/ngx_auto_config.h.armv6l should match this patch. Additional
+definitions may need to be added to the vendored config file. If these
+definitions contain architecture specific values like those below, they need to
+be translated to their 32 bit equivalents.
+
+--- objs/ngx_auto_config.h.orig	2019-02-09 22:49:23.758277257 -0800
++++ objs/ngx_auto_config.h	2019-02-09 23:13:01.326692988 -0800
+@@ -80,13 +80,13 @@
+ #endif
+ 
+ 
+-#ifndef NGX_HAVE_NONALIGNED
+-#define NGX_HAVE_NONALIGNED  1
++#ifndef NGX_ALIGNMENT
++#define NGX_ALIGNMENT  16
+ #endif
+ 
+ 
+ #ifndef NGX_CPU_CACHE_LINE
+-#define NGX_CPU_CACHE_LINE  64
++#define NGX_CPU_CACHE_LINE  32
+ #endif
+ 
+ 
+@@ -204,7 +204,7 @@
+ 
+ 
+ #ifndef NGX_PTR_SIZE
+-#define NGX_PTR_SIZE  8
++#define NGX_PTR_SIZE  4
+ #endif
+ 
+ 
+@@ -219,12 +219,12 @@
+ 
+ 
+ #ifndef NGX_MAX_SIZE_T_VALUE
+-#define NGX_MAX_SIZE_T_VALUE  9223372036854775807LL
++#define NGX_MAX_SIZE_T_VALUE  2147483647
+ #endif
+ 
+ 
+ #ifndef NGX_SIZE_T_LEN
+-#define NGX_SIZE_T_LEN  (sizeof("-9223372036854775808") - 1)
++#define NGX_SIZE_T_LEN  (sizeof("-2147483648") - 1)
+ #endif
+ 
+ 
+@@ -239,17 +239,17 @@
+ 
+ 
+ #ifndef NGX_TIME_T_SIZE
+-#define NGX_TIME_T_SIZE  8
++#define NGX_TIME_T_SIZE  4
+ #endif
+ 
+ 
+ #ifndef NGX_TIME_T_LEN
+-#define NGX_TIME_T_LEN  (sizeof("-9223372036854775808") - 1)
++#define NGX_TIME_T_LEN  (sizeof("-2147483648") - 1)
+ #endif
+ 
+ 
+ #ifndef NGX_MAX_TIME_T_VALUE
+-#define NGX_MAX_TIME_T_VALUE  9223372036854775807LL
++#define NGX_MAX_TIME_T_VALUE  2147483647
+ #endif
+ 
+ 
+@@ -343,11 +343,6 @@
+ #endif
+ 
+ 
+-#ifndef NGX_HAVE_LEVEL1_DCACHE_LINESIZE
+-#define NGX_HAVE_LEVEL1_DCACHE_LINESIZE  1
+-#endif
+-
+-
+ #ifndef NGX_HAVE_OPENAT
+ #define NGX_HAVE_OPENAT  1
+ #endif
diff --git a/srcpkgs/nginx-mod-headers-more/template b/srcpkgs/nginx-mod-headers-more/template
new file mode 100644
index 000000000000..b9df020fbca4
--- /dev/null
+++ b/srcpkgs/nginx-mod-headers-more/template
@@ -0,0 +1,49 @@
+# Template file for 'nginx-mod-headers-more'
+pkgname=nginx-mod-headers-more
+version=0.33
+revision=1
+_nginx_version=1.18.0
+create_wrksrc=yes
+build_wrksrc="nginx-${_nginx_version}"
+build_style=gnu-makefile
+make_build_args="modules"
+hostmakedepends="pcre-devel"
+makedepends="${hostmakedepends} openssl-devel"
+depends="nginx"
+short_desc="Nginx module to set and clear input and output headers"
+maintainer="Joel Beckmeyer <joel@beckmeyer.us>"
+license="BSD-2-Clause"
+homepage="https://github.com/openresty/headers-more-nginx-module"
+distfiles="https://nginx.org/download/nginx-${_nginx_version}.tar.gz
+ https://github.com/openresty/headers-more-nginx-module/archive/v${version}.tar.gz"
+checksum="4c373e7ab5bf91d34a4f11a0c9496561061ba5eee6020db272a17a7228d35f99
+ a3dcbab117a9c103bc1ea5200fc00a7b7d2af97ff7fd525f16f8ac2632e30fbf"
+
+do_configure() {
+	cd ${wrksrc}/${build_wrksrc}
+	if [ "$CROSS_BUILD" ]; then
+		# fake configure run on host
+		unset CC CPP LD CFLAGS CPPFLAGS LDFLAGS
+	fi
+
+	./configure --with-compat \
+		--add-dynamic-module=../headers-more-nginx-module-${version}
+}
+
+pre_build() {
+	if [ "$CROSS_BUILD" ]; then
+		case "$XBPS_TARGET_MACHINE" in
+			arm*) cp "${FILESDIR}/ngx_auto_config.h.armv6l" objs/ngx_auto_config.h;;
+			aarch64*) cp "${FILESDIR}/ngx_auto_config.h.aarch64" objs/ngx_auto_config.h;;
+		esac
+	fi
+
+	sed -i 's/-lcrypt/$(LDFLAGS) &/' objs/Makefile
+}
+
+do_install() {
+	vmkdir usr/lib/nginx
+	vinstall objs/ngx_http_headers_more_filter_module.so 644 usr/lib/nginx
+
+	vlicense LICENSE
+}
diff --git a/srcpkgs/nginx/template b/srcpkgs/nginx/template
index 73b460d23e53..df6d913bc121 100644
--- a/srcpkgs/nginx/template
+++ b/srcpkgs/nginx/template
@@ -1,6 +1,10 @@
 # Template file for 'nginx'
 pkgname=nginx
 version=1.18.0
+# NOTE:
+# version must be kept in sync with all packaged modules (nginx-mod-*) as nginx
+# modules are built agaist the nginx source tree.
+# See srcpkgs/nginx-mod-headers-more/template for an example.
 revision=6
 build_style=gnu-makefile
 hostmakedepends="openssl-devel pcre-devel $(vopt_if geoip geoip-devel)"

^ permalink raw reply	[flat|nested] 43+ messages in thread

* Re: [PR PATCH] [Updated] New package: nginx-mod-headers-more-0.33
  2021-04-16  2:06 [PR PATCH] New package: ngx_headers_more-0.33 AluminumTank
                   ` (31 preceding siblings ...)
  2021-09-10 15:44 ` [PR PATCH] [Updated] " TinfoilSubmarine
@ 2021-09-10 15:47 ` TinfoilSubmarine
  2021-09-10 15:52 ` TinfoilSubmarine
                   ` (8 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: TinfoilSubmarine @ 2021-09-10 15:47 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1848 bytes --]

There is an updated pull request by TinfoilSubmarine against master on the void-packages repository

https://github.com/TinfoilSubmarine/void-packages ngx_headers_more
https://github.com/void-linux/void-packages/pull/30257

New package: nginx-mod-headers-more-0.33
<!-- Mark items with [x] where applicable -->

#### General
- [X] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)

#### Have the results of the proposed changes been tested?
- [X] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR

<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->
<!-- 
#### Does it build and run successfully? 
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [ ] I built this PR locally for my native architecture, (ARCH-LIBC)
- [ ] I built this PR locally for these architectures (if supported. mark crossbuilds):
  - [ ] aarch64-musl
  - [ ] armv7l
  - [ ] armv6l-musl
-->

This NGINX module is useful for quickly adding headers across all server blocks for an NGINX installation, which is useful for e.g. a [one-line opting-out of Google's FLoC](https://plausible.io/blog/google-floc).

A patch file from https://github.com/void-linux/void-packages/pull/30257.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-ngx_headers_more-30257.patch --]
[-- Type: text/x-diff, Size: 22143 bytes --]

From 539b0c5a49d6af0cec1ab7409c2b56715dba6650 Mon Sep 17 00:00:00 2001
From: AluminumTank <joel@beckmeyer.us>
Date: Thu, 15 Apr 2021 20:51:13 -0400
Subject: [PATCH] New package: ngx_headers_more-0.33

---
 .../files/ngx_auto_config.h.aarch64           | 529 ++++++++++++++++++
 .../files/ngx_auto_config.h.armv6l            | 529 ++++++++++++++++++
 .../files/ngx_auto_config.h.armv6l.patch      |  86 +++
 srcpkgs/nginx-mod-headers-more/template       |  49 ++
 srcpkgs/nginx/template                        |   4 +
 5 files changed, 1197 insertions(+)
 create mode 100644 srcpkgs/nginx-mod-headers-more/files/ngx_auto_config.h.aarch64
 create mode 100644 srcpkgs/nginx-mod-headers-more/files/ngx_auto_config.h.armv6l
 create mode 100644 srcpkgs/nginx-mod-headers-more/files/ngx_auto_config.h.armv6l.patch
 create mode 100644 srcpkgs/nginx-mod-headers-more/template

diff --git a/srcpkgs/nginx-mod-headers-more/files/ngx_auto_config.h.aarch64 b/srcpkgs/nginx-mod-headers-more/files/ngx_auto_config.h.aarch64
new file mode 100644
index 000000000000..3ce0f7e45f31
--- /dev/null
+++ b/srcpkgs/nginx-mod-headers-more/files/ngx_auto_config.h.aarch64
@@ -0,0 +1,529 @@
+#define NGX_CONFIGURE " --with-compat --add-dynamic-module=../headers-more-nginx-module-0.33"
+
+#ifndef NGX_COMPILER
+#define NGX_COMPILER  "gcc 10.2.1 20201203 (GCC) "
+#endif
+
+
+#ifndef NGX_HAVE_GCC_ATOMIC
+#define NGX_HAVE_GCC_ATOMIC  1
+#endif
+
+
+#ifndef NGX_HAVE_C99_VARIADIC_MACROS
+#define NGX_HAVE_C99_VARIADIC_MACROS  1
+#endif
+
+
+#ifndef NGX_HAVE_GCC_VARIADIC_MACROS
+#define NGX_HAVE_GCC_VARIADIC_MACROS  1
+#endif
+
+
+#ifndef NGX_HAVE_GCC_BSWAP64
+#define NGX_HAVE_GCC_BSWAP64  1
+#endif
+
+
+#ifndef NGX_HAVE_EPOLL
+#define NGX_HAVE_EPOLL  1
+#endif
+
+
+#ifndef NGX_HAVE_CLEAR_EVENT
+#define NGX_HAVE_CLEAR_EVENT  1
+#endif
+
+
+#ifndef NGX_HAVE_EPOLLRDHUP
+#define NGX_HAVE_EPOLLRDHUP  1
+#endif
+
+
+#ifndef NGX_HAVE_EPOLLEXCLUSIVE
+#define NGX_HAVE_EPOLLEXCLUSIVE  1
+#endif
+
+
+#ifndef NGX_HAVE_O_PATH
+#define NGX_HAVE_O_PATH  1
+#endif
+
+
+#ifndef NGX_HAVE_SENDFILE
+#define NGX_HAVE_SENDFILE  1
+#endif
+
+
+#ifndef NGX_HAVE_SENDFILE64
+#define NGX_HAVE_SENDFILE64  1
+#endif
+
+
+#ifndef NGX_HAVE_PR_SET_DUMPABLE
+#define NGX_HAVE_PR_SET_DUMPABLE  1
+#endif
+
+
+#ifndef NGX_HAVE_PR_SET_KEEPCAPS
+#define NGX_HAVE_PR_SET_KEEPCAPS  1
+#endif
+
+
+#ifndef NGX_HAVE_CAPABILITIES
+#define NGX_HAVE_CAPABILITIES  1
+#endif
+
+
+#ifndef NGX_HAVE_GNU_CRYPT_R
+#define NGX_HAVE_GNU_CRYPT_R  1
+#endif
+
+
+#ifndef NGX_ALIGNMENT
+#define NGX_ALIGNMENT  16
+#endif
+
+
+#ifndef NGX_CPU_CACHE_LINE
+#define NGX_CPU_CACHE_LINE  64
+#endif
+
+
+#define NGX_KQUEUE_UDATA_T  (void *)
+
+
+#ifndef NGX_HAVE_POSIX_FADVISE
+#define NGX_HAVE_POSIX_FADVISE  1
+#endif
+
+
+#ifndef NGX_HAVE_O_DIRECT
+#define NGX_HAVE_O_DIRECT  1
+#endif
+
+
+#ifndef NGX_HAVE_ALIGNED_DIRECTIO
+#define NGX_HAVE_ALIGNED_DIRECTIO  1
+#endif
+
+
+#ifndef NGX_HAVE_STATFS
+#define NGX_HAVE_STATFS  1
+#endif
+
+
+#ifndef NGX_HAVE_STATVFS
+#define NGX_HAVE_STATVFS  1
+#endif
+
+
+#ifndef NGX_HAVE_DLOPEN
+#define NGX_HAVE_DLOPEN  1
+#endif
+
+
+#ifndef NGX_HAVE_SCHED_YIELD
+#define NGX_HAVE_SCHED_YIELD  1
+#endif
+
+
+#ifndef NGX_HAVE_SCHED_SETAFFINITY
+#define NGX_HAVE_SCHED_SETAFFINITY  1
+#endif
+
+
+#ifndef NGX_HAVE_REUSEPORT
+#define NGX_HAVE_REUSEPORT  1
+#endif
+
+
+#ifndef NGX_HAVE_TRANSPARENT_PROXY
+#define NGX_HAVE_TRANSPARENT_PROXY  1
+#endif
+
+
+#ifndef NGX_HAVE_IP_BIND_ADDRESS_NO_PORT
+#define NGX_HAVE_IP_BIND_ADDRESS_NO_PORT  1
+#endif
+
+
+#ifndef NGX_HAVE_IP_PKTINFO
+#define NGX_HAVE_IP_PKTINFO  1
+#endif
+
+
+#ifndef NGX_HAVE_IPV6_RECVPKTINFO
+#define NGX_HAVE_IPV6_RECVPKTINFO  1
+#endif
+
+
+#ifndef NGX_HAVE_DEFERRED_ACCEPT
+#define NGX_HAVE_DEFERRED_ACCEPT  1
+#endif
+
+
+#ifndef NGX_HAVE_KEEPALIVE_TUNABLE
+#define NGX_HAVE_KEEPALIVE_TUNABLE  1
+#endif
+
+
+#ifndef NGX_HAVE_TCP_FASTOPEN
+#define NGX_HAVE_TCP_FASTOPEN  1
+#endif
+
+
+#ifndef NGX_HAVE_TCP_INFO
+#define NGX_HAVE_TCP_INFO  1
+#endif
+
+
+#ifndef NGX_HAVE_ACCEPT4
+#define NGX_HAVE_ACCEPT4  1
+#endif
+
+
+#ifndef NGX_HAVE_EVENTFD
+#define NGX_HAVE_EVENTFD  1
+#endif
+
+
+#ifndef NGX_HAVE_SYS_EVENTFD_H
+#define NGX_HAVE_SYS_EVENTFD_H  1
+#endif
+
+
+#ifndef NGX_HAVE_UNIX_DOMAIN
+#define NGX_HAVE_UNIX_DOMAIN  1
+#endif
+
+
+#ifndef NGX_PTR_SIZE
+#define NGX_PTR_SIZE  8
+#endif
+
+
+#ifndef NGX_SIG_ATOMIC_T_SIZE
+#define NGX_SIG_ATOMIC_T_SIZE  4
+#endif
+
+
+#ifndef NGX_HAVE_LITTLE_ENDIAN
+#define NGX_HAVE_LITTLE_ENDIAN  1
+#endif
+
+
+#ifndef NGX_MAX_SIZE_T_VALUE
+#define NGX_MAX_SIZE_T_VALUE  9223372036854775807LL
+#endif
+
+
+#ifndef NGX_SIZE_T_LEN
+#define NGX_SIZE_T_LEN  (sizeof("-9223372036854775808") - 1)
+#endif
+
+
+#ifndef NGX_MAX_OFF_T_VALUE
+#define NGX_MAX_OFF_T_VALUE  9223372036854775807LL
+#endif
+
+
+#ifndef NGX_OFF_T_LEN
+#define NGX_OFF_T_LEN  (sizeof("-9223372036854775808") - 1)
+#endif
+
+
+#ifndef NGX_TIME_T_SIZE
+#define NGX_TIME_T_SIZE  8
+#endif
+
+
+#ifndef NGX_TIME_T_LEN
+#define NGX_TIME_T_LEN  (sizeof("-9223372036854775808") - 1)
+#endif
+
+
+#ifndef NGX_MAX_TIME_T_VALUE
+#define NGX_MAX_TIME_T_VALUE  9223372036854775807LL
+#endif
+
+
+#ifndef NGX_HAVE_INET6
+#define NGX_HAVE_INET6  1
+#endif
+
+
+#ifndef NGX_HAVE_PREAD
+#define NGX_HAVE_PREAD  1
+#endif
+
+
+#ifndef NGX_HAVE_PWRITE
+#define NGX_HAVE_PWRITE  1
+#endif
+
+
+#ifndef NGX_HAVE_PWRITEV
+#define NGX_HAVE_PWRITEV  1
+#endif
+
+
+#ifndef NGX_SYS_NERR
+#define NGX_SYS_NERR  41
+#endif
+
+
+#ifndef NGX_HAVE_LOCALTIME_R
+#define NGX_HAVE_LOCALTIME_R  1
+#endif
+
+
+#ifndef NGX_HAVE_CLOCK_MONOTONIC
+#define NGX_HAVE_CLOCK_MONOTONIC  1
+#endif
+
+
+#ifndef NGX_HAVE_POSIX_MEMALIGN
+#define NGX_HAVE_POSIX_MEMALIGN  1
+#endif
+
+
+#ifndef NGX_HAVE_MEMALIGN
+#define NGX_HAVE_MEMALIGN  1
+#endif
+
+
+#ifndef NGX_HAVE_MAP_ANON
+#define NGX_HAVE_MAP_ANON  1
+#endif
+
+
+#ifndef NGX_HAVE_MAP_DEVZERO
+#define NGX_HAVE_MAP_DEVZERO  1
+#endif
+
+
+#ifndef NGX_HAVE_SYSVSHM
+#define NGX_HAVE_SYSVSHM  1
+#endif
+
+
+#ifndef NGX_HAVE_POSIX_SEM
+#define NGX_HAVE_POSIX_SEM  1
+#endif
+
+
+#ifndef NGX_HAVE_MSGHDR_MSG_CONTROL
+#define NGX_HAVE_MSGHDR_MSG_CONTROL  1
+#endif
+
+
+#ifndef NGX_HAVE_FIONBIO
+#define NGX_HAVE_FIONBIO  1
+#endif
+
+
+#ifndef NGX_HAVE_FIONREAD
+#define NGX_HAVE_FIONREAD  1
+#endif
+
+
+#ifndef NGX_HAVE_GMTOFF
+#define NGX_HAVE_GMTOFF  1
+#endif
+
+
+#ifndef NGX_HAVE_D_TYPE
+#define NGX_HAVE_D_TYPE  1
+#endif
+
+
+#ifndef NGX_HAVE_SC_NPROCESSORS_ONLN
+#define NGX_HAVE_SC_NPROCESSORS_ONLN  1
+#endif
+
+
+#ifndef NGX_HAVE_OPENAT
+#define NGX_HAVE_OPENAT  1
+#endif
+
+
+#ifndef NGX_HAVE_GETADDRINFO
+#define NGX_HAVE_GETADDRINFO  1
+#endif
+
+
+#ifndef NGX_HTTP_CACHE
+#define NGX_HTTP_CACHE  1
+#endif
+
+
+#ifndef NGX_HTTP_GZIP
+#define NGX_HTTP_GZIP  1
+#endif
+
+
+#ifndef NGX_HTTP_SSI
+#define NGX_HTTP_SSI  1
+#endif
+
+
+#ifndef NGX_CRYPT
+#define NGX_CRYPT  1
+#endif
+
+
+#ifndef NGX_HTTP_X_FORWARDED_FOR
+#define NGX_HTTP_X_FORWARDED_FOR  1
+#endif
+
+
+#ifndef NGX_HTTP_X_FORWARDED_FOR
+#define NGX_HTTP_X_FORWARDED_FOR  1
+#endif
+
+
+#ifndef NGX_HTTP_UPSTREAM_ZONE
+#define NGX_HTTP_UPSTREAM_ZONE  1
+#endif
+
+
+#ifndef NGX_COMPAT
+#define NGX_COMPAT  1
+#endif
+
+
+#ifndef NGX_HTTP_GZIP
+#define NGX_HTTP_GZIP  1
+#endif
+
+
+#ifndef NGX_HTTP_DAV
+#define NGX_HTTP_DAV  1
+#endif
+
+
+#ifndef NGX_HTTP_REALIP
+#define NGX_HTTP_REALIP  1
+#endif
+
+
+#ifndef NGX_HTTP_X_FORWARDED_FOR
+#define NGX_HTTP_X_FORWARDED_FOR  1
+#endif
+
+
+#ifndef NGX_HTTP_HEADERS
+#define NGX_HTTP_HEADERS  1
+#endif
+
+
+#ifndef NGX_HTTP_UPSTREAM_ZONE
+#define NGX_HTTP_UPSTREAM_ZONE  1
+#endif
+
+
+#ifndef NGX_STREAM_UPSTREAM_ZONE
+#define NGX_STREAM_UPSTREAM_ZONE  1
+#endif
+
+
+#ifndef NGX_PCRE
+#define NGX_PCRE  1
+#endif
+
+
+#ifndef NGX_HAVE_PCRE_JIT
+#define NGX_HAVE_PCRE_JIT  1
+#endif
+
+
+#ifndef NGX_ZLIB
+#define NGX_ZLIB  1
+#endif
+
+
+#ifndef NGX_PREFIX
+#define NGX_PREFIX  "/usr/local/nginx/"
+#endif
+
+
+#ifndef NGX_CONF_PREFIX
+#define NGX_CONF_PREFIX  "conf/"
+#endif
+
+
+#ifndef NGX_SBIN_PATH
+#define NGX_SBIN_PATH  "sbin/nginx"
+#endif
+
+
+#ifndef NGX_CONF_PATH
+#define NGX_CONF_PATH  "conf/nginx.conf"
+#endif
+
+
+#ifndef NGX_PID_PATH
+#define NGX_PID_PATH  "logs/nginx.pid"
+#endif
+
+
+#ifndef NGX_LOCK_PATH
+#define NGX_LOCK_PATH  "logs/nginx.lock"
+#endif
+
+
+#ifndef NGX_ERROR_LOG_PATH
+#define NGX_ERROR_LOG_PATH  "logs/error.log"
+#endif
+
+
+#ifndef NGX_HTTP_LOG_PATH
+#define NGX_HTTP_LOG_PATH  "logs/access.log"
+#endif
+
+
+#ifndef NGX_HTTP_CLIENT_TEMP_PATH
+#define NGX_HTTP_CLIENT_TEMP_PATH  "client_body_temp"
+#endif
+
+
+#ifndef NGX_HTTP_PROXY_TEMP_PATH
+#define NGX_HTTP_PROXY_TEMP_PATH  "proxy_temp"
+#endif
+
+
+#ifndef NGX_HTTP_FASTCGI_TEMP_PATH
+#define NGX_HTTP_FASTCGI_TEMP_PATH  "fastcgi_temp"
+#endif
+
+
+#ifndef NGX_HTTP_UWSGI_TEMP_PATH
+#define NGX_HTTP_UWSGI_TEMP_PATH  "uwsgi_temp"
+#endif
+
+
+#ifndef NGX_HTTP_SCGI_TEMP_PATH
+#define NGX_HTTP_SCGI_TEMP_PATH  "scgi_temp"
+#endif
+
+
+#ifndef NGX_SUPPRESS_WARN
+#define NGX_SUPPRESS_WARN  1
+#endif
+
+
+#ifndef NGX_SMP
+#define NGX_SMP  1
+#endif
+
+
+#ifndef NGX_USER
+#define NGX_USER  "nobody"
+#endif
+
+
+#ifndef NGX_GROUP
+#define NGX_GROUP  "nogroup"
+#endif
+
diff --git a/srcpkgs/nginx-mod-headers-more/files/ngx_auto_config.h.armv6l b/srcpkgs/nginx-mod-headers-more/files/ngx_auto_config.h.armv6l
new file mode 100644
index 000000000000..b1d8bc06629d
--- /dev/null
+++ b/srcpkgs/nginx-mod-headers-more/files/ngx_auto_config.h.armv6l
@@ -0,0 +1,529 @@
+#define NGX_CONFIGURE " --with-compat --add-dynamic-module=../headers-more-nginx-module-0.33"
+
+#ifndef NGX_COMPILER
+#define NGX_COMPILER  "gcc 10.2.1 20201203 (GCC) "
+#endif
+
+
+#ifndef NGX_HAVE_GCC_ATOMIC
+#define NGX_HAVE_GCC_ATOMIC  1
+#endif
+
+
+#ifndef NGX_HAVE_C99_VARIADIC_MACROS
+#define NGX_HAVE_C99_VARIADIC_MACROS  1
+#endif
+
+
+#ifndef NGX_HAVE_GCC_VARIADIC_MACROS
+#define NGX_HAVE_GCC_VARIADIC_MACROS  1
+#endif
+
+
+#ifndef NGX_HAVE_GCC_BSWAP64
+#define NGX_HAVE_GCC_BSWAP64  1
+#endif
+
+
+#ifndef NGX_HAVE_EPOLL
+#define NGX_HAVE_EPOLL  1
+#endif
+
+
+#ifndef NGX_HAVE_CLEAR_EVENT
+#define NGX_HAVE_CLEAR_EVENT  1
+#endif
+
+
+#ifndef NGX_HAVE_EPOLLRDHUP
+#define NGX_HAVE_EPOLLRDHUP  1
+#endif
+
+
+#ifndef NGX_HAVE_EPOLLEXCLUSIVE
+#define NGX_HAVE_EPOLLEXCLUSIVE  1
+#endif
+
+
+#ifndef NGX_HAVE_O_PATH
+#define NGX_HAVE_O_PATH  1
+#endif
+
+
+#ifndef NGX_HAVE_SENDFILE
+#define NGX_HAVE_SENDFILE  1
+#endif
+
+
+#ifndef NGX_HAVE_SENDFILE64
+#define NGX_HAVE_SENDFILE64  1
+#endif
+
+
+#ifndef NGX_HAVE_PR_SET_DUMPABLE
+#define NGX_HAVE_PR_SET_DUMPABLE  1
+#endif
+
+
+#ifndef NGX_HAVE_PR_SET_KEEPCAPS
+#define NGX_HAVE_PR_SET_KEEPCAPS  1
+#endif
+
+
+#ifndef NGX_HAVE_CAPABILITIES
+#define NGX_HAVE_CAPABILITIES  1
+#endif
+
+
+#ifndef NGX_HAVE_GNU_CRYPT_R
+#define NGX_HAVE_GNU_CRYPT_R  1
+#endif
+
+
+#ifndef NGX_ALIGNMENT
+#define NGX_ALIGNMENT  16
+#endif
+
+
+#ifndef NGX_CPU_CACHE_LINE
+#define NGX_CPU_CACHE_LINE  32
+#endif
+
+
+#define NGX_KQUEUE_UDATA_T  (void *)
+
+
+#ifndef NGX_HAVE_POSIX_FADVISE
+#define NGX_HAVE_POSIX_FADVISE  1
+#endif
+
+
+#ifndef NGX_HAVE_O_DIRECT
+#define NGX_HAVE_O_DIRECT  1
+#endif
+
+
+#ifndef NGX_HAVE_ALIGNED_DIRECTIO
+#define NGX_HAVE_ALIGNED_DIRECTIO  1
+#endif
+
+
+#ifndef NGX_HAVE_STATFS
+#define NGX_HAVE_STATFS  1
+#endif
+
+
+#ifndef NGX_HAVE_STATVFS
+#define NGX_HAVE_STATVFS  1
+#endif
+
+
+#ifndef NGX_HAVE_DLOPEN
+#define NGX_HAVE_DLOPEN  1
+#endif
+
+
+#ifndef NGX_HAVE_SCHED_YIELD
+#define NGX_HAVE_SCHED_YIELD  1
+#endif
+
+
+#ifndef NGX_HAVE_SCHED_SETAFFINITY
+#define NGX_HAVE_SCHED_SETAFFINITY  1
+#endif
+
+
+#ifndef NGX_HAVE_REUSEPORT
+#define NGX_HAVE_REUSEPORT  1
+#endif
+
+
+#ifndef NGX_HAVE_TRANSPARENT_PROXY
+#define NGX_HAVE_TRANSPARENT_PROXY  1
+#endif
+
+
+#ifndef NGX_HAVE_IP_BIND_ADDRESS_NO_PORT
+#define NGX_HAVE_IP_BIND_ADDRESS_NO_PORT  1
+#endif
+
+
+#ifndef NGX_HAVE_IP_PKTINFO
+#define NGX_HAVE_IP_PKTINFO  1
+#endif
+
+
+#ifndef NGX_HAVE_IPV6_RECVPKTINFO
+#define NGX_HAVE_IPV6_RECVPKTINFO  1
+#endif
+
+
+#ifndef NGX_HAVE_DEFERRED_ACCEPT
+#define NGX_HAVE_DEFERRED_ACCEPT  1
+#endif
+
+
+#ifndef NGX_HAVE_KEEPALIVE_TUNABLE
+#define NGX_HAVE_KEEPALIVE_TUNABLE  1
+#endif
+
+
+#ifndef NGX_HAVE_TCP_FASTOPEN
+#define NGX_HAVE_TCP_FASTOPEN  1
+#endif
+
+
+#ifndef NGX_HAVE_TCP_INFO
+#define NGX_HAVE_TCP_INFO  1
+#endif
+
+
+#ifndef NGX_HAVE_ACCEPT4
+#define NGX_HAVE_ACCEPT4  1
+#endif
+
+
+#ifndef NGX_HAVE_EVENTFD
+#define NGX_HAVE_EVENTFD  1
+#endif
+
+
+#ifndef NGX_HAVE_SYS_EVENTFD_H
+#define NGX_HAVE_SYS_EVENTFD_H  1
+#endif
+
+
+#ifndef NGX_HAVE_UNIX_DOMAIN
+#define NGX_HAVE_UNIX_DOMAIN  1
+#endif
+
+
+#ifndef NGX_PTR_SIZE
+#define NGX_PTR_SIZE  4
+#endif
+
+
+#ifndef NGX_SIG_ATOMIC_T_SIZE
+#define NGX_SIG_ATOMIC_T_SIZE  4
+#endif
+
+
+#ifndef NGX_HAVE_LITTLE_ENDIAN
+#define NGX_HAVE_LITTLE_ENDIAN  1
+#endif
+
+
+#ifndef NGX_MAX_SIZE_T_VALUE
+#define NGX_MAX_SIZE_T_VALUE  2147483647
+#endif
+
+
+#ifndef NGX_SIZE_T_LEN
+#define NGX_SIZE_T_LEN  (sizeof("-2147483648") - 1)
+#endif
+
+
+#ifndef NGX_MAX_OFF_T_VALUE
+#define NGX_MAX_OFF_T_VALUE  9223372036854775807LL
+#endif
+
+
+#ifndef NGX_OFF_T_LEN
+#define NGX_OFF_T_LEN  (sizeof("-9223372036854775808") - 1)
+#endif
+
+
+#ifndef NGX_TIME_T_SIZE
+#define NGX_TIME_T_SIZE  4
+#endif
+
+
+#ifndef NGX_TIME_T_LEN
+#define NGX_TIME_T_LEN  (sizeof("-2147483648") - 1)
+#endif
+
+
+#ifndef NGX_MAX_TIME_T_VALUE
+#define NGX_MAX_TIME_T_VALUE  2147483647
+#endif
+
+
+#ifndef NGX_HAVE_INET6
+#define NGX_HAVE_INET6  1
+#endif
+
+
+#ifndef NGX_HAVE_PREAD
+#define NGX_HAVE_PREAD  1
+#endif
+
+
+#ifndef NGX_HAVE_PWRITE
+#define NGX_HAVE_PWRITE  1
+#endif
+
+
+#ifndef NGX_HAVE_PWRITEV
+#define NGX_HAVE_PWRITEV  1
+#endif
+
+
+#ifndef NGX_SYS_NERR
+#define NGX_SYS_NERR  41
+#endif
+
+
+#ifndef NGX_HAVE_LOCALTIME_R
+#define NGX_HAVE_LOCALTIME_R  1
+#endif
+
+
+#ifndef NGX_HAVE_CLOCK_MONOTONIC
+#define NGX_HAVE_CLOCK_MONOTONIC  1
+#endif
+
+
+#ifndef NGX_HAVE_POSIX_MEMALIGN
+#define NGX_HAVE_POSIX_MEMALIGN  1
+#endif
+
+
+#ifndef NGX_HAVE_MEMALIGN
+#define NGX_HAVE_MEMALIGN  1
+#endif
+
+
+#ifndef NGX_HAVE_MAP_ANON
+#define NGX_HAVE_MAP_ANON  1
+#endif
+
+
+#ifndef NGX_HAVE_MAP_DEVZERO
+#define NGX_HAVE_MAP_DEVZERO  1
+#endif
+
+
+#ifndef NGX_HAVE_SYSVSHM
+#define NGX_HAVE_SYSVSHM  1
+#endif
+
+
+#ifndef NGX_HAVE_POSIX_SEM
+#define NGX_HAVE_POSIX_SEM  1
+#endif
+
+
+#ifndef NGX_HAVE_MSGHDR_MSG_CONTROL
+#define NGX_HAVE_MSGHDR_MSG_CONTROL  1
+#endif
+
+
+#ifndef NGX_HAVE_FIONBIO
+#define NGX_HAVE_FIONBIO  1
+#endif
+
+
+#ifndef NGX_HAVE_FIONREAD
+#define NGX_HAVE_FIONREAD  1
+#endif
+
+
+#ifndef NGX_HAVE_GMTOFF
+#define NGX_HAVE_GMTOFF  1
+#endif
+
+
+#ifndef NGX_HAVE_D_TYPE
+#define NGX_HAVE_D_TYPE  1
+#endif
+
+
+#ifndef NGX_HAVE_SC_NPROCESSORS_ONLN
+#define NGX_HAVE_SC_NPROCESSORS_ONLN  1
+#endif
+
+
+#ifndef NGX_HAVE_OPENAT
+#define NGX_HAVE_OPENAT  1
+#endif
+
+
+#ifndef NGX_HAVE_GETADDRINFO
+#define NGX_HAVE_GETADDRINFO  1
+#endif
+
+
+#ifndef NGX_HTTP_CACHE
+#define NGX_HTTP_CACHE  1
+#endif
+
+
+#ifndef NGX_HTTP_GZIP
+#define NGX_HTTP_GZIP  1
+#endif
+
+
+#ifndef NGX_HTTP_SSI
+#define NGX_HTTP_SSI  1
+#endif
+
+
+#ifndef NGX_CRYPT
+#define NGX_CRYPT  1
+#endif
+
+
+#ifndef NGX_HTTP_X_FORWARDED_FOR
+#define NGX_HTTP_X_FORWARDED_FOR  1
+#endif
+
+
+#ifndef NGX_HTTP_X_FORWARDED_FOR
+#define NGX_HTTP_X_FORWARDED_FOR  1
+#endif
+
+
+#ifndef NGX_HTTP_UPSTREAM_ZONE
+#define NGX_HTTP_UPSTREAM_ZONE  1
+#endif
+
+
+#ifndef NGX_COMPAT
+#define NGX_COMPAT  1
+#endif
+
+
+#ifndef NGX_HTTP_GZIP
+#define NGX_HTTP_GZIP  1
+#endif
+
+
+#ifndef NGX_HTTP_DAV
+#define NGX_HTTP_DAV  1
+#endif
+
+
+#ifndef NGX_HTTP_REALIP
+#define NGX_HTTP_REALIP  1
+#endif
+
+
+#ifndef NGX_HTTP_X_FORWARDED_FOR
+#define NGX_HTTP_X_FORWARDED_FOR  1
+#endif
+
+
+#ifndef NGX_HTTP_HEADERS
+#define NGX_HTTP_HEADERS  1
+#endif
+
+
+#ifndef NGX_HTTP_UPSTREAM_ZONE
+#define NGX_HTTP_UPSTREAM_ZONE  1
+#endif
+
+
+#ifndef NGX_STREAM_UPSTREAM_ZONE
+#define NGX_STREAM_UPSTREAM_ZONE  1
+#endif
+
+
+#ifndef NGX_PCRE
+#define NGX_PCRE  1
+#endif
+
+
+#ifndef NGX_HAVE_PCRE_JIT
+#define NGX_HAVE_PCRE_JIT  1
+#endif
+
+
+#ifndef NGX_ZLIB
+#define NGX_ZLIB  1
+#endif
+
+
+#ifndef NGX_PREFIX
+#define NGX_PREFIX  "/usr/local/nginx/"
+#endif
+
+
+#ifndef NGX_CONF_PREFIX
+#define NGX_CONF_PREFIX  "conf/"
+#endif
+
+
+#ifndef NGX_SBIN_PATH
+#define NGX_SBIN_PATH  "sbin/nginx"
+#endif
+
+
+#ifndef NGX_CONF_PATH
+#define NGX_CONF_PATH  "conf/nginx.conf"
+#endif
+
+
+#ifndef NGX_PID_PATH
+#define NGX_PID_PATH  "logs/nginx.pid"
+#endif
+
+
+#ifndef NGX_LOCK_PATH
+#define NGX_LOCK_PATH  "logs/nginx.lock"
+#endif
+
+
+#ifndef NGX_ERROR_LOG_PATH
+#define NGX_ERROR_LOG_PATH  "logs/error.log"
+#endif
+
+
+#ifndef NGX_HTTP_LOG_PATH
+#define NGX_HTTP_LOG_PATH  "logs/access.log"
+#endif
+
+
+#ifndef NGX_HTTP_CLIENT_TEMP_PATH
+#define NGX_HTTP_CLIENT_TEMP_PATH  "client_body_temp"
+#endif
+
+
+#ifndef NGX_HTTP_PROXY_TEMP_PATH
+#define NGX_HTTP_PROXY_TEMP_PATH  "proxy_temp"
+#endif
+
+
+#ifndef NGX_HTTP_FASTCGI_TEMP_PATH
+#define NGX_HTTP_FASTCGI_TEMP_PATH  "fastcgi_temp"
+#endif
+
+
+#ifndef NGX_HTTP_UWSGI_TEMP_PATH
+#define NGX_HTTP_UWSGI_TEMP_PATH  "uwsgi_temp"
+#endif
+
+
+#ifndef NGX_HTTP_SCGI_TEMP_PATH
+#define NGX_HTTP_SCGI_TEMP_PATH  "scgi_temp"
+#endif
+
+
+#ifndef NGX_SUPPRESS_WARN
+#define NGX_SUPPRESS_WARN  1
+#endif
+
+
+#ifndef NGX_SMP
+#define NGX_SMP  1
+#endif
+
+
+#ifndef NGX_USER
+#define NGX_USER  "nobody"
+#endif
+
+
+#ifndef NGX_GROUP
+#define NGX_GROUP  "nogroup"
+#endif
+
diff --git a/srcpkgs/nginx-mod-headers-more/files/ngx_auto_config.h.armv6l.patch b/srcpkgs/nginx-mod-headers-more/files/ngx_auto_config.h.armv6l.patch
new file mode 100644
index 000000000000..aa35606688c3
--- /dev/null
+++ b/srcpkgs/nginx-mod-headers-more/files/ngx_auto_config.h.armv6l.patch
@@ -0,0 +1,86 @@
+Note: this file is provided as a reference. It is not used when building nginx.
+
+On ARM targets, certain config variables must be changed to accommodate the
+architecture. This typically means translating 64 bit values to 32 bit. When
+updating nginx, the difference between objs/ngx_auto_config.h and the vendored
+srcpkgs/nginx/files/ngx_auto_config.h.armv6l should match this patch. Additional
+definitions may need to be added to the vendored config file. If these
+definitions contain architecture specific values like those below, they need to
+be translated to their 32 bit equivalents.
+
+--- objs/ngx_auto_config.h.orig	2019-02-09 22:49:23.758277257 -0800
++++ objs/ngx_auto_config.h	2019-02-09 23:13:01.326692988 -0800
+@@ -80,13 +80,13 @@
+ #endif
+ 
+ 
+-#ifndef NGX_HAVE_NONALIGNED
+-#define NGX_HAVE_NONALIGNED  1
++#ifndef NGX_ALIGNMENT
++#define NGX_ALIGNMENT  16
+ #endif
+ 
+ 
+ #ifndef NGX_CPU_CACHE_LINE
+-#define NGX_CPU_CACHE_LINE  64
++#define NGX_CPU_CACHE_LINE  32
+ #endif
+ 
+ 
+@@ -204,7 +204,7 @@
+ 
+ 
+ #ifndef NGX_PTR_SIZE
+-#define NGX_PTR_SIZE  8
++#define NGX_PTR_SIZE  4
+ #endif
+ 
+ 
+@@ -219,12 +219,12 @@
+ 
+ 
+ #ifndef NGX_MAX_SIZE_T_VALUE
+-#define NGX_MAX_SIZE_T_VALUE  9223372036854775807LL
++#define NGX_MAX_SIZE_T_VALUE  2147483647
+ #endif
+ 
+ 
+ #ifndef NGX_SIZE_T_LEN
+-#define NGX_SIZE_T_LEN  (sizeof("-9223372036854775808") - 1)
++#define NGX_SIZE_T_LEN  (sizeof("-2147483648") - 1)
+ #endif
+ 
+ 
+@@ -239,17 +239,17 @@
+ 
+ 
+ #ifndef NGX_TIME_T_SIZE
+-#define NGX_TIME_T_SIZE  8
++#define NGX_TIME_T_SIZE  4
+ #endif
+ 
+ 
+ #ifndef NGX_TIME_T_LEN
+-#define NGX_TIME_T_LEN  (sizeof("-9223372036854775808") - 1)
++#define NGX_TIME_T_LEN  (sizeof("-2147483648") - 1)
+ #endif
+ 
+ 
+ #ifndef NGX_MAX_TIME_T_VALUE
+-#define NGX_MAX_TIME_T_VALUE  9223372036854775807LL
++#define NGX_MAX_TIME_T_VALUE  2147483647
+ #endif
+ 
+ 
+@@ -343,11 +343,6 @@
+ #endif
+ 
+ 
+-#ifndef NGX_HAVE_LEVEL1_DCACHE_LINESIZE
+-#define NGX_HAVE_LEVEL1_DCACHE_LINESIZE  1
+-#endif
+-
+-
+ #ifndef NGX_HAVE_OPENAT
+ #define NGX_HAVE_OPENAT  1
+ #endif
diff --git a/srcpkgs/nginx-mod-headers-more/template b/srcpkgs/nginx-mod-headers-more/template
new file mode 100644
index 000000000000..b9df020fbca4
--- /dev/null
+++ b/srcpkgs/nginx-mod-headers-more/template
@@ -0,0 +1,49 @@
+# Template file for 'nginx-mod-headers-more'
+pkgname=nginx-mod-headers-more
+version=0.33
+revision=1
+_nginx_version=1.18.0
+create_wrksrc=yes
+build_wrksrc="nginx-${_nginx_version}"
+build_style=gnu-makefile
+make_build_args="modules"
+hostmakedepends="pcre-devel"
+makedepends="${hostmakedepends} openssl-devel"
+depends="nginx"
+short_desc="Nginx module to set and clear input and output headers"
+maintainer="Joel Beckmeyer <joel@beckmeyer.us>"
+license="BSD-2-Clause"
+homepage="https://github.com/openresty/headers-more-nginx-module"
+distfiles="https://nginx.org/download/nginx-${_nginx_version}.tar.gz
+ https://github.com/openresty/headers-more-nginx-module/archive/v${version}.tar.gz"
+checksum="4c373e7ab5bf91d34a4f11a0c9496561061ba5eee6020db272a17a7228d35f99
+ a3dcbab117a9c103bc1ea5200fc00a7b7d2af97ff7fd525f16f8ac2632e30fbf"
+
+do_configure() {
+	cd ${wrksrc}/${build_wrksrc}
+	if [ "$CROSS_BUILD" ]; then
+		# fake configure run on host
+		unset CC CPP LD CFLAGS CPPFLAGS LDFLAGS
+	fi
+
+	./configure --with-compat \
+		--add-dynamic-module=../headers-more-nginx-module-${version}
+}
+
+pre_build() {
+	if [ "$CROSS_BUILD" ]; then
+		case "$XBPS_TARGET_MACHINE" in
+			arm*) cp "${FILESDIR}/ngx_auto_config.h.armv6l" objs/ngx_auto_config.h;;
+			aarch64*) cp "${FILESDIR}/ngx_auto_config.h.aarch64" objs/ngx_auto_config.h;;
+		esac
+	fi
+
+	sed -i 's/-lcrypt/$(LDFLAGS) &/' objs/Makefile
+}
+
+do_install() {
+	vmkdir usr/lib/nginx
+	vinstall objs/ngx_http_headers_more_filter_module.so 644 usr/lib/nginx
+
+	vlicense LICENSE
+}
diff --git a/srcpkgs/nginx/template b/srcpkgs/nginx/template
index 73b460d23e53..44a810a9fda9 100644
--- a/srcpkgs/nginx/template
+++ b/srcpkgs/nginx/template
@@ -2,6 +2,10 @@
 pkgname=nginx
 version=1.18.0
 revision=6
+# NOTE:
+# version must be kept in sync with all packaged modules (nginx-mod-*) as nginx
+# modules are built agaist the nginx source tree.
+# See srcpkgs/nginx-mod-headers-more/template for an example.
 build_style=gnu-makefile
 hostmakedepends="openssl-devel pcre-devel $(vopt_if geoip geoip-devel)"
 makedepends="${hostmakedepends}"

^ permalink raw reply	[flat|nested] 43+ messages in thread

* Re: New package: nginx-mod-headers-more-0.33
  2021-04-16  2:06 [PR PATCH] New package: ngx_headers_more-0.33 AluminumTank
                   ` (32 preceding siblings ...)
  2021-09-10 15:47 ` TinfoilSubmarine
@ 2021-09-10 15:52 ` TinfoilSubmarine
  2021-09-10 16:18 ` TinfoilSubmarine
                   ` (7 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: TinfoilSubmarine @ 2021-09-10 15:52 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 238 bytes --]

New comment by TinfoilSubmarine on void-packages repository

https://github.com/void-linux/void-packages/pull/30257#issuecomment-917012367

Comment:
OK, fixed the cross building and added note to nginx template. This is ready for review.

^ permalink raw reply	[flat|nested] 43+ messages in thread

* Re: New package: nginx-mod-headers-more-0.33
  2021-04-16  2:06 [PR PATCH] New package: ngx_headers_more-0.33 AluminumTank
                   ` (33 preceding siblings ...)
  2021-09-10 15:52 ` TinfoilSubmarine
@ 2021-09-10 16:18 ` TinfoilSubmarine
  2021-09-17 14:43 ` [PR PATCH] [Updated] " TinfoilSubmarine
                   ` (6 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: TinfoilSubmarine @ 2021-09-10 16:18 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 316 bytes --]

New comment by TinfoilSubmarine on void-packages repository

https://github.com/void-linux/void-packages/pull/30257#issuecomment-917032247

Comment:
No, the files aren't the same, they needed to be modified. The only file that is the same is `files/ngx_auto_config.h.armv6l.patch`, which in that case we could link.

^ permalink raw reply	[flat|nested] 43+ messages in thread

* Re: [PR PATCH] [Updated] New package: nginx-mod-headers-more-0.33
  2021-04-16  2:06 [PR PATCH] New package: ngx_headers_more-0.33 AluminumTank
                   ` (34 preceding siblings ...)
  2021-09-10 16:18 ` TinfoilSubmarine
@ 2021-09-17 14:43 ` TinfoilSubmarine
  2021-09-17 14:47 ` TinfoilSubmarine
                   ` (5 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: TinfoilSubmarine @ 2021-09-17 14:43 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1848 bytes --]

There is an updated pull request by TinfoilSubmarine against master on the void-packages repository

https://github.com/TinfoilSubmarine/void-packages ngx_headers_more
https://github.com/void-linux/void-packages/pull/30257

New package: nginx-mod-headers-more-0.33
<!-- Mark items with [x] where applicable -->

#### General
- [X] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)

#### Have the results of the proposed changes been tested?
- [X] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR

<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->
<!-- 
#### Does it build and run successfully? 
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [ ] I built this PR locally for my native architecture, (ARCH-LIBC)
- [ ] I built this PR locally for these architectures (if supported. mark crossbuilds):
  - [ ] aarch64-musl
  - [ ] armv7l
  - [ ] armv6l-musl
-->

This NGINX module is useful for quickly adding headers across all server blocks for an NGINX installation, which is useful for e.g. a [one-line opting-out of Google's FLoC](https://plausible.io/blog/google-floc).

A patch file from https://github.com/void-linux/void-packages/pull/30257.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-ngx_headers_more-30257.patch --]
[-- Type: text/x-diff, Size: 20126 bytes --]

From 43304f1cbbd9e59a76f37f2353ea8aea1e66163f Mon Sep 17 00:00:00 2001
From: AluminumTank <joel@beckmeyer.us>
Date: Thu, 15 Apr 2021 20:51:13 -0400
Subject: [PATCH] New package: ngx_headers_more-0.33

---
 .../files/ngx_auto_config.h.aarch64           | 529 ++++++++++++++++++
 .../files/ngx_auto_config.h.armv6l            | 529 ++++++++++++++++++
 .../files/ngx_auto_config.h.armv6l.patch      |   1 +
 srcpkgs/nginx-mod-headers-more/template       |  49 ++
 srcpkgs/nginx/template                        |   4 +
 5 files changed, 1112 insertions(+)
 create mode 100644 srcpkgs/nginx-mod-headers-more/files/ngx_auto_config.h.aarch64
 create mode 100644 srcpkgs/nginx-mod-headers-more/files/ngx_auto_config.h.armv6l
 create mode 120000 srcpkgs/nginx-mod-headers-more/files/ngx_auto_config.h.armv6l.patch
 create mode 100644 srcpkgs/nginx-mod-headers-more/template

diff --git a/srcpkgs/nginx-mod-headers-more/files/ngx_auto_config.h.aarch64 b/srcpkgs/nginx-mod-headers-more/files/ngx_auto_config.h.aarch64
new file mode 100644
index 000000000000..3ce0f7e45f31
--- /dev/null
+++ b/srcpkgs/nginx-mod-headers-more/files/ngx_auto_config.h.aarch64
@@ -0,0 +1,529 @@
+#define NGX_CONFIGURE " --with-compat --add-dynamic-module=../headers-more-nginx-module-0.33"
+
+#ifndef NGX_COMPILER
+#define NGX_COMPILER  "gcc 10.2.1 20201203 (GCC) "
+#endif
+
+
+#ifndef NGX_HAVE_GCC_ATOMIC
+#define NGX_HAVE_GCC_ATOMIC  1
+#endif
+
+
+#ifndef NGX_HAVE_C99_VARIADIC_MACROS
+#define NGX_HAVE_C99_VARIADIC_MACROS  1
+#endif
+
+
+#ifndef NGX_HAVE_GCC_VARIADIC_MACROS
+#define NGX_HAVE_GCC_VARIADIC_MACROS  1
+#endif
+
+
+#ifndef NGX_HAVE_GCC_BSWAP64
+#define NGX_HAVE_GCC_BSWAP64  1
+#endif
+
+
+#ifndef NGX_HAVE_EPOLL
+#define NGX_HAVE_EPOLL  1
+#endif
+
+
+#ifndef NGX_HAVE_CLEAR_EVENT
+#define NGX_HAVE_CLEAR_EVENT  1
+#endif
+
+
+#ifndef NGX_HAVE_EPOLLRDHUP
+#define NGX_HAVE_EPOLLRDHUP  1
+#endif
+
+
+#ifndef NGX_HAVE_EPOLLEXCLUSIVE
+#define NGX_HAVE_EPOLLEXCLUSIVE  1
+#endif
+
+
+#ifndef NGX_HAVE_O_PATH
+#define NGX_HAVE_O_PATH  1
+#endif
+
+
+#ifndef NGX_HAVE_SENDFILE
+#define NGX_HAVE_SENDFILE  1
+#endif
+
+
+#ifndef NGX_HAVE_SENDFILE64
+#define NGX_HAVE_SENDFILE64  1
+#endif
+
+
+#ifndef NGX_HAVE_PR_SET_DUMPABLE
+#define NGX_HAVE_PR_SET_DUMPABLE  1
+#endif
+
+
+#ifndef NGX_HAVE_PR_SET_KEEPCAPS
+#define NGX_HAVE_PR_SET_KEEPCAPS  1
+#endif
+
+
+#ifndef NGX_HAVE_CAPABILITIES
+#define NGX_HAVE_CAPABILITIES  1
+#endif
+
+
+#ifndef NGX_HAVE_GNU_CRYPT_R
+#define NGX_HAVE_GNU_CRYPT_R  1
+#endif
+
+
+#ifndef NGX_ALIGNMENT
+#define NGX_ALIGNMENT  16
+#endif
+
+
+#ifndef NGX_CPU_CACHE_LINE
+#define NGX_CPU_CACHE_LINE  64
+#endif
+
+
+#define NGX_KQUEUE_UDATA_T  (void *)
+
+
+#ifndef NGX_HAVE_POSIX_FADVISE
+#define NGX_HAVE_POSIX_FADVISE  1
+#endif
+
+
+#ifndef NGX_HAVE_O_DIRECT
+#define NGX_HAVE_O_DIRECT  1
+#endif
+
+
+#ifndef NGX_HAVE_ALIGNED_DIRECTIO
+#define NGX_HAVE_ALIGNED_DIRECTIO  1
+#endif
+
+
+#ifndef NGX_HAVE_STATFS
+#define NGX_HAVE_STATFS  1
+#endif
+
+
+#ifndef NGX_HAVE_STATVFS
+#define NGX_HAVE_STATVFS  1
+#endif
+
+
+#ifndef NGX_HAVE_DLOPEN
+#define NGX_HAVE_DLOPEN  1
+#endif
+
+
+#ifndef NGX_HAVE_SCHED_YIELD
+#define NGX_HAVE_SCHED_YIELD  1
+#endif
+
+
+#ifndef NGX_HAVE_SCHED_SETAFFINITY
+#define NGX_HAVE_SCHED_SETAFFINITY  1
+#endif
+
+
+#ifndef NGX_HAVE_REUSEPORT
+#define NGX_HAVE_REUSEPORT  1
+#endif
+
+
+#ifndef NGX_HAVE_TRANSPARENT_PROXY
+#define NGX_HAVE_TRANSPARENT_PROXY  1
+#endif
+
+
+#ifndef NGX_HAVE_IP_BIND_ADDRESS_NO_PORT
+#define NGX_HAVE_IP_BIND_ADDRESS_NO_PORT  1
+#endif
+
+
+#ifndef NGX_HAVE_IP_PKTINFO
+#define NGX_HAVE_IP_PKTINFO  1
+#endif
+
+
+#ifndef NGX_HAVE_IPV6_RECVPKTINFO
+#define NGX_HAVE_IPV6_RECVPKTINFO  1
+#endif
+
+
+#ifndef NGX_HAVE_DEFERRED_ACCEPT
+#define NGX_HAVE_DEFERRED_ACCEPT  1
+#endif
+
+
+#ifndef NGX_HAVE_KEEPALIVE_TUNABLE
+#define NGX_HAVE_KEEPALIVE_TUNABLE  1
+#endif
+
+
+#ifndef NGX_HAVE_TCP_FASTOPEN
+#define NGX_HAVE_TCP_FASTOPEN  1
+#endif
+
+
+#ifndef NGX_HAVE_TCP_INFO
+#define NGX_HAVE_TCP_INFO  1
+#endif
+
+
+#ifndef NGX_HAVE_ACCEPT4
+#define NGX_HAVE_ACCEPT4  1
+#endif
+
+
+#ifndef NGX_HAVE_EVENTFD
+#define NGX_HAVE_EVENTFD  1
+#endif
+
+
+#ifndef NGX_HAVE_SYS_EVENTFD_H
+#define NGX_HAVE_SYS_EVENTFD_H  1
+#endif
+
+
+#ifndef NGX_HAVE_UNIX_DOMAIN
+#define NGX_HAVE_UNIX_DOMAIN  1
+#endif
+
+
+#ifndef NGX_PTR_SIZE
+#define NGX_PTR_SIZE  8
+#endif
+
+
+#ifndef NGX_SIG_ATOMIC_T_SIZE
+#define NGX_SIG_ATOMIC_T_SIZE  4
+#endif
+
+
+#ifndef NGX_HAVE_LITTLE_ENDIAN
+#define NGX_HAVE_LITTLE_ENDIAN  1
+#endif
+
+
+#ifndef NGX_MAX_SIZE_T_VALUE
+#define NGX_MAX_SIZE_T_VALUE  9223372036854775807LL
+#endif
+
+
+#ifndef NGX_SIZE_T_LEN
+#define NGX_SIZE_T_LEN  (sizeof("-9223372036854775808") - 1)
+#endif
+
+
+#ifndef NGX_MAX_OFF_T_VALUE
+#define NGX_MAX_OFF_T_VALUE  9223372036854775807LL
+#endif
+
+
+#ifndef NGX_OFF_T_LEN
+#define NGX_OFF_T_LEN  (sizeof("-9223372036854775808") - 1)
+#endif
+
+
+#ifndef NGX_TIME_T_SIZE
+#define NGX_TIME_T_SIZE  8
+#endif
+
+
+#ifndef NGX_TIME_T_LEN
+#define NGX_TIME_T_LEN  (sizeof("-9223372036854775808") - 1)
+#endif
+
+
+#ifndef NGX_MAX_TIME_T_VALUE
+#define NGX_MAX_TIME_T_VALUE  9223372036854775807LL
+#endif
+
+
+#ifndef NGX_HAVE_INET6
+#define NGX_HAVE_INET6  1
+#endif
+
+
+#ifndef NGX_HAVE_PREAD
+#define NGX_HAVE_PREAD  1
+#endif
+
+
+#ifndef NGX_HAVE_PWRITE
+#define NGX_HAVE_PWRITE  1
+#endif
+
+
+#ifndef NGX_HAVE_PWRITEV
+#define NGX_HAVE_PWRITEV  1
+#endif
+
+
+#ifndef NGX_SYS_NERR
+#define NGX_SYS_NERR  41
+#endif
+
+
+#ifndef NGX_HAVE_LOCALTIME_R
+#define NGX_HAVE_LOCALTIME_R  1
+#endif
+
+
+#ifndef NGX_HAVE_CLOCK_MONOTONIC
+#define NGX_HAVE_CLOCK_MONOTONIC  1
+#endif
+
+
+#ifndef NGX_HAVE_POSIX_MEMALIGN
+#define NGX_HAVE_POSIX_MEMALIGN  1
+#endif
+
+
+#ifndef NGX_HAVE_MEMALIGN
+#define NGX_HAVE_MEMALIGN  1
+#endif
+
+
+#ifndef NGX_HAVE_MAP_ANON
+#define NGX_HAVE_MAP_ANON  1
+#endif
+
+
+#ifndef NGX_HAVE_MAP_DEVZERO
+#define NGX_HAVE_MAP_DEVZERO  1
+#endif
+
+
+#ifndef NGX_HAVE_SYSVSHM
+#define NGX_HAVE_SYSVSHM  1
+#endif
+
+
+#ifndef NGX_HAVE_POSIX_SEM
+#define NGX_HAVE_POSIX_SEM  1
+#endif
+
+
+#ifndef NGX_HAVE_MSGHDR_MSG_CONTROL
+#define NGX_HAVE_MSGHDR_MSG_CONTROL  1
+#endif
+
+
+#ifndef NGX_HAVE_FIONBIO
+#define NGX_HAVE_FIONBIO  1
+#endif
+
+
+#ifndef NGX_HAVE_FIONREAD
+#define NGX_HAVE_FIONREAD  1
+#endif
+
+
+#ifndef NGX_HAVE_GMTOFF
+#define NGX_HAVE_GMTOFF  1
+#endif
+
+
+#ifndef NGX_HAVE_D_TYPE
+#define NGX_HAVE_D_TYPE  1
+#endif
+
+
+#ifndef NGX_HAVE_SC_NPROCESSORS_ONLN
+#define NGX_HAVE_SC_NPROCESSORS_ONLN  1
+#endif
+
+
+#ifndef NGX_HAVE_OPENAT
+#define NGX_HAVE_OPENAT  1
+#endif
+
+
+#ifndef NGX_HAVE_GETADDRINFO
+#define NGX_HAVE_GETADDRINFO  1
+#endif
+
+
+#ifndef NGX_HTTP_CACHE
+#define NGX_HTTP_CACHE  1
+#endif
+
+
+#ifndef NGX_HTTP_GZIP
+#define NGX_HTTP_GZIP  1
+#endif
+
+
+#ifndef NGX_HTTP_SSI
+#define NGX_HTTP_SSI  1
+#endif
+
+
+#ifndef NGX_CRYPT
+#define NGX_CRYPT  1
+#endif
+
+
+#ifndef NGX_HTTP_X_FORWARDED_FOR
+#define NGX_HTTP_X_FORWARDED_FOR  1
+#endif
+
+
+#ifndef NGX_HTTP_X_FORWARDED_FOR
+#define NGX_HTTP_X_FORWARDED_FOR  1
+#endif
+
+
+#ifndef NGX_HTTP_UPSTREAM_ZONE
+#define NGX_HTTP_UPSTREAM_ZONE  1
+#endif
+
+
+#ifndef NGX_COMPAT
+#define NGX_COMPAT  1
+#endif
+
+
+#ifndef NGX_HTTP_GZIP
+#define NGX_HTTP_GZIP  1
+#endif
+
+
+#ifndef NGX_HTTP_DAV
+#define NGX_HTTP_DAV  1
+#endif
+
+
+#ifndef NGX_HTTP_REALIP
+#define NGX_HTTP_REALIP  1
+#endif
+
+
+#ifndef NGX_HTTP_X_FORWARDED_FOR
+#define NGX_HTTP_X_FORWARDED_FOR  1
+#endif
+
+
+#ifndef NGX_HTTP_HEADERS
+#define NGX_HTTP_HEADERS  1
+#endif
+
+
+#ifndef NGX_HTTP_UPSTREAM_ZONE
+#define NGX_HTTP_UPSTREAM_ZONE  1
+#endif
+
+
+#ifndef NGX_STREAM_UPSTREAM_ZONE
+#define NGX_STREAM_UPSTREAM_ZONE  1
+#endif
+
+
+#ifndef NGX_PCRE
+#define NGX_PCRE  1
+#endif
+
+
+#ifndef NGX_HAVE_PCRE_JIT
+#define NGX_HAVE_PCRE_JIT  1
+#endif
+
+
+#ifndef NGX_ZLIB
+#define NGX_ZLIB  1
+#endif
+
+
+#ifndef NGX_PREFIX
+#define NGX_PREFIX  "/usr/local/nginx/"
+#endif
+
+
+#ifndef NGX_CONF_PREFIX
+#define NGX_CONF_PREFIX  "conf/"
+#endif
+
+
+#ifndef NGX_SBIN_PATH
+#define NGX_SBIN_PATH  "sbin/nginx"
+#endif
+
+
+#ifndef NGX_CONF_PATH
+#define NGX_CONF_PATH  "conf/nginx.conf"
+#endif
+
+
+#ifndef NGX_PID_PATH
+#define NGX_PID_PATH  "logs/nginx.pid"
+#endif
+
+
+#ifndef NGX_LOCK_PATH
+#define NGX_LOCK_PATH  "logs/nginx.lock"
+#endif
+
+
+#ifndef NGX_ERROR_LOG_PATH
+#define NGX_ERROR_LOG_PATH  "logs/error.log"
+#endif
+
+
+#ifndef NGX_HTTP_LOG_PATH
+#define NGX_HTTP_LOG_PATH  "logs/access.log"
+#endif
+
+
+#ifndef NGX_HTTP_CLIENT_TEMP_PATH
+#define NGX_HTTP_CLIENT_TEMP_PATH  "client_body_temp"
+#endif
+
+
+#ifndef NGX_HTTP_PROXY_TEMP_PATH
+#define NGX_HTTP_PROXY_TEMP_PATH  "proxy_temp"
+#endif
+
+
+#ifndef NGX_HTTP_FASTCGI_TEMP_PATH
+#define NGX_HTTP_FASTCGI_TEMP_PATH  "fastcgi_temp"
+#endif
+
+
+#ifndef NGX_HTTP_UWSGI_TEMP_PATH
+#define NGX_HTTP_UWSGI_TEMP_PATH  "uwsgi_temp"
+#endif
+
+
+#ifndef NGX_HTTP_SCGI_TEMP_PATH
+#define NGX_HTTP_SCGI_TEMP_PATH  "scgi_temp"
+#endif
+
+
+#ifndef NGX_SUPPRESS_WARN
+#define NGX_SUPPRESS_WARN  1
+#endif
+
+
+#ifndef NGX_SMP
+#define NGX_SMP  1
+#endif
+
+
+#ifndef NGX_USER
+#define NGX_USER  "nobody"
+#endif
+
+
+#ifndef NGX_GROUP
+#define NGX_GROUP  "nogroup"
+#endif
+
diff --git a/srcpkgs/nginx-mod-headers-more/files/ngx_auto_config.h.armv6l b/srcpkgs/nginx-mod-headers-more/files/ngx_auto_config.h.armv6l
new file mode 100644
index 000000000000..b1d8bc06629d
--- /dev/null
+++ b/srcpkgs/nginx-mod-headers-more/files/ngx_auto_config.h.armv6l
@@ -0,0 +1,529 @@
+#define NGX_CONFIGURE " --with-compat --add-dynamic-module=../headers-more-nginx-module-0.33"
+
+#ifndef NGX_COMPILER
+#define NGX_COMPILER  "gcc 10.2.1 20201203 (GCC) "
+#endif
+
+
+#ifndef NGX_HAVE_GCC_ATOMIC
+#define NGX_HAVE_GCC_ATOMIC  1
+#endif
+
+
+#ifndef NGX_HAVE_C99_VARIADIC_MACROS
+#define NGX_HAVE_C99_VARIADIC_MACROS  1
+#endif
+
+
+#ifndef NGX_HAVE_GCC_VARIADIC_MACROS
+#define NGX_HAVE_GCC_VARIADIC_MACROS  1
+#endif
+
+
+#ifndef NGX_HAVE_GCC_BSWAP64
+#define NGX_HAVE_GCC_BSWAP64  1
+#endif
+
+
+#ifndef NGX_HAVE_EPOLL
+#define NGX_HAVE_EPOLL  1
+#endif
+
+
+#ifndef NGX_HAVE_CLEAR_EVENT
+#define NGX_HAVE_CLEAR_EVENT  1
+#endif
+
+
+#ifndef NGX_HAVE_EPOLLRDHUP
+#define NGX_HAVE_EPOLLRDHUP  1
+#endif
+
+
+#ifndef NGX_HAVE_EPOLLEXCLUSIVE
+#define NGX_HAVE_EPOLLEXCLUSIVE  1
+#endif
+
+
+#ifndef NGX_HAVE_O_PATH
+#define NGX_HAVE_O_PATH  1
+#endif
+
+
+#ifndef NGX_HAVE_SENDFILE
+#define NGX_HAVE_SENDFILE  1
+#endif
+
+
+#ifndef NGX_HAVE_SENDFILE64
+#define NGX_HAVE_SENDFILE64  1
+#endif
+
+
+#ifndef NGX_HAVE_PR_SET_DUMPABLE
+#define NGX_HAVE_PR_SET_DUMPABLE  1
+#endif
+
+
+#ifndef NGX_HAVE_PR_SET_KEEPCAPS
+#define NGX_HAVE_PR_SET_KEEPCAPS  1
+#endif
+
+
+#ifndef NGX_HAVE_CAPABILITIES
+#define NGX_HAVE_CAPABILITIES  1
+#endif
+
+
+#ifndef NGX_HAVE_GNU_CRYPT_R
+#define NGX_HAVE_GNU_CRYPT_R  1
+#endif
+
+
+#ifndef NGX_ALIGNMENT
+#define NGX_ALIGNMENT  16
+#endif
+
+
+#ifndef NGX_CPU_CACHE_LINE
+#define NGX_CPU_CACHE_LINE  32
+#endif
+
+
+#define NGX_KQUEUE_UDATA_T  (void *)
+
+
+#ifndef NGX_HAVE_POSIX_FADVISE
+#define NGX_HAVE_POSIX_FADVISE  1
+#endif
+
+
+#ifndef NGX_HAVE_O_DIRECT
+#define NGX_HAVE_O_DIRECT  1
+#endif
+
+
+#ifndef NGX_HAVE_ALIGNED_DIRECTIO
+#define NGX_HAVE_ALIGNED_DIRECTIO  1
+#endif
+
+
+#ifndef NGX_HAVE_STATFS
+#define NGX_HAVE_STATFS  1
+#endif
+
+
+#ifndef NGX_HAVE_STATVFS
+#define NGX_HAVE_STATVFS  1
+#endif
+
+
+#ifndef NGX_HAVE_DLOPEN
+#define NGX_HAVE_DLOPEN  1
+#endif
+
+
+#ifndef NGX_HAVE_SCHED_YIELD
+#define NGX_HAVE_SCHED_YIELD  1
+#endif
+
+
+#ifndef NGX_HAVE_SCHED_SETAFFINITY
+#define NGX_HAVE_SCHED_SETAFFINITY  1
+#endif
+
+
+#ifndef NGX_HAVE_REUSEPORT
+#define NGX_HAVE_REUSEPORT  1
+#endif
+
+
+#ifndef NGX_HAVE_TRANSPARENT_PROXY
+#define NGX_HAVE_TRANSPARENT_PROXY  1
+#endif
+
+
+#ifndef NGX_HAVE_IP_BIND_ADDRESS_NO_PORT
+#define NGX_HAVE_IP_BIND_ADDRESS_NO_PORT  1
+#endif
+
+
+#ifndef NGX_HAVE_IP_PKTINFO
+#define NGX_HAVE_IP_PKTINFO  1
+#endif
+
+
+#ifndef NGX_HAVE_IPV6_RECVPKTINFO
+#define NGX_HAVE_IPV6_RECVPKTINFO  1
+#endif
+
+
+#ifndef NGX_HAVE_DEFERRED_ACCEPT
+#define NGX_HAVE_DEFERRED_ACCEPT  1
+#endif
+
+
+#ifndef NGX_HAVE_KEEPALIVE_TUNABLE
+#define NGX_HAVE_KEEPALIVE_TUNABLE  1
+#endif
+
+
+#ifndef NGX_HAVE_TCP_FASTOPEN
+#define NGX_HAVE_TCP_FASTOPEN  1
+#endif
+
+
+#ifndef NGX_HAVE_TCP_INFO
+#define NGX_HAVE_TCP_INFO  1
+#endif
+
+
+#ifndef NGX_HAVE_ACCEPT4
+#define NGX_HAVE_ACCEPT4  1
+#endif
+
+
+#ifndef NGX_HAVE_EVENTFD
+#define NGX_HAVE_EVENTFD  1
+#endif
+
+
+#ifndef NGX_HAVE_SYS_EVENTFD_H
+#define NGX_HAVE_SYS_EVENTFD_H  1
+#endif
+
+
+#ifndef NGX_HAVE_UNIX_DOMAIN
+#define NGX_HAVE_UNIX_DOMAIN  1
+#endif
+
+
+#ifndef NGX_PTR_SIZE
+#define NGX_PTR_SIZE  4
+#endif
+
+
+#ifndef NGX_SIG_ATOMIC_T_SIZE
+#define NGX_SIG_ATOMIC_T_SIZE  4
+#endif
+
+
+#ifndef NGX_HAVE_LITTLE_ENDIAN
+#define NGX_HAVE_LITTLE_ENDIAN  1
+#endif
+
+
+#ifndef NGX_MAX_SIZE_T_VALUE
+#define NGX_MAX_SIZE_T_VALUE  2147483647
+#endif
+
+
+#ifndef NGX_SIZE_T_LEN
+#define NGX_SIZE_T_LEN  (sizeof("-2147483648") - 1)
+#endif
+
+
+#ifndef NGX_MAX_OFF_T_VALUE
+#define NGX_MAX_OFF_T_VALUE  9223372036854775807LL
+#endif
+
+
+#ifndef NGX_OFF_T_LEN
+#define NGX_OFF_T_LEN  (sizeof("-9223372036854775808") - 1)
+#endif
+
+
+#ifndef NGX_TIME_T_SIZE
+#define NGX_TIME_T_SIZE  4
+#endif
+
+
+#ifndef NGX_TIME_T_LEN
+#define NGX_TIME_T_LEN  (sizeof("-2147483648") - 1)
+#endif
+
+
+#ifndef NGX_MAX_TIME_T_VALUE
+#define NGX_MAX_TIME_T_VALUE  2147483647
+#endif
+
+
+#ifndef NGX_HAVE_INET6
+#define NGX_HAVE_INET6  1
+#endif
+
+
+#ifndef NGX_HAVE_PREAD
+#define NGX_HAVE_PREAD  1
+#endif
+
+
+#ifndef NGX_HAVE_PWRITE
+#define NGX_HAVE_PWRITE  1
+#endif
+
+
+#ifndef NGX_HAVE_PWRITEV
+#define NGX_HAVE_PWRITEV  1
+#endif
+
+
+#ifndef NGX_SYS_NERR
+#define NGX_SYS_NERR  41
+#endif
+
+
+#ifndef NGX_HAVE_LOCALTIME_R
+#define NGX_HAVE_LOCALTIME_R  1
+#endif
+
+
+#ifndef NGX_HAVE_CLOCK_MONOTONIC
+#define NGX_HAVE_CLOCK_MONOTONIC  1
+#endif
+
+
+#ifndef NGX_HAVE_POSIX_MEMALIGN
+#define NGX_HAVE_POSIX_MEMALIGN  1
+#endif
+
+
+#ifndef NGX_HAVE_MEMALIGN
+#define NGX_HAVE_MEMALIGN  1
+#endif
+
+
+#ifndef NGX_HAVE_MAP_ANON
+#define NGX_HAVE_MAP_ANON  1
+#endif
+
+
+#ifndef NGX_HAVE_MAP_DEVZERO
+#define NGX_HAVE_MAP_DEVZERO  1
+#endif
+
+
+#ifndef NGX_HAVE_SYSVSHM
+#define NGX_HAVE_SYSVSHM  1
+#endif
+
+
+#ifndef NGX_HAVE_POSIX_SEM
+#define NGX_HAVE_POSIX_SEM  1
+#endif
+
+
+#ifndef NGX_HAVE_MSGHDR_MSG_CONTROL
+#define NGX_HAVE_MSGHDR_MSG_CONTROL  1
+#endif
+
+
+#ifndef NGX_HAVE_FIONBIO
+#define NGX_HAVE_FIONBIO  1
+#endif
+
+
+#ifndef NGX_HAVE_FIONREAD
+#define NGX_HAVE_FIONREAD  1
+#endif
+
+
+#ifndef NGX_HAVE_GMTOFF
+#define NGX_HAVE_GMTOFF  1
+#endif
+
+
+#ifndef NGX_HAVE_D_TYPE
+#define NGX_HAVE_D_TYPE  1
+#endif
+
+
+#ifndef NGX_HAVE_SC_NPROCESSORS_ONLN
+#define NGX_HAVE_SC_NPROCESSORS_ONLN  1
+#endif
+
+
+#ifndef NGX_HAVE_OPENAT
+#define NGX_HAVE_OPENAT  1
+#endif
+
+
+#ifndef NGX_HAVE_GETADDRINFO
+#define NGX_HAVE_GETADDRINFO  1
+#endif
+
+
+#ifndef NGX_HTTP_CACHE
+#define NGX_HTTP_CACHE  1
+#endif
+
+
+#ifndef NGX_HTTP_GZIP
+#define NGX_HTTP_GZIP  1
+#endif
+
+
+#ifndef NGX_HTTP_SSI
+#define NGX_HTTP_SSI  1
+#endif
+
+
+#ifndef NGX_CRYPT
+#define NGX_CRYPT  1
+#endif
+
+
+#ifndef NGX_HTTP_X_FORWARDED_FOR
+#define NGX_HTTP_X_FORWARDED_FOR  1
+#endif
+
+
+#ifndef NGX_HTTP_X_FORWARDED_FOR
+#define NGX_HTTP_X_FORWARDED_FOR  1
+#endif
+
+
+#ifndef NGX_HTTP_UPSTREAM_ZONE
+#define NGX_HTTP_UPSTREAM_ZONE  1
+#endif
+
+
+#ifndef NGX_COMPAT
+#define NGX_COMPAT  1
+#endif
+
+
+#ifndef NGX_HTTP_GZIP
+#define NGX_HTTP_GZIP  1
+#endif
+
+
+#ifndef NGX_HTTP_DAV
+#define NGX_HTTP_DAV  1
+#endif
+
+
+#ifndef NGX_HTTP_REALIP
+#define NGX_HTTP_REALIP  1
+#endif
+
+
+#ifndef NGX_HTTP_X_FORWARDED_FOR
+#define NGX_HTTP_X_FORWARDED_FOR  1
+#endif
+
+
+#ifndef NGX_HTTP_HEADERS
+#define NGX_HTTP_HEADERS  1
+#endif
+
+
+#ifndef NGX_HTTP_UPSTREAM_ZONE
+#define NGX_HTTP_UPSTREAM_ZONE  1
+#endif
+
+
+#ifndef NGX_STREAM_UPSTREAM_ZONE
+#define NGX_STREAM_UPSTREAM_ZONE  1
+#endif
+
+
+#ifndef NGX_PCRE
+#define NGX_PCRE  1
+#endif
+
+
+#ifndef NGX_HAVE_PCRE_JIT
+#define NGX_HAVE_PCRE_JIT  1
+#endif
+
+
+#ifndef NGX_ZLIB
+#define NGX_ZLIB  1
+#endif
+
+
+#ifndef NGX_PREFIX
+#define NGX_PREFIX  "/usr/local/nginx/"
+#endif
+
+
+#ifndef NGX_CONF_PREFIX
+#define NGX_CONF_PREFIX  "conf/"
+#endif
+
+
+#ifndef NGX_SBIN_PATH
+#define NGX_SBIN_PATH  "sbin/nginx"
+#endif
+
+
+#ifndef NGX_CONF_PATH
+#define NGX_CONF_PATH  "conf/nginx.conf"
+#endif
+
+
+#ifndef NGX_PID_PATH
+#define NGX_PID_PATH  "logs/nginx.pid"
+#endif
+
+
+#ifndef NGX_LOCK_PATH
+#define NGX_LOCK_PATH  "logs/nginx.lock"
+#endif
+
+
+#ifndef NGX_ERROR_LOG_PATH
+#define NGX_ERROR_LOG_PATH  "logs/error.log"
+#endif
+
+
+#ifndef NGX_HTTP_LOG_PATH
+#define NGX_HTTP_LOG_PATH  "logs/access.log"
+#endif
+
+
+#ifndef NGX_HTTP_CLIENT_TEMP_PATH
+#define NGX_HTTP_CLIENT_TEMP_PATH  "client_body_temp"
+#endif
+
+
+#ifndef NGX_HTTP_PROXY_TEMP_PATH
+#define NGX_HTTP_PROXY_TEMP_PATH  "proxy_temp"
+#endif
+
+
+#ifndef NGX_HTTP_FASTCGI_TEMP_PATH
+#define NGX_HTTP_FASTCGI_TEMP_PATH  "fastcgi_temp"
+#endif
+
+
+#ifndef NGX_HTTP_UWSGI_TEMP_PATH
+#define NGX_HTTP_UWSGI_TEMP_PATH  "uwsgi_temp"
+#endif
+
+
+#ifndef NGX_HTTP_SCGI_TEMP_PATH
+#define NGX_HTTP_SCGI_TEMP_PATH  "scgi_temp"
+#endif
+
+
+#ifndef NGX_SUPPRESS_WARN
+#define NGX_SUPPRESS_WARN  1
+#endif
+
+
+#ifndef NGX_SMP
+#define NGX_SMP  1
+#endif
+
+
+#ifndef NGX_USER
+#define NGX_USER  "nobody"
+#endif
+
+
+#ifndef NGX_GROUP
+#define NGX_GROUP  "nogroup"
+#endif
+
diff --git a/srcpkgs/nginx-mod-headers-more/files/ngx_auto_config.h.armv6l.patch b/srcpkgs/nginx-mod-headers-more/files/ngx_auto_config.h.armv6l.patch
new file mode 120000
index 000000000000..59e84dccf5a1
--- /dev/null
+++ b/srcpkgs/nginx-mod-headers-more/files/ngx_auto_config.h.armv6l.patch
@@ -0,0 +1 @@
+../../nginx/files/ngx_auto_config.h.armv6l.patch
\ No newline at end of file
diff --git a/srcpkgs/nginx-mod-headers-more/template b/srcpkgs/nginx-mod-headers-more/template
new file mode 100644
index 000000000000..b9df020fbca4
--- /dev/null
+++ b/srcpkgs/nginx-mod-headers-more/template
@@ -0,0 +1,49 @@
+# Template file for 'nginx-mod-headers-more'
+pkgname=nginx-mod-headers-more
+version=0.33
+revision=1
+_nginx_version=1.18.0
+create_wrksrc=yes
+build_wrksrc="nginx-${_nginx_version}"
+build_style=gnu-makefile
+make_build_args="modules"
+hostmakedepends="pcre-devel"
+makedepends="${hostmakedepends} openssl-devel"
+depends="nginx"
+short_desc="Nginx module to set and clear input and output headers"
+maintainer="Joel Beckmeyer <joel@beckmeyer.us>"
+license="BSD-2-Clause"
+homepage="https://github.com/openresty/headers-more-nginx-module"
+distfiles="https://nginx.org/download/nginx-${_nginx_version}.tar.gz
+ https://github.com/openresty/headers-more-nginx-module/archive/v${version}.tar.gz"
+checksum="4c373e7ab5bf91d34a4f11a0c9496561061ba5eee6020db272a17a7228d35f99
+ a3dcbab117a9c103bc1ea5200fc00a7b7d2af97ff7fd525f16f8ac2632e30fbf"
+
+do_configure() {
+	cd ${wrksrc}/${build_wrksrc}
+	if [ "$CROSS_BUILD" ]; then
+		# fake configure run on host
+		unset CC CPP LD CFLAGS CPPFLAGS LDFLAGS
+	fi
+
+	./configure --with-compat \
+		--add-dynamic-module=../headers-more-nginx-module-${version}
+}
+
+pre_build() {
+	if [ "$CROSS_BUILD" ]; then
+		case "$XBPS_TARGET_MACHINE" in
+			arm*) cp "${FILESDIR}/ngx_auto_config.h.armv6l" objs/ngx_auto_config.h;;
+			aarch64*) cp "${FILESDIR}/ngx_auto_config.h.aarch64" objs/ngx_auto_config.h;;
+		esac
+	fi
+
+	sed -i 's/-lcrypt/$(LDFLAGS) &/' objs/Makefile
+}
+
+do_install() {
+	vmkdir usr/lib/nginx
+	vinstall objs/ngx_http_headers_more_filter_module.so 644 usr/lib/nginx
+
+	vlicense LICENSE
+}
diff --git a/srcpkgs/nginx/template b/srcpkgs/nginx/template
index 73b460d23e53..df6d913bc121 100644
--- a/srcpkgs/nginx/template
+++ b/srcpkgs/nginx/template
@@ -1,6 +1,10 @@
 # Template file for 'nginx'
 pkgname=nginx
 version=1.18.0
+# NOTE:
+# version must be kept in sync with all packaged modules (nginx-mod-*) as nginx
+# modules are built agaist the nginx source tree.
+# See srcpkgs/nginx-mod-headers-more/template for an example.
 revision=6
 build_style=gnu-makefile
 hostmakedepends="openssl-devel pcre-devel $(vopt_if geoip geoip-devel)"

^ permalink raw reply	[flat|nested] 43+ messages in thread

* Re: [PR PATCH] [Updated] New package: nginx-mod-headers-more-0.33
  2021-04-16  2:06 [PR PATCH] New package: ngx_headers_more-0.33 AluminumTank
                   ` (35 preceding siblings ...)
  2021-09-17 14:43 ` [PR PATCH] [Updated] " TinfoilSubmarine
@ 2021-09-17 14:47 ` TinfoilSubmarine
  2021-09-17 14:48 ` TinfoilSubmarine
                   ` (4 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: TinfoilSubmarine @ 2021-09-17 14:47 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1848 bytes --]

There is an updated pull request by TinfoilSubmarine against master on the void-packages repository

https://github.com/TinfoilSubmarine/void-packages ngx_headers_more
https://github.com/void-linux/void-packages/pull/30257

New package: nginx-mod-headers-more-0.33
<!-- Mark items with [x] where applicable -->

#### General
- [X] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)

#### Have the results of the proposed changes been tested?
- [X] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR

<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->
<!-- 
#### Does it build and run successfully? 
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [ ] I built this PR locally for my native architecture, (ARCH-LIBC)
- [ ] I built this PR locally for these architectures (if supported. mark crossbuilds):
  - [ ] aarch64-musl
  - [ ] armv7l
  - [ ] armv6l-musl
-->

This NGINX module is useful for quickly adding headers across all server blocks for an NGINX installation, which is useful for e.g. a [one-line opting-out of Google's FLoC](https://plausible.io/blog/google-floc).

A patch file from https://github.com/void-linux/void-packages/pull/30257.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-ngx_headers_more-30257.patch --]
[-- Type: text/x-diff, Size: 20131 bytes --]

From ee4465e31d36a65bebb0f3f1b7fdd5e6a3c8a96c Mon Sep 17 00:00:00 2001
From: AluminumTank <joel@beckmeyer.us>
Date: Thu, 15 Apr 2021 20:51:13 -0400
Subject: [PATCH] New package: ngx_headers_more-0.33

---
 .../files/ngx_auto_config.h.aarch64           | 529 ++++++++++++++++++
 .../files/ngx_auto_config.h.armv6l            | 529 ++++++++++++++++++
 .../files/ngx_auto_config.h.armv6l.patch      |   1 +
 srcpkgs/nginx-mod-headers-more/template       |  49 ++
 srcpkgs/nginx/template                        |   4 +
 5 files changed, 1112 insertions(+)
 create mode 100644 srcpkgs/nginx-mod-headers-more/files/ngx_auto_config.h.aarch64
 create mode 100644 srcpkgs/nginx-mod-headers-more/files/ngx_auto_config.h.armv6l
 create mode 120000 srcpkgs/nginx-mod-headers-more/files/ngx_auto_config.h.armv6l.patch
 create mode 100644 srcpkgs/nginx-mod-headers-more/template

diff --git a/srcpkgs/nginx-mod-headers-more/files/ngx_auto_config.h.aarch64 b/srcpkgs/nginx-mod-headers-more/files/ngx_auto_config.h.aarch64
new file mode 100644
index 000000000000..3ce0f7e45f31
--- /dev/null
+++ b/srcpkgs/nginx-mod-headers-more/files/ngx_auto_config.h.aarch64
@@ -0,0 +1,529 @@
+#define NGX_CONFIGURE " --with-compat --add-dynamic-module=../headers-more-nginx-module-0.33"
+
+#ifndef NGX_COMPILER
+#define NGX_COMPILER  "gcc 10.2.1 20201203 (GCC) "
+#endif
+
+
+#ifndef NGX_HAVE_GCC_ATOMIC
+#define NGX_HAVE_GCC_ATOMIC  1
+#endif
+
+
+#ifndef NGX_HAVE_C99_VARIADIC_MACROS
+#define NGX_HAVE_C99_VARIADIC_MACROS  1
+#endif
+
+
+#ifndef NGX_HAVE_GCC_VARIADIC_MACROS
+#define NGX_HAVE_GCC_VARIADIC_MACROS  1
+#endif
+
+
+#ifndef NGX_HAVE_GCC_BSWAP64
+#define NGX_HAVE_GCC_BSWAP64  1
+#endif
+
+
+#ifndef NGX_HAVE_EPOLL
+#define NGX_HAVE_EPOLL  1
+#endif
+
+
+#ifndef NGX_HAVE_CLEAR_EVENT
+#define NGX_HAVE_CLEAR_EVENT  1
+#endif
+
+
+#ifndef NGX_HAVE_EPOLLRDHUP
+#define NGX_HAVE_EPOLLRDHUP  1
+#endif
+
+
+#ifndef NGX_HAVE_EPOLLEXCLUSIVE
+#define NGX_HAVE_EPOLLEXCLUSIVE  1
+#endif
+
+
+#ifndef NGX_HAVE_O_PATH
+#define NGX_HAVE_O_PATH  1
+#endif
+
+
+#ifndef NGX_HAVE_SENDFILE
+#define NGX_HAVE_SENDFILE  1
+#endif
+
+
+#ifndef NGX_HAVE_SENDFILE64
+#define NGX_HAVE_SENDFILE64  1
+#endif
+
+
+#ifndef NGX_HAVE_PR_SET_DUMPABLE
+#define NGX_HAVE_PR_SET_DUMPABLE  1
+#endif
+
+
+#ifndef NGX_HAVE_PR_SET_KEEPCAPS
+#define NGX_HAVE_PR_SET_KEEPCAPS  1
+#endif
+
+
+#ifndef NGX_HAVE_CAPABILITIES
+#define NGX_HAVE_CAPABILITIES  1
+#endif
+
+
+#ifndef NGX_HAVE_GNU_CRYPT_R
+#define NGX_HAVE_GNU_CRYPT_R  1
+#endif
+
+
+#ifndef NGX_ALIGNMENT
+#define NGX_ALIGNMENT  16
+#endif
+
+
+#ifndef NGX_CPU_CACHE_LINE
+#define NGX_CPU_CACHE_LINE  64
+#endif
+
+
+#define NGX_KQUEUE_UDATA_T  (void *)
+
+
+#ifndef NGX_HAVE_POSIX_FADVISE
+#define NGX_HAVE_POSIX_FADVISE  1
+#endif
+
+
+#ifndef NGX_HAVE_O_DIRECT
+#define NGX_HAVE_O_DIRECT  1
+#endif
+
+
+#ifndef NGX_HAVE_ALIGNED_DIRECTIO
+#define NGX_HAVE_ALIGNED_DIRECTIO  1
+#endif
+
+
+#ifndef NGX_HAVE_STATFS
+#define NGX_HAVE_STATFS  1
+#endif
+
+
+#ifndef NGX_HAVE_STATVFS
+#define NGX_HAVE_STATVFS  1
+#endif
+
+
+#ifndef NGX_HAVE_DLOPEN
+#define NGX_HAVE_DLOPEN  1
+#endif
+
+
+#ifndef NGX_HAVE_SCHED_YIELD
+#define NGX_HAVE_SCHED_YIELD  1
+#endif
+
+
+#ifndef NGX_HAVE_SCHED_SETAFFINITY
+#define NGX_HAVE_SCHED_SETAFFINITY  1
+#endif
+
+
+#ifndef NGX_HAVE_REUSEPORT
+#define NGX_HAVE_REUSEPORT  1
+#endif
+
+
+#ifndef NGX_HAVE_TRANSPARENT_PROXY
+#define NGX_HAVE_TRANSPARENT_PROXY  1
+#endif
+
+
+#ifndef NGX_HAVE_IP_BIND_ADDRESS_NO_PORT
+#define NGX_HAVE_IP_BIND_ADDRESS_NO_PORT  1
+#endif
+
+
+#ifndef NGX_HAVE_IP_PKTINFO
+#define NGX_HAVE_IP_PKTINFO  1
+#endif
+
+
+#ifndef NGX_HAVE_IPV6_RECVPKTINFO
+#define NGX_HAVE_IPV6_RECVPKTINFO  1
+#endif
+
+
+#ifndef NGX_HAVE_DEFERRED_ACCEPT
+#define NGX_HAVE_DEFERRED_ACCEPT  1
+#endif
+
+
+#ifndef NGX_HAVE_KEEPALIVE_TUNABLE
+#define NGX_HAVE_KEEPALIVE_TUNABLE  1
+#endif
+
+
+#ifndef NGX_HAVE_TCP_FASTOPEN
+#define NGX_HAVE_TCP_FASTOPEN  1
+#endif
+
+
+#ifndef NGX_HAVE_TCP_INFO
+#define NGX_HAVE_TCP_INFO  1
+#endif
+
+
+#ifndef NGX_HAVE_ACCEPT4
+#define NGX_HAVE_ACCEPT4  1
+#endif
+
+
+#ifndef NGX_HAVE_EVENTFD
+#define NGX_HAVE_EVENTFD  1
+#endif
+
+
+#ifndef NGX_HAVE_SYS_EVENTFD_H
+#define NGX_HAVE_SYS_EVENTFD_H  1
+#endif
+
+
+#ifndef NGX_HAVE_UNIX_DOMAIN
+#define NGX_HAVE_UNIX_DOMAIN  1
+#endif
+
+
+#ifndef NGX_PTR_SIZE
+#define NGX_PTR_SIZE  8
+#endif
+
+
+#ifndef NGX_SIG_ATOMIC_T_SIZE
+#define NGX_SIG_ATOMIC_T_SIZE  4
+#endif
+
+
+#ifndef NGX_HAVE_LITTLE_ENDIAN
+#define NGX_HAVE_LITTLE_ENDIAN  1
+#endif
+
+
+#ifndef NGX_MAX_SIZE_T_VALUE
+#define NGX_MAX_SIZE_T_VALUE  9223372036854775807LL
+#endif
+
+
+#ifndef NGX_SIZE_T_LEN
+#define NGX_SIZE_T_LEN  (sizeof("-9223372036854775808") - 1)
+#endif
+
+
+#ifndef NGX_MAX_OFF_T_VALUE
+#define NGX_MAX_OFF_T_VALUE  9223372036854775807LL
+#endif
+
+
+#ifndef NGX_OFF_T_LEN
+#define NGX_OFF_T_LEN  (sizeof("-9223372036854775808") - 1)
+#endif
+
+
+#ifndef NGX_TIME_T_SIZE
+#define NGX_TIME_T_SIZE  8
+#endif
+
+
+#ifndef NGX_TIME_T_LEN
+#define NGX_TIME_T_LEN  (sizeof("-9223372036854775808") - 1)
+#endif
+
+
+#ifndef NGX_MAX_TIME_T_VALUE
+#define NGX_MAX_TIME_T_VALUE  9223372036854775807LL
+#endif
+
+
+#ifndef NGX_HAVE_INET6
+#define NGX_HAVE_INET6  1
+#endif
+
+
+#ifndef NGX_HAVE_PREAD
+#define NGX_HAVE_PREAD  1
+#endif
+
+
+#ifndef NGX_HAVE_PWRITE
+#define NGX_HAVE_PWRITE  1
+#endif
+
+
+#ifndef NGX_HAVE_PWRITEV
+#define NGX_HAVE_PWRITEV  1
+#endif
+
+
+#ifndef NGX_SYS_NERR
+#define NGX_SYS_NERR  41
+#endif
+
+
+#ifndef NGX_HAVE_LOCALTIME_R
+#define NGX_HAVE_LOCALTIME_R  1
+#endif
+
+
+#ifndef NGX_HAVE_CLOCK_MONOTONIC
+#define NGX_HAVE_CLOCK_MONOTONIC  1
+#endif
+
+
+#ifndef NGX_HAVE_POSIX_MEMALIGN
+#define NGX_HAVE_POSIX_MEMALIGN  1
+#endif
+
+
+#ifndef NGX_HAVE_MEMALIGN
+#define NGX_HAVE_MEMALIGN  1
+#endif
+
+
+#ifndef NGX_HAVE_MAP_ANON
+#define NGX_HAVE_MAP_ANON  1
+#endif
+
+
+#ifndef NGX_HAVE_MAP_DEVZERO
+#define NGX_HAVE_MAP_DEVZERO  1
+#endif
+
+
+#ifndef NGX_HAVE_SYSVSHM
+#define NGX_HAVE_SYSVSHM  1
+#endif
+
+
+#ifndef NGX_HAVE_POSIX_SEM
+#define NGX_HAVE_POSIX_SEM  1
+#endif
+
+
+#ifndef NGX_HAVE_MSGHDR_MSG_CONTROL
+#define NGX_HAVE_MSGHDR_MSG_CONTROL  1
+#endif
+
+
+#ifndef NGX_HAVE_FIONBIO
+#define NGX_HAVE_FIONBIO  1
+#endif
+
+
+#ifndef NGX_HAVE_FIONREAD
+#define NGX_HAVE_FIONREAD  1
+#endif
+
+
+#ifndef NGX_HAVE_GMTOFF
+#define NGX_HAVE_GMTOFF  1
+#endif
+
+
+#ifndef NGX_HAVE_D_TYPE
+#define NGX_HAVE_D_TYPE  1
+#endif
+
+
+#ifndef NGX_HAVE_SC_NPROCESSORS_ONLN
+#define NGX_HAVE_SC_NPROCESSORS_ONLN  1
+#endif
+
+
+#ifndef NGX_HAVE_OPENAT
+#define NGX_HAVE_OPENAT  1
+#endif
+
+
+#ifndef NGX_HAVE_GETADDRINFO
+#define NGX_HAVE_GETADDRINFO  1
+#endif
+
+
+#ifndef NGX_HTTP_CACHE
+#define NGX_HTTP_CACHE  1
+#endif
+
+
+#ifndef NGX_HTTP_GZIP
+#define NGX_HTTP_GZIP  1
+#endif
+
+
+#ifndef NGX_HTTP_SSI
+#define NGX_HTTP_SSI  1
+#endif
+
+
+#ifndef NGX_CRYPT
+#define NGX_CRYPT  1
+#endif
+
+
+#ifndef NGX_HTTP_X_FORWARDED_FOR
+#define NGX_HTTP_X_FORWARDED_FOR  1
+#endif
+
+
+#ifndef NGX_HTTP_X_FORWARDED_FOR
+#define NGX_HTTP_X_FORWARDED_FOR  1
+#endif
+
+
+#ifndef NGX_HTTP_UPSTREAM_ZONE
+#define NGX_HTTP_UPSTREAM_ZONE  1
+#endif
+
+
+#ifndef NGX_COMPAT
+#define NGX_COMPAT  1
+#endif
+
+
+#ifndef NGX_HTTP_GZIP
+#define NGX_HTTP_GZIP  1
+#endif
+
+
+#ifndef NGX_HTTP_DAV
+#define NGX_HTTP_DAV  1
+#endif
+
+
+#ifndef NGX_HTTP_REALIP
+#define NGX_HTTP_REALIP  1
+#endif
+
+
+#ifndef NGX_HTTP_X_FORWARDED_FOR
+#define NGX_HTTP_X_FORWARDED_FOR  1
+#endif
+
+
+#ifndef NGX_HTTP_HEADERS
+#define NGX_HTTP_HEADERS  1
+#endif
+
+
+#ifndef NGX_HTTP_UPSTREAM_ZONE
+#define NGX_HTTP_UPSTREAM_ZONE  1
+#endif
+
+
+#ifndef NGX_STREAM_UPSTREAM_ZONE
+#define NGX_STREAM_UPSTREAM_ZONE  1
+#endif
+
+
+#ifndef NGX_PCRE
+#define NGX_PCRE  1
+#endif
+
+
+#ifndef NGX_HAVE_PCRE_JIT
+#define NGX_HAVE_PCRE_JIT  1
+#endif
+
+
+#ifndef NGX_ZLIB
+#define NGX_ZLIB  1
+#endif
+
+
+#ifndef NGX_PREFIX
+#define NGX_PREFIX  "/usr/local/nginx/"
+#endif
+
+
+#ifndef NGX_CONF_PREFIX
+#define NGX_CONF_PREFIX  "conf/"
+#endif
+
+
+#ifndef NGX_SBIN_PATH
+#define NGX_SBIN_PATH  "sbin/nginx"
+#endif
+
+
+#ifndef NGX_CONF_PATH
+#define NGX_CONF_PATH  "conf/nginx.conf"
+#endif
+
+
+#ifndef NGX_PID_PATH
+#define NGX_PID_PATH  "logs/nginx.pid"
+#endif
+
+
+#ifndef NGX_LOCK_PATH
+#define NGX_LOCK_PATH  "logs/nginx.lock"
+#endif
+
+
+#ifndef NGX_ERROR_LOG_PATH
+#define NGX_ERROR_LOG_PATH  "logs/error.log"
+#endif
+
+
+#ifndef NGX_HTTP_LOG_PATH
+#define NGX_HTTP_LOG_PATH  "logs/access.log"
+#endif
+
+
+#ifndef NGX_HTTP_CLIENT_TEMP_PATH
+#define NGX_HTTP_CLIENT_TEMP_PATH  "client_body_temp"
+#endif
+
+
+#ifndef NGX_HTTP_PROXY_TEMP_PATH
+#define NGX_HTTP_PROXY_TEMP_PATH  "proxy_temp"
+#endif
+
+
+#ifndef NGX_HTTP_FASTCGI_TEMP_PATH
+#define NGX_HTTP_FASTCGI_TEMP_PATH  "fastcgi_temp"
+#endif
+
+
+#ifndef NGX_HTTP_UWSGI_TEMP_PATH
+#define NGX_HTTP_UWSGI_TEMP_PATH  "uwsgi_temp"
+#endif
+
+
+#ifndef NGX_HTTP_SCGI_TEMP_PATH
+#define NGX_HTTP_SCGI_TEMP_PATH  "scgi_temp"
+#endif
+
+
+#ifndef NGX_SUPPRESS_WARN
+#define NGX_SUPPRESS_WARN  1
+#endif
+
+
+#ifndef NGX_SMP
+#define NGX_SMP  1
+#endif
+
+
+#ifndef NGX_USER
+#define NGX_USER  "nobody"
+#endif
+
+
+#ifndef NGX_GROUP
+#define NGX_GROUP  "nogroup"
+#endif
+
diff --git a/srcpkgs/nginx-mod-headers-more/files/ngx_auto_config.h.armv6l b/srcpkgs/nginx-mod-headers-more/files/ngx_auto_config.h.armv6l
new file mode 100644
index 000000000000..b1d8bc06629d
--- /dev/null
+++ b/srcpkgs/nginx-mod-headers-more/files/ngx_auto_config.h.armv6l
@@ -0,0 +1,529 @@
+#define NGX_CONFIGURE " --with-compat --add-dynamic-module=../headers-more-nginx-module-0.33"
+
+#ifndef NGX_COMPILER
+#define NGX_COMPILER  "gcc 10.2.1 20201203 (GCC) "
+#endif
+
+
+#ifndef NGX_HAVE_GCC_ATOMIC
+#define NGX_HAVE_GCC_ATOMIC  1
+#endif
+
+
+#ifndef NGX_HAVE_C99_VARIADIC_MACROS
+#define NGX_HAVE_C99_VARIADIC_MACROS  1
+#endif
+
+
+#ifndef NGX_HAVE_GCC_VARIADIC_MACROS
+#define NGX_HAVE_GCC_VARIADIC_MACROS  1
+#endif
+
+
+#ifndef NGX_HAVE_GCC_BSWAP64
+#define NGX_HAVE_GCC_BSWAP64  1
+#endif
+
+
+#ifndef NGX_HAVE_EPOLL
+#define NGX_HAVE_EPOLL  1
+#endif
+
+
+#ifndef NGX_HAVE_CLEAR_EVENT
+#define NGX_HAVE_CLEAR_EVENT  1
+#endif
+
+
+#ifndef NGX_HAVE_EPOLLRDHUP
+#define NGX_HAVE_EPOLLRDHUP  1
+#endif
+
+
+#ifndef NGX_HAVE_EPOLLEXCLUSIVE
+#define NGX_HAVE_EPOLLEXCLUSIVE  1
+#endif
+
+
+#ifndef NGX_HAVE_O_PATH
+#define NGX_HAVE_O_PATH  1
+#endif
+
+
+#ifndef NGX_HAVE_SENDFILE
+#define NGX_HAVE_SENDFILE  1
+#endif
+
+
+#ifndef NGX_HAVE_SENDFILE64
+#define NGX_HAVE_SENDFILE64  1
+#endif
+
+
+#ifndef NGX_HAVE_PR_SET_DUMPABLE
+#define NGX_HAVE_PR_SET_DUMPABLE  1
+#endif
+
+
+#ifndef NGX_HAVE_PR_SET_KEEPCAPS
+#define NGX_HAVE_PR_SET_KEEPCAPS  1
+#endif
+
+
+#ifndef NGX_HAVE_CAPABILITIES
+#define NGX_HAVE_CAPABILITIES  1
+#endif
+
+
+#ifndef NGX_HAVE_GNU_CRYPT_R
+#define NGX_HAVE_GNU_CRYPT_R  1
+#endif
+
+
+#ifndef NGX_ALIGNMENT
+#define NGX_ALIGNMENT  16
+#endif
+
+
+#ifndef NGX_CPU_CACHE_LINE
+#define NGX_CPU_CACHE_LINE  32
+#endif
+
+
+#define NGX_KQUEUE_UDATA_T  (void *)
+
+
+#ifndef NGX_HAVE_POSIX_FADVISE
+#define NGX_HAVE_POSIX_FADVISE  1
+#endif
+
+
+#ifndef NGX_HAVE_O_DIRECT
+#define NGX_HAVE_O_DIRECT  1
+#endif
+
+
+#ifndef NGX_HAVE_ALIGNED_DIRECTIO
+#define NGX_HAVE_ALIGNED_DIRECTIO  1
+#endif
+
+
+#ifndef NGX_HAVE_STATFS
+#define NGX_HAVE_STATFS  1
+#endif
+
+
+#ifndef NGX_HAVE_STATVFS
+#define NGX_HAVE_STATVFS  1
+#endif
+
+
+#ifndef NGX_HAVE_DLOPEN
+#define NGX_HAVE_DLOPEN  1
+#endif
+
+
+#ifndef NGX_HAVE_SCHED_YIELD
+#define NGX_HAVE_SCHED_YIELD  1
+#endif
+
+
+#ifndef NGX_HAVE_SCHED_SETAFFINITY
+#define NGX_HAVE_SCHED_SETAFFINITY  1
+#endif
+
+
+#ifndef NGX_HAVE_REUSEPORT
+#define NGX_HAVE_REUSEPORT  1
+#endif
+
+
+#ifndef NGX_HAVE_TRANSPARENT_PROXY
+#define NGX_HAVE_TRANSPARENT_PROXY  1
+#endif
+
+
+#ifndef NGX_HAVE_IP_BIND_ADDRESS_NO_PORT
+#define NGX_HAVE_IP_BIND_ADDRESS_NO_PORT  1
+#endif
+
+
+#ifndef NGX_HAVE_IP_PKTINFO
+#define NGX_HAVE_IP_PKTINFO  1
+#endif
+
+
+#ifndef NGX_HAVE_IPV6_RECVPKTINFO
+#define NGX_HAVE_IPV6_RECVPKTINFO  1
+#endif
+
+
+#ifndef NGX_HAVE_DEFERRED_ACCEPT
+#define NGX_HAVE_DEFERRED_ACCEPT  1
+#endif
+
+
+#ifndef NGX_HAVE_KEEPALIVE_TUNABLE
+#define NGX_HAVE_KEEPALIVE_TUNABLE  1
+#endif
+
+
+#ifndef NGX_HAVE_TCP_FASTOPEN
+#define NGX_HAVE_TCP_FASTOPEN  1
+#endif
+
+
+#ifndef NGX_HAVE_TCP_INFO
+#define NGX_HAVE_TCP_INFO  1
+#endif
+
+
+#ifndef NGX_HAVE_ACCEPT4
+#define NGX_HAVE_ACCEPT4  1
+#endif
+
+
+#ifndef NGX_HAVE_EVENTFD
+#define NGX_HAVE_EVENTFD  1
+#endif
+
+
+#ifndef NGX_HAVE_SYS_EVENTFD_H
+#define NGX_HAVE_SYS_EVENTFD_H  1
+#endif
+
+
+#ifndef NGX_HAVE_UNIX_DOMAIN
+#define NGX_HAVE_UNIX_DOMAIN  1
+#endif
+
+
+#ifndef NGX_PTR_SIZE
+#define NGX_PTR_SIZE  4
+#endif
+
+
+#ifndef NGX_SIG_ATOMIC_T_SIZE
+#define NGX_SIG_ATOMIC_T_SIZE  4
+#endif
+
+
+#ifndef NGX_HAVE_LITTLE_ENDIAN
+#define NGX_HAVE_LITTLE_ENDIAN  1
+#endif
+
+
+#ifndef NGX_MAX_SIZE_T_VALUE
+#define NGX_MAX_SIZE_T_VALUE  2147483647
+#endif
+
+
+#ifndef NGX_SIZE_T_LEN
+#define NGX_SIZE_T_LEN  (sizeof("-2147483648") - 1)
+#endif
+
+
+#ifndef NGX_MAX_OFF_T_VALUE
+#define NGX_MAX_OFF_T_VALUE  9223372036854775807LL
+#endif
+
+
+#ifndef NGX_OFF_T_LEN
+#define NGX_OFF_T_LEN  (sizeof("-9223372036854775808") - 1)
+#endif
+
+
+#ifndef NGX_TIME_T_SIZE
+#define NGX_TIME_T_SIZE  4
+#endif
+
+
+#ifndef NGX_TIME_T_LEN
+#define NGX_TIME_T_LEN  (sizeof("-2147483648") - 1)
+#endif
+
+
+#ifndef NGX_MAX_TIME_T_VALUE
+#define NGX_MAX_TIME_T_VALUE  2147483647
+#endif
+
+
+#ifndef NGX_HAVE_INET6
+#define NGX_HAVE_INET6  1
+#endif
+
+
+#ifndef NGX_HAVE_PREAD
+#define NGX_HAVE_PREAD  1
+#endif
+
+
+#ifndef NGX_HAVE_PWRITE
+#define NGX_HAVE_PWRITE  1
+#endif
+
+
+#ifndef NGX_HAVE_PWRITEV
+#define NGX_HAVE_PWRITEV  1
+#endif
+
+
+#ifndef NGX_SYS_NERR
+#define NGX_SYS_NERR  41
+#endif
+
+
+#ifndef NGX_HAVE_LOCALTIME_R
+#define NGX_HAVE_LOCALTIME_R  1
+#endif
+
+
+#ifndef NGX_HAVE_CLOCK_MONOTONIC
+#define NGX_HAVE_CLOCK_MONOTONIC  1
+#endif
+
+
+#ifndef NGX_HAVE_POSIX_MEMALIGN
+#define NGX_HAVE_POSIX_MEMALIGN  1
+#endif
+
+
+#ifndef NGX_HAVE_MEMALIGN
+#define NGX_HAVE_MEMALIGN  1
+#endif
+
+
+#ifndef NGX_HAVE_MAP_ANON
+#define NGX_HAVE_MAP_ANON  1
+#endif
+
+
+#ifndef NGX_HAVE_MAP_DEVZERO
+#define NGX_HAVE_MAP_DEVZERO  1
+#endif
+
+
+#ifndef NGX_HAVE_SYSVSHM
+#define NGX_HAVE_SYSVSHM  1
+#endif
+
+
+#ifndef NGX_HAVE_POSIX_SEM
+#define NGX_HAVE_POSIX_SEM  1
+#endif
+
+
+#ifndef NGX_HAVE_MSGHDR_MSG_CONTROL
+#define NGX_HAVE_MSGHDR_MSG_CONTROL  1
+#endif
+
+
+#ifndef NGX_HAVE_FIONBIO
+#define NGX_HAVE_FIONBIO  1
+#endif
+
+
+#ifndef NGX_HAVE_FIONREAD
+#define NGX_HAVE_FIONREAD  1
+#endif
+
+
+#ifndef NGX_HAVE_GMTOFF
+#define NGX_HAVE_GMTOFF  1
+#endif
+
+
+#ifndef NGX_HAVE_D_TYPE
+#define NGX_HAVE_D_TYPE  1
+#endif
+
+
+#ifndef NGX_HAVE_SC_NPROCESSORS_ONLN
+#define NGX_HAVE_SC_NPROCESSORS_ONLN  1
+#endif
+
+
+#ifndef NGX_HAVE_OPENAT
+#define NGX_HAVE_OPENAT  1
+#endif
+
+
+#ifndef NGX_HAVE_GETADDRINFO
+#define NGX_HAVE_GETADDRINFO  1
+#endif
+
+
+#ifndef NGX_HTTP_CACHE
+#define NGX_HTTP_CACHE  1
+#endif
+
+
+#ifndef NGX_HTTP_GZIP
+#define NGX_HTTP_GZIP  1
+#endif
+
+
+#ifndef NGX_HTTP_SSI
+#define NGX_HTTP_SSI  1
+#endif
+
+
+#ifndef NGX_CRYPT
+#define NGX_CRYPT  1
+#endif
+
+
+#ifndef NGX_HTTP_X_FORWARDED_FOR
+#define NGX_HTTP_X_FORWARDED_FOR  1
+#endif
+
+
+#ifndef NGX_HTTP_X_FORWARDED_FOR
+#define NGX_HTTP_X_FORWARDED_FOR  1
+#endif
+
+
+#ifndef NGX_HTTP_UPSTREAM_ZONE
+#define NGX_HTTP_UPSTREAM_ZONE  1
+#endif
+
+
+#ifndef NGX_COMPAT
+#define NGX_COMPAT  1
+#endif
+
+
+#ifndef NGX_HTTP_GZIP
+#define NGX_HTTP_GZIP  1
+#endif
+
+
+#ifndef NGX_HTTP_DAV
+#define NGX_HTTP_DAV  1
+#endif
+
+
+#ifndef NGX_HTTP_REALIP
+#define NGX_HTTP_REALIP  1
+#endif
+
+
+#ifndef NGX_HTTP_X_FORWARDED_FOR
+#define NGX_HTTP_X_FORWARDED_FOR  1
+#endif
+
+
+#ifndef NGX_HTTP_HEADERS
+#define NGX_HTTP_HEADERS  1
+#endif
+
+
+#ifndef NGX_HTTP_UPSTREAM_ZONE
+#define NGX_HTTP_UPSTREAM_ZONE  1
+#endif
+
+
+#ifndef NGX_STREAM_UPSTREAM_ZONE
+#define NGX_STREAM_UPSTREAM_ZONE  1
+#endif
+
+
+#ifndef NGX_PCRE
+#define NGX_PCRE  1
+#endif
+
+
+#ifndef NGX_HAVE_PCRE_JIT
+#define NGX_HAVE_PCRE_JIT  1
+#endif
+
+
+#ifndef NGX_ZLIB
+#define NGX_ZLIB  1
+#endif
+
+
+#ifndef NGX_PREFIX
+#define NGX_PREFIX  "/usr/local/nginx/"
+#endif
+
+
+#ifndef NGX_CONF_PREFIX
+#define NGX_CONF_PREFIX  "conf/"
+#endif
+
+
+#ifndef NGX_SBIN_PATH
+#define NGX_SBIN_PATH  "sbin/nginx"
+#endif
+
+
+#ifndef NGX_CONF_PATH
+#define NGX_CONF_PATH  "conf/nginx.conf"
+#endif
+
+
+#ifndef NGX_PID_PATH
+#define NGX_PID_PATH  "logs/nginx.pid"
+#endif
+
+
+#ifndef NGX_LOCK_PATH
+#define NGX_LOCK_PATH  "logs/nginx.lock"
+#endif
+
+
+#ifndef NGX_ERROR_LOG_PATH
+#define NGX_ERROR_LOG_PATH  "logs/error.log"
+#endif
+
+
+#ifndef NGX_HTTP_LOG_PATH
+#define NGX_HTTP_LOG_PATH  "logs/access.log"
+#endif
+
+
+#ifndef NGX_HTTP_CLIENT_TEMP_PATH
+#define NGX_HTTP_CLIENT_TEMP_PATH  "client_body_temp"
+#endif
+
+
+#ifndef NGX_HTTP_PROXY_TEMP_PATH
+#define NGX_HTTP_PROXY_TEMP_PATH  "proxy_temp"
+#endif
+
+
+#ifndef NGX_HTTP_FASTCGI_TEMP_PATH
+#define NGX_HTTP_FASTCGI_TEMP_PATH  "fastcgi_temp"
+#endif
+
+
+#ifndef NGX_HTTP_UWSGI_TEMP_PATH
+#define NGX_HTTP_UWSGI_TEMP_PATH  "uwsgi_temp"
+#endif
+
+
+#ifndef NGX_HTTP_SCGI_TEMP_PATH
+#define NGX_HTTP_SCGI_TEMP_PATH  "scgi_temp"
+#endif
+
+
+#ifndef NGX_SUPPRESS_WARN
+#define NGX_SUPPRESS_WARN  1
+#endif
+
+
+#ifndef NGX_SMP
+#define NGX_SMP  1
+#endif
+
+
+#ifndef NGX_USER
+#define NGX_USER  "nobody"
+#endif
+
+
+#ifndef NGX_GROUP
+#define NGX_GROUP  "nogroup"
+#endif
+
diff --git a/srcpkgs/nginx-mod-headers-more/files/ngx_auto_config.h.armv6l.patch b/srcpkgs/nginx-mod-headers-more/files/ngx_auto_config.h.armv6l.patch
new file mode 120000
index 000000000000..59e84dccf5a1
--- /dev/null
+++ b/srcpkgs/nginx-mod-headers-more/files/ngx_auto_config.h.armv6l.patch
@@ -0,0 +1 @@
+../../nginx/files/ngx_auto_config.h.armv6l.patch
\ No newline at end of file
diff --git a/srcpkgs/nginx-mod-headers-more/template b/srcpkgs/nginx-mod-headers-more/template
new file mode 100644
index 000000000000..b9df020fbca4
--- /dev/null
+++ b/srcpkgs/nginx-mod-headers-more/template
@@ -0,0 +1,49 @@
+# Template file for 'nginx-mod-headers-more'
+pkgname=nginx-mod-headers-more
+version=0.33
+revision=1
+_nginx_version=1.18.0
+create_wrksrc=yes
+build_wrksrc="nginx-${_nginx_version}"
+build_style=gnu-makefile
+make_build_args="modules"
+hostmakedepends="pcre-devel"
+makedepends="${hostmakedepends} openssl-devel"
+depends="nginx"
+short_desc="Nginx module to set and clear input and output headers"
+maintainer="Joel Beckmeyer <joel@beckmeyer.us>"
+license="BSD-2-Clause"
+homepage="https://github.com/openresty/headers-more-nginx-module"
+distfiles="https://nginx.org/download/nginx-${_nginx_version}.tar.gz
+ https://github.com/openresty/headers-more-nginx-module/archive/v${version}.tar.gz"
+checksum="4c373e7ab5bf91d34a4f11a0c9496561061ba5eee6020db272a17a7228d35f99
+ a3dcbab117a9c103bc1ea5200fc00a7b7d2af97ff7fd525f16f8ac2632e30fbf"
+
+do_configure() {
+	cd ${wrksrc}/${build_wrksrc}
+	if [ "$CROSS_BUILD" ]; then
+		# fake configure run on host
+		unset CC CPP LD CFLAGS CPPFLAGS LDFLAGS
+	fi
+
+	./configure --with-compat \
+		--add-dynamic-module=../headers-more-nginx-module-${version}
+}
+
+pre_build() {
+	if [ "$CROSS_BUILD" ]; then
+		case "$XBPS_TARGET_MACHINE" in
+			arm*) cp "${FILESDIR}/ngx_auto_config.h.armv6l" objs/ngx_auto_config.h;;
+			aarch64*) cp "${FILESDIR}/ngx_auto_config.h.aarch64" objs/ngx_auto_config.h;;
+		esac
+	fi
+
+	sed -i 's/-lcrypt/$(LDFLAGS) &/' objs/Makefile
+}
+
+do_install() {
+	vmkdir usr/lib/nginx
+	vinstall objs/ngx_http_headers_more_filter_module.so 644 usr/lib/nginx
+
+	vlicense LICENSE
+}
diff --git a/srcpkgs/nginx/template b/srcpkgs/nginx/template
index 73b460d23e53..44a810a9fda9 100644
--- a/srcpkgs/nginx/template
+++ b/srcpkgs/nginx/template
@@ -2,6 +2,10 @@
 pkgname=nginx
 version=1.18.0
 revision=6
+# NOTE:
+# version must be kept in sync with all packaged modules (nginx-mod-*) as nginx
+# modules are built agaist the nginx source tree.
+# See srcpkgs/nginx-mod-headers-more/template for an example.
 build_style=gnu-makefile
 hostmakedepends="openssl-devel pcre-devel $(vopt_if geoip geoip-devel)"
 makedepends="${hostmakedepends}"

^ permalink raw reply	[flat|nested] 43+ messages in thread

* Re: New package: nginx-mod-headers-more-0.33
  2021-04-16  2:06 [PR PATCH] New package: ngx_headers_more-0.33 AluminumTank
                   ` (36 preceding siblings ...)
  2021-09-17 14:47 ` TinfoilSubmarine
@ 2021-09-17 14:48 ` TinfoilSubmarine
  2021-09-17 15:59 ` [PR PATCH] [Updated] " TinfoilSubmarine
                   ` (3 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: TinfoilSubmarine @ 2021-09-17 14:48 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 232 bytes --]

New comment by TinfoilSubmarine on void-packages repository

https://github.com/void-linux/void-packages/pull/30257#issuecomment-921858306

Comment:
I linked files/ngx_auto_config.h.armv6l.patch to the original file in nginx/files.

^ permalink raw reply	[flat|nested] 43+ messages in thread

* Re: [PR PATCH] [Updated] New package: nginx-mod-headers-more-0.33
  2021-04-16  2:06 [PR PATCH] New package: ngx_headers_more-0.33 AluminumTank
                   ` (37 preceding siblings ...)
  2021-09-17 14:48 ` TinfoilSubmarine
@ 2021-09-17 15:59 ` TinfoilSubmarine
  2021-09-17 16:02 ` TinfoilSubmarine
                   ` (2 subsequent siblings)
  41 siblings, 0 replies; 43+ messages in thread
From: TinfoilSubmarine @ 2021-09-17 15:59 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1848 bytes --]

There is an updated pull request by TinfoilSubmarine against master on the void-packages repository

https://github.com/TinfoilSubmarine/void-packages ngx_headers_more
https://github.com/void-linux/void-packages/pull/30257

New package: nginx-mod-headers-more-0.33
<!-- Mark items with [x] where applicable -->

#### General
- [X] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)

#### Have the results of the proposed changes been tested?
- [X] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR

<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->
<!-- 
#### Does it build and run successfully? 
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [ ] I built this PR locally for my native architecture, (ARCH-LIBC)
- [ ] I built this PR locally for these architectures (if supported. mark crossbuilds):
  - [ ] aarch64-musl
  - [ ] armv7l
  - [ ] armv6l-musl
-->

This NGINX module is useful for quickly adding headers across all server blocks for an NGINX installation, which is useful for e.g. a [one-line opting-out of Google's FLoC](https://plausible.io/blog/google-floc).

A patch file from https://github.com/void-linux/void-packages/pull/30257.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-ngx_headers_more-30257.patch --]
[-- Type: text/x-diff, Size: 20149 bytes --]

From 961ff29a4748164a529a87be6defb7d8bb1089c3 Mon Sep 17 00:00:00 2001
From: AluminumTank <joel@beckmeyer.us>
Date: Thu, 15 Apr 2021 20:51:13 -0400
Subject: [PATCH] New package: ngx_headers_more-0.33

---
 .../files/ngx_auto_config.h.aarch64           | 529 ++++++++++++++++++
 .../files/ngx_auto_config.h.armv6l            | 529 ++++++++++++++++++
 .../files/ngx_auto_config.h.armv6l.patch      |   1 +
 srcpkgs/nginx-mod-headers-more/template       |  52 ++
 srcpkgs/nginx/template                        |   4 +
 5 files changed, 1115 insertions(+)
 create mode 100644 srcpkgs/nginx-mod-headers-more/files/ngx_auto_config.h.aarch64
 create mode 100644 srcpkgs/nginx-mod-headers-more/files/ngx_auto_config.h.armv6l
 create mode 120000 srcpkgs/nginx-mod-headers-more/files/ngx_auto_config.h.armv6l.patch
 create mode 100644 srcpkgs/nginx-mod-headers-more/template

diff --git a/srcpkgs/nginx-mod-headers-more/files/ngx_auto_config.h.aarch64 b/srcpkgs/nginx-mod-headers-more/files/ngx_auto_config.h.aarch64
new file mode 100644
index 000000000000..3ce0f7e45f31
--- /dev/null
+++ b/srcpkgs/nginx-mod-headers-more/files/ngx_auto_config.h.aarch64
@@ -0,0 +1,529 @@
+#define NGX_CONFIGURE " --with-compat --add-dynamic-module=../headers-more-nginx-module-0.33"
+
+#ifndef NGX_COMPILER
+#define NGX_COMPILER  "gcc 10.2.1 20201203 (GCC) "
+#endif
+
+
+#ifndef NGX_HAVE_GCC_ATOMIC
+#define NGX_HAVE_GCC_ATOMIC  1
+#endif
+
+
+#ifndef NGX_HAVE_C99_VARIADIC_MACROS
+#define NGX_HAVE_C99_VARIADIC_MACROS  1
+#endif
+
+
+#ifndef NGX_HAVE_GCC_VARIADIC_MACROS
+#define NGX_HAVE_GCC_VARIADIC_MACROS  1
+#endif
+
+
+#ifndef NGX_HAVE_GCC_BSWAP64
+#define NGX_HAVE_GCC_BSWAP64  1
+#endif
+
+
+#ifndef NGX_HAVE_EPOLL
+#define NGX_HAVE_EPOLL  1
+#endif
+
+
+#ifndef NGX_HAVE_CLEAR_EVENT
+#define NGX_HAVE_CLEAR_EVENT  1
+#endif
+
+
+#ifndef NGX_HAVE_EPOLLRDHUP
+#define NGX_HAVE_EPOLLRDHUP  1
+#endif
+
+
+#ifndef NGX_HAVE_EPOLLEXCLUSIVE
+#define NGX_HAVE_EPOLLEXCLUSIVE  1
+#endif
+
+
+#ifndef NGX_HAVE_O_PATH
+#define NGX_HAVE_O_PATH  1
+#endif
+
+
+#ifndef NGX_HAVE_SENDFILE
+#define NGX_HAVE_SENDFILE  1
+#endif
+
+
+#ifndef NGX_HAVE_SENDFILE64
+#define NGX_HAVE_SENDFILE64  1
+#endif
+
+
+#ifndef NGX_HAVE_PR_SET_DUMPABLE
+#define NGX_HAVE_PR_SET_DUMPABLE  1
+#endif
+
+
+#ifndef NGX_HAVE_PR_SET_KEEPCAPS
+#define NGX_HAVE_PR_SET_KEEPCAPS  1
+#endif
+
+
+#ifndef NGX_HAVE_CAPABILITIES
+#define NGX_HAVE_CAPABILITIES  1
+#endif
+
+
+#ifndef NGX_HAVE_GNU_CRYPT_R
+#define NGX_HAVE_GNU_CRYPT_R  1
+#endif
+
+
+#ifndef NGX_ALIGNMENT
+#define NGX_ALIGNMENT  16
+#endif
+
+
+#ifndef NGX_CPU_CACHE_LINE
+#define NGX_CPU_CACHE_LINE  64
+#endif
+
+
+#define NGX_KQUEUE_UDATA_T  (void *)
+
+
+#ifndef NGX_HAVE_POSIX_FADVISE
+#define NGX_HAVE_POSIX_FADVISE  1
+#endif
+
+
+#ifndef NGX_HAVE_O_DIRECT
+#define NGX_HAVE_O_DIRECT  1
+#endif
+
+
+#ifndef NGX_HAVE_ALIGNED_DIRECTIO
+#define NGX_HAVE_ALIGNED_DIRECTIO  1
+#endif
+
+
+#ifndef NGX_HAVE_STATFS
+#define NGX_HAVE_STATFS  1
+#endif
+
+
+#ifndef NGX_HAVE_STATVFS
+#define NGX_HAVE_STATVFS  1
+#endif
+
+
+#ifndef NGX_HAVE_DLOPEN
+#define NGX_HAVE_DLOPEN  1
+#endif
+
+
+#ifndef NGX_HAVE_SCHED_YIELD
+#define NGX_HAVE_SCHED_YIELD  1
+#endif
+
+
+#ifndef NGX_HAVE_SCHED_SETAFFINITY
+#define NGX_HAVE_SCHED_SETAFFINITY  1
+#endif
+
+
+#ifndef NGX_HAVE_REUSEPORT
+#define NGX_HAVE_REUSEPORT  1
+#endif
+
+
+#ifndef NGX_HAVE_TRANSPARENT_PROXY
+#define NGX_HAVE_TRANSPARENT_PROXY  1
+#endif
+
+
+#ifndef NGX_HAVE_IP_BIND_ADDRESS_NO_PORT
+#define NGX_HAVE_IP_BIND_ADDRESS_NO_PORT  1
+#endif
+
+
+#ifndef NGX_HAVE_IP_PKTINFO
+#define NGX_HAVE_IP_PKTINFO  1
+#endif
+
+
+#ifndef NGX_HAVE_IPV6_RECVPKTINFO
+#define NGX_HAVE_IPV6_RECVPKTINFO  1
+#endif
+
+
+#ifndef NGX_HAVE_DEFERRED_ACCEPT
+#define NGX_HAVE_DEFERRED_ACCEPT  1
+#endif
+
+
+#ifndef NGX_HAVE_KEEPALIVE_TUNABLE
+#define NGX_HAVE_KEEPALIVE_TUNABLE  1
+#endif
+
+
+#ifndef NGX_HAVE_TCP_FASTOPEN
+#define NGX_HAVE_TCP_FASTOPEN  1
+#endif
+
+
+#ifndef NGX_HAVE_TCP_INFO
+#define NGX_HAVE_TCP_INFO  1
+#endif
+
+
+#ifndef NGX_HAVE_ACCEPT4
+#define NGX_HAVE_ACCEPT4  1
+#endif
+
+
+#ifndef NGX_HAVE_EVENTFD
+#define NGX_HAVE_EVENTFD  1
+#endif
+
+
+#ifndef NGX_HAVE_SYS_EVENTFD_H
+#define NGX_HAVE_SYS_EVENTFD_H  1
+#endif
+
+
+#ifndef NGX_HAVE_UNIX_DOMAIN
+#define NGX_HAVE_UNIX_DOMAIN  1
+#endif
+
+
+#ifndef NGX_PTR_SIZE
+#define NGX_PTR_SIZE  8
+#endif
+
+
+#ifndef NGX_SIG_ATOMIC_T_SIZE
+#define NGX_SIG_ATOMIC_T_SIZE  4
+#endif
+
+
+#ifndef NGX_HAVE_LITTLE_ENDIAN
+#define NGX_HAVE_LITTLE_ENDIAN  1
+#endif
+
+
+#ifndef NGX_MAX_SIZE_T_VALUE
+#define NGX_MAX_SIZE_T_VALUE  9223372036854775807LL
+#endif
+
+
+#ifndef NGX_SIZE_T_LEN
+#define NGX_SIZE_T_LEN  (sizeof("-9223372036854775808") - 1)
+#endif
+
+
+#ifndef NGX_MAX_OFF_T_VALUE
+#define NGX_MAX_OFF_T_VALUE  9223372036854775807LL
+#endif
+
+
+#ifndef NGX_OFF_T_LEN
+#define NGX_OFF_T_LEN  (sizeof("-9223372036854775808") - 1)
+#endif
+
+
+#ifndef NGX_TIME_T_SIZE
+#define NGX_TIME_T_SIZE  8
+#endif
+
+
+#ifndef NGX_TIME_T_LEN
+#define NGX_TIME_T_LEN  (sizeof("-9223372036854775808") - 1)
+#endif
+
+
+#ifndef NGX_MAX_TIME_T_VALUE
+#define NGX_MAX_TIME_T_VALUE  9223372036854775807LL
+#endif
+
+
+#ifndef NGX_HAVE_INET6
+#define NGX_HAVE_INET6  1
+#endif
+
+
+#ifndef NGX_HAVE_PREAD
+#define NGX_HAVE_PREAD  1
+#endif
+
+
+#ifndef NGX_HAVE_PWRITE
+#define NGX_HAVE_PWRITE  1
+#endif
+
+
+#ifndef NGX_HAVE_PWRITEV
+#define NGX_HAVE_PWRITEV  1
+#endif
+
+
+#ifndef NGX_SYS_NERR
+#define NGX_SYS_NERR  41
+#endif
+
+
+#ifndef NGX_HAVE_LOCALTIME_R
+#define NGX_HAVE_LOCALTIME_R  1
+#endif
+
+
+#ifndef NGX_HAVE_CLOCK_MONOTONIC
+#define NGX_HAVE_CLOCK_MONOTONIC  1
+#endif
+
+
+#ifndef NGX_HAVE_POSIX_MEMALIGN
+#define NGX_HAVE_POSIX_MEMALIGN  1
+#endif
+
+
+#ifndef NGX_HAVE_MEMALIGN
+#define NGX_HAVE_MEMALIGN  1
+#endif
+
+
+#ifndef NGX_HAVE_MAP_ANON
+#define NGX_HAVE_MAP_ANON  1
+#endif
+
+
+#ifndef NGX_HAVE_MAP_DEVZERO
+#define NGX_HAVE_MAP_DEVZERO  1
+#endif
+
+
+#ifndef NGX_HAVE_SYSVSHM
+#define NGX_HAVE_SYSVSHM  1
+#endif
+
+
+#ifndef NGX_HAVE_POSIX_SEM
+#define NGX_HAVE_POSIX_SEM  1
+#endif
+
+
+#ifndef NGX_HAVE_MSGHDR_MSG_CONTROL
+#define NGX_HAVE_MSGHDR_MSG_CONTROL  1
+#endif
+
+
+#ifndef NGX_HAVE_FIONBIO
+#define NGX_HAVE_FIONBIO  1
+#endif
+
+
+#ifndef NGX_HAVE_FIONREAD
+#define NGX_HAVE_FIONREAD  1
+#endif
+
+
+#ifndef NGX_HAVE_GMTOFF
+#define NGX_HAVE_GMTOFF  1
+#endif
+
+
+#ifndef NGX_HAVE_D_TYPE
+#define NGX_HAVE_D_TYPE  1
+#endif
+
+
+#ifndef NGX_HAVE_SC_NPROCESSORS_ONLN
+#define NGX_HAVE_SC_NPROCESSORS_ONLN  1
+#endif
+
+
+#ifndef NGX_HAVE_OPENAT
+#define NGX_HAVE_OPENAT  1
+#endif
+
+
+#ifndef NGX_HAVE_GETADDRINFO
+#define NGX_HAVE_GETADDRINFO  1
+#endif
+
+
+#ifndef NGX_HTTP_CACHE
+#define NGX_HTTP_CACHE  1
+#endif
+
+
+#ifndef NGX_HTTP_GZIP
+#define NGX_HTTP_GZIP  1
+#endif
+
+
+#ifndef NGX_HTTP_SSI
+#define NGX_HTTP_SSI  1
+#endif
+
+
+#ifndef NGX_CRYPT
+#define NGX_CRYPT  1
+#endif
+
+
+#ifndef NGX_HTTP_X_FORWARDED_FOR
+#define NGX_HTTP_X_FORWARDED_FOR  1
+#endif
+
+
+#ifndef NGX_HTTP_X_FORWARDED_FOR
+#define NGX_HTTP_X_FORWARDED_FOR  1
+#endif
+
+
+#ifndef NGX_HTTP_UPSTREAM_ZONE
+#define NGX_HTTP_UPSTREAM_ZONE  1
+#endif
+
+
+#ifndef NGX_COMPAT
+#define NGX_COMPAT  1
+#endif
+
+
+#ifndef NGX_HTTP_GZIP
+#define NGX_HTTP_GZIP  1
+#endif
+
+
+#ifndef NGX_HTTP_DAV
+#define NGX_HTTP_DAV  1
+#endif
+
+
+#ifndef NGX_HTTP_REALIP
+#define NGX_HTTP_REALIP  1
+#endif
+
+
+#ifndef NGX_HTTP_X_FORWARDED_FOR
+#define NGX_HTTP_X_FORWARDED_FOR  1
+#endif
+
+
+#ifndef NGX_HTTP_HEADERS
+#define NGX_HTTP_HEADERS  1
+#endif
+
+
+#ifndef NGX_HTTP_UPSTREAM_ZONE
+#define NGX_HTTP_UPSTREAM_ZONE  1
+#endif
+
+
+#ifndef NGX_STREAM_UPSTREAM_ZONE
+#define NGX_STREAM_UPSTREAM_ZONE  1
+#endif
+
+
+#ifndef NGX_PCRE
+#define NGX_PCRE  1
+#endif
+
+
+#ifndef NGX_HAVE_PCRE_JIT
+#define NGX_HAVE_PCRE_JIT  1
+#endif
+
+
+#ifndef NGX_ZLIB
+#define NGX_ZLIB  1
+#endif
+
+
+#ifndef NGX_PREFIX
+#define NGX_PREFIX  "/usr/local/nginx/"
+#endif
+
+
+#ifndef NGX_CONF_PREFIX
+#define NGX_CONF_PREFIX  "conf/"
+#endif
+
+
+#ifndef NGX_SBIN_PATH
+#define NGX_SBIN_PATH  "sbin/nginx"
+#endif
+
+
+#ifndef NGX_CONF_PATH
+#define NGX_CONF_PATH  "conf/nginx.conf"
+#endif
+
+
+#ifndef NGX_PID_PATH
+#define NGX_PID_PATH  "logs/nginx.pid"
+#endif
+
+
+#ifndef NGX_LOCK_PATH
+#define NGX_LOCK_PATH  "logs/nginx.lock"
+#endif
+
+
+#ifndef NGX_ERROR_LOG_PATH
+#define NGX_ERROR_LOG_PATH  "logs/error.log"
+#endif
+
+
+#ifndef NGX_HTTP_LOG_PATH
+#define NGX_HTTP_LOG_PATH  "logs/access.log"
+#endif
+
+
+#ifndef NGX_HTTP_CLIENT_TEMP_PATH
+#define NGX_HTTP_CLIENT_TEMP_PATH  "client_body_temp"
+#endif
+
+
+#ifndef NGX_HTTP_PROXY_TEMP_PATH
+#define NGX_HTTP_PROXY_TEMP_PATH  "proxy_temp"
+#endif
+
+
+#ifndef NGX_HTTP_FASTCGI_TEMP_PATH
+#define NGX_HTTP_FASTCGI_TEMP_PATH  "fastcgi_temp"
+#endif
+
+
+#ifndef NGX_HTTP_UWSGI_TEMP_PATH
+#define NGX_HTTP_UWSGI_TEMP_PATH  "uwsgi_temp"
+#endif
+
+
+#ifndef NGX_HTTP_SCGI_TEMP_PATH
+#define NGX_HTTP_SCGI_TEMP_PATH  "scgi_temp"
+#endif
+
+
+#ifndef NGX_SUPPRESS_WARN
+#define NGX_SUPPRESS_WARN  1
+#endif
+
+
+#ifndef NGX_SMP
+#define NGX_SMP  1
+#endif
+
+
+#ifndef NGX_USER
+#define NGX_USER  "nobody"
+#endif
+
+
+#ifndef NGX_GROUP
+#define NGX_GROUP  "nogroup"
+#endif
+
diff --git a/srcpkgs/nginx-mod-headers-more/files/ngx_auto_config.h.armv6l b/srcpkgs/nginx-mod-headers-more/files/ngx_auto_config.h.armv6l
new file mode 100644
index 000000000000..b1d8bc06629d
--- /dev/null
+++ b/srcpkgs/nginx-mod-headers-more/files/ngx_auto_config.h.armv6l
@@ -0,0 +1,529 @@
+#define NGX_CONFIGURE " --with-compat --add-dynamic-module=../headers-more-nginx-module-0.33"
+
+#ifndef NGX_COMPILER
+#define NGX_COMPILER  "gcc 10.2.1 20201203 (GCC) "
+#endif
+
+
+#ifndef NGX_HAVE_GCC_ATOMIC
+#define NGX_HAVE_GCC_ATOMIC  1
+#endif
+
+
+#ifndef NGX_HAVE_C99_VARIADIC_MACROS
+#define NGX_HAVE_C99_VARIADIC_MACROS  1
+#endif
+
+
+#ifndef NGX_HAVE_GCC_VARIADIC_MACROS
+#define NGX_HAVE_GCC_VARIADIC_MACROS  1
+#endif
+
+
+#ifndef NGX_HAVE_GCC_BSWAP64
+#define NGX_HAVE_GCC_BSWAP64  1
+#endif
+
+
+#ifndef NGX_HAVE_EPOLL
+#define NGX_HAVE_EPOLL  1
+#endif
+
+
+#ifndef NGX_HAVE_CLEAR_EVENT
+#define NGX_HAVE_CLEAR_EVENT  1
+#endif
+
+
+#ifndef NGX_HAVE_EPOLLRDHUP
+#define NGX_HAVE_EPOLLRDHUP  1
+#endif
+
+
+#ifndef NGX_HAVE_EPOLLEXCLUSIVE
+#define NGX_HAVE_EPOLLEXCLUSIVE  1
+#endif
+
+
+#ifndef NGX_HAVE_O_PATH
+#define NGX_HAVE_O_PATH  1
+#endif
+
+
+#ifndef NGX_HAVE_SENDFILE
+#define NGX_HAVE_SENDFILE  1
+#endif
+
+
+#ifndef NGX_HAVE_SENDFILE64
+#define NGX_HAVE_SENDFILE64  1
+#endif
+
+
+#ifndef NGX_HAVE_PR_SET_DUMPABLE
+#define NGX_HAVE_PR_SET_DUMPABLE  1
+#endif
+
+
+#ifndef NGX_HAVE_PR_SET_KEEPCAPS
+#define NGX_HAVE_PR_SET_KEEPCAPS  1
+#endif
+
+
+#ifndef NGX_HAVE_CAPABILITIES
+#define NGX_HAVE_CAPABILITIES  1
+#endif
+
+
+#ifndef NGX_HAVE_GNU_CRYPT_R
+#define NGX_HAVE_GNU_CRYPT_R  1
+#endif
+
+
+#ifndef NGX_ALIGNMENT
+#define NGX_ALIGNMENT  16
+#endif
+
+
+#ifndef NGX_CPU_CACHE_LINE
+#define NGX_CPU_CACHE_LINE  32
+#endif
+
+
+#define NGX_KQUEUE_UDATA_T  (void *)
+
+
+#ifndef NGX_HAVE_POSIX_FADVISE
+#define NGX_HAVE_POSIX_FADVISE  1
+#endif
+
+
+#ifndef NGX_HAVE_O_DIRECT
+#define NGX_HAVE_O_DIRECT  1
+#endif
+
+
+#ifndef NGX_HAVE_ALIGNED_DIRECTIO
+#define NGX_HAVE_ALIGNED_DIRECTIO  1
+#endif
+
+
+#ifndef NGX_HAVE_STATFS
+#define NGX_HAVE_STATFS  1
+#endif
+
+
+#ifndef NGX_HAVE_STATVFS
+#define NGX_HAVE_STATVFS  1
+#endif
+
+
+#ifndef NGX_HAVE_DLOPEN
+#define NGX_HAVE_DLOPEN  1
+#endif
+
+
+#ifndef NGX_HAVE_SCHED_YIELD
+#define NGX_HAVE_SCHED_YIELD  1
+#endif
+
+
+#ifndef NGX_HAVE_SCHED_SETAFFINITY
+#define NGX_HAVE_SCHED_SETAFFINITY  1
+#endif
+
+
+#ifndef NGX_HAVE_REUSEPORT
+#define NGX_HAVE_REUSEPORT  1
+#endif
+
+
+#ifndef NGX_HAVE_TRANSPARENT_PROXY
+#define NGX_HAVE_TRANSPARENT_PROXY  1
+#endif
+
+
+#ifndef NGX_HAVE_IP_BIND_ADDRESS_NO_PORT
+#define NGX_HAVE_IP_BIND_ADDRESS_NO_PORT  1
+#endif
+
+
+#ifndef NGX_HAVE_IP_PKTINFO
+#define NGX_HAVE_IP_PKTINFO  1
+#endif
+
+
+#ifndef NGX_HAVE_IPV6_RECVPKTINFO
+#define NGX_HAVE_IPV6_RECVPKTINFO  1
+#endif
+
+
+#ifndef NGX_HAVE_DEFERRED_ACCEPT
+#define NGX_HAVE_DEFERRED_ACCEPT  1
+#endif
+
+
+#ifndef NGX_HAVE_KEEPALIVE_TUNABLE
+#define NGX_HAVE_KEEPALIVE_TUNABLE  1
+#endif
+
+
+#ifndef NGX_HAVE_TCP_FASTOPEN
+#define NGX_HAVE_TCP_FASTOPEN  1
+#endif
+
+
+#ifndef NGX_HAVE_TCP_INFO
+#define NGX_HAVE_TCP_INFO  1
+#endif
+
+
+#ifndef NGX_HAVE_ACCEPT4
+#define NGX_HAVE_ACCEPT4  1
+#endif
+
+
+#ifndef NGX_HAVE_EVENTFD
+#define NGX_HAVE_EVENTFD  1
+#endif
+
+
+#ifndef NGX_HAVE_SYS_EVENTFD_H
+#define NGX_HAVE_SYS_EVENTFD_H  1
+#endif
+
+
+#ifndef NGX_HAVE_UNIX_DOMAIN
+#define NGX_HAVE_UNIX_DOMAIN  1
+#endif
+
+
+#ifndef NGX_PTR_SIZE
+#define NGX_PTR_SIZE  4
+#endif
+
+
+#ifndef NGX_SIG_ATOMIC_T_SIZE
+#define NGX_SIG_ATOMIC_T_SIZE  4
+#endif
+
+
+#ifndef NGX_HAVE_LITTLE_ENDIAN
+#define NGX_HAVE_LITTLE_ENDIAN  1
+#endif
+
+
+#ifndef NGX_MAX_SIZE_T_VALUE
+#define NGX_MAX_SIZE_T_VALUE  2147483647
+#endif
+
+
+#ifndef NGX_SIZE_T_LEN
+#define NGX_SIZE_T_LEN  (sizeof("-2147483648") - 1)
+#endif
+
+
+#ifndef NGX_MAX_OFF_T_VALUE
+#define NGX_MAX_OFF_T_VALUE  9223372036854775807LL
+#endif
+
+
+#ifndef NGX_OFF_T_LEN
+#define NGX_OFF_T_LEN  (sizeof("-9223372036854775808") - 1)
+#endif
+
+
+#ifndef NGX_TIME_T_SIZE
+#define NGX_TIME_T_SIZE  4
+#endif
+
+
+#ifndef NGX_TIME_T_LEN
+#define NGX_TIME_T_LEN  (sizeof("-2147483648") - 1)
+#endif
+
+
+#ifndef NGX_MAX_TIME_T_VALUE
+#define NGX_MAX_TIME_T_VALUE  2147483647
+#endif
+
+
+#ifndef NGX_HAVE_INET6
+#define NGX_HAVE_INET6  1
+#endif
+
+
+#ifndef NGX_HAVE_PREAD
+#define NGX_HAVE_PREAD  1
+#endif
+
+
+#ifndef NGX_HAVE_PWRITE
+#define NGX_HAVE_PWRITE  1
+#endif
+
+
+#ifndef NGX_HAVE_PWRITEV
+#define NGX_HAVE_PWRITEV  1
+#endif
+
+
+#ifndef NGX_SYS_NERR
+#define NGX_SYS_NERR  41
+#endif
+
+
+#ifndef NGX_HAVE_LOCALTIME_R
+#define NGX_HAVE_LOCALTIME_R  1
+#endif
+
+
+#ifndef NGX_HAVE_CLOCK_MONOTONIC
+#define NGX_HAVE_CLOCK_MONOTONIC  1
+#endif
+
+
+#ifndef NGX_HAVE_POSIX_MEMALIGN
+#define NGX_HAVE_POSIX_MEMALIGN  1
+#endif
+
+
+#ifndef NGX_HAVE_MEMALIGN
+#define NGX_HAVE_MEMALIGN  1
+#endif
+
+
+#ifndef NGX_HAVE_MAP_ANON
+#define NGX_HAVE_MAP_ANON  1
+#endif
+
+
+#ifndef NGX_HAVE_MAP_DEVZERO
+#define NGX_HAVE_MAP_DEVZERO  1
+#endif
+
+
+#ifndef NGX_HAVE_SYSVSHM
+#define NGX_HAVE_SYSVSHM  1
+#endif
+
+
+#ifndef NGX_HAVE_POSIX_SEM
+#define NGX_HAVE_POSIX_SEM  1
+#endif
+
+
+#ifndef NGX_HAVE_MSGHDR_MSG_CONTROL
+#define NGX_HAVE_MSGHDR_MSG_CONTROL  1
+#endif
+
+
+#ifndef NGX_HAVE_FIONBIO
+#define NGX_HAVE_FIONBIO  1
+#endif
+
+
+#ifndef NGX_HAVE_FIONREAD
+#define NGX_HAVE_FIONREAD  1
+#endif
+
+
+#ifndef NGX_HAVE_GMTOFF
+#define NGX_HAVE_GMTOFF  1
+#endif
+
+
+#ifndef NGX_HAVE_D_TYPE
+#define NGX_HAVE_D_TYPE  1
+#endif
+
+
+#ifndef NGX_HAVE_SC_NPROCESSORS_ONLN
+#define NGX_HAVE_SC_NPROCESSORS_ONLN  1
+#endif
+
+
+#ifndef NGX_HAVE_OPENAT
+#define NGX_HAVE_OPENAT  1
+#endif
+
+
+#ifndef NGX_HAVE_GETADDRINFO
+#define NGX_HAVE_GETADDRINFO  1
+#endif
+
+
+#ifndef NGX_HTTP_CACHE
+#define NGX_HTTP_CACHE  1
+#endif
+
+
+#ifndef NGX_HTTP_GZIP
+#define NGX_HTTP_GZIP  1
+#endif
+
+
+#ifndef NGX_HTTP_SSI
+#define NGX_HTTP_SSI  1
+#endif
+
+
+#ifndef NGX_CRYPT
+#define NGX_CRYPT  1
+#endif
+
+
+#ifndef NGX_HTTP_X_FORWARDED_FOR
+#define NGX_HTTP_X_FORWARDED_FOR  1
+#endif
+
+
+#ifndef NGX_HTTP_X_FORWARDED_FOR
+#define NGX_HTTP_X_FORWARDED_FOR  1
+#endif
+
+
+#ifndef NGX_HTTP_UPSTREAM_ZONE
+#define NGX_HTTP_UPSTREAM_ZONE  1
+#endif
+
+
+#ifndef NGX_COMPAT
+#define NGX_COMPAT  1
+#endif
+
+
+#ifndef NGX_HTTP_GZIP
+#define NGX_HTTP_GZIP  1
+#endif
+
+
+#ifndef NGX_HTTP_DAV
+#define NGX_HTTP_DAV  1
+#endif
+
+
+#ifndef NGX_HTTP_REALIP
+#define NGX_HTTP_REALIP  1
+#endif
+
+
+#ifndef NGX_HTTP_X_FORWARDED_FOR
+#define NGX_HTTP_X_FORWARDED_FOR  1
+#endif
+
+
+#ifndef NGX_HTTP_HEADERS
+#define NGX_HTTP_HEADERS  1
+#endif
+
+
+#ifndef NGX_HTTP_UPSTREAM_ZONE
+#define NGX_HTTP_UPSTREAM_ZONE  1
+#endif
+
+
+#ifndef NGX_STREAM_UPSTREAM_ZONE
+#define NGX_STREAM_UPSTREAM_ZONE  1
+#endif
+
+
+#ifndef NGX_PCRE
+#define NGX_PCRE  1
+#endif
+
+
+#ifndef NGX_HAVE_PCRE_JIT
+#define NGX_HAVE_PCRE_JIT  1
+#endif
+
+
+#ifndef NGX_ZLIB
+#define NGX_ZLIB  1
+#endif
+
+
+#ifndef NGX_PREFIX
+#define NGX_PREFIX  "/usr/local/nginx/"
+#endif
+
+
+#ifndef NGX_CONF_PREFIX
+#define NGX_CONF_PREFIX  "conf/"
+#endif
+
+
+#ifndef NGX_SBIN_PATH
+#define NGX_SBIN_PATH  "sbin/nginx"
+#endif
+
+
+#ifndef NGX_CONF_PATH
+#define NGX_CONF_PATH  "conf/nginx.conf"
+#endif
+
+
+#ifndef NGX_PID_PATH
+#define NGX_PID_PATH  "logs/nginx.pid"
+#endif
+
+
+#ifndef NGX_LOCK_PATH
+#define NGX_LOCK_PATH  "logs/nginx.lock"
+#endif
+
+
+#ifndef NGX_ERROR_LOG_PATH
+#define NGX_ERROR_LOG_PATH  "logs/error.log"
+#endif
+
+
+#ifndef NGX_HTTP_LOG_PATH
+#define NGX_HTTP_LOG_PATH  "logs/access.log"
+#endif
+
+
+#ifndef NGX_HTTP_CLIENT_TEMP_PATH
+#define NGX_HTTP_CLIENT_TEMP_PATH  "client_body_temp"
+#endif
+
+
+#ifndef NGX_HTTP_PROXY_TEMP_PATH
+#define NGX_HTTP_PROXY_TEMP_PATH  "proxy_temp"
+#endif
+
+
+#ifndef NGX_HTTP_FASTCGI_TEMP_PATH
+#define NGX_HTTP_FASTCGI_TEMP_PATH  "fastcgi_temp"
+#endif
+
+
+#ifndef NGX_HTTP_UWSGI_TEMP_PATH
+#define NGX_HTTP_UWSGI_TEMP_PATH  "uwsgi_temp"
+#endif
+
+
+#ifndef NGX_HTTP_SCGI_TEMP_PATH
+#define NGX_HTTP_SCGI_TEMP_PATH  "scgi_temp"
+#endif
+
+
+#ifndef NGX_SUPPRESS_WARN
+#define NGX_SUPPRESS_WARN  1
+#endif
+
+
+#ifndef NGX_SMP
+#define NGX_SMP  1
+#endif
+
+
+#ifndef NGX_USER
+#define NGX_USER  "nobody"
+#endif
+
+
+#ifndef NGX_GROUP
+#define NGX_GROUP  "nogroup"
+#endif
+
diff --git a/srcpkgs/nginx-mod-headers-more/files/ngx_auto_config.h.armv6l.patch b/srcpkgs/nginx-mod-headers-more/files/ngx_auto_config.h.armv6l.patch
new file mode 120000
index 000000000000..59e84dccf5a1
--- /dev/null
+++ b/srcpkgs/nginx-mod-headers-more/files/ngx_auto_config.h.armv6l.patch
@@ -0,0 +1 @@
+../../nginx/files/ngx_auto_config.h.armv6l.patch
\ No newline at end of file
diff --git a/srcpkgs/nginx-mod-headers-more/template b/srcpkgs/nginx-mod-headers-more/template
new file mode 100644
index 000000000000..c1dbc3092c23
--- /dev/null
+++ b/srcpkgs/nginx-mod-headers-more/template
@@ -0,0 +1,52 @@
+# Template file for 'nginx-mod-headers-more'
+pkgname=nginx-mod-headers-more
+version=0.33
+revision=1
+_nginx_version=1.18.0
+create_wrksrc=yes
+build_wrksrc="nginx-${_nginx_version}"
+build_style=gnu-makefile
+make_build_args="modules"
+makedepends="pcre-devel"
+depends="nginx"
+short_desc="Nginx module to set and clear input and output headers"
+maintainer="Joel Beckmeyer <joel@beckmeyer.us>"
+license="BSD-2-Clause"
+homepage="https://github.com/openresty/headers-more-nginx-module"
+distfiles="https://nginx.org/download/nginx-${_nginx_version}.tar.gz
+ https://github.com/openresty/headers-more-nginx-module/archive/v${version}.tar.gz"
+checksum="4c373e7ab5bf91d34a4f11a0c9496561061ba5eee6020db272a17a7228d35f99
+ a3dcbab117a9c103bc1ea5200fc00a7b7d2af97ff7fd525f16f8ac2632e30fbf"
+
+if [ "$CROSS_BUILD" ]; then
+	hostmakedepends="${makedepends}"
+fi
+
+do_configure() {
+	cd ${wrksrc}/${build_wrksrc}
+	if [ "$CROSS_BUILD" ]; then
+		# fake configure run on host
+		unset CC CPP LD CFLAGS CPPFLAGS LDFLAGS
+	fi
+
+	./configure --with-compat \
+		--add-dynamic-module=../headers-more-nginx-module-${version}
+}
+
+pre_build() {
+	if [ "$CROSS_BUILD" ]; then
+		case "$XBPS_TARGET_MACHINE" in
+			arm*) cp "${FILESDIR}/ngx_auto_config.h.armv6l" objs/ngx_auto_config.h;;
+			aarch64*) cp "${FILESDIR}/ngx_auto_config.h.aarch64" objs/ngx_auto_config.h;;
+		esac
+	fi
+
+	sed -i 's/-lcrypt/$(LDFLAGS) &/' objs/Makefile
+}
+
+do_install() {
+	vmkdir usr/lib/nginx
+	vinstall objs/ngx_http_headers_more_filter_module.so 644 usr/lib/nginx
+
+	vlicense LICENSE
+}
diff --git a/srcpkgs/nginx/template b/srcpkgs/nginx/template
index 73b460d23e53..44a810a9fda9 100644
--- a/srcpkgs/nginx/template
+++ b/srcpkgs/nginx/template
@@ -2,6 +2,10 @@
 pkgname=nginx
 version=1.18.0
 revision=6
+# NOTE:
+# version must be kept in sync with all packaged modules (nginx-mod-*) as nginx
+# modules are built agaist the nginx source tree.
+# See srcpkgs/nginx-mod-headers-more/template for an example.
 build_style=gnu-makefile
 hostmakedepends="openssl-devel pcre-devel $(vopt_if geoip geoip-devel)"
 makedepends="${hostmakedepends}"

^ permalink raw reply	[flat|nested] 43+ messages in thread

* Re: New package: nginx-mod-headers-more-0.33
  2021-04-16  2:06 [PR PATCH] New package: ngx_headers_more-0.33 AluminumTank
                   ` (38 preceding siblings ...)
  2021-09-17 15:59 ` [PR PATCH] [Updated] " TinfoilSubmarine
@ 2021-09-17 16:02 ` TinfoilSubmarine
  2021-11-16 13:40 ` TinfoilSubmarine
  2021-11-16 13:40 ` [PR PATCH] [Closed]: " TinfoilSubmarine
  41 siblings, 0 replies; 43+ messages in thread
From: TinfoilSubmarine @ 2021-09-17 16:02 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 293 bytes --]

New comment by TinfoilSubmarine on void-packages repository

https://github.com/void-linux/void-packages/pull/30257#issuecomment-921909900

Comment:
I fixed up the depends variables by only pulling in the hostmakedepends for CROSS_BUILD, and removed a make dependency that was there in error.

^ permalink raw reply	[flat|nested] 43+ messages in thread

* Re: New package: nginx-mod-headers-more-0.33
  2021-04-16  2:06 [PR PATCH] New package: ngx_headers_more-0.33 AluminumTank
                   ` (39 preceding siblings ...)
  2021-09-17 16:02 ` TinfoilSubmarine
@ 2021-11-16 13:40 ` TinfoilSubmarine
  2021-11-16 13:40 ` [PR PATCH] [Closed]: " TinfoilSubmarine
  41 siblings, 0 replies; 43+ messages in thread
From: TinfoilSubmarine @ 2021-11-16 13:40 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 295 bytes --]

New comment by TinfoilSubmarine on void-packages repository

https://github.com/void-linux/void-packages/pull/30257#issuecomment-970285373

Comment:
Since creating this PR, I have switched to `caddy` and no longer use `nginx` on a regular basis and thus would not be a good maintainer for this.

^ permalink raw reply	[flat|nested] 43+ messages in thread

* Re: [PR PATCH] [Closed]: New package: nginx-mod-headers-more-0.33
  2021-04-16  2:06 [PR PATCH] New package: ngx_headers_more-0.33 AluminumTank
                   ` (40 preceding siblings ...)
  2021-11-16 13:40 ` TinfoilSubmarine
@ 2021-11-16 13:40 ` TinfoilSubmarine
  41 siblings, 0 replies; 43+ messages in thread
From: TinfoilSubmarine @ 2021-11-16 13:40 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1665 bytes --]

There's a closed pull request on the void-packages repository

New package: nginx-mod-headers-more-0.33
https://github.com/void-linux/void-packages/pull/30257

Description:
<!-- Mark items with [x] where applicable -->

#### General
- [X] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)

#### Have the results of the proposed changes been tested?
- [X] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR

<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->
<!-- 
#### Does it build and run successfully? 
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [ ] I built this PR locally for my native architecture, (ARCH-LIBC)
- [ ] I built this PR locally for these architectures (if supported. mark crossbuilds):
  - [ ] aarch64-musl
  - [ ] armv7l
  - [ ] armv6l-musl
-->

This NGINX module is useful for quickly adding headers across all server blocks for an NGINX installation, which is useful for e.g. a [one-line opting-out of Google's FLoC](https://plausible.io/blog/google-floc).

^ permalink raw reply	[flat|nested] 43+ messages in thread

end of thread, other threads:[~2021-11-16 13:40 UTC | newest]

Thread overview: 43+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-16  2:06 [PR PATCH] New package: ngx_headers_more-0.33 AluminumTank
2021-04-16 21:15 ` [PR PATCH] [Updated] " AluminumTank
2021-04-16 21:16 ` AluminumTank
2021-04-16 21:28 ` AluminumTank
2021-08-11 20:59 ` [PR REVIEW] " paper42
2021-08-11 20:59 ` paper42
2021-08-11 20:59 ` paper42
2021-08-11 20:59 ` paper42
2021-08-11 20:59 ` paper42
2021-08-11 20:59 ` paper42
2021-08-11 21:23 ` paper42
2021-08-14 19:05 ` AluminumTank
2021-08-14 19:05 ` AluminumTank
2021-08-14 19:14 ` [PR PATCH] [Updated] " AluminumTank
2021-08-14 19:18 ` [PR REVIEW] " AluminumTank
2021-08-14 19:19 ` AluminumTank
2021-08-14 19:27 ` [PR PATCH] [Updated] " AluminumTank
2021-08-14 19:27 ` [PR REVIEW] " AluminumTank
2021-08-14 19:29 ` Duncaen
2021-08-14 19:29 ` Duncaen
2021-08-14 19:29 ` Duncaen
2021-08-14 19:30 ` Duncaen
2021-08-14 19:30 ` Duncaen
2021-08-14 19:31 ` Duncaen
2021-08-14 20:13 ` paper42
2021-08-14 20:15 ` paper42
2021-08-14 20:21 ` Duncaen
2021-08-14 20:24 ` paper42
2021-08-14 20:31 ` Duncaen
2021-08-14 20:36 ` Duncaen
2021-08-16 12:39 ` [PR PATCH] [Updated] " AluminumTank
2021-09-10 14:32 ` New package: nginx-mod-headers-more-0.33 TinfoilSubmarine
2021-09-10 15:44 ` [PR PATCH] [Updated] " TinfoilSubmarine
2021-09-10 15:47 ` TinfoilSubmarine
2021-09-10 15:52 ` TinfoilSubmarine
2021-09-10 16:18 ` TinfoilSubmarine
2021-09-17 14:43 ` [PR PATCH] [Updated] " TinfoilSubmarine
2021-09-17 14:47 ` TinfoilSubmarine
2021-09-17 14:48 ` TinfoilSubmarine
2021-09-17 15:59 ` [PR PATCH] [Updated] " TinfoilSubmarine
2021-09-17 16:02 ` TinfoilSubmarine
2021-11-16 13:40 ` TinfoilSubmarine
2021-11-16 13:40 ` [PR PATCH] [Closed]: " TinfoilSubmarine

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).