pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/www/privoxy privoxy: let the RC script work unprivileged



details:   https://anonhg.NetBSD.org/pkgsrc/rev/e5fbe16f8167
branches:  trunk
changeset: 769647:e5fbe16f8167
user:      khorben <khorben%pkgsrc.org@localhost>
date:      Thu Nov 18 03:13:29 2021 +0000

description:
privoxy: let the RC script work unprivileged

This takes advantage of the introduction of the SYSCONFBASE variable.
Tested on NetBSD/amd64.

Bumps PKGREVISION.

diffstat:

 www/privoxy/Makefile         |   4 ++--
 www/privoxy/files/privoxy.sh |  11 ++++++++---
 2 files changed, 10 insertions(+), 5 deletions(-)

diffs (38 lines):

diff -r 4fd16d0b7f63 -r e5fbe16f8167 www/privoxy/Makefile
--- a/www/privoxy/Makefile      Thu Nov 18 02:45:29 2021 +0000
+++ b/www/privoxy/Makefile      Thu Nov 18 03:13:29 2021 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.69 2021/05/24 19:55:56 wiz Exp $
+# $NetBSD: Makefile,v 1.70 2021/11/18 03:13:29 khorben Exp $
 
 DISTNAME=      ${PKGNAME_NOREV}-stable-src
 PKGNAME=       privoxy-3.0.29
-PKGREVISION=   1
+PKGREVISION=   2
 CATEGORIES=    www
 MASTER_SITES=  https://www.privoxy.org/sf-download-mirror/Sources/${PKGVERSION_NOREV}%20(stable)/
 
diff -r 4fd16d0b7f63 -r e5fbe16f8167 www/privoxy/files/privoxy.sh
--- a/www/privoxy/files/privoxy.sh      Thu Nov 18 02:45:29 2021 +0000
+++ b/www/privoxy/files/privoxy.sh      Thu Nov 18 03:13:29 2021 +0000
@@ -1,12 +1,17 @@
 #!@RCD_SCRIPTS_SHELL@
 #
-# $NetBSD: privoxy.sh,v 1.5 2009/02/04 21:20:39 drochner Exp $
+# $NetBSD: privoxy.sh,v 1.6 2021/11/18 03:13:29 khorben Exp $
 #
-
+# Startup script for privoxy
+#
 # PROVIDE: privoxy
 # REQUIRE: DAEMON
+#
+# You will need to set some variables in @SYSCONFBASE@/rc.conf to start privoxy:
+#
+# privoxy=YES
 
-. /etc/rc.subr
+$_rc_subr_loaded . @SYSCONFBASE@/rc.subr
 
 name="privoxy"
 rcvar=$name



Home | Main Index | Thread Index | Old Index