From owner-freebsd-ports Sat Sep 22 14:50:10 2001 Delivered-To: freebsd-ports@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id BB0C737B421 for ; Sat, 22 Sep 2001 14:50:00 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id f8MLo0c35856; Sat, 22 Sep 2001 14:50:00 -0700 (PDT) (envelope-from gnats) Received: from tomts17-srv.bellnexxia.net (tomts17.bellnexxia.net [209.226.175.71]) by hub.freebsd.org (Postfix) with ESMTP id A1FF637B429 for ; Sat, 22 Sep 2001 14:45:13 -0700 (PDT) Received: from khan.anarcat.dyndns.org ([65.92.169.79]) by tomts17-srv.bellnexxia.net (InterMail vM.4.01.03.16 201-229-121-116-20010115) with ESMTP id <20010922214512.FAWI17256.tomts17-srv.bellnexxia.net@khan.anarcat.dyndns.org> for ; Sat, 22 Sep 2001 17:45:12 -0400 Received: from shall.anarcat.dyndns.org (shall.anarcat.dyndns.org [192.168.0.1]) by khan.anarcat.dyndns.org (Postfix) with ESMTP id E8D6B18B6 for ; Sat, 22 Sep 2001 17:45:07 -0400 (EDT) Received: by shall.anarcat.dyndns.org (Postfix, from userid 1000) id 687BE20BDF; Sat, 22 Sep 2001 17:45:03 -0400 (EDT) Message-Id: <20010922214503.687BE20BDF@shall.anarcat.dyndns.org> Date: Sat, 22 Sep 2001 17:45:03 -0400 (EDT) From: The Anarcat Reply-To: The Anarcat To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.113 Subject: ports/30748: replace target of ssmtp port is wrong Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 30748 >Category: ports >Synopsis: replace target of ssmtp port is wrong >Confidential: no >Severity: serious >Priority: high >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Sat Sep 22 14:50:00 PDT 2001 >Closed-Date: >Last-Modified: >Originator: The Anarcat >Release: FreeBSD 4.4-STABLE i386 >Organization: Nada, Inc >Environment: System: FreeBSD shall.anarcat.dyndns.org 4.4-STABLE FreeBSD 4.4-STABLE #7: Sat Sep 15 00:41:38 EDT 2001 anarcat@shall.anarcat.dyndns.org:/usr/obj/usr/src/sys/SHALL i386 >Description: The Makefile in mail/ssmtp specifies a "replace" target that is supposed to edit /etc/mail/mailer.conf. It does not do it very well since it uses: @${ECHO} "test\n" >> /etc/mail/mailer.conf to add a line containing "test". The \n is of course printed verbose in the file, resulting in a non-working mail system. >How-To-Repeat: cd /usr/ports/mail/ssmtp && make replace >Fix: Remove the trailing \n's. Fix a typo. --- Makefile.orig Sat Sep 22 17:40:38 2001 +++ Makefile Sat Sep 22 17:41:23 2001 @@ -37,12 +37,12 @@ @${ECHO} backuping old /etc/mail/mailer.conf @${MV} -f /etc/mail/mailer.conf /etc/mail/mailer.conf.old-ssmtp @${ECHO} Replacing mailwarpper config - @${ECHO} "sendmail ${PREFIX}/sbin/ssmtp\n" > /etc/mail/mailer.conf - @${ECHO} "send-mail ${PREFIX}/sbin/ssmtp\n" >> /etc/mail/mailer.conf - @${ECHO} "mailq /bin/echo\n" >> /etc/mail/mailer.conf - @${ECHO} "newaliases /bin/echo\n" >> /etc/mail/mailer.conf + @${ECHO} "sendmail ${PREFIX}/sbin/ssmtp" > /etc/mail/mailer.conf + @${ECHO} "send-mail ${PREFIX}/sbin/ssmtp" >> /etc/mail/mailer.conf + @${ECHO} "mailq /bin/echo" >> /etc/mail/mailer.conf + @${ECHO} "newaliases /bin/echo" >> /etc/mail/mailer.conf .else - @${ECHO} bacckuping old /usr/sbin/sendmail + @${ECHO} backuping old /usr/sbin/sendmail @${MV} -f /usr/sbin/sendmail /usr/sbin/sendmail.OFF @${CHMOD} 000 /usr/sbin/sendmail.OFF @${LN} -s ${PREFIX}/sbin/ssmtp /usr/sbin/sendmail >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message