Go Back   { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Linux > Gentoo

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-02-2008, 10:08 AM
Mark Hobley
 
Posts: n/a
Creating a local Gentoo repository on a non-Gentoo based system

I want to create a local copy of the Gentoo source package repository,
but the computer that will be using to mirror the repository is running
Debian, not Gentoo.

How do I make the mirror?

My next question will be how to I configure the system to serve the
respository contents to Gentoo clients?

Thanks in advance to anyone who can help.

Mark.

--
Mark Hobley,
393 Quinton Road West,
Quinton, BIRMINGHAM.
B32 1QE.
Reply With Quote
  #2 (permalink)  
Old 02-02-2008, 11:22 AM
pk
 
Posts: n/a
Re: Creating a local Gentoo repository on a non-Gentoo based system

Mark Hobley wrote:

> I want to create a local copy of the Gentoo source package repository,
> but the computer that will be using to mirror the repository is running
> Debian, not Gentoo.
>
> How do I make the mirror?
>
> My next question will be how to I configure the system to serve the
> respository contents to Gentoo clients?


You have several options here. Generally, you don't need to mirror the whole
source repository, unless you intend to serve as a public source mirror
(see below).

An option is to set up a nfs share and have all the clients mount that share
under /usr/portage/distfiles (or even /usr/portage), so tarballs downloaded
by one client can be reused by other clients. This is the HOWTO:

http://gentoo-wiki.com/HOWTO_Using_a...ortage_via_NFS

Another option is to use a HTTP cache like http-replicator:

http://forums.gentoo.org/viewtopic.php?p=1138287

Or torpage:

http://www.kroon.co.za/torpage.php

See also this gentoo-user threads:

http://marc.info/?l=gentoo-user&m=117005999007804&w=2
http://marc.info/?l=gentoo-user&m=114991049622866&w=2

If you still want to setup a source mirror, this document explains how to
mirror the gentoo source repository:

http://www.gentoo.org/doc/en/source_mirrors.xml


As a side note, you may also want to setup your own rsync server for the
clients. Probably the following document is helpful:

http://www.gentoo.org/doc/en/rsync.xml
http://gentoo-wiki.com/HOWTO_Local_Rsync_Mirror

As you can see, running gentoo on the rsync server or source repository is
not required.

Reply With Quote
  #3 (permalink)  
Old 02-02-2008, 11:41 AM
David W Noon
 
Posts: n/a
Re: Creating a local Gentoo repository on a non-Gentoo based system

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Saturday 02 Feb 2008 11:08 in article
<ohud75-p5v.ln1@neptune.markhobley.yi.org> of alt.os.linux.gentoo, Mark
Hobley(markhobley@hotpop.donottypethisbit.com) wrote:

> I want to create a local copy of the Gentoo source package repository,


I take it you mean /usr/portage/distfiles.

> but the computer that will be using to mirror the repository is
> running Debian, not Gentoo.
>
> How do I make the mirror?
>
> My next question will be how to I configure the system to serve the
> respository contents to Gentoo clients?


These are basically the same question.

Create a suitable directory on your Debian box and add it to your
NFS "exports" file, typically /etc/exports. The format of this file is
quite simple and documented in man 5 exports.

You then need to start your NFS daemon on the Debian box.

On your Gentoo box add an entry to /etc/fstab so
that /usr/portage/distfiles is mounted using the NFS filesystem and the
IP or DNS address of your Debian box. See man 5 nfs.
- --
Regards

Dave [RLU#314465]
================================================== ====
dwnoon@spamtrap.ntlworld.com (David W Noon)
Remove spam trap to reply via e-mail.
================================================== ====

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.7 (GNU/Linux)

iD8DBQFHpF829MqaUJQw2MkRAvo7AJwJkWKEfJIHqZy9KMz4K4 KdWVQz9ACfRhir
uBnEiWk5o6ZrailUUYTd7M0=
=eRdo
-----END PGP SIGNATURE-----
Reply With Quote
  #4 (permalink)  
Old 02-02-2008, 11:41 AM
David W Noon
 
Posts: n/a
Re: Creating a local Gentoo repository on a non-Gentoo based system

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Saturday 02 Feb 2008 11:08 in article
<ohud75-p5v.ln1@neptune.markhobley.yi.org> of alt.os.linux.gentoo, Mark
Hobley(markhobley@hotpop.donottypethisbit.com) wrote:

> I want to create a local copy of the Gentoo source package repository,


I take it you mean /usr/portage/distfiles.

> but the computer that will be using to mirror the repository is
> running Debian, not Gentoo.
>
> How do I make the mirror?
>
> My next question will be how to I configure the system to serve the
> respository contents to Gentoo clients?


These are basically the same question.

Create a suitable directory on your Debian box and add it to your
NFS "exports" file, typically /etc/exports. The format of this file is
quite simple and documented in man 5 exports.

You then need to start your NFS daemon on the Debian box.

On your Gentoo box add an entry to /etc/fstab so
that /usr/portage/distfiles is mounted using the NFS filesystem and the
IP or DNS address of your Debian box. See man 5 nfs.
- --
Regards

Dave [RLU#314465]
================================================== ====
dwnoon@spamtrap.ntlworld.com (David W Noon)
Remove spam trap to reply via e-mail.
================================================== ====

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.7 (GNU/Linux)

iD8DBQFHpF829MqaUJQw2MkRAvo7AJwJkWKEfJIHqZy9KMz4K4 KdWVQz9ACfRhir
uBnEiWk5o6ZrailUUYTd7M0=
=eRdo
-----END PGP SIGNATURE-----
Reply With Quote
  #5 (permalink)  
Old 02-02-2008, 11:08 PM
Mark Hobley
 
Posts: n/a
Re: Creating a local Gentoo repository on a non-Gentoo based system

pk <pk@pk.pk> wrote:

> You have several options here. Generally, you don't need to mirror the whole
> source repository, unless you intend to serve as a public source mirror
> (see below).


Ok, what I basically want is the source code to all of the packages, so
that I can edit the files locally to produce modified versions.

> As a side note, you may also want to setup your own rsync server for the
> clients. Probably the following document is helpful:


I plan to do this.

At the moment, the clients use:

SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage/"
GENTOO_MIRRORS="ftp://gentoo.virginmedia.com/sites/gentoo/"

The Virgin mirror does not provide an rsync facility, so I will use
rsync.de.gentoo.org to populate my mirror.

> this document explains how to mirror the gentoo source repository:
> http://www.gentoo.org/doc/en/source_mirrors.xml


That website doesn't actually give the rsync command to use.

I want to mirror just /distfiles

I have created two directories:

/volumes/vol3a/gentoo
/volumes/vol3a/gentoo-portage

I now try to populate the gentoo directory:

rsync -avz rsync.de.gentoo.org/gentoo/distfiles /volumes/vol3a/gentoo
building file list ... rsync: link_stat
"/volumes/vol3a/gentoo/rsync.de.gentoo.org/gentoo/distfiles" failed: No
such file or directory (2)

I want the rsync to automatically create the directory structure as
required, and I want distfiles to go straight into
/volumes/vol3a/gentoo/distfiles (I don't want the
.../rsync.de.gentoo.org/.. subdirectory structure).

How can I do this?

Regards,

Mark.

--
Mark Hobley,
393 Quinton Road West,
Quinton, BIRMINGHAM.
B32 1QE.
Reply With Quote
  #6 (permalink)  
Old 02-02-2008, 11:08 PM
Mark Hobley
 
Posts: n/a
Re: Creating a local Gentoo repository on a non-Gentoo based system

pk <pk@pk.pk> wrote:

> You have several options here. Generally, you don't need to mirror the whole
> source repository, unless you intend to serve as a public source mirror
> (see below).


Ok, what I basically want is the source code to all of the packages, so
that I can edit the files locally to produce modified versions.

> As a side note, you may also want to setup your own rsync server for the
> clients. Probably the following document is helpful:


I plan to do this.

At the moment, the clients use:

SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage/"
GENTOO_MIRRORS="ftp://gentoo.virginmedia.com/sites/gentoo/"

The Virgin mirror does not provide an rsync facility, so I will use
rsync.de.gentoo.org to populate my mirror.

> this document explains how to mirror the gentoo source repository:
> http://www.gentoo.org/doc/en/source_mirrors.xml


That website doesn't actually give the rsync command to use.

I want to mirror just /distfiles

I have created two directories:

/volumes/vol3a/gentoo
/volumes/vol3a/gentoo-portage

I now try to populate the gentoo directory:

rsync -avz rsync.de.gentoo.org/gentoo/distfiles /volumes/vol3a/gentoo
building file list ... rsync: link_stat
"/volumes/vol3a/gentoo/rsync.de.gentoo.org/gentoo/distfiles" failed: No
such file or directory (2)

I want the rsync to automatically create the directory structure as
required, and I want distfiles to go straight into
/volumes/vol3a/gentoo/distfiles (I don't want the
.../rsync.de.gentoo.org/.. subdirectory structure).

How can I do this?

Regards,

Mark.

--
Mark Hobley,
393 Quinton Road West,
Quinton, BIRMINGHAM.
B32 1QE.
Reply With Quote
  #7 (permalink)  
Old 02-03-2008, 10:33 AM
pk
 
Posts: n/a
Re: Creating a local Gentoo repository on a non-Gentoo based system

Mark Hobley wrote:

>> this document explains how to mirror the gentoo source repository:
>> http://www.gentoo.org/doc/en/source_mirrors.xml

>
> That website doesn't actually give the rsync command to use.


That document is for setting up a *public* source mirror. And it tells you
that you have to sync with ftp.ussg.iu.edu::gentoo-distfiles, not with just
any mirror.

If you just want to have the sources for the packages, remember that you can
get *any* source package just by using emerge -f, without the need to set
up a full source mirror.

Also remember that if you modify the sources in any way you cannot install
them using emerge unless you regenerate the ebuild and digests for the
packages first. Read the developer handbook for more info.

Reply With Quote
  #8 (permalink)  
Old 02-03-2008, 10:33 AM
pk
 
Posts: n/a
Re: Creating a local Gentoo repository on a non-Gentoo based system

Mark Hobley wrote:

>> this document explains how to mirror the gentoo source repository:
>> http://www.gentoo.org/doc/en/source_mirrors.xml

>
> That website doesn't actually give the rsync command to use.


That document is for setting up a *public* source mirror. And it tells you
that you have to sync with ftp.ussg.iu.edu::gentoo-distfiles, not with just
any mirror.

If you just want to have the sources for the packages, remember that you can
get *any* source package just by using emerge -f, without the need to set
up a full source mirror.

Also remember that if you modify the sources in any way you cannot install
them using emerge unless you regenerate the ebuild and digests for the
packages first. Read the developer handbook for more info.

Reply With Quote
  #9 (permalink)  
Old 02-03-2008, 10:08 PM
Mark Hobley
 
Posts: n/a
Re: Creating a local Gentoo repository on a non-Gentoo based system

pk <pk@pk.pk> wrote:

> That document is for setting up a *public* source mirror. And it tells you
> that you have to sync with ftp.ussg.iu.edu::gentoo-distfiles, not with just
> any mirror.


Yeah. I only want a local mirror, and I am happy to mirror from the
european repository. I'm only after the packages

> Also remember that if you modify the sources in any way you cannot install
> them using emerge unless you regenerate the ebuild and digests for the
> packages first. Read the developer handbook for more info.


Ok. I'll have a look at that.

I really want to know why my rsync command is failing and how to shorten
the download pathname to /volumes/vol3a/gentoo/distfiles

rsync -avz rsync.de.gentoo.org/gentoo/distfiles /volumes/vol3a/gentoo
building file list ... rsync: link_stat
"/volumes/vol3a/gentoo/rsync.de.gentoo.org/gentoo/distfiles" failed: No
such file or directory (2)

Regards,

Mark.

--
Mark Hobley,
393 Quinton Road West,
Quinton, BIRMINGHAM.
B32 1QE.
Reply With Quote
  #10 (permalink)  
Old 02-03-2008, 10:08 PM
Mark Hobley
 
Posts: n/a
Re: Creating a local Gentoo repository on a non-Gentoo based system

pk <pk@pk.pk> wrote:

> That document is for setting up a *public* source mirror. And it tells you
> that you have to sync with ftp.ussg.iu.edu::gentoo-distfiles, not with just
> any mirror.


Yeah. I only want a local mirror, and I am happy to mirror from the
european repository. I'm only after the packages

> Also remember that if you modify the sources in any way you cannot install
> them using emerge unless you regenerate the ebuild and digests for the
> packages first. Read the developer handbook for more info.


Ok. I'll have a look at that.

I really want to know why my rsync command is failing and how to shorten
the download pathname to /volumes/vol3a/gentoo/distfiles

rsync -avz rsync.de.gentoo.org/gentoo/distfiles /volumes/vol3a/gentoo
building file list ... rsync: link_stat
"/volumes/vol3a/gentoo/rsync.de.gentoo.org/gentoo/distfiles" failed: No
such file or directory (2)

Regards,

Mark.

--
Mark Hobley,
393 Quinton Road West,
Quinton, BIRMINGHAM.
B32 1QE.
Reply With Quote
Reply

  { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Linux > Gentoo


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 10:03 PM.


Powered by vBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
© 1999-2008 mindfrost82.com v11.0


Sponsors:
Credit Card | Loans | Car Loan | Egg Credit Card | Credit Cards



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109