pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/www/nginx nginx: let the RC script work unprivileged
details: https://anonhg.NetBSD.org/pkgsrc/rev/5d8ed6f126cc
branches: trunk
changeset: 769103:5d8ed6f126cc
user: khorben <khorben%pkgsrc.org@localhost>
date: Mon Nov 08 01:02:01 2021 +0000
description:
nginx: let the RC script work unprivileged
This takes advantage of the introduction of the SYSCONFBASE variable.
Tested on NetBSD/amd64.
Bumps PKGREVISION.
diffstat:
www/nginx/Makefile | 4 ++--
www/nginx/files/nginx.sh | 8 ++++++--
2 files changed, 8 insertions(+), 4 deletions(-)
diffs (34 lines):
diff -r c2a05ff8451c -r 5d8ed6f126cc www/nginx/Makefile
--- a/www/nginx/Makefile Mon Nov 08 00:59:01 2021 +0000
+++ b/www/nginx/Makefile Mon Nov 08 01:02:01 2021 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.102 2021/09/15 12:37:05 adam Exp $
+# $NetBSD: Makefile,v 1.103 2021/11/08 01:02:01 khorben Exp $
DISTNAME= nginx-1.20.1
-PKGREVISION= 1
+PKGREVISION= 2
MAINTAINER= joerg%NetBSD.org@localhost
diff -r c2a05ff8451c -r 5d8ed6f126cc www/nginx/files/nginx.sh
--- a/www/nginx/files/nginx.sh Mon Nov 08 00:59:01 2021 +0000
+++ b/www/nginx/files/nginx.sh Mon Nov 08 01:02:01 2021 +0000
@@ -1,11 +1,15 @@
#!@RCD_SCRIPTS_SHELL@
#
-# $NetBSD: nginx.sh,v 1.3 2014/04/27 11:05:45 rodent Exp $
+# $NetBSD: nginx.sh,v 1.4 2021/11/08 01:02:01 khorben Exp $
#
# PROVIDE: nginx
# REQUIRE: DAEMON
+#
+# You will need to set some variables in @SYSCONFBASE@/rc.conf to start nginx:
+#
+# nginx=YES
-. /etc/rc.subr
+$_rc_subr_loaded . @SYSCONFBASE@/rc.subr
name="nginx"
rcvar=${name}
Home |
Main Index |
Thread Index |
Old Index