https://www.funtoo.org/api.php?action=feedcontributions&user=Dkg&feedformat=atomFuntoo - User contributions [en]2024-03-28T19:24:17ZUser contributionsMediaWiki 1.36.2https://www.funtoo.org/index.php?title=Creating_Your_Own_Overlay&diff=19815Creating Your Own Overlay2017-10-20T04:16:15Z<p>Dkg: /* Using overlay with Funtoo's kits system */</p>
<hr />
<div>This page intends to get your local overlay going.<br />
==Using overlay with Funtoo's kits system==<br />
For the overlays we will use a minor change for the main meta-repo described in Funtoo kits: https://github.com/funtoo/meta-repo/blob/master/README.rst<br />
<br />
{{console|body=<br />
###i## install -d /var/git<br />
###i## cd /var/git<br />
###i## git clone https://github.com/funtoo/meta-repo.git<br />
###i## cd meta-repo<br />
###i## git submodule init<br />
###i## git submodule update<br />
###i## rm /usr/share/portage/config/repos.conf<br />
}}<br />
Notice that by default guide entire /etc/portage/repos.conf is a symlink to <code>/var/git/meta-repo/repos.conf</code>. This will not let using custom repositories (overlays). For that we will setup a flat file symlink, called <code>funtoo</code> (just an example name).<br />
{{console|body=<br />
###i## rm -rf /etc/portage/repos.conf/<br />
###i## mkdir /etc/portage/repos.conf/<br />
###i## ln -s /var/git/meta-repo/repos.conf/ /etc/portage/repos.conf/funtoo<br />
###i## chown -R portage:portage /var/git/meta-repo<br />
}}<br />
In above shown commands we created the "funtoo" symlink to the regular portage tree. This allows to add any configuration files of any names you prefer for any custom repositories you like, such as overlays, and will not interfere with the meta-repo.<br />
<br />
==Creating the overlay==<br />
We will use <code>/var/git/overlay</code> as primary location directory for the overlay. The location can be anywhere on your system, below is an example location tied with <code>/var/git/</code>, is where regular tree located too.<br />
<br />
{{console|body=<br />
###i## mkdir /var/git/overlay<br />
}}<br />
<br />
Clone the [http://git.funtoo.org/skeleton-overlay skeleton overlay] from github. Change the repository's name from ''skeleton'' to a name as it will appear when emerging. Here we use <code>myoverlayname</code> as an example, choose your name accordingly.<br />
<br />
{{console|body=###i## cd /var/git/overlay<br />
###i## git clone http://github.com/funtoo/skeleton-overlay.git<br />
###i## mv skeleton-overlay myoverlayname<br />
}}<br />
<br />
==Configure the overlay==<br />
We will enable portage settings required for the overlay to be functional.<br />
{{console|body=<br />
###i## echo "myoverlayname" > /var/git/overlay/myoverlayname/profiles/repo_name<br />
###i## echo "masters = core-kit" >> /var/git/overlay/myoverlayname/metadata/layout.conf}}<br />
<br />
{{file|name=/etc/portage/repos.conf/myoverlayname.conf|lang=|desc=Add your overlay to portage|body=<br />
[myoverlayname]<br />
location = /var/git/overlay/myoverlayname<br />
masters = core-kit<br />
auto-sync = no<br />
priority = 10<br />
}}<br />
<br />
{{tip|The <code>priority</code> key is needed to ensure, that your overlay has higher priority to the kit's overlays, which are default priority 1}}<br />
<br />
This would be starting point for your own overlay. You're ready to add new ebuilds that are not present in portage tree or fix the ebuilds from portage tree you are no satisfied with, updating of old versions or removing of new ebuild versions.<br />
<br />
[[Category:Portage]]</div>Dkghttps://www.funtoo.org/index.php?title=User:Dkg&diff=2665User:Dkg2013-03-06T17:26:13Z<p>Dkg: Created page with "{{Person |Full name=David Gasaway |Email=dave@gasaway.org |Geoloc=37.3021632, -120.4829677 |Location name=Merced, California, United States of America |Roles={{Role |Role type..."</p>
<hr />
<div>{{Person<br />
|Full name=David Gasaway<br />
|Email=dave@gasaway.org<br />
|Geoloc=37.3021632, -120.4829677<br />
|Location name=Merced, California, United States of America<br />
|Roles={{Role<br />
|Role type=User<br />
|Role desc=User/sysadmin<br />
|Start date=2013/09/02<br />
}}<br />
|Maintains=<br />
|Blogs=<br />
}}<br />
Funtoo user since Sep 2012; Gentoo user since somewhere around 2002-2003.</div>Dkg