From owner-freebsd-ports Thu Jun 22 16:50: 7 2000 Delivered-To: freebsd-ports@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 90F4837B765 for ; Thu, 22 Jun 2000 16:50:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id QAA92725; Thu, 22 Jun 2000 16:50:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from guru.mired.org (zoom2-182.telepath.com [216.14.2.182]) by hub.freebsd.org (Postfix) with SMTP id 7A57C37B684 for ; Thu, 22 Jun 2000 16:48:02 -0700 (PDT) (envelope-from mwm@mired.org) Received: (qmail 94829 invoked by uid 100); 22 Jun 2000 23:47:44 -0000 Message-Id: <20000622234744.94828.qmail@guru.mired.org> Date: 22 Jun 2000 23:47:44 -0000 From: mwm@mired.org Reply-To: mwm@mired.org To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: ports/19449: The qmail port has /usr/local hardwired into it, and doesn't cerate /etc/mail/mailer.conf Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 19449 >Category: ports >Synopsis: The qmail port has /usr/local hardwired into it, and doesn't cerate /etc/mail/mailer.conf >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Jun 22 16:50:01 PDT 2000 >Closed-Date: >Last-Modified: >Originator: Mike Meyer >Release: FreeBSD 5.0-CURRENT i386 >Organization: Meyer Consulting >Environment: LOCALBASE is set to something other that /usr/local when installing the qmail port. >Description: The qmail port creates a symlink in /usr/local/etc/rc.d/ to start qmail, even if LOCALBASE is set to something else. Since mailwrapper has been added, the qmail port ought to take advantage of it. This patch includes changs to the Makefile to move the old mailwrapper.coonf out of the way, and create one for use with qmail. >How-To-Repeat: "make install" in /usr/ports/mail/qmail with LOCALBASE set to anything but /usr/local. Notice that /usr/local/etc/rc.d/qmail.sh now exists, pointing to /var/qmail/rc. Also notice that /etc/mail/mailer.conf still references the standard sendmail install. >Fix: Apply the following patch to the qmail port Makefile. --- Makefile-wrong Thu Jun 22 13:44:44 2000 +++ Makefile Thu Jun 22 13:44:33 2000 @@ -132,13 +132,22 @@ .for i in root postmaster mailer-daemon @${TOUCH} ${PREFIX}/alias/.qmail-${i} .endfor + @# Replace /etc/mail/mailer.conf with one that uses qmail + @$(ECHO) Replacing /etc/mail/mailer.conf with a qmail version. + @$(ECHO) The old one is /etc/mail/mailer.conf-orig + @-mv /etc/mail/mailer.conf /etc/mail/mailer.conf-orig + @$(ECHO) "sendmail $(PREFIX)/bin/sendmail" > /etc/mail/mailer.conf + @$(ECHO) "send-mail $(PREFIX)/bin/sendmail" >> /etc/mail/mailer.conf + @$(ECHO) "mailq $(PREFIX)/bin/qmail-qread" >> /etc/mail/mailer.conf + @# This is not part of qmail proper, hence the 2nd class citizenship ${INSTALL_SCRIPT} ${FILESDIR}/mkaliasdir ${PREFIX}/${DOCDIR} @cd ${PREFIX}/configure ; ./config - @${MKDIR} /usr/local/etc/rc.d - @${LN} -sf ${PREFIX}/rc /usr/local/etc/rc.d/qmail.sh + @${MKDIR} ${LOCALBASE}/etc/rc.d + @${LN} -sf ${PREFIX}/rc ${LOCALBASE}/etc/rc.d/qmail.sh @${ECHO} @${SED} s!/var/qmail!${PREFIX}/!g ${PKGDIR}/MESSAGE | /usr/bin/fmt + # hack to allow slave ports to include bsd.port.pre.mk and then this file .if defined(_PREMKINCLUDED) >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message