Bug 17394

Summary: mailwrapper is installed regardless of NO_SENDMAIL definition
Product: Base System Reporter: godsey <godsey>
Component: miscAssignee: Sheldon Hearn <sheldonh>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.0-STABLE   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description godsey 2000-03-15 15:40:00 UTC
mailwrapper should not be installed if NO_SENDMAIL is defined.
Comment 1 Neil Blakey-Milner 2000-03-15 16:05:21 UTC
On Wed 2000-03-15 (07:36), godsey@shaw.fidalgo.net wrote:
> >Description:
> mailwrapper should not be installed if NO_SENDMAIL is defined.

This isn't intuitive, since mailwrapper isn't part of sendmail.

You could ask for NO_MAILWRAPPER, if you must, or simply use
mailwrapper the way it is supposed to be used.

Neil
-- 
Neil Blakey-Milner
nbm@rucus.ru.ac.za
Comment 2 Sheldon Hearn freebsd_committer freebsd_triage 2000-03-15 16:35:42 UTC
State Changed
From-To: open->closed

Mailwrapper is not part of the sendmail distribution.  I'm communicating 
with the originator to find out what the problem with mailwrapper is. 

Comment 3 Sheldon Hearn 2000-03-15 17:30:31 UTC
On Wed, 15 Mar 2000 09:30:40 PST, Jason Godsey wrote:

> Sendmail out of box uses /usr/sbin/sendmail as it's install path.  I
> tried in passing this morning to change the EBINDIR in FreeBSD defines
> w/ no sucess.

Oookay.  So you're unhappy that mailwrapper makes it difficult for you
to use a development version of sendmail.  That sounds like
justification enough for the NO_MAILWRAPPER knob that nbm suggested.

Ciao,
Sheldon.
Comment 4 godsey 2000-03-15 20:21:28 UTC
Yes, it just makes it a bit more difficult to install sendmail from
sendmail inc.  I'm using -STABLE and have not seen any mention of it
migrating to 8.10.0.  If it's not too hard to get sendmail to build using
/usr/libexec/sendmail as it's binary dest dir, I would be happy to do
it.  I poked around the mailing lists and didn't see any pointers on how
to do it.  Like I said, I tried setting confEBINDIR w/ no luck on it
working as I had hoped.  If you know an easy way to do it, it would be
helpful to make a note of it in the mailwrapper(8) man page.  I looked and
it seems quite easy to do w/ postfix and exim.

Thank you so much for you help w/ this and FreeBSD in general!  The entire
team is a wonderful resource to the world :)

--
Jason Godsey                     mailto:godsey@fidalgo.net


On Wed, 15 Mar 2000, Sheldon Hearn wrote:

> Date: Wed, 15 Mar 2000 19:30:31 +0200
> From: Sheldon Hearn <sheldonh@uunet.co.za>
> To: Jason Godsey <godsey@shaw.fidalgo.net>
> Cc: freebsd-gnats-submit@freebsd.org
> Subject: Re: misc/17394: mailwrapper is installed regardless of
>     NO_SENDMAIL definition (fwd) 
> 
> 
> 
> On Wed, 15 Mar 2000 09:30:40 PST, Jason Godsey wrote:
> 
> > Sendmail out of box uses /usr/sbin/sendmail as it's install path.  I
> > tried in passing this morning to change the EBINDIR in FreeBSD defines
> > w/ no sucess.
> 
> Oookay.  So you're unhappy that mailwrapper makes it difficult for you
> to use a development version of sendmail.  That sounds like
> justification enough for the NO_MAILWRAPPER knob that nbm suggested.
> 
> Ciao,
> Sheldon.
>
Comment 5 Sheldon Hearn freebsd_committer freebsd_triage 2000-03-15 21:03:53 UTC
State Changed
From-To: closed->open

It's a fair request for folks wanting to test sendmail beta's in the base 
system without having to muck around with their bmake glue too much. 


Comment 6 Sheldon Hearn freebsd_committer freebsd_triage 2000-03-15 21:03:53 UTC
Responsible Changed
From-To: freebsd-bugs->sheldonh

I'll add a NO_MAILWRAPPER soon unless I get something other than 
"I don't like that". 

Comment 7 Sheldon Hearn 2000-03-16 11:12:26 UTC
On Wed, 15 Mar 2000 13:07:37 PST, sheldonh@FreeBSD.org wrote:

> I'll add a NO_MAILWRAPPER soon unless I get something other than
> "I don't like that".

Please let me know how this works for you.

Obviously, you'll want to add ``NO_MAILWRAPPER=YES'' to /etc/make.conf
before the ``make world'' that you use to test this out.

Ciao,
Sheldon.

Index: etc/defaults/make.conf
===================================================================
RCS file: /home/ncvs/src/etc/defaults/make.conf,v
retrieving revision 1.97
diff -u -d -r1.97 make.conf
--- etc/defaults/make.conf	2000/03/05 10:53:24	1.97
+++ etc/defaults/make.conf	2000/03/16 11:10:02
@@ -32,6 +32,7 @@
 # To avoid building various parts of the base system:
 #NO_CVS=	true	# do not build CVS
 #NO_FORTRAN=	true	# do not build g77 and related libraries
+#NO_MAILWRAPPER=true	# do not build the mailwrapper MTA selector
 #NO_OBJC=	true	# do not build Objective C support
 #NO_OPENSSH=	true	# do not build OpenSSH
 #NO_OPENSSL=	true	# do not build OpenSSL (implies NO_OPENSSH)
Index: usr.sbin/Makefile
===================================================================
RCS file: /home/ncvs/src/usr.sbin/Makefile,v
retrieving revision 1.183
diff -u -d -r1.183 Makefile
--- usr.sbin/Makefile	2000/01/28 05:10:10	1.183
+++ usr.sbin/Makefile	2000/03/16 11:07:14
@@ -42,7 +42,6 @@
 	kernbb \
 	keyserv \
 	lpr \
-	mailwrapper \
 	manctl \
 	memcontrol \
 	mergemaster \
@@ -127,6 +126,10 @@
 	ndc \
 	nslookup \
 	nsupdate
+.endif
+
+.if !defined(NO_MAILWRAPPER)
+SUBDIR+=mailwrapper
 .endif
 
 .if !defined(NO_SENDMAIL)
Comment 8 Sheldon Hearn freebsd_committer freebsd_triage 2000-03-31 10:25:19 UTC
State Changed
From-To: open->closed

The mailwrapper(8) utility is now built and installed only in the  
absence of NO_MAILWRAPPER (rev 1.184 of src/usr.sbin/Makefile). 

This change has been merged onto the RELENG_4 branch in rev 1.183.2.1