diff options
| author | Sahil Tandon <sahil@FreeBSD.org> | 2012-02-11 21:27:57 +0000 | 
|---|---|---|
| committer | Sahil Tandon <sahil@FreeBSD.org> | 2012-02-11 21:27:57 +0000 | 
| commit | 894bf93f4073ca5c4aa1a5d43ca86e57ad3a0a5e (patch) | |
| tree | 73607c3dc71ad6d7d7e7e1566222060132c84ad3 /mail/postfix26/files | |
| parent | Update to Wine 1.4 RC3; yet further bug and translation fixes. (diff) | |
Modify pkg-install to handle situations in which
/etc/mail/mailer.conf does not exist, e.g. when
FreeBSD is built WITHOUT_MAILWRAPPER.
This commit only affects legacy Postfix releases,
as the latest stable and development ports already
perform this check.
Requested by:	miwi
Diffstat (limited to 'mail/postfix26/files')
| -rw-r--r-- | mail/postfix26/files/pkg-install.in | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/mail/postfix26/files/pkg-install.in b/mail/postfix26/files/pkg-install.in index 29cdef068aad..7f9a1329fb4d 100644 --- a/mail/postfix26/files/pkg-install.in +++ b/mail/postfix26/files/pkg-install.in @@ -1,6 +1,6 @@  #!/bin/sh  # -#	$FreeBSD: /tmp/pcvs/ports/mail/postfix26/files/pkg-install.in,v 1.6 2011-07-30 01:34:51 sahil Exp $ +#	$FreeBSD: /tmp/pcvs/ports/mail/postfix26/files/pkg-install.in,v 1.7 2012-02-11 21:27:57 sahil Exp $  #  # If the POSTFIX_DEFAULT_MTA environment variable is set to YES, it @@ -72,7 +72,7 @@ if [ "$2" = "POST-INSTALL" ]; then  	upgrade-package  fi -if [ "$2" = "POST-INSTALL" -a -z "${PACKAGE_BUILDING}" ]; then +if [ "$2" = "POST-INSTALL" -a -z "${PACKAGE_BUILDING}" -a -f "${MC}" ]; then  	egrep -q "^sendmail.*${PREFIX}/sbin/sendmail"    ${MC} && \  	egrep -q "^send-mail.*${PREFIX}/sbin/sendmail"   ${MC} && \  	egrep -q "^mailq.*${PREFIX}/sbin/sendmail"       ${MC} && \  | 
