From owner-freebsd-stable Mon Apr 2 23: 9:12 2001 Delivered-To: freebsd-stable@freebsd.org Received: from lariat.org (lariat.org [12.23.109.2]) by hub.freebsd.org (Postfix) with ESMTP id 465EA37B718 for ; Mon, 2 Apr 2001 23:09:08 -0700 (PDT) (envelope-from brett@lariat.org) Received: from mustang.lariat.org (IDENT:ppp0.lariat.org@lariat.org [12.23.109.2]) by lariat.org (8.9.3/8.9.3) with ESMTP id AAA17927 for ; Tue, 3 Apr 2001 00:08:51 -0600 (MDT) Message-Id: <4.3.2.7.2.20010402235945.04a32760@localhost> X-Sender: brett@localhost X-Mailer: QUALCOMM Windows Eudora Version 4.3.2 Date: Tue, 03 Apr 2001 00:08:47 -0600 To: freebsd-stable@freebsd.org From: Brett Glass Subject: Proposed changes to Makefile in /etc/mail Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In http://www.freebsd.org/cgi/query-pr.cgi?pr=26299 I've proposed changes to the Makefile in /etc/mail that I think makes it easier to reconfigure sendmail. Right now, to change sendmail.cf, one edits "freebsd.mc" and rebuild sendmail.cf from it (unless one has changed /etc/make.conf, which many administrators don't know about). Besides being platform-specific, this makes it more difficult to use one's library of .mc files from other systems and adapt one of them to a new system. The change adds 6 lines of code that I've had in my own Makefile for some time. They tell the sytsem that `hostname`.mc -- if it exists -- should be the default .mc file that is processed to make sendmail.cf. (The `hostname`.mc convention is a longstanding one; it's used in the samples in the source tree.) Thus, one can bring in one's collection of existing .mc files, create a new file with the new host name, and carry the expanded collection onward to the next machine one configures. It also makes it easier to describe the process of configuring sendmail to an inexperienced sysadmin. You can say, "Enter the command 'cp freebsd.mc `hostname`.mc' and then edit the file you created." Greg is concerned about bloating the Makefile, but since the change is only 6 lines and it makes life so much more straightforward, I'd like to see it in there. What do folks here think? Should these changes (or something like them) go in the file? --Brett To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message