View Single Post

  #1 (permalink)  
Old 11-13-2006
Cameron L. Spitzer
 
Posts: n/a
Default postfix-install ignores DEF_CONFIG_DIR ??


I'm building postfix-2.3.4 from source. It will replace
the older Postfix from Debian stable.

make makefiles \
CCARGS='-DHAS_PCRE -DUSE_TLS -DHAS_PGSQL -I/usr/include/postgresql' \
' -DDEF_CONFIG_DIR=\"/etc/postfix-2.3\"'\
AUXLIBS='-ldb -lpcre -lssl -lcrypto -lpq'

I've changed some of the other -DDEF's but that's the relevant one.
"make install" fails like this:

Skipping /usr/local/share/html/postfix-2.3.4/virtual.8.html...
postfix: fatal: open /etc/postfix/main.cf: No such file or directory
make: *** [install] Error 1

The "postfix post-install" at the very end of postfix-install
isn't being told where to find the new main.cf.
I don't know if this is a bug or a feature I don't understand.
Maybe it wants to use the old config file? But there wasn't one.
He's supposed to think he's the first MTA ever installed
on this host.

This patch to postfix-install lets the install complete successfully.
(The orig file has a today time stamp because I put some
debug statements in it. No real changes.)



*** postfix-install.orig 2006-11-12 20:06:17.000000000 -0800
--- postfix-install 2006-11-12 20:28:17.000000000 -0800
***************
*** 739,743 ****
# post-install processing now.

test -n "$install_root" || {
! bin/postfix post-install $post_install_options || exit 1
}
--- 739,743 ----
# post-install processing now.

test -n "$install_root" || {
! bin/postfix -c $CONFIG_DIRECTORY post-install $post_install_options || exit 1
}


Traditionally, to preserve white space from the slings and arrows,




Cameron






Reply With Quote