I have compiled it with the desired locations for all the parameters mentioned in my email. Then with make install it prompted me for the locations again and i have answered them changing the default ones. Then it copied/updated all the required files to the specified locations ,but later it is still looking for /etc/postfix.

My compile script.

#!/bin/ksh93
BUILDDIR='/opt/mail-pkgs/postfix-2.5.5'
#export PATH="$PATH:/opt/SUNWspro/bin"
#export CC=cc
export CC=/opt/SUNWspro/bin/cc
export LDFLAGS='-zignore'
export CFLAGS='-mt -mr -xO3 -xildoff -xspace -xstrconst -DBIG_TABLES'
export CXXFLAGS='-mt -mr -xO3 -xildoff -xspace -DBIG_TABLES'
cd $BUILDDIR
make tidy
make makefiles \
#AUXLIBS='-L/usr/mysql/lib/mysql -R/usr/mysql/lib/mysql -lmysqlclient -lldap 
-lpcre' \
"AUXLIBS=-lpcre" \
#"AUXLIBS=-lpcre" \
"CCARGS=-DHAS_PCRE -I/usr/include/pcre \
-DDEF_COMMAND_DIR=\"/opt/oso/postfix/usr/sbin\" \
-DDEF_SAMPLE_DIR=\"/opt/oso/postfix/etc\" \
-DDEF_SENDMAIL_PATH=\"/opt/oso/postfix/usr/lib/sendmail\" \
-DDEF_CONFIG_DIR=\"/opt/oso/postfix/etc\" \
-DDEF_DAEMON_DIR=\"/opt/oso/postfix/usr/libexec\" \
-DDEF_DATA_DIR=\"/opt/oso/postfix/usr/lib\" \
-DDEF_QUEUE_DIR=\"/opt/oso/postfix/var/spool\" \
-DDEF_MAILQ_PATH=\"/opt/oso/postfix/usr/bin/mailq\" \
-DDEF_MANPAGE_DIR=\"/opt/oso/postfix/usr/local/man\" \
-DDEF_NEWALIAS_PATH=\"/opt/oso/postfix/usr/bin/newaliases\""
make 2> /opt/oso/postfix-make.err
make install sample_directory=/opt/oso/postfix/etc
#







On 02/ 3/09 11:41 AM, Victor Duchovni wrote:
On Tue, Feb 03, 2009 at 11:27:44AM -0800, Nandini Mocherla wrote:

Hi

I was installing Postfix postfix-2.5.5 on Solaris. At the time of compiling the Source with make I have defined the parameters (for changing the default values of the following from /etc/ to /opt etc.)
-DDEF_COMMAND_DIR=
-DDEF_SAMPLE_DIR=
-DDEF_SENDMAIL_PATH=
-DDEF_CONFIG_DIR=
-DDEF_DAEMON_DIR=
-DDEF_DATA_DIR=
-DDEF_QUEUE_DIR
-DDEF_MAILQ_PATH=
-DDEF_MANPAGE_DIR=
-DDEF_NEWALIAS_PATH=

When I run make install, it asked a load of questions again about where I want the stuff located. One of the things it asks about is config files, which defaults to /etc/postfix and I change it to /opt/postfix/etc

Sorry, you must compile-in the desired location of the default
configuration directory. This cannot be set via main.cf, catch-22.

Reply via email to