pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/security/cyrus-saslauthd cyrus-saslauthd: let the RC s...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/7bf63ec4d4dd
branches:  trunk
changeset: 378960:7bf63ec4d4dd
user:      khorben <khorben%pkgsrc.org@localhost>
date:      Tue May 10 03:34:16 2022 +0000

description:
cyrus-saslauthd: let the RC script work unprivileged

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

Bumps PKGREVISION.

diffstat:

 security/cyrus-saslauthd/Makefile           |   3 ++-
 security/cyrus-saslauthd/files/saslauthd.sh |  12 +++++++-----
 2 files changed, 9 insertions(+), 6 deletions(-)

diffs (47 lines):

diff -r 3eaabf53e180 -r 7bf63ec4d4dd security/cyrus-saslauthd/Makefile
--- a/security/cyrus-saslauthd/Makefile Mon May 09 22:08:20 2022 +0000
+++ b/security/cyrus-saslauthd/Makefile Tue May 10 03:34:16 2022 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.57 2022/02/24 11:00:04 wiz Exp $
+# $NetBSD: Makefile,v 1.58 2022/05/10 03:34:16 khorben Exp $
 
 PKGNAME=       ${DISTNAME:S/sasl/saslauthd/}
+PKGREVISION=   1
 CONFLICTS+=    cyrus-sasl<2.1.15nb2
 
 .include "../../security/cyrus-sasl/Makefile.common"
diff -r 3eaabf53e180 -r 7bf63ec4d4dd security/cyrus-saslauthd/files/saslauthd.sh
--- a/security/cyrus-saslauthd/files/saslauthd.sh       Mon May 09 22:08:20 2022 +0000
+++ b/security/cyrus-saslauthd/files/saslauthd.sh       Tue May 10 03:34:16 2022 +0000
@@ -1,16 +1,18 @@
 #!@RCD_SCRIPTS_SHELL@
 #
-# $NetBSD: saslauthd.sh,v 1.3 2004/08/04 20:08:38 jlam Exp $
+# $NetBSD: saslauthd.sh,v 1.4 2022/05/10 03:34:16 khorben Exp $
 #
 # The saslauthd daemon allows cleartext UNIX password authentication via
 # several authentication mechanisms with Cyrus SASL.
 #
 # PROVIDE: saslauthd
 # REQUIRE: DAEMON
+#
+# You will need to set some variables in @SYSCONFBASE@/rc.conf to start saslauthd:
+#
+# saslauthd=YES
 
-if [ -f /etc/rc.subr ]; then
-       . /etc/rc.subr
-fi
+$_rc_subr_loaded . @SYSCONFBASE@/rc.subr
 
 name="saslauthd"
 rcvar="${name}"
@@ -30,7 +32,7 @@
         fi
 }
 
-if [ -f /etc/rc.subr ]; then
+if [ -f @SYSCONFBASE@/rc.subr ]; then
        load_rc_config $name
        run_rc_command "$1"
 else



Home | Main Index | Thread Index | Old Index