summaryrefslogtreecommitdiff
path: root/mail/postfix
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2004-07-18 23:42:48 +0000
committerjlam <jlam@pkgsrc.org>2004-07-18 23:42:48 +0000
commit338b9a9d3b7eadf2e3c3dca4222ce82452cff7cf (patch)
tree53f0758178f7f0635d3fdd9e3b272ae7d2adbad5 /mail/postfix
parent392273416e2ba96b740e7ebdf92ef52f328ad52e (diff)
downloadpkgsrc-338b9a9d3b7eadf2e3c3dca4222ce82452cff7cf.tar.gz
/var/spool/postfix is stored in the Makefile variable POSTFIX_SPOOL. Be
pedantic and substitute for it so that if we ever have a way to change it, postfix.sh will still be correct.
Diffstat (limited to 'mail/postfix')
-rw-r--r--mail/postfix/Makefile3
-rw-r--r--mail/postfix/files/postfix.sh4
2 files changed, 4 insertions, 3 deletions
diff --git a/mail/postfix/Makefile b/mail/postfix/Makefile
index 7250e18b05e..6f39a10c67c 100644
--- a/mail/postfix/Makefile
+++ b/mail/postfix/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.134 2004/07/18 19:16:31 jlam Exp $
+# $NetBSD: Makefile,v 1.135 2004/07/18 23:42:48 jlam Exp $
DISTNAME= postfix-2.1.3
CATEGORIES= mail
@@ -149,6 +149,7 @@ POSTFIX_CONF_FILES+= src/global/mail_params.h
FILES_SUBST+= SHAREDIR=${SHAREDIR}
MESSAGE_SUBST+= SHAREDIR=${SHAREDIR}
PLIST_SUBST+= POSTFIX_SPOOL=${POSTFIX_SPOOL}
+FILES_SUBST+= POSTFIX_SPOOL=${POSTFIX_SPOOL}
PKG_GROUPS?= postfix maildrop
PKG_USERS?= postfix:postfix::Postfix\\ User:${POSTFIX_SPOOL}
diff --git a/mail/postfix/files/postfix.sh b/mail/postfix/files/postfix.sh
index a91f7104503..312a00a1d2c 100644
--- a/mail/postfix/files/postfix.sh
+++ b/mail/postfix/files/postfix.sh
@@ -1,6 +1,6 @@
#!@RCD_SCRIPTS_SHELL@
#
-# $NetBSD: postfix.sh,v 1.1 2004/03/07 10:13:46 grant Exp $
+# $NetBSD: postfix.sh,v 1.2 2004/07/18 23:42:48 jlam Exp $
#
# PROVIDE: mail
@@ -18,7 +18,7 @@ start_cmd="${name} "'${rc_arg}'
stop_cmd=$start_cmd
reload_cmd=$start_cmd
extra_commands="reload"
-spooletcdir="/var/spool/${name}/etc"
+spooletcdir="@POSTFIX_SPOOL@/etc"
required_dirs=$spooletcdir
postfix_precmd()