HOWTO Gensync

From Gentoo Linux Wiki

Jump to: navigation, search
This article is part of the HOWTO series.
Installation Kernel & Hardware Networks Portage Software System X Server Gaming Non-x86 Emulators Misc
This page is a candidate for deletion 
Reason given: Obsolete article.
If you disagree with its deletion, please explain why on its discussion page.
If you intend to fix it, please remove this notice, but do not remove this notice from articles that you have created yourself.
Make sure no other pages link here and check the page's history before deleting.
Warning: Gensync has been deprecated in favor of layman. Please use "layman -s [NAMEOFOVERLAY]" instead. More information on Portage Overlays and Layman can be found at the Portage Overlay Listing page.

Contents

[edit] Introduction

What is Gensync? What does it do?

Gensync is used to get ebuilds from a 3rd party rsync server. The guide will teach you how to install and use it.

Notice: This article takes the assumption that you want to have the ebuilds in /usr/local/bmg-main If you prefer a different path make sure to adjust the examples given here to your setup.

[edit] Getting gensync

gensync is a part of the gentoolkit-dev package. So all you have to do to get gensync is

emerge gentoolkit-dev

[edit] Prerequisites

First of all you have to setup some stuff to make portage notice the new ebuild.
So first create the dir where the ebuild should be stored, in our example do

mkdir /usr/local/bmg-main

The next step is to make this directory visible to portage. To do so edit /etc/make.conf and add/edit the following line:

File: /etc/make.conf
...
PORTDIR_OVERLAY="/usr/local/bmg-main"
...

If you have multiple overlay directories they have to be delimited by a space, for example:

File: /etc/make.conf
...
PORTDIR_OVERLAY="/usr/local/portage /usr/local/bmg-main"
...

[edit] Configure gensync

Now all we have to do is to tell gensync where to store the ebuilds. Just edit /etc/gensync/bmg-main.syncsource and make sure this line is present:

File: /etc/gensync/bmg-main.syncsource
...
overlay="/usr/local/bmg-main"
...

Next edit /etc/gensync/gensync.conf and make sure this line is present:

File: /etc/gensync/gensync.conf
...
base_overlay = /usr/local
...

[edit] Getting the bmg ebuilds

As everything is configured now, all you have to do is

gensync bmg-main

This will grab the ebuilds from our tree and populate your overlay with them. Same as usual to install the packages.

[edit] See Also

Personal tools