Bug 123812 - mail/postfix - pkg-install script doesn't see postfix_default_mta when specified in /etc/make.conf
Summary: mail/postfix - pkg-install script doesn't see postfix_default_mta when specif...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Martin Matuska
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-05-19 09:50 UTC by Marco Walraven
Modified: 2009-06-04 08:57 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marco Walraven 2008-05-19 09:50:00 UTC
The postfix_default_mta variable that is used in postfix' pkg-install script is
not available when specified in make.conf. This means it will not automatically
write /etc/mail/mailer.conf when installed in BATCH mode. Specifying this on
the command line will install the correct mailer.conf.

Fix: 

Add the POSTFIX_DEFAULT_MTA variable to the Makefile's SCRIPT_ENV variable.
How-To-Repeat: make sure you have a default /etc/mail/mailer.conf file. Add the following to
/etc/make.conf and install postfix. This should not change the
/etc/mail/mailer.conf. 

.if ${.CURDIR:M*/mail/postfix*}
POSTFIX_DEFAULT_MTA=yes
BATCH=true
.endif

set both environment variables in your shell and reinstall postfix;
/etc/mail/mailer.conf has been altered pointing to the postfix binaries.
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2008-05-19 13:38:55 UTC
Maintainer of mail/postfix,

Please note that PR ports/123812 has just been submitted.

If it contains a patch for an upgrade, an enhancement or a bug fix
you agree on, reply to this email stating that you approve the patch
and a committer will take care of it.

The full text of the PR can be found at:
    http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/123812

-- 
Edwin Groothuis via the GNATS Auto Assign Tool
edwin@FreeBSD.org
Comment 2 Edwin Groothuis freebsd_committer freebsd_triage 2008-05-19 13:38:56 UTC
State Changed
From-To: open->feedback

Awaiting maintainers feedback (via the GNATS Auto Assign Tool)
Comment 3 Marcus Alves Grando freebsd_committer freebsd_triage 2008-07-20 01:36:44 UTC
Responsible Changed
From-To: freebsd-ports-bugs->mnag

I'll take it.
Comment 4 Pav Lucistnik freebsd_committer freebsd_triage 2009-05-19 13:59:42 UTC
State Changed
From-To: feedback->open

Maintainer has changed
Comment 5 dfilter service freebsd_committer freebsd_triage 2009-06-04 08:45:43 UTC
mm          2009-06-04 07:45:27 UTC

  FreeBSD ports repository

  Modified files:
    mail/postfix         Makefile pkg-plist 
    mail/postfix/files   pkg-install.in 
  Log:
  - Fix install with defined NOPORTEXAMPLES [1]
  - Do not install clones of man pages [1]
  - Add POSTFIX_DEFAULT_MTA to SCRIPTS_ENV [2]
  - Bump PORTREVISION
  
  PR:             ports/135241 [1], ports/123812 [2]
  Submitted by:   Sahil Tandon <sahil@tandon.net> (maintainer) [1]
  Reported by:    Marco Walraven <m.walraven@terantula.com> [2]
  
  Revision  Changes    Path
  1.146     +5 -13     ports/mail/postfix/Makefile
  1.2       +1 -9      ports/mail/postfix/files/pkg-install.in
  1.29      +2 -10     ports/mail/postfix/pkg-plist
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 6 Martin Matuska freebsd_committer freebsd_triage 2009-06-04 08:45:59 UTC
Responsible Changed
From-To: mnag->mm

Taking over because of ports/135241
Comment 7 Martin Matuska freebsd_committer freebsd_triage 2009-06-04 08:56:59 UTC
State Changed
From-To: open->closed

Fixed in ports/135241