From wollman@mintaka.lcs.mit.edu  Tue Aug 21 11:17:16 2001
Return-Path: <wollman@mintaka.lcs.mit.edu>
Received: from mintaka.lcs.mit.edu (mintaka.lcs.mit.edu [18.26.0.36])
	by hub.freebsd.org (Postfix) with ESMTP id BF10A37B405
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 21 Aug 2001 11:17:15 -0700 (PDT)
	(envelope-from wollman@mintaka.lcs.mit.edu)
Received: (from wollman@localhost)
	by mintaka.lcs.mit.edu (8.11.5/8.11.5) id f7LIHEr86469;
	Tue, 21 Aug 2001 14:17:14 -0400 (EDT)
	(envelope-from wollman)
Message-Id: <200108211817.f7LIHEr86469@mintaka.lcs.mit.edu>
Date: Tue, 21 Aug 2001 14:17:14 -0400 (EDT)
From: "Garrett A. Wollman" <wollman@LCS.MIT.EDU>
Reply-To: "Garrett A. Wollman" <wollman@LCS.MIT.EDU>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: SENDMAIL_ADDITIONAL_MC is less than entirely useful
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         29928
>Category:       conf
>Synopsis:       SENDMAIL_ADDITIONAL_MC is less than entirely useful
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    gshapiro
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Aug 21 11:20:28 PDT 2001
>Closed-Date:    Mon Dec 10 11:33:55 PST 2001
>Last-Modified:  Mon Dec 10 11:34:17 PST 2001
>Originator:     Garrett A. Wollman
>Release:        FreeBSD 4.4-PRERELEASE i386
>Organization:
MIT Laboratory for Computer Science
>Environment:
System: FreeBSD mintaka.lcs.mit.edu 4.4-PRERELEASE FreeBSD 4.4-PRERELEASE #9: Wed Aug 15 17:13:02 EDT 2001 root@mintaka.lcs.mit.edu:/usr/src/sys/compile/MINTAKA i386


>Description:

	SENDMAIL_ADDITIONAL_MC allows one to specify a list of
	additional sendmail.cf prototypes to be processed using the
	configuration macro system.  However, these files are simply
	built -- they don't get installed anywhere.  This is not
	particularly useful for my servers, where everything is
	installed on the master server and then propagated to slaves
	using rdist.

>How-To-Repeat:
	Put stuff in SENDMAIL_ADDITIONAL_MC.
	cd /usr/src/etc/sendmail; make && make install
	Observe that the additional .cf files did not get installed.
>Fix:

Index: Makefile
===================================================================
RCS file: /home/ncvs/src/etc/sendmail/Makefile,v
retrieving revision 1.3.2.8
diff -u -r1.3.2.8 Makefile
--- Makefile	2001/08/01 03:38:44	1.3.2.8
+++ Makefile	2001/08/21 18:08:57
@@ -42,7 +42,8 @@
 
 # Additional .cf files to build
 .if defined(SENDMAIL_ADDITIONAL_MC)
-ALL+=		${SENDMAIL_ADDITIONAL_MC:S/.mc$/.cf/g}
+SENDMAIL_ADDITIONAL_CF=	${SENDMAIL_ADDITIONAL_MC:S/.mc$/.cf/g}
+ALL+=		${SENDMAIL_ADDITIONAL_CF}
 .endif
 
 CLEANFILES+=	${ALL}
@@ -60,6 +61,10 @@
 .if ${INSTALL_CF} != ${DEST_CF}
 	${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 644 ${INSTALL_CF} \
 		${DEST_CF}
+.endif
+.if defined(SENDMAIL_ADDITIONAL_CF)
+	${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m 644 \
+		${SENDMAIL_ADDITIONAL_CF} ${DESTDIR}/etc/mail
 .endif
 .endif
 

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->gshapiro 
Responsible-Changed-By: dd 
Responsible-Changed-When: Thu Sep 6 06:18:08 PDT 2001 
Responsible-Changed-Why:  
Over to sendmail maintainer. 
Greg: this one includes a patch. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=29928 
State-Changed-From-To: open->feedback 
State-Changed-By: gshapiro 
State-Changed-When: Mon Nov 19 19:41:36 PST 2001 
State-Changed-Why:  
Your patch has been applied to the HEAD.  It will be MFC'ed to RELENG_4 
in three days, at which time the PR will be closed.  Thanks for the patch. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=29928 
State-Changed-From-To: feedback->closed 
State-Changed-By: gshapiro 
State-Changed-When: Mon Dec 10 11:33:55 PST 2001 
State-Changed-Why:  
The change was MFC'ed. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=29928 
>Unformatted:
