From owner-freebsd-bugs Tue Aug 14 3:40:15 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 2562937B406 for ; Tue, 14 Aug 2001 03:40:03 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id f7EAe3j27542; Tue, 14 Aug 2001 03:40:03 -0700 (PDT) (envelope-from gnats) Date: Tue, 14 Aug 2001 03:40:03 -0700 (PDT) Message-Id: <200108141040.f7EAe3j27542@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Andre Albsmeier Subject: Re: conf/29699: Setting NO_MAILWRAPPER results in a system without working MTA Reply-To: Andre Albsmeier Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR conf/29699; it has been noted by GNATS. From: Andre Albsmeier To: Ruslan Ermilov Cc: Andre Albsmeier , FreeBSD-gnats-submit@FreeBSD.ORG, Sheldon Hearn Subject: Re: conf/29699: Setting NO_MAILWRAPPER results in a system without working MTA Date: Tue, 14 Aug 2001 12:30:07 +0200 On Tue, 14-Aug-2001 at 13:19:41 +0300, Ruslan Ermilov wrote: > On Tue, Aug 14, 2001 at 11:29:17AM +0200, Andre Albsmeier wrote: > > > > When setting NO_MAILWRAPPER to /etc/make.conf sendmail still gets installed > > into /usr/libexec/sendmail/sendmail. In case mailwrapper has been used before, > > an old /usr/sbin/mailwrapper is lying around and usually the link from > > /usr/sbin/sendmail is set. When you remove mailwrapper from /usr/sbin > > the link is stale and no /usr/sbin/sendmail is available anymore. > > > [...] > > Maybe this way: > > > > --- usr.sbin/sendmail/Makefile.ORI Tue Aug 14 11:20:01 2001 > > +++ usr.sbin/sendmail/Makefile Tue Aug 14 11:20:27 2001 > > @@ -7,7 +7,11 @@ > > SMDIR= ${SENDMAIL_DIR}/src > > .PATH: ${SMDIR} > > > > +.if defined(NO_MAILWRAPPER) > > +BINDIR= /usr/sbin > > +.else > > BINDIR= /usr/libexec/sendmail > > +.endif > > > > PROG= sendmail > > MAN= mailq.1 newaliases.1 aliases.5 sendmail.8 > > > Or better yet, this one: > > Index: usr.sbin/sendmail/Makefile > =================================================================== > RCS file: /home/ncvs/src/usr.sbin/sendmail/Makefile,v > retrieving revision 1.34 > diff -u -r1.34 Makefile > --- usr.sbin/sendmail/Makefile 2001/08/03 16:22:47 1.34 > +++ usr.sbin/sendmail/Makefile 2001/08/14 10:19:26 > @@ -7,7 +7,9 @@ > SMDIR= ${SENDMAIL_DIR}/src > .PATH: ${SMDIR} > > +.if !defined(NO_MAILWRAPPER) > BINDIR= /usr/libexec/sendmail > +.endif > > PROG= sendmail > MAN= mailq.1 newaliases.1 aliases.5 sendmail.8 Ah, yes, this is better. I didn't tweak lots of Makefiles in /usr/src before so I forgot about the default :-) And here is one more to add (hope it is right this way): --- etc/Makefile.ORI Tue Aug 14 12:23:19 2001 +++ etc/Makefile Tue Aug 14 12:25:21 2001 @@ -45,8 +45,11 @@ NAMEDB= PROTO.localhost.rev named.conf named.root make-localhost PPPCNF= ppp.deny ppp.shells.sample PPPCF2= ppp.conf -ETCMAIL=Makefile README mailer.conf access.sample virtusertable.sample \ +ETCMAIL=Makefile README access.sample virtusertable.sample \ mailertable.sample aliases +.if !defined(NO_MAILWRAPPER) +ETCMAIL+=mailer.conf +.endif # Special top level files for FreeBSD To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message