Date: Thu, 23 Aug 2001 07:35:03 +0200 From: Andre Albsmeier <andre.albsmeier@mchp.siemens.de> To: Peter Wemm <peter@wemm.org> Cc: freebsd-bugs@FreeBSD.ORG, Ruslan Ermilov <ru@FreeBSD.ORG>, Andre.Albsmeier@mchp.siemens.de Subject: Re: conf/29699: Setting NO_MAILWRAPPER results in a system without working MTA Message-ID: <20010823073503.A15122@curry.mchp.siemens.de> In-Reply-To: <200108152350.f7FNo2o26457@freefall.freebsd.org>; from peter@wemm.org on Wed, Aug 15, 2001 at 04:50:02PM -0700 References: <200108152350.f7FNo2o26457@freefall.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Ruslan, Peter, any chance of getting this (or something similar) into the tree before 4.4-RELEASE? Anything I can do to help? Thanks, -Andre On Wed, 15-Aug-2001 at 16:50:02 -0700, Peter Wemm wrote: > The following reply was made to PR conf/29699; it has been noted by GNATS. > > ... > > > The attached patch fixes this and the "old (potentially dangerous) setuid > > binary" problem, but in a different way. With NO_MAILWRAPPER, we should > > install sendmail(8) and friends into its canonical paths. > > This is even worse. If you have NO_SENDMAIL, then /usr/bin/newalises > is not installed at all. > > If you are going to persist in this line, then you can allow the sendmail > makefile to *also* install symlinks if NO_MAILWRAPPER is set. > > usr.sbin/sendmail/Makefile belongs to gshapiro now anyway. > > > Also, Peter, why did you drop the support for /usr/bin/hoststat and > > /usr/sbin/purgestat in sendmail/Makefile 1.14 -> mailwrapper/Makefile 1.1 > > change? > > Because they weren't generally useful and we dont install .cf files with it > active. Dont forget, purgestat and hoststat are aliases for > sendmail -bh (hoststat) and sendmail -bH (purgestat). > > Anyway, I'd prefer something like this: > > Index: Makefile > =================================================================== > RCS file: /home/ncvs/src/usr.sbin/mailwrapper/Makefile,v > retrieving revision 1.8 > diff -u -r1.8 Makefile > --- Makefile 2001/07/20 06:19:59 1.8 > +++ Makefile 2001/08/15 23:43:50 > @@ -1,19 +1,27 @@ > # $FreeBSD: src/usr.sbin/mailwrapper/Makefile,v 1.8 2001/07/20 06:19:59 obrien Exp $ > > +.if !defined(NO_MAILWRAPPER) > PROG= mailwrapper > MAN= mailwrapper.8 > > DPADD= ${LIBUTIL} > LDADD= -lutil > +.endif > > SYMLINKS= ${BINDIR}/mailwrapper /usr/sbin/sendmail \ > ${BINDIR}/mailwrapper /usr/bin/newaliases \ > ${BINDIR}/mailwrapper /usr/bin/mailq > > +.if defined(NO_MAILWRAPPER) && !defined(NO_SENDMAIL) > +SYMLINKS+= /usr/libexec/sendmail/sendmail ${BINDIR}/mailwrapper > +.endif > + > afterinstall: > +.if !defined(NO_MAILWRAPPER) > .if !exists(${DESTDIR}/etc/mail/mailer.conf) > ${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 644 \ > ${.CURDIR}/../../etc/mail/mailer.conf ${DESTDIR}/etc/mail > +.endif > .endif > > .include <bsd.prog.mk> > > peter@daintree[4:43pm]~src/usr.sbin/mailwrapper-145> make -i install NO_MAILWRAPPER=yes > /usr/sbin/sendmail -> /usr/sbin/mailwrapper > /usr/bin/newaliases -> /usr/sbin/mailwrapper > /usr/bin/mailq -> /usr/sbin/mailwrapper > /usr/sbin/mailwrapper -> /usr/libexec/sendmail/sendmail > > And of course the corresponding change to usr.sbin/Makefile. > > Cheers, > -Peter > -- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010823073503.A15122>