From bz@zabbadoz.net  Sat Apr  2 12:55:11 2005
Return-Path: <bz@zabbadoz.net>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 4C68716A4FF
	for <freebsd-gnats-submit@freebsd.org>; Sat,  2 Apr 2005 12:55:11 +0000 (GMT)
Received: from transport.cksoft.de (transport.cksoft.de [62.111.66.27])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 3E96E43D2D
	for <freebsd-gnats-submit@freebsd.org>; Sat,  2 Apr 2005 12:55:10 +0000 (GMT)
	(envelope-from bz@zabbadoz.net)
Received: from transport.cksoft.de (localhost [127.0.0.1])
	by transport.cksoft.de (Postfix) with ESMTP
	id CCE541FFACB; Sat,  2 Apr 2005 14:55:07 +0200 (CEST)
Received: by transport.cksoft.de (Postfix, from userid 66)
	id BA5DC1FF9AF; Sat,  2 Apr 2005 14:55:05 +0200 (CEST)
Received: by mail.int.zabbadoz.net (Postfix, from userid 1060)
	id 6C5881538C; Sat,  2 Apr 2005 12:51:41 +0000 (UTC)
Message-Id: <20050402125141.6C5881538C@mail.int.zabbadoz.net>
Date: Sat,  2 Apr 2005 12:51:41 +0000 (UTC)
From: "Bjoern A. Zeeb" <bzeeb+freebsdports@zabbadoz.net>
Reply-To: "Bjoern A. Zeeb" <bzeeb+freebsdports@zabbadoz.net>
To: FreeBSD-gnats-submit@freebsd.org
Cc: "Bjoern A. Zeeb" <bzeeb+freebsdports@zabbadoz.net>,
	vivek@khera.org, ck@cksoft.de
Subject: postfix: mailer.conf change not working
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         79447
>Category:       ports
>Synopsis:       postfix: mailer.conf change not working
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Apr 02 13:00:16 GMT 2005
>Closed-Date:    Tue Apr 05 22:03:33 GMT 2005
>Last-Modified:  Tue Apr 05 22:03:33 GMT 2005
>Originator:     Bjoern A. Zeeb
>Release:        FreeBSD 5.2-CURRENT amd64
>Organization:
Zabbadoz.NeT
>Environment:

>Description:

mailer.conf not changed if told to.

...
Would you like to activate Postfix in /etc/mail/mailer.conf [n]? y
17077
17260
If you have postfix configured in your /etc/mail/mailer.conf (answered yes to
...

but no change happens.

>How-To-Repeat:

Install postfix on a freshly installed system with original mailer.conf,
say 'y' as given above and check the results.

>Fix:

Following fix found by Christian Kratzer <ck at cksoft dot de>
make things work again.

Index: pkg-install
===================================================================
RCS file: /local/mirror/FreeBSD/r/pcvs/ports/mail/postfix/pkg-install,v
retrieving revision 1.20
diff -u -p -r1.20 pkg-install
--- pkg-install 19 Mar 2005 23:17:54 -0000      1.20
+++ pkg-install 2 Apr 2005 12:34:48 -0000
@@ -29,7 +29,7 @@ ask() {
        question=$1
        default=$2
        if [ -z "${PACKAGE_BUILDING}" -a x${BATCH} = xno ]; then
-               /usr/bin/read -p "${question} [${default}]? " answer
+               read -p "${question} [${default}]? " answer
        fi
        if [ x${answer} = x ]; then
                answer=${default}

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: pav 
State-Changed-When: Tue Apr 5 22:03:24 GMT 2005 
State-Changed-Why:  
Committed, thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=79447 
>Unformatted:
