diff options
Diffstat (limited to 'www-servers/nginx-unit/files')
-rw-r--r-- | www-servers/nginx-unit/files/nginx-unit-1.25.0-glibc-2.34.patch | 22 | ||||
-rw-r--r-- | www-servers/nginx-unit/files/nginx-unit.initd | 4 | ||||
-rw-r--r-- | www-servers/nginx-unit/files/nginx-unit.service | 13 |
3 files changed, 37 insertions, 2 deletions
diff --git a/www-servers/nginx-unit/files/nginx-unit-1.25.0-glibc-2.34.patch b/www-servers/nginx-unit/files/nginx-unit-1.25.0-glibc-2.34.patch new file mode 100644 index 000000000000..c2f5165402ac --- /dev/null +++ b/www-servers/nginx-unit/files/nginx-unit-1.25.0-glibc-2.34.patch @@ -0,0 +1,22 @@ +From 0125873b1dfbe6e671e3c9874ec2653f1b7832fa Mon Sep 17 00:00:00 2001 +From: Remi Collet <remi@remirepo.net> +Date: Fri, 3 Sep 2021 18:03:38 +0200 +Subject: [PATCH] fix build with recent glibc + +--- + src/nxt_thread.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/nxt_thread.h b/src/nxt_thread.h +index d7800cc6..36e74cde 100644 +--- a/src/nxt_thread.h ++++ b/src/nxt_thread.h +@@ -142,7 +142,7 @@ nxt_thread_yield() \ + #endif + + +-#if (PTHREAD_STACK_MIN) ++#if defined(PTHREAD_STACK_MIN) + #define NXT_THREAD_STACK_MIN PTHREAD_STACK_MIN + + #else diff --git a/www-servers/nginx-unit/files/nginx-unit.initd b/www-servers/nginx-unit/files/nginx-unit.initd index 41165a659d93..f7bd33af9334 100644 --- a/www-servers/nginx-unit/files/nginx-unit.initd +++ b/www-servers/nginx-unit/files/nginx-unit.initd @@ -1,5 +1,5 @@ #!/sbin/openrc-run -# Copyright 1999-2019 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 command="/usr/sbin/unitd" @@ -10,5 +10,5 @@ depend() { } start_pre() { - checkpath -d /var/lib/nginx-unit -o root:root 0770 + checkpath -d /var/lib/nginx-unit -o root:root -m 0770 } diff --git a/www-servers/nginx-unit/files/nginx-unit.service b/www-servers/nginx-unit/files/nginx-unit.service new file mode 100644 index 000000000000..e77bb8a38d62 --- /dev/null +++ b/www-servers/nginx-unit/files/nginx-unit.service @@ -0,0 +1,13 @@ +[Unit] +Description=NGINX Unit +Wants=network-online.target +After=network-online.target + +[Service] +Type=forking +PIDFile=/run/nginx-unit.pid +ExecStart=/usr/sbin/unitd +ExecReload=/bin/kill -HUP $MAINPID + +[Install] +WantedBy=multi-user.target |