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

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).