From owner-freebsd-bugs Tue Aug 14 3:30:11 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 B717437B40C for ; Tue, 14 Aug 2001 03:30:02 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id f7EAU2l26507; Tue, 14 Aug 2001 03:30:02 -0700 (PDT) (envelope-from gnats) Date: Tue, 14 Aug 2001 03:30:02 -0700 (PDT) Message-Id: <200108141030.f7EAU2l26507@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Ruslan Ermilov Subject: Re: conf/29699: Setting NO_MAILWRAPPER results in a system without working MTA Reply-To: Ruslan Ermilov 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: Ruslan Ermilov To: Andre Albsmeier Cc: 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 13:19:41 +0300 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 Index: share/man/man5/make.conf.5 =================================================================== RCS file: /home/ncvs/src/share/man/man5/make.conf.5,v retrieving revision 1.25 diff -u -r1.25 make.conf.5 --- share/man/man5/make.conf.5 2001/08/07 13:26:57 1.25 +++ share/man/man5/make.conf.5 2001/08/14 10:19:26 @@ -370,6 +370,10 @@ Set to not build the .Xr mailwrapper 8 MTA selector. +If set, +.Xr sendmail 8 +is installed as +.Pa /usr/sbin/sendmail . .It Va NO_MAKEDEV_INSTALL .Pq Vt bool Set to avoid installing Cheers, -- Ruslan Ermilov Oracle Developer/DBA, ru@sunbay.com Sunbay Software AG, ru@FreeBSD.org FreeBSD committer, +380.652.512.251 Simferopol, Ukraine http://www.FreeBSD.org The Power To Serve http://www.oracle.com Enabling The Information Age To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message