summaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
authorkhorben <khorben@pkgsrc.org>2021-11-08 01:02:01 +0000
committerkhorben <khorben@pkgsrc.org>2021-11-08 01:02:01 +0000
commit3c6dee77dd3a0fcdf5f16b2c6aa6706c4cfa4068 (patch)
tree6f4340e6d13e39522363b60a85a692058e4fe67f /www
parent2307e01573288b13ba0e939c74980e6cc56f9cb7 (diff)
downloadpkgsrc-3c6dee77dd3a0fcdf5f16b2c6aa6706c4cfa4068.tar.gz
nginx: let the RC script work unprivileged
This takes advantage of the introduction of the SYSCONFBASE variable. Tested on NetBSD/amd64. Bumps PKGREVISION.
Diffstat (limited to 'www')
-rw-r--r--www/nginx/Makefile4
-rw-r--r--www/nginx/files/nginx.sh8
2 files changed, 8 insertions, 4 deletions
diff --git a/www/nginx/Makefile b/www/nginx/Makefile
index 8e4b77193d2..b30882882a9 100644
--- a/www/nginx/Makefile
+++ b/www/nginx/Makefile
@@ -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
diff --git a/www/nginx/files/nginx.sh b/www/nginx/files/nginx.sh
index b74922d738b..3a3f4de8085 100644
--- a/www/nginx/files/nginx.sh
+++ b/www/nginx/files/nginx.sh
@@ -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}