From owner-freebsd-current@FreeBSD.ORG Tue Jul 10 20:28:03 2007 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 65DFD16A46B for ; Tue, 10 Jul 2007 20:28:03 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from mail2.fluidhosting.com (mx21.fluidhosting.com [204.14.89.4]) by mx1.freebsd.org (Postfix) with SMTP id 1D85013C4C1 for ; Tue, 10 Jul 2007 20:28:02 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: (qmail 3026 invoked by uid 399); 10 Jul 2007 20:28:02 -0000 Received: from localhost (HELO ?192.168.0.6?) (dougb@dougbarton.us@127.0.0.1) by localhost with SMTP; 10 Jul 2007 20:28:02 -0000 X-Originating-IP: 127.0.0.1 Message-ID: <4693EBCD.6030609@FreeBSD.org> Date: Tue, 10 Jul 2007 13:27:57 -0700 From: Doug Barton Organization: http://www.FreeBSD.org/ User-Agent: Thunderbird 2.0.0.4 (Windows/20070604) MIME-Version: 1.0 To: Gaspar Chilingarov References: <20070419133550.GA65054@tirith.brixandersen.dk> <4627C342.2010103@FreeBSD.org> <20070419200929.GA70735@tirith.brixandersen.dk> <4693BC3E.1050605@web.am> In-Reply-To: <4693BC3E.1050605@web.am> X-Enigmail-Version: 0.95.2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-current@freebsd.org Subject: Re: RFT: bin/106642: [patch] Allow excluding certain files from mergemaster(8) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Jul 2007 20:28:03 -0000 Gaspar Chilingarov wrote: > Is it possible to have also some configuration for mergemaster to tell > it that some files should be installed automatically without asking -- > thus I know that I NEVER change /etc/rc.d/ or /etc/mtree or something > like this -- so I wish to avoid mergemaster's questions about installing > that files. There are already ways to do this, and the other things mentioned in the thread with scripts that can be called by mergemaster (see the man page for details). I have stated many times in the past that I do not want to add more bloat (more CLI options, more confusion for the users, more ways to shoot yourself in the foot) to what should still be a pretty simple script. What I would welcome (and commit) is someone coding up some example scripts that I could put in /usr/share/examples and then reference in the man page. To date no one has taken on that challenge, so the door's wide open. For example, if you want to accomplish what you described above you could have a script that looks something like this (copied in part from the script I actually use every day): #!/bin/sh # NOTE: No PATH needed, because mm's PATH is already draconian enough case "${PRE_WORLD}" in '') rm -f /etc/rc.d/* rm -f /etc/mtree/* ;; esac Call that as your MM_PRE_COMPARE_SCRIPT and use the -i option and you're all set. Mergemaster has stood the test of 8 years and 4 major releases in part because I insist on keeping it as simple as possible. If someone wants to write up a different solution from scratch that supplies all the bells, whistles, knobs and frobs that people are looking for, please be my guest. But please don't try to teach a pig to sing. It wastes your time, annoys the pig. :) Doug -- This .signature sanitized for your protection