pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: postfix 2.5.1 breaks with tls
Hi,
In message <20080306050556.GA23261%s1.iti.com@localhost>
on Thu, 6 Mar 2008 13:05:56 +0800,
Water NB <netbsd78%126.com@localhost> wrote:
> I meet the same problem.
> I think /var/run/postfix is not a good place. Once system reboot, these
> files will be deleted. new file created is root own. the problem is
> still there.
It could be handled by startup script.
The point is "data_directory" contains permanent data between system
reboot or persistence data while system running.
Anyway, here is a quick patch make data_directory to "/var/db/postfix".
(And permission for data_directory is uncertain, too.)
--
Takahiro Kambe <taca%back-street.net@localhost>
Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/mail/postfix/Makefile,v
retrieving revision 1.215
diff -u -u -r1.215 Makefile
--- Makefile 18 Feb 2008 17:45:34 -0000 1.215
+++ Makefile 13 Mar 2008 11:18:47 -0000
@@ -23,17 +23,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 +53,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 +103,7 @@
RCD_SCRIPTS= postfix
OWN_DIRS+= ${POSTFIX_QUEUE_DIR} ${POSTFIX_QUEUE_DIR}/etc
+OWN_DIRS_PERMS+= ${POSTFIX_DATA_DIR} postfix postfix 0750
MAKE_DIRS+= ${PKG_SYSCONFDIR}
PKG_GROUPS?= postfix maildrop
Home |
Main Index |
Thread Index |
Old Index