On Sat, Apr 06, 2013 at 08:38:41PM +0200, Reindl Harald wrote:

> > (1) I'm no longer intersted in someone's 'downstream idea' of what
> > version and how I should configure, build & use postfix
> 
> what exactly did you not understand in "based on"?

No need to hammer your point in.  There's more than one way to skin
this cat.  The OP will use whatever is most comfortable for him.
Yes, there are benefits in deploying software as a "package", but
also drawbacks (the package manager may replace it with an upgrade,
...) that one needs to learn how to work around.

Since the OP is installing into /usr/local, a non-packaged version
is fine.  I would go further and install into:

        /usr/local/postfix/${version}/{etc,sbin,libexec,man,html}/

with "sendmail", "mailq" and "newaliases" in

        /usr/local/postfix/${version}/sbin/

and symlinks from /usr/sbin, /usr/bin to the right version.  This
makes it easy to switch between versions and delete stale files.
For example to build with TLS support:

        #! /bin/sh
        DEST=/usr/local/postfix/2.10.0
        CCARGS='-DUSE_TLS'              # + other features
        AUXLIBS="-lssl -lcrypto"        # + other libraries
        while read -r name val
        do
                CCARGS="$CCARGS $(printf -- '-D%s=\\"%s\\"' $name $val)"
        done <<EOF
        DEF_COMMAND_DIR         $DEST/sbin
        DEF_CONFIG_DIR          $DEST/etc
        DEF_DAEMON_DIR          $DEST/libexec
        DEF_MAILQ_PATH          $DEST/sbin/mailq
        DEF_HTML_DIR            $DEST/html
        DEF_MANPAGE_DIR         $DEST/man
        DEF_NEWALIAS_PATH       $DEST/sbin/newaliases
        DEF_README_DIR          $DEST/readme
        DEF_SENDMAIL_PATH       $DEST/sbin/sendmail
        DEF_SGID_GROUP          maildrop
        EOF
        make -f Makefile.init "CCARGS=$CCARGS" "AUXLIBS=$AUXLIBS" makefiles
        make

-- 
        Viktor.

Reply via email to