Difference between pages "Git local overlay" and "Stage Tarball"

(Difference between pages)
(Synchronize with git repository)
 
 
Line 1: Line 1:
Here is How To: Work with local overlay synchronized with your git repository.
+
A stage tarball is an archive containing a minimal environment. For example, in Gentoo Linux there are 3 stage tarballs : stage1, stage2, stage3.
 +
Funtoo's and Gentoo's official installation method uses the last one.
 +
See [[Download]] to download a stage tarball and follow the [[Funtoo Linux Installation]] to install.
  
== Setup git local overlay ==
+
[[Category:Funtoo features]]
 
+
=== Create local overlay ===
+
 
+
Create the necessary directory structure
+
<console>
+
###i## mkdir -p /usr/local/portage/profiles
+
###i## echo "$HOSTNAME" >> /usr/local/portage/profiles/repo_name
+
</console>
+
 
+
This enables access to /usr/local/portage
+
for users in the portage group
+
<console>
+
###i## chown root:portage /usr/local/portage
+
</console>
+
 
+
Assign the portage group as default for newly created files in
+
<tt>/usr/local/portage</tt>
+
<console>
+
###i## chmod g+s /usr/local/portage
+
</console>
+
 
+
Enable users in the portage group to write to
+
<tt>/usr/local/portage</tt>
+
<console>
+
###i## chmod 775 /usr/local/portage
+
</console>
+
 
+
Edit /etc/portage/make.conf
+
<console>
+
###i## echo "PORTDIR_OVERLAY=/usr/local/portage" >> /etc/portage/make.conf
+
</console>
+
 
+
Create the relevant directory structure
+
(I use the game rain-slick as example)
+
<console>
+
$ ##bl##mkdir -p /usr/local/portage/games-rpg/rain-slick
+
</console>
+
 
+
Copy the ebuild to your overlay
+
<console>
+
$ ##bl##cp rain-slick-1.5.ebuild /usr/local/portage/games-rpg/rain-slick
+
</console>
+
 
+
Issue the following commands to install rain-slick from your overlay
+
<console>
+
$ ##bl##cd /usr/local/portage/games-rpg/rain-slick
+
$ ##bl##ebuild rain-slick-1.5.ebuild digest
+
$ ##bl##su
+
###i## emerge rain-slick
+
</console>
+
 
+
=== Synchronize with git repository ===
+
 
+
If you are not related with git and ssh you can check [http://help.github.com/ this] GitHub manual.
+
If you have not git repository with local overlay yet you can assign it alike :
+
<console>
+
$ ##bl##cd /usr/local/portage/
+
$ ##bl##git add /usr/local/portage/profiles/repo_name
+
$ ##bl##git commit -m 'git init'
+
$ ##bl##git remote add origin git@github.com:YourGitHubAccount/YourGitHubRepository.git
+
$ ##bl##git push -u origin master
+
</console>
+
 
+
If you already have git overlay repository or want to use some you can assign it alike :
+
<console>
+
$ ##bl##cd /usr/local/portage/
+
$ ##bl##git init
+
$ ##bl##git remote add origin git@github.com:YourGitHubAccount/YourGitHubRepository.git
+
$ ##bl##git fetch
+
$ ##bl##git branch master origin/master
+
$ ##bl##git checkout master
+
</console>
+

Latest revision as of 07:57, November 18, 2012

A stage tarball is an archive containing a minimal environment. For example, in Gentoo Linux there are 3 stage tarballs : stage1, stage2, stage3. Funtoo's and Gentoo's official installation method uses the last one. See Download to download a stage tarball and follow the Funtoo Linux Installation to install.