Ok, I see that it’s fairly straight forward. Just figuring out where things 
normally go when not in the default directories.

My make line is like this, where I’ve added the directory commands, as per the 
instructions, to the end of the make command;

make -f Makefile.init dynamicmaps=yes CCARGS='-DHAS_MYSQL 
-I/usr/local/include/mysql -DUSE_TLS -DUSE_SASL_AUTH -DUSE_CYRUS_SASL 
-I/opt/local/include/sasl -DDEF_SERVER_SASL_TYPE=\"dovecot\" -DHAS_PCRE 
-I/opt/local/include' 'AUXLIBS=-L/opt/local/lib -lsasl2 -lssl -lcrypto -licuuc' 
'AUXLIBS_MYSQL=-L/usr/local/lib -lmysqlclient -lz -lm' 
'AUXLIBS_PCRE=-L/opt/local/lib -lpcre' makefiles 
command_directory=/usr/local/sbin config_directory=/usr/local/etc/postfix 
meta_directory=/usr/local/etc/postfix 
daemon_directory=/usr/local/libexec/postfix mailq_path=/usr/local/bin/mailq 
newaliases_path=/usr/local/bin/newaliases 
sendmail_path=/usr/local/sbin/sendmail shlib_directory=/usr/local/lib/postfix 

Which seems to achieve the same thing as others have suggested, because the 
Makefile looks like this.


# Do not edit -- this file documents how Postfix was built for your machine.
#----------------------------------------------------------------
# Start of summary of user-configurable 'make makefiles' options.
# CCARGS=-DHAS_MYSQL -I/usr/local/include/mysql -DUSE_TLS -DUSE_SASL_AUTH 
-DUSE_CYRUS_SASL -I/opt/local/include/sasl -DDEF_SERVER_SASL_TYPE=\"dovecot\" 
-DHAS_PCRE -I/opt/local/include
# AUXLIBS=-L/opt/local/lib -lsasl2 -lssl -lcrypto -licuuc
# AUXLIBS_PCRE=-L/opt/local/lib -lpcre
# AUXLIBS_MYSQL=-L/usr/local/lib -lmysqlclient -lz -lm
# shared=
# dynamicmaps=yes
# pie=
# command_directory=/usr/local/sbin
# config_directory=/usr/local/etc/postfix
# daemon_directory=/usr/local/libexec/postfix
# mailq_path=/usr/local/bin/mailq
# meta_directory=/usr/local/etc/postfix
# newaliases_path=/usr/local/bin/newaliases
# sendmail_path=/usr/local/sbin/sendmail
# shlib_directory=/usr/local/lib/postfix
# End of summary of user-configurable 'make makefiles' options.
#--------------------------------------------------------------
# System-dependent settings and compiler/linker overrides.
SYSTYPE = MACOSX
_AR     = ar
ARFL    = rv
_RANLIB = ranlib
SYSLIBS = -L/opt/local/lib -lsasl2 -lssl -lcrypto -licuuc -flat_namespace 
-lresolv
AUXLIBS_MYSQL = -L/usr/local/lib -lmysqlclient -lz -lm
AUXLIBS_PCRE = -L/opt/local/lib -lpcre
CC      = cc -I. -I../../include -DHAS_MYSQL -I/usr/local/include/mysql 
-DUSE_TLS -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I/opt/local/include/sasl 
-DDEF_SERVER_SASL_TYPE=\"dovecot\" -DHAS_PCRE -I/opt/local/include 
-DBIND_8_COMPAT -DNO_NETINFO -DRESOLVE_H_NEEDS_ARPA_NAMESER_COMPAT_H -DNO_EAI 
-DDEF_COMMAND_DIR=\"/usr/local/sbin\" 
-DDEF_CONFIG_DIR=\"/usr/local/etc/postfix\" 
-DDEF_DAEMON_DIR=\"/usr/local/libexec/postfix\" 
-DDEF_MAILQ_PATH=\"/usr/local/bin/mailq\" 
-DDEF_META_DIR=\"/usr/local/etc/postfix\" 
-DDEF_NEWALIAS_PATH=\"/usr/local/bin/newaliases\" 
-DDEF_SENDMAIL_PATH=\"/usr/local/sbin/sendmail\" 
-DDEF_SHLIB_DIR=\"/usr/local/lib/postfix\" -DUSE_DYNAMIC_LIBS 
-DUSE_DYNAMIC_MAPS $(WARN)
OPT     = -O
DEBUG   = -g
AWK     = awk
STRCASE =
EXPORT  = CCARGS='-I. -I../../include -DHAS_MYSQL -I/usr/local/include/mysql 
-DUSE_TLS -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I/opt/local/include/sasl 
-DDEF_SERVER_SASL_TYPE=\"dovecot\" -DHAS_PCRE -I/opt/local/include 
-DBIND_8_COMPAT -DNO_NETINFO -DRESOLVE_H_NEEDS_ARPA_NAMESER_COMPAT_H -DNO_EAI 
-DDEF_COMMAND_DIR=\"/usr/local/sbin\" 
-DDEF_CONFIG_DIR=\"/usr/local/etc/postfix\" 
-DDEF_DAEMON_DIR=\"/usr/local/libexec/postfix\" 
-DDEF_MAILQ_PATH=\"/usr/local/bin/mailq\" 
-DDEF_META_DIR=\"/usr/local/etc/postfix\" 
-DDEF_NEWALIAS_PATH=\"/usr/local/bin/newaliases\" 
-DDEF_SENDMAIL_PATH=\"/usr/local/sbin/sendmail\" 
-DDEF_SHLIB_DIR=\"/usr/local/lib/postfix\" -DUSE_DYNAMIC_LIBS 
-DUSE_DYNAMIC_MAPS' OPT='-O' DEBUG='-g'
WARN    = -Wall -Wno-comment -Wformat -Wimplicit -Wmissing-prototypes \
        -Wparentheses -Wstrict-prototypes -Wswitch -Wuninitialized \
        -Wunused -Wno-missing-braces
