Gentoo Archives: gentoo-dev

From: Drake Wyrm <wyrm@×××××.com>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] How do we build the Portage metadata cache for rsync users?
Date: Fri, 25 Jun 2004 14:03:37
Message-Id: 20040625140329.GA9067@phaenix.haell.com
In Reply to: Re: [gentoo-dev] How do we build the Portage metadata cache for rsync users? by Kurt Lieber
1 At 2004-06-25T11:05:25+0000, Kurt Lieber <klieber@g.o> wrote:
2 > On Fri, Jun 25, 2004 at 06:53:36AM +0100 or thereabouts, Stuart Herbert wrote:
3 > > Subject says it all really. Where can I find the *exact* command line that we
4 > > run to create the contents of /var/cache/edb for users who get the Portage
5 > > tree via rsync?
6 >
7 > FEATURES="mirror -cvs -digest" \
8 > ACCEPT_KEYWORDS="x86 ~x86 ppc ~ppc sparc ~sparc alpha ~alpha hppa ~hppa
9 > mips ~mips amd64 ~amd64 *" \
10 > PORTDIR=<userdir>/gentoo-x86 \
11 > PORTAGE_TMPFS=<userdir>/tmpfs \
12 > PORTAGE_CACHEDIR=<userdir>/gentoo-x86/metadata/cache/ \
13 > PORTDIR_OVERLAY="" \
14 > emerge --verbose --debug regen >>${LOGFILE}.verbose 2>&1
15 >
16 > There's obviously a script around that, but it just does logging and
17 > whatnot. That's the command that performs the magic. (I sanitized the
18 > directories in the variables a bit because I'm paranoid.)
19
20 Assuming you're using Bash, you can change those to WHATEVER=~/subdir
21 and Bash will expand them. Other shells (csh, tcsh) seem to do the same,
22 but my experience there is limited.
23
24 --
25 Batou: Hey, Major... You ever hear of "human rights"?
26 Kusanagi: I understand the concept, but I've never seen it in action.
27 --Ghost in the Shell