summaryrefslogtreecommitdiff
path: root/mail/postfix/files
diff options
context:
space:
mode:
authorkhorben <khorben@pkgsrc.org>2021-08-29 21:04:55 +0000
committerkhorben <khorben@pkgsrc.org>2021-08-29 21:04:55 +0000
commitc36e767e97ebd2e6822350e67a0678ebd4db646c (patch)
tree0c3ccf7c49c4b4d2b61c637c8c344fea85c18e0e /mail/postfix/files
parenta01412f80e0431b411d4b5c5347f63f86beea3ed (diff)
downloadpkgsrc-c36e767e97ebd2e6822350e67a0678ebd4db646c.tar.gz
postfix: let the RC script work unprivileged
This takes advantage of the introduction of the SYSCONFBASE variable. Tested on NetBSD/amd64. Bumps PKGREVISION.
Diffstat (limited to 'mail/postfix/files')
-rw-r--r--mail/postfix/files/postfix.sh9
1 files changed, 6 insertions, 3 deletions
diff --git a/mail/postfix/files/postfix.sh b/mail/postfix/files/postfix.sh
index 6c35eb99a21..72fed804a74 100644
--- a/mail/postfix/files/postfix.sh
+++ b/mail/postfix/files/postfix.sh
@@ -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