summaryrefslogtreecommitdiff
path: root/mail/postfix/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'mail/postfix/Makefile')
-rw-r--r--mail/postfix/Makefile17
1 files changed, 9 insertions, 8 deletions
diff --git a/mail/postfix/Makefile b/mail/postfix/Makefile
index 2750e12db35..f9584c88ae0 100644
--- a/mail/postfix/Makefile
+++ b/mail/postfix/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.292 2016/09/18 17:10:28 taca Exp $
+# $NetBSD: Makefile,v 1.293 2016/10/28 16:10:51 jperkin Exp $
.include "../../mail/postfix/Makefile.common"
@@ -9,8 +9,8 @@ CONFLICTS+= esmtp>=1.2 nullmailer-[0-9]*
USE_TOOLS+= perl
-SPECIAL_PERMS+= sbin/postdrop postfix maildrop 2555
-SPECIAL_PERMS+= sbin/postqueue postfix maildrop 2555
+SPECIAL_PERMS+= sbin/postdrop ${POSTFIX_USER} ${MAILDROP_GROUP} 2555
+SPECIAL_PERMS+= sbin/postqueue ${POSTFIX_USER} ${MAILDROP_GROUP} 2555
REPLACE_PERL+= auxiliary/qshape/qshape.pl
@@ -31,13 +31,14 @@ PLIST_SRC+= ${PKGDIR}/PLIST
RCD_SCRIPTS= postfix
OWN_DIRS+= ${POSTFIX_QUEUE_DIR} ${POSTFIX_QUEUE_DIR}/etc
-OWN_DIRS_PERMS+= ${POSTFIX_DATA_DIR} postfix postfix 0700
+OWN_DIRS_PERMS+= ${POSTFIX_DATA_DIR} ${POSTFIX_USER} ${POSTFIX_GROUP} 0700
MAKE_DIRS+= ${METADIR}/dynamicmaps.cf.d ${METADIR}/postfix-files.d
-PKG_GROUPS?= postfix maildrop
-PKG_USERS?= postfix:postfix
-PKG_GECOS.postfix= Postfix User
-PKG_HOME.postfix= ${POSTFIX_QUEUE_DIR}
+PKG_GROUPS?= ${POSTFIX_GROUP} ${MAILDROP_GROUP}
+PKG_USERS?= ${POSTFIX_USER}:${POSTFIX_GROUP}
+
+PKG_GECOS.${POSTFIX_USER}= Postfix User
+PKG_HOME.${POSTFIX_USER}= ${POSTFIX_QUEUE_DIR}
CONF_FILES= # empty
.for i in main.cf master.cf