Gentoo Archives: gentoo-user

From: Richard Fish <bigfish@××××××××××.org>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Is it possible to protect *INDIVIDUAL FILES* against etc-update?
Date: Tue, 17 Oct 2006 00:52:41
Message-Id: 7573e9640610161747n32eb18dem6496ae7f51d3db@mail.gmail.com
In Reply to: Re: [gentoo-user] Is it possible to protect *INDIVIDUAL FILES* against etc-update? by Walter Dnes
1 On 10/16/06, Walter Dnes <waltdnes@××××××××.org> wrote:
2 > long will it take me to realize what's happened? What I'm asking for is
3 > a way to pre-emptively tell etc-update not to bother me about certain
4 > files. Zap the new version and keep the old.
5
6 cat > my_etcupdate.sh <<EOF
7 #!/bin/bash
8
9 EXCLUDE_FILES="/etc/conf.d/local.start
10 /etc/conf.d/local.stop
11 /etc/rc.conf
12 "
13
14 for f in $EXCLUDE_FILES; do
15 dn=`dirname $f`
16 bn=`basename $f`
17 rm -i "${dn}/._cfg[0-9][0-9][0-9][0-9]_${bn}"
18 done
19
20 etc-update
21 EOF
22
23 Then just add whatever files are bothing you to EXCLUDE_FILES, and run
24 my_etcupdate.sh instead of etc-update.
25
26 Or as Bo suggested, create scripts on a per-package basis in
27 /etc/portage/env/cat-egory/package to remove the new configs after the
28 packages are merged.
29
30 -Richard
31 --
32 gentoo-user@g.o mailing list

Replies

Subject Author
Re: [gentoo-user] Is it possible to protect *INDIVIDUAL FILES* against etc-update? Walter Dnes <waltdnes@××××××××.org>