pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/print/cups-base cups-base: let the RC script work unpr...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/26e7781401a8
branches:  trunk
changeset: 769100:26e7781401a8
user:      khorben <khorben%pkgsrc.org@localhost>
date:      Mon Nov 08 00:56:35 2021 +0000

description:
cups-base: let the RC script work unprivileged

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

Bumps PKGREVISION.

diffstat:

 print/cups-base/Makefile       |   4 ++--
 print/cups-base/files/cupsd.sh |  10 +++++-----
 2 files changed, 7 insertions(+), 7 deletions(-)

diffs (51 lines):

diff -r 859a3b5b1215 -r 26e7781401a8 print/cups-base/Makefile
--- a/print/cups-base/Makefile  Mon Nov 08 00:45:43 2021 +0000
+++ b/print/cups-base/Makefile  Mon Nov 08 00:56:35 2021 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.44 2021/10/21 07:46:32 wiz Exp $
+# $NetBSD: Makefile,v 1.45 2021/11/08 00:56:35 khorben Exp $
 
-PKGREVISION= 3
+PKGREVISION= 4
 .include "../../print/cups/Makefile.common"
 
 PKGNAME=       cups-base-${CUPS_VERS}
diff -r 859a3b5b1215 -r 26e7781401a8 print/cups-base/files/cupsd.sh
--- a/print/cups-base/files/cupsd.sh    Mon Nov 08 00:45:43 2021 +0000
+++ b/print/cups-base/files/cupsd.sh    Mon Nov 08 00:56:35 2021 +0000
@@ -1,13 +1,13 @@
 #!@RCD_SCRIPTS_SHELL@
 #
-# $NetBSD: cupsd.sh,v 1.1 2017/11/12 14:10:15 khorben Exp $
+# $NetBSD: cupsd.sh,v 1.2 2021/11/08 00:56:35 khorben Exp $
 #
 # Common UNIX Printing System daemon
 #
 # PROVIDE: cups
 # REQUIRE: DAEMON
 #
-# You will need to set some variables in /etc/rc.conf to start cupsd:
+# You will need to set some variables in @SYSCONFBASE@/rc.conf to start cupsd:
 #
 # cupsd=YES
 # cupsd_wait=YES       # set to "YES" to wait for cupsd to detect printers;
@@ -16,8 +16,8 @@
 #                      #   to respond before we declare it not responding;
 #                      #   this variable is optional and defaults to "60".
 
-if [ -f /etc/rc.subr ]; then
-       . /etc/rc.subr
+if [ -f @SYSCONFBASE@/rc.subr ]; then
+       . @SYSCONFBASE@/rc.subr
 fi
 
 name="cupsd"
@@ -63,7 +63,7 @@
        fi
 }
 
-if [ -f /etc/rc.subr ]; then
+if [ -f @SYSCONFBASE@/rc.subr ]; then
        load_rc_config $name
        : ${cupsd_wait:=NO}
        : ${cupsd_timeout:=60}



Home | Main Index | Thread Index | Old Index