pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mail/fetchmail fetchmail: let the RC script work unpri...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/f9491c67bd8c
branches:  trunk
changeset: 769273:f9491c67bd8c
user:      khorben <khorben%pkgsrc.org@localhost>
date:      Wed Nov 10 19:24:52 2021 +0000

description:
fetchmail: let the RC script work unprivileged

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

Bumps PKGREVISION.

diffstat:

 mail/fetchmail/Makefile           |   4 ++--
 mail/fetchmail/files/fetchmail.sh |  12 ++++++++----
 2 files changed, 10 insertions(+), 6 deletions(-)

diffs (46 lines):

diff -r f701ca2bc564 -r f9491c67bd8c mail/fetchmail/Makefile
--- a/mail/fetchmail/Makefile   Wed Nov 10 16:10:10 2021 +0000
+++ b/mail/fetchmail/Makefile   Wed Nov 10 19:24:52 2021 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.199 2021/10/21 07:46:35 wiz Exp $
+# $NetBSD: Makefile,v 1.200 2021/11/10 19:24:52 khorben Exp $
 
 # Note to updaters: mail/fetchmailconf reaches over here, make sure it builds.
 DISTNAME=      fetchmail-6.4.21
-PKGREVISION=   1
+PKGREVISION=   2
 CATEGORIES=    mail
 MASTER_SITES=  ${MASTER_SITE_SOURCEFORGE:=fetchmail/}
 EXTRACT_SUFX=  .tar.xz
diff -r f701ca2bc564 -r f9491c67bd8c mail/fetchmail/files/fetchmail.sh
--- a/mail/fetchmail/files/fetchmail.sh Wed Nov 10 16:10:10 2021 +0000
+++ b/mail/fetchmail/files/fetchmail.sh Wed Nov 10 19:24:52 2021 +0000
@@ -1,12 +1,16 @@
 #!@RCD_SCRIPTS_SHELL@
 #
-# $NetBSD: fetchmail.sh,v 1.3 2011/03/20 01:38:36 shattered Exp $
+# $NetBSD: fetchmail.sh,v 1.4 2021/11/10 19:24:52 khorben Exp $
 #
 # PROVIDE: fetchmail
 # REQUIRE: mail
+#
+# You will need to set some variables in @SYSCONFBASE@/rc.conf to start fetchmail:
+#
+# fetchmail=YES
 
-if [ -f /etc/rc.subr ]; then
-       . /etc/rc.subr
+if [ -f @SYSCONFBASE@/rc.subr ]; then
+       $_rc_subr_loaded . @SYSCONFBASE@/rc.subr
 fi
 
 name="fetchmail"
@@ -29,7 +33,7 @@
        @ECHO@ '.'
 }
 
-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