pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/mail/postfix Set data_directory's default to "/var/db/...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/ddc38f2aac3b
branches:  trunk
changeset: 539816:ddc38f2aac3b
user:      taca <taca%pkgsrc.org@localhost>
date:      Fri Mar 14 01:13:36 2008 +0000

description:
Set data_directory's default to "/var/db/postfix" and create it properly
install stage.

It should be fix some problem; running tls and find command's error
on start.

Bump PKGREVISION.

diffstat:

 mail/postfix/Makefile |  11 ++++++++---
 1 files changed, 8 insertions(+), 3 deletions(-)

diffs (50 lines):

diff -r d9d6994f7b33 -r ddc38f2aac3b mail/postfix/Makefile
--- a/mail/postfix/Makefile     Fri Mar 14 01:03:33 2008 +0000
+++ b/mail/postfix/Makefile     Fri Mar 14 01:13:36 2008 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.215 2008/02/18 17:45:34 ghen Exp $
+# $NetBSD: Makefile,v 1.216 2008/03/14 01:13:36 taca Exp $
 
 DISTNAME=      postfix-2.5.1
+PKGREVISION=   1
 CATEGORIES=    mail
 MASTER_SITES=  ftp://ftp.porcupine.org/mirrors/postfix-release/official/
 DIST_SUBDIR=   postfix
@@ -23,17 +24,18 @@
 # merely a default, and may be changed by setting "queue_directory" in
 # ${PKG_SYSCONFDIR}/main.cf.
 #
+POSTFIX_DATA_DIR?=     ${VARBASE}/db/postfix
 POSTFIX_QUEUE_DIR?=    ${VARBASE}/spool/postfix
-BUILD_DEFS+=           VARBASE POSTFIX_QUEUE_DIR
+BUILD_DEFS+=           VARBASE POSTFIX_DATA_DIR POSTFIX_QUEUE_DIR
 
 # CCARGS is a list of options to pass to the preprocessor/compiler.
 # AUXLIBS is a list of options to pass to the linker.
 #
 CCARGS=                -DUSE_SASL_AUTH
 AUXLIBS=       ${LDFLAGS}
-FIX_RPATH+=    AUXLIBS
 
 # Set some default paths to override ${WRKSRC}/src/global/mail_params.h.
+CCARGS+=       -DDEF_DATA_DIR=\"${POSTFIX_DATA_DIR}\"
 CCARGS+=       -DDEF_QUEUE_DIR=\"${POSTFIX_QUEUE_DIR}\"
 CCARGS+=       -DDEF_DAEMON_DIR=\"${LIBEXECDIR}\"
 CCARGS+=       -DDEF_COMMAND_DIR=\"${PREFIX}/sbin\"
@@ -52,6 +54,8 @@
 SUBST_STAGE.postfix=   post-configure
 SUBST_FILES.postfix=   conf/main.cf src/global/mail_params.h
 SUBST_SED.postfix=     \
+       -e 's|^\(data_directory\) =.*|\1 = ${POSTFIX_DATA_DIR}|'
+SUBST_SED.postfix+=    \
        -e 's|^\(queue_directory\) =.*|\1 = ${POSTFIX_QUEUE_DIR}|'
 SUBST_SED.postfix+=    \
        -e 's|^\(command_directory\) =.*|\1 = ${PREFIX}/sbin|'
@@ -100,6 +104,7 @@
 
 RCD_SCRIPTS=           postfix
 OWN_DIRS+=             ${POSTFIX_QUEUE_DIR} ${POSTFIX_QUEUE_DIR}/etc
+OWN_DIRS_PERMS+=       ${POSTFIX_DATA_DIR} postfix postfix 0700
 MAKE_DIRS+=            ${PKG_SYSCONFDIR}
 
 PKG_GROUPS?=           postfix maildrop



Home | Main Index | Thread Index | Old Index