Gentoo Archives: gentoo-user

From: Mick <michaelkintzios@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: Aw: Re: [gentoo-user] local mirrors (summary, leading to more questions)
Date: Mon, 29 Apr 2019 08:03:17
Message-Id: 4006531.LP3MmDHWbo@dell_xps
In Reply to: Re: Aw: Re: [gentoo-user] local mirrors (summary, leading to more questions) by Dale
1 On Sunday, 28 April 2019 22:49:42 BST Dale wrote:
2 > n952162@×××.de wrote:
3 > > Thanks to all who reponded:
4 > > - Rich Freeman suggests:
5 > > - having apache serve the local distfiles.
6 > >
7 > > How? Just make them available in the apache root and give portage
8 > > the URL somewhere?>
9 > > - use "infra scripts", but I think that's for running an up-to-date
10 > > general-purpose mirror
11 > >
12 > > He explains later that repos.conf defines the single place where the
13 > > repository is defined but that is distinct from where the distfiles
14 > > come from, which is defined by make.conf:GENTOO_MIRRORS
15 > >
16 > > - Dale suggests:
17 > > - a package, http-replicator, which might do Freeman's first
18 > >
19 > > suggestion.
20 > >
21 > > - Neil Bothwick explains the difference between serving the "portage
22 > >
23 > > mirror, the repository of ebuild and associated files" and the
24 > > distfiles, and suggests using NFS, presumably instead of, or in
25 > > addition to /usr/portage/distfiles.
26 > >
27 > > Okay, I looked for the first time at the files directly under
28 > > /usr/portage.
29 > > Is it a correct assumption that all packages available for
30 > > installation will be represented there? And that's it? That's
31 > > basically all there is to a gentoo installation? -
32 > > /usr/portage/distfiles
33 > > - the ebuilds directly under /usr/portage
34 > > - /usr/portage/eclass
35 > > - /usr/portage/metadata
36 > > - /usr/portage/profiles
37 > > - /etc/portage
38 > >
39 > > If so, then I'm delighted in the simplicity of it. Like reading the
40 > > one page definition of tcl. Unfortunately, it doesn't come through so
41 > > well in the documentation, with things like layouts seemingly basic
42 > > to an understanding.
43 > >
44 > > - Peter Humphrey suggests:
45 > > - http ftp proxy
46 > >
47 > > In what way is that different from rsync which I thought I'd
48 > > already configured?
49 > Just to add some more info. By changing the settings in make.conf, you
50 > can move these directories wherever you like. As a example, I moved
51 > mine here:
52 >
53 >
54 > root@fireball / # ls -al /var/cache/portage/
55 > total 160
56 > drwxr-xr-x 5 root root 4096 Dec 20 2012 .
57 > drwxr-xr-x 13 root root 4096 Apr 24 03:18 ..
58 > drwxrwxr-x 3 portage portage 143360 Apr 26 04:06 distfiles
59 > drwxr-xr-x 105 portage portage 4096 Apr 26 04:04 packages
60 > drwxr-xr-x 174 portage portage 4096 Apr 22 23:32 tree
61 > root@fireball / #
62 >
63 >
64 > I have these settings in make.conf to match where I put things:
65 >
66 >
67 >
68 > DISTDIR="/var/cache/portage/distfiles/"
69 > PKGDIR="/var/cache/portage/packages"
70 > PORTDIR="/var/cache/portage/tree"
71
72 Just to mention the PORTDIR variable is no longer meant to be declared in /
73 etc/portage/make.conf, but in /etc/portage/repos.conf/gentoo.conf, using the
74 'location = ' directive. See URL below:
75
76 https://wiki.gentoo.org/wiki/PORTDIR
77
78
79 --
80 Regards,
81 Mick

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: Aw: Re: [gentoo-user] local mirrors (summary, leading to more questions) Dale <rdalek1967@×××××.com>
Re: Aw: Re: [gentoo-user] local mirrors (summary, leading to more questions) Peter Humphrey <peter@××××××××××××.uk>