From mboxrd@z Thu Jan  1 00:00:00 1970
Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org)
	by nuthatch.gentoo.org with esmtp (Exim 4.60)
	(envelope-from <gentoo-user+bounces-53171-garchives=archives.gentoo.org@gentoo.org>)
	id 1GZdCD-0003Y6-64
	for garchives@archives.gentoo.org; Tue, 17 Oct 2006 00:52:41 +0000
Received: from robin.gentoo.org (localhost [127.0.0.1])
	by robin.gentoo.org (8.13.8/8.13.6) with SMTP id k9H0oWTQ032289;
	Tue, 17 Oct 2006 00:50:32 GMT
Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.185])
	by robin.gentoo.org (8.13.8/8.13.6) with ESMTP id k9H0laJs026944
	for <gentoo-user@lists.gentoo.org>; Tue, 17 Oct 2006 00:47:36 GMT
Received: by nf-out-0910.google.com with SMTP id p46so151067nfa
        for <gentoo-user@lists.gentoo.org>; Mon, 16 Oct 2006 17:47:36 -0700 (PDT)
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws;
        s=beta; d=gmail.com;
        h=received:message-id:date:from:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth;
        b=fF1s4HTICjywqS1mdEt4gk4XJAloe95ZMvxkQkza2HTDwa0ZTrqO0ckREgoS9c6lxNux8JBWpsmGflU8pQYCVWIFBMhz6dCIaYIn6K0kXdGTxmAaML/MuEwSGxbVkb1KEPipFAD42HvI98RIveDtJ2/+Yh9eY/BTFh409wYr66I=
Received: by 10.82.126.5 with SMTP id y5mr1271780buc;
        Mon, 16 Oct 2006 17:47:35 -0700 (PDT)
Received: by 10.82.126.14 with HTTP; Mon, 16 Oct 2006 17:47:35 -0700 (PDT)
Message-ID: <7573e9640610161747n32eb18dem6496ae7f51d3db@mail.gmail.com>
Date: Mon, 16 Oct 2006 17:47:35 -0700
From: "Richard Fish" <bigfish@asmallpond.org>
Sender: richard.j.fish@gmail.com
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Is it possible to protect *INDIVIDUAL FILES* against etc-update?
In-Reply-To: <20061016215757.GA14528@waltdnes.org>
Precedence: bulk
List-Post: <mailto:gentoo-user@lists.gentoo.org>
List-Help: <mailto:gentoo-user+help@gentoo.org>
List-Unsubscribe: <mailto:gentoo-user+unsubscribe@gentoo.org>
List-Subscribe: <mailto:gentoo-user+subscribe@gentoo.org>
List-Id: Gentoo Linux mail <gentoo-user.gentoo.org>
X-BeenThere: gentoo-user@gentoo.org
Reply-to: gentoo-user@lists.gentoo.org
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
References: <200610121910.19727.alan@linuxholdings.co.za>
	 <20061013163319.1c9d72c6@hactar.digimed.co.uk>
	 <20061015044052.GB9122@waltdnes.org>
	 <200610150906.46184.bo.andresen@zlin.dk>
	 <20061016215757.GA14528@waltdnes.org>
X-Google-Sender-Auth: 05834250e25e5773
X-Archives-Salt: ae4f3f72-7efc-4a89-a891-59f52baa8b02
X-Archives-Hash: 2b0d42a020234fdd0bc74bb944733699

On 10/16/06, Walter Dnes <waltdnes@waltdnes.org> wrote:
> long will it take me to realize what's happened?  What I'm asking for is
> a way to pre-emptively tell etc-update not to bother me about certain
> files.  Zap the new version and keep the old.

cat > my_etcupdate.sh <<EOF
#!/bin/bash

EXCLUDE_FILES="/etc/conf.d/local.start
        /etc/conf.d/local.stop
        /etc/rc.conf
        "

for f in $EXCLUDE_FILES; do
        dn=`dirname $f`
        bn=`basename $f`
        rm -i "${dn}/._cfg[0-9][0-9][0-9][0-9]_${bn}"
done

etc-update
EOF

Then just add whatever files are bothing you to EXCLUDE_FILES, and run
my_etcupdate.sh instead of etc-update.

Or as Bo suggested, create scripts on a per-package basis in
/etc/portage/env/cat-egory/package to remove the new configs after the
packages are merged.

-Richard
-- 
gentoo-user@gentoo.org mailing list