Date: Wed, 9 Jul 2003 19:40:12 -0400 (EDT) From: Vivek Khera <khera@kcilink.com> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/54291: support for new sysinstall Message-ID: <20030709234012.E115E21790@yertle.kcilink.com> Resent-Message-ID: <200307092350.h69No9DW065592@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 54291 >Category: ports >Synopsis: support for new sysinstall >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: maintainer-update >Submitter-Id: current-users >Arrival-Date: Wed Jul 09 16:50:09 PDT 2003 >Closed-Date: >Last-Modified: >Originator: Vivek Khera >Release: FreeBSD 4.8-STABLE i386 >Organization: >Environment: System: FreeBSD yertle.int.kciLink.com 4.8-STABLE FreeBSD 4.8-STABLE #4: Tue Apr 29 16:11:22 EDT 2003 khera@yertle.int.kciLink.com:/u/yertle2/usr.obj/u/sources/usr/src/sys/YERTLE i386 >Description: From: Tom Rhodes <trhodes@FreeBSD.org> Included in this email is a patch to postfix which I need applied for my upcoming commit to sysinstall(8). >How-To-Repeat: >Fix: RCS file: /home/ncvs/ports/mail/postfix/pkg-install,v retrieving revision 1.15 diff -u -d -r1.15 pkg-install --- pkg-install 20 Jun 2002 01:32:20 -0000 1.15 +++ pkg-install 7 Jul 2003 12:42:16 -0000 @@ -3,8 +3,19 @@ # $FreeBSD: ports/mail/postfix/pkg-install,v 1.15 2002/06/20 01:32:20 dwcjr Exp $ # +# If the POSTFIX_DEFAULT_MTA environment variable is set to YES, it +# will make the port/package use defaults which makes postfix replaces +# sendmail as much as possible. + PKG_PREFIX=${PKG_PREFIX:=/usr/local} BATCH=${BATCH:=no} +POSTFIX_DEFAULT_MTA=${POSTFIX_DEFAULT_MTA:=no} + +if [ x${POSTFIX_DEFAULT_MTA} = xno ]; then + DEFAULT_REPLACE_MAILERCONF=n +else + DEFAULT_REPLACE_MAILERCONF=y +fi ask() { local question default answer @@ -147,7 +158,8 @@ OSVERSION=`/usr/sbin/sysctl -n kern.osreldate` fi if [ ${OSVERSION} -ge 400014 ]; then - if yesno "Would you like to activate Postfix in /etc/mail/mailer.conf" n; then + if yesno "Would you like to activate Postfix in /etc/mail/mailer.conf" \ + ${DEFAULT_REPLACE_MAILERCONF}; then mv -f /etc/mail/mailer.conf /etc/mail/mailer.conf.old echo "#" > /etc/mail/mailer.conf echo -n "# Execute the Postfix sendmail program" >> /etc/mail/mailer.conf >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030709234012.E115E21790>