/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.
This commit is contained in:
jlam 2004-07-18 23:42:48 +00:00
parent 392273416e
commit 338b9a9d3b
2 changed files with 4 additions and 3 deletions

View file

@ -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}

View file

@ -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()