Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 19 Oct 2002 00:06:54 -0400 (EDT)
From:      Matt Emmerton <matt@gsicomp.on.ca>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   bin/44256: /etc/mail/Makefile doesn't build submit.cf file
Message-ID:  <200210190406.g9J46skA001031@dhcp2.gsicomp.on.ca>

next in thread | raw e-mail | index | archive | help

>Number:         44256
>Category:       bin
>Synopsis:       /etc/mail/Makefile doesn't build submit.cf file
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Oct 18 21:10:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Matt Emmerton
>Release:        FreeBSD 5.0-CURRENT i386
>Organization:
>Environment:
System: FreeBSD laptop.gsicomp.on.ca 5.0-CURRENT FreeBSD 5.0-CURRENT #13: Thu Oct 17 21:13:55 EDT 2002 root@laptop.gsicomp.on.ca:/usr/obj/usr/src/sys/LAPTOP.20020914.01 i386

cvsup'd and rebuilt kernel/world on Oct 17

>Description:

	When issuing a 'make' from /etc/mail, the sendmail.cf file 
	(or `hostname`.cf file) is generated from the corresponding .mc
	file, and if `hostname`.mc doesn't exist, freebsd.mc is used as
	a template.

	According to the makefile, the same should hold true for the
	generation of the submit.cfg file, but this does not occur.

>How-To-Repeat:

	Touch freebsd.submit.mc, issue 'make'.  No `hostname`.submit.mc
	or submit.cf is created.

>Fix:

--- etc/mail/Makefile.orig	Mon Jul 29 05:40:05 2002
+++ etc/mail/Makefile	Fri Oct 18 23:42:53 2002
@@ -69,9 +69,15 @@
 	cp freebsd.mc ${SENDMAIL_MC}
 .endif
 
-SENDMAIL_SUBMIT_MC?=	freebsd.submit.mc
-
 INSTALL_CF=		${SENDMAIL_MC:R}.cf
+
+.ifndef SENDMAIL_SUBMIT_MC
+SENDMAIL_SUBMIT_MC!=	hostname
+SENDMAIL_SUBMIT_MC:=	${SENDMAIL_SUBMIT_MC}.submit.mc
+
+${SENDMAIL_SUBMIT_MC}:
+	cp freebsd.submit.mc ${SENDMAIL_SUBMIT_MC}
+.endif
 
 .ifndef SENDMAIL_SET_USER_ID
 INSTALL_SUBMIT_CF=	${SENDMAIL_SUBMIT_MC:R}.cf
>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200210190406.g9J46skA001031>