Bug 45903

Summary: /etc/mail/Makefile doesn't handle multiple aliase files
Product: Base System Reporter: Darren Henderson <dkh-fbsd>
Component: confAssignee: Gregory Neil Shapiro <gshapiro>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.7-STABLE   
Hardware: Any   
OS: Any   

Description Darren Henderson 2002-12-01 23:10:01 UTC
If sendmail is configured to use multiple alias files (ie you have
define(`ALIAS_FILE',`/etc/mail/aliases,/etc/mail/aka/aliases2')dnl
within your sendmail.mc file) Makefile will only see the changes to
/etc/mail/aliases. sendmail -bi/newaliases work fine but since Makefile 
doesn't know that secondary alias files are targets sendmail -bi isn't
invoked

Fix: 

Define SENDMAIL_ALIASES=/etc/mail/aliases in /etc/defaults/make.conf
that can be overridden in /etc/make.conf if there are multiple alias 
files. 

Each of those alias files would have be treated as a target in 
/etc/mail/Makefile.
How-To-Repeat: 
Configure sendmail to use multiple aliases files, create the new aliases 
file and then run make in /etc/mail
Comment 1 Jens Schweikhardt freebsd_committer freebsd_triage 2003-01-04 16:43:58 UTC
Responsible Changed
From-To: freebsd-bugs->gshapiro

Over to our sendmail liaison.
Comment 2 Gregory Neil Shapiro freebsd_committer freebsd_triage 2003-02-08 22:36:53 UTC
State Changed
From-To: open->patched

I've checked in a fix to CURRENT which allows for multiple files 
to be listed in SENDMAIL_ALIASES and only rebuilds the changed files. 
See PR 40540 for more information.
Comment 3 Gregory Neil Shapiro freebsd_committer freebsd_triage 2003-02-17 19:16:06 UTC
State Changed
From-To: patched->closed

The change has been MFC'ed to RELENG_4.