mail/postfix: Set POSTFIX_DEFAULT_MTA variable by ports-mgmt/poudriere and ports-mgmt/pkg

Hi All

I'm using with ports-mgmt/poudriere/ports-mgmt/pkg.
And I wish set "yes" to POSTFIX_DEFAULT_MTA variable of mail/postfix.

I found it in mail/postfix/files/pkg-install.in
Code:
POSTFIX_DEFAULT_MTA=${POSTFIX_DEFAULT_MTA:=no}
And mail/postfix/files/Makefile
Code:
SCRIPTS_ENV+= POSTFIX_DEFAULT_MTA="${POSTFIX_DEFAULT_MTA}"

After google I tried.
  1. Added follows into /usr/local/etc/poudriere.d/make.conf
    Code:
    SCRIPTS_ENV+= POSTFIX_DEFAULT_MTA=yes
  2. Added follows into /usr/local/etc/poudriere.d/make.conf
    Code:
    export POSTFIX_DEFAULT_MTA=yes
  3. Added follows into /usr/local/etc/poudriere.d/make.conf
    Code:
    POSTFIX_DEFAULT_MTA=yes
  4. At ports-mgmt/pkg
    export POSTFIX_DEFAULT_MTA="yes"
    pkg install mail/postfix
All of not work (POSTFIX_DEFAULT_MTA keep default "no")🙀

Please help to fix.🐱
Any suggestions is welcome.

Thanks all.
 
that var will basically do this
install -m 0644 /usr/local/share/postfix/mailer.conf.postfix /usr/local/etc/mail/mailer.conf

and it works for me (tested with pkg install)
 
that var will basically do this
install -m 0644 /usr/local/share/postfix/mailer.conf.postfix /usr/local/etc/mail/mailer.conf

and it works for me (tested with pkg install)
Hi covacat

Yes, It message shown after pkg install also.
Take this chance to learn how to set variables.
Manual install it as workaround if POSTFIX_DEFAULT_MTA won't set yes I expected😹

Thanks you very much.😸
 
Back
Top