pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mail/postfix postfix: let the RC script work unprivileged



details:   https://anonhg.NetBSD.org/pkgsrc/rev/c134dd2e6564
branches:  trunk
changeset: 457585:c134dd2e6564
user:      khorben <khorben%pkgsrc.org@localhost>
date:      Sun Aug 29 21:04:55 2021 +0000

description:
postfix: let the RC script work unprivileged

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

Bumps PKGREVISION.

diffstat:

 mail/postfix/Makefile         |  4 ++--
 mail/postfix/files/postfix.sh |  9 ++++++---
 2 files changed, 8 insertions(+), 5 deletions(-)

diffs (36 lines):

diff -r c3a60fd30056 -r c134dd2e6564 mail/postfix/Makefile
--- a/mail/postfix/Makefile     Sun Aug 29 20:13:41 2021 +0000
+++ b/mail/postfix/Makefile     Sun Aug 29 21:04:55 2021 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.329 2021/08/14 08:58:20 taca Exp $
+# $NetBSD: Makefile,v 1.330 2021/08/29 21:04:55 khorben Exp $
 
-PKGREVISION= 1
+PKGREVISION= 2
 .include "../../mail/postfix/Makefile.common"
 
 COMMENT=       Fast, easy to administer, and secure mail transfer agent
diff -r c3a60fd30056 -r c134dd2e6564 mail/postfix/files/postfix.sh
--- a/mail/postfix/files/postfix.sh     Sun Aug 29 20:13:41 2021 +0000
+++ b/mail/postfix/files/postfix.sh     Sun Aug 29 21:04:55 2021 +0000
@@ -1,14 +1,17 @@
 #!@RCD_SCRIPTS_SHELL@
 #
-# $NetBSD: postfix.sh,v 1.5 2005/12/30 06:29:41 martti Exp $
+# $NetBSD: postfix.sh,v 1.6 2021/08/29 21:04:55 khorben Exp $
 #
-
 # PROVIDE: mail
 # REQUIRE: LOGIN
 #      we make mail start late, so that things like .forward's are not
 #      processed until the system is fully operational
+#
+# You will need to set some variables in @SYSCONFBASE@/rc.conf to start postfix:
+#
+# postfix=YES
 
-. /etc/rc.subr
+$_rc_subr_loaded . @SYSCONFBASE@/rc.subr
 
 name="postfix"
 rcvar=$name



Home | Main Index | Thread Index | Old Index