Date: 22 Jun 2000 23:47:44 -0000 From: mwm@mired.org To: FreeBSD-gnats-submit@freebsd.org Subject: ports/19449: The qmail port has /usr/local hardwired into it, and doesn't cerate /etc/mail/mailer.conf Message-ID: <20000622234744.94828.qmail@guru.mired.org>
next in thread | raw e-mail | index | archive | help
>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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000622234744.94828.qmail>