Gentoo Archives: gentoo-dev

From: Zac Medico <zmedico@g.o>
To: gentoo-dev@l.g.o, Leho Kraav <leho@×××××.com>
Subject: Re: [gentoo-dev] user management mitigation
Date: Sun, 04 Dec 2011 17:57:54
Message-Id: 4EDBB45A.4050509@gentoo.org
In Reply to: Re: [gentoo-dev] user management mitigation by Leho Kraav
1 On 12/04/2011 06:44 AM, Leho Kraav wrote:
2 > So after a reading through a bunch of stuff [1][2][3][4][5], what I'm going to do for the goal above is:
3 >
4 > * move to sys-apps/shadow trunk [6]
5 > * fork my own user.eclass from v1.17, modify it to use --root $ROOT when calling shadow stuff
6 > * stick my user.eclass into myoverlay/eclass/
7 > * # echo "lkraav" > myoverlay/profiles/repo_name
8 > * # echo "[DEFAULT]\neclass-overrides = lkraav" > /etc/portage/repos.conf
9 > * # echo "PORTAGE_RSYNC_EXTRA_OPTS=\"--exclude=/metadata/cache\"" >> /etc/make.conf
10 > * # rm -rf /usr/portage/metadata/cache
11 > * # echo "emerge --regen" >> /etc/cron.weekly/09-my-portage-update-script
12
13 If user.eclass is the only eclass you override, then since user.eclass
14 doesn't modify metadata variables like *DEPEND or IUSE, it's safe to use
15 metadata/cache from rsync.
16 --
17 Thanks,
18 Zac
19 ta