From keramida@diogenis.ceid.upatras.gr  Tue Mar  7 15:00:50 2000
Return-Path: <keramida@diogenis.ceid.upatras.gr>
Received: from mail2.x-treme.gr (mail2.x-treme.gr [212.120.196.24])
	by hub.freebsd.org (Postfix) with ESMTP id 0DD4B37BED5
	for <FreeBSD-gnats-submit@freebsd.org>; Tue,  7 Mar 2000 15:00:42 -0800 (PST)
	(envelope-from keramida@diogenis.ceid.upatras.gr)
Received: from hades.hell.gr (pat18.x-treme.gr [212.120.197.210])
	by mail2.x-treme.gr (8.9.3/8.9.3/IPNG-ADV-ANTISPAM-0.1) with SMTP id BAA28422
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 8 Mar 2000 01:00:34 +0200
Received: (qmail 88867 invoked by uid 1001); 7 Mar 2000 22:11:14 -0000
Message-Id: <20000307221114.88866.qmail@hades.hell.gr>
Date: 7 Mar 2000 22:11:14 -0000
From: keramida@ceid.upatras.gr
Sender: keramida@diogenis.ceid.upatras.gr
Reply-To: keramida@ceid.upatras.gr
To: FreeBSD-gnats-submit@freebsd.org
Subject: mailwrapper links & NO_SENDMAIL=yes
X-Send-Pr-Version: 3.2

>Number:         17254
>Category:       bin
>Synopsis:       mailwrapper links & NO_SENDMAIL=yes
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Mar  7 15:10:01 PST 2000
>Closed-Date:    Tue Mar 7 16:37:15 PST 2000
>Last-Modified:  Tue Mar  7 16:37:56 PST 2000
>Originator:     Giorgos Keramidas <keramida@ceid.upatras.gr>
>Release:        FreeBSD 4.0-CURRENT i386
>Organization:
>Environment:

	The sources of 4.0 as of last night's CVSup [Mar 6, 2000].

>Description:

	I'm using qmail on 4.0, and the 'make world' thing keeps
	overwriting the symlink of /usr/sbin/sendmail pointing to the
	qmail wrapper /var/qmail/bin/sendmail.

	I've tracked this to the SYMLINKS= line in the Makefile of
	/usr/src/usr.sbin/mailwrapper/ and tested a small patch that
	will inhibit the creation of SYMLINKS if NO_SENDMAIL=yes.

	It doesn't seem to break 'make install' of mailwrapper, but it
	keeps my link safe from being overwritten.
	See the included patch below ;)

>How-To-Repeat:

	If you're using qmail, make the link from /usr/sbin/sendmail to
	point to /var/qmail/bin/sendmail.  On your next 'installworld'
	the link is overwritten with a link to /usr/sbin/mailwrapper.

>Fix:

--- usr.sbin/mailwrapper/Makefile	Wed Dec 29 20:51:36 1999
+++ usr.sbin/mailwrapper.new/Makefile	Tue Mar  7 23:59:38 2000
@@ -6,9 +6,11 @@
 DPADD+=	${LIBUTIL}
 LDADD+=	-lutil
 
+.if !defined(NO_SENDMAIL)
 SYMLINKS= 	${BINDIR}/mailwrapper /usr/sbin/sendmail  \
 		${BINDIR}/mailwrapper /usr/bin/newaliases \
 		${BINDIR}/mailwrapper /usr/bin/mailq
+.endif
 
 afterinstall:
 	@if [ ! -f ${DESTDIR}/etc/mail/mailer.conf ]; then \

>Release-Note:
>Audit-Trail:

From: Sheldon Hearn <sheldonh@uunet.co.za>
To: keramida@ceid.upatras.gr
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: bin/17254: mailwrapper links & NO_SENDMAIL=yes 
Date: Wed, 08 Mar 2000 01:17:32 +0200

 On 07 Mar 2000 22:11:14 GMT, keramida@ceid.upatras.gr wrote:
 
 > 	I'm using qmail on 4.0, and the 'make world' thing keeps
 > 	overwriting the symlink of /usr/sbin/sendmail pointing to the
 > 	qmail wrapper /var/qmail/bin/sendmail.
 
 Don't fight it.  Learn to point mailwrapper at qmail.  See the
 mailwrapper(8) manual page.
 
 > 	I've tracked this to the SYMLINKS= line in the Makefile of
 > 	/usr/src/usr.sbin/mailwrapper/ and tested a small patch that
 > 	will inhibit the creation of SYMLINKS if NO_SENDMAIL=yes.
 
 Actually, most folks who have NO_SENDMAIL=yes actually _want_ the
 mailwrapper program.  Have a look at what it does; I think you'll be
 pleasantly surprised. :-)
 
 Ciao
 Sheldon.
 

From: Giorgos Keramidas <keramida@ceid.upatras.gr>
To: Sheldon Hearn <sheldonh@uunet.co.za>
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: bin/17254: mailwrapper links & NO_SENDMAIL=yes
Date: Wed, 8 Mar 2000 02:17:20 +0200

 On Wed, Mar 08, 2000 at 01:17:32AM +0200, Sheldon Hearn wrote:
 > 
 > Don't fight it.  Learn to point mailwrapper at qmail.  See the
 > mailwrapper(8) manual page.
 
 On the point, as always, and rather helpful.
 
 I'll have a look at mailwrapper(8) tonight, and see what I can do.
 
 Thank you Sheldon :)
 
 -- 
 Giorgos Keramidas, < keramida @ ceid . upatras . gr >
 For my public PGP key: finger keramida@diogenis.ceid.upatras.gr
 PGP fingerprint, phone and address in the headers of this message.
 
State-Changed-From-To: open->closed 
State-Changed-By: sheldonh 
State-Changed-When: Tue Mar 7 16:37:15 PST 2000 
State-Changed-Why:  
Originator is happy that this isn't an issue. 
>Unformatted:
