Subject: pkg/21648: mail/postfix fails to run post-install on Darwin systems
To: None <gnats-bugs@gnats.netbsd.org>
From: None <michael@nosflow.com>
List: netbsd-bugs
Date: 05/23/2003 00:52:22
>Number:         21648
>Category:       pkg
>Synopsis:       mail/postfix fails to run post-install on Darwin systems
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri May 23 00:53:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Michael Wolfson
>Release:        N/A
>Organization:
>Environment:
Darwin gizmobook.exa 6.6 Darwin Kernel Version 6.6: Thu May  1 21:48:54 PDT 2003; root:xnu/xnu-344.34.obj~1/RELEASE_PPC  Power Macintosh powerpc
>Description:
After manually creating users and groups for postfix (see pkg/16628), it fails to run the post-install script correctly.  The problem seems to be that the script does not include /usr/pkg/bin and /usr/pkg/sbin in its PATH.

[...]
===> Running postfix's post-install script
/usr/pkg/share/examples/postfix/post-install: Error: no postconf command found.
Re-run this command as /usr/pkg/share/examples/postfix/post-install command_dire
ctory=/some/where.
[...]

Also note that 'make install' tries to run /usr/pkg/share/examples/postfix/post-instal and it should actually be running /usr/pkg/etc/postfix/post-install.  The latter script will work correctly once you add /usr/pkg/bin and /usr/pkg/sbin to the PATH in post-install.

>How-To-Repeat:
Build mail/postfix on MacOS X 10.2.6 (aka Darwin 6.6) using the 20030412 Darwin bootstrap kit.
>Fix:
Have 'make install' add /usr/pkg/bin and /usr/pkg/sbin to /usr/pkg/etc/postfix/post-install and run that instead of the current behavior.
>Release-Note:
>Audit-Trail:
>Unformatted: