Bug 13759

Summary: Makefile for sendmail configurations
Product: Base System Reporter: Stefan Moeding <s.moeding>
Component: binAssignee: Gregory Neil Shapiro <gshapiro>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 3.2-STABLE   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
Makefile.gz none

Description Stefan Moeding 1999-09-15 14:40:00 UTC
/etc/mail/Makefile contains one rule to generate the access map for
sendmail.  I have enhanced the Makefile to allow the simple creation of

 - sendmail.cf from sendmail.mc
 - /etc/aliases.db from /etc/aliases
 - all the major maps used by sendmail (mailertable, userdb, ...)

Fix: Install the included Makefile in /etc/mail.  The Makefile contains a
small documentation section which explains the useful targets.


Stefan
Comment 1 mbehrens 1999-10-06 19:29:35 UTC
The ideas for automatically updating Makefile targets for aliases,
mailertable, userdb, etc. are good ones (and one of the few ideas I'd
actually *like* FreeBSD to borrow from Red Hat) :-) but IMO
sendmail.cf->sendmail.mc is probably out of place here.

There already exists a translation rule in src/etc/sendmail/Makefile
that will translate .mc files to their .cf counterparts.  To do this I
created a new .mc file for my system (megaweapon.mc) and executed the
following commands:

	# cd /usr/src/etc/sendmail
	# make megaweapon.mc
	# cp /usr/obj/usr/src/sendmail/megaweapon.cf /etc/sendmail.cf

There is also an option to perpetually keep your sendmail.cf in sync
with ``make world'', if you so desire.  Read the Makefile for details
:-)

Otherwise, the changes look good.  I would recommend submitting changes
either as a patchfile or as a shar archive in the future, I had to go
through quite a few hoops to look at your Makefile :-)
Comment 2 Gregory Neil Shapiro freebsd_committer freebsd_triage 2000-08-12 18:12:55 UTC
Responsible Changed
From-To: freebsd-bugs->gshapiro

Assigned to sendmail maintainer.
Comment 3 Gregory Neil Shapiro freebsd_committer freebsd_triage 2001-02-22 05:37:20 UTC
State Changed
From-To: open->feedback

I've checked in changes to the HEAD such that accomplishes all of your 
requirements.  Unless I hear otherwise, I'll close this PR in the near 
future.
Comment 4 Gregory Neil Shapiro freebsd_committer freebsd_triage 2001-02-22 17:56:06 UTC
State Changed
From-To: feedback->closed

Submitter accepted the fix.