DEFINED_MAP_TYPES = mysql pcre
MAKE_FIX =
# Switch between Postfix static and dynamically-linked libraries.
AR      = :
RANLIB  = :
LIB_PREFIX = postfix-
LIB_SUFFIX = .dylib
SHLIB_CFLAGS = -fPIC
"Makefile" 229L, 9536C


So, problem solved I think.

Make works ok. Just haven’t done a make instal yet. That’s for tomorrow…

Thanks folks






> On 30 Oct 2015, at 16:10, Wietse Venema <wie...@porcupine.org> wrote:
> 
> Robert Chalmers:
>> #----------------------------------------------------------------
>> # Start of summary of user-configurable 'make makefiles' options.
>> # CCARGS=-DHAS_MYSQL -I/usr/local/include/mysql -DUSE_TLS -DUSE_SASL_AUTH 
>> -DUSE_CYRUS_SASL -I/opt/local/include/sasl 
>> -DDEF_SERVER_SASL_TYPE=\"dovecot\" -DHAS_PCRE -I/opt/local/include
> 
> You need to specify DEF_CONFIG_DIR (using the syntax in the INSTALL file)
> if you want the configuration in a different location than /etc/postfix.
> 
>       Wietse

Robert Chalmers
rob...@chalmers.com <mailto:rob...@chalmers.com>.au  Quantum Radio: 
http://tinyurl.com/lwwddov
Mac mini 6.2 - 2012, Intel Core i7,2.3 GHz, Memory:16 GB. El-Capitan 10.11. 2TB 
Storage made up of - 
Drive 0:HGST HTS721010A9E630. Upper bay. Drive 1:ST1000LM024 HN-M101MBB. Lower 
Bay



Reply via email to