Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 Jul 1999 10:57:08 +0100 (BST)
From:      m.seaman@inpharmatica.co.uk
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/12664: [PATCH] mergemaster takes no account of SENDMAIL_CF make variable 
Message-ID:  <199907160957.KAA35859@st-pancras.inpharmatica.co.uk>

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

>Number:         12664
>Category:       ports
>Synopsis:       mergemaster takes no account of SENDMAIL_CF make variable
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jul 16 03:00:01 PDT 1999
>Closed-Date:
>Last-Modified:
>Originator:     Matthew Seaman
>Release:        FreeBSD 3.2-STABLE i386
>Organization:
Inpharmatica Ltd
>Environment:

FreeBSD st-pancras.inpharmatica.co.uk 3.2-STABLE FreeBSD 3.2-STABLE #0: Wed Jul 14 16:42:29 BST 1999     root@st-pancras.inpharmatica.co.uk:/export/src/sys/compile/ST-PANCRAS  i386


>Description:

By defining the variable SENDMAIL_CF in, eg. /etc/make.conf it is
possible to cause a make world to install a custom /etc/sendmail.cf
rather than the default freebsd.cf derived from
/usr/src/etc/sendmail/freebsd.mc

However, mergemaster does not abide by this and always compares the installed
/etc/sendmail.cf against freebsd.cf

>How-To-Repeat:

cat <<FOO >>/etc/make.conf
# Overide default /etc/sendmail.cf
SENDMAIL_CF=	foo.cf
FOO
cat <<BAR >>/usr/src/etc/sendmail/foo.mc
OSTYPE(bsd4.4)
FEATURE(nullclient, mailhost.$m)
BAR
cd /usr/src
make world
mergemaster

>Fix:

make install in /usr/src/etc/sendmail is a no-op unless SENDMAIL_CF is defined
	
--- mergemaster.orig	Fri Jul 16 10:38:18 1999
+++ mergemaster	Fri Jul 16 10:39:39 1999
@@ -209,7 +209,9 @@
 
   { cd /usr/src/etc &&
     make DESTDIR=${TEMPROOT} distrib-dirs &&
-    make DESTDIR=${TEMPROOT} distribution;} ||
+    make DESTDIR=${TEMPROOT} distribution &&
+    cd /usr/src/etc/sendmail &&
+    make DESTDIR=${TEMPROOT} install;} ||
   { echo '';
     echo "  *** FATAL ERROR: Cannot 'cd' to /usr/src/etc and install files to the";
     echo "      temproot environment";



>Release-Note:
>Audit-Trail:
>Unformatted:


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




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