The Funtoo Linux project has transitioned to "Hobby Mode" and this wiki is now read-only.
Difference between revisions of "Creating Your Own Overlay"
Threesixes (talk | contribs) m (more details) |
|||
Line 1: | Line 1: | ||
This page intends to get your local overlay going, show how to revision bump a package, and sync your goodies to github. | This page intends to get your local overlay going, show how to revision bump a package, and sync your goodies to github. | ||
We will use /var/overlay as primary location directory. This directory can be located anywhere, below is an example location. | |||
{{console|body=###i## mkdir /var/overlay}} | {{console|body=###i## mkdir /var/overlay}} | ||
Clone the skeleton from github. Change the repo name from skeleton to your own repo name as you want to see it when emerging. | |||
{{console|body=###i## | {{console|body=###i## cd /var/overlay | ||
###i## git clone http://git.funtoo.org/skeleton-overlay/ local && cd local | ###i## git clone http://git.funtoo.org/skeleton-overlay/ local && cd local | ||
###i## echo "myoverlayname" > /var/overlay/local/profiles/repo_name}} | ###i## echo "myoverlayname" > /var/overlay/local/profiles/repo_name}} | ||
Line 17: | Line 18: | ||
Insert portage structure category & package directories. For example i want to fix apparmor to include the very latest source , i would mkdir -p /var/overlay/local/sys-apps/apparmor then copy the old ebuild i found online (or on my computer) to the directory. {{f|/var/overlay/local/sys-apps/apparmor/apparmor-2.8.4.ebuild}} is where the old ebuild would sit. Copy it to the latest upstream version number. {{c|cp apparmor-2.8.4.ebuild apparmor-2.9.2.ebuild}} then run the ebuild manifest file. | Insert portage structure category & package directories. For example i want to fix apparmor to include the very latest source , i would mkdir -p /var/overlay/local/sys-apps/apparmor then copy the old ebuild i found online (or on my computer) to the directory. {{f|/var/overlay/local/sys-apps/apparmor/apparmor-2.8.4.ebuild}} is where the old ebuild would sit. Copy it to the latest upstream version number. {{c|cp apparmor-2.8.4.ebuild apparmor-2.9.2.ebuild}} then run the ebuild manifest file. | ||
{{console|body=###i## mkdir -p /var/overlay/local/ | {{console|body=###i## mkdir -p /var/overlay/local/app-category/package | ||
###i## mv package-oldversion.ebuild /var/overlay/local/ | ###i## mv package-oldversion.ebuild /var/overlay/local/app-category/package-name/package-oldversion.ebuild | ||
###i## cp /var/overlay/local/ | ###i## cp /var/overlay/local/app-category/package-name/package-oldversion.ebuild /var/overlay/local/app-category/package-name/package-newversion.ebuild | ||
###i## ebuild *.ebuild manifest}} | ###i## ebuild *.ebuild manifest}} | ||
for init files, patches etc: | for init files, patches etc: | ||
example{{c|/var/overlay/local/sys-apps/apparmor/files/apparmor-init}} | example{{c|/var/overlay/local/sys-apps/apparmor/files/apparmor-init}} | ||
{{console|body=###i## mkdir /var/overlay/local/ | {{console|body=###i## mkdir /var/overlay/local/app-category/package-name/files | ||
###i## nano /var/overlay/local/ | ###i## nano /var/overlay/local/app-category/package-name/files/package-init}} | ||
Add your overlay to make.conf: | Add your overlay to make.conf: |
Revision as of 05:33, May 3, 2015
This page intends to get your local overlay going, show how to revision bump a package, and sync your goodies to github.
We will use /var/overlay as primary location directory. This directory can be located anywhere, below is an example location.
root # mkdir /var/overlay
Clone the skeleton from github. Change the repo name from skeleton to your own repo name as you want to see it when emerging.
root # cd /var/overlay root # git clone http://git.funtoo.org/skeleton-overlay/ local && cd local root # echo "myoverlayname" > /var/overlay/local/profiles/repo_name
Change the readme message to what you want to show up on the front page of your repo:
/var/overlay/local/README.rst
- Set the github front page messageThis overlay is from so and so funtoo user. Order a $15/month container today @ funtoo.org
Insert portage structure category & package directories. For example i want to fix apparmor to include the very latest source , i would mkdir -p /var/overlay/local/sys-apps/apparmor then copy the old ebuild i found online (or on my computer) to the directory. /var/overlay/local/sys-apps/apparmor/apparmor-2.8.4.ebuild
is where the old ebuild would sit. Copy it to the latest upstream version number. cp apparmor-2.8.4.ebuild apparmor-2.9.2.ebuild
then run the ebuild manifest file.
root # mkdir -p /var/overlay/local/app-category/package root # mv package-oldversion.ebuild /var/overlay/local/app-category/package-name/package-oldversion.ebuild root # cp /var/overlay/local/app-category/package-name/package-oldversion.ebuild /var/overlay/local/app-category/package-name/package-newversion.ebuild root # ebuild *.ebuild manifest
for init files, patches etc:
example/var/overlay/local/sys-apps/apparmor/files/apparmor-init
root # mkdir /var/overlay/local/app-category/package-name/files root # nano /var/overlay/local/app-category/package-name/files/package-init
Add your overlay to make.conf:
/etc/portage/make.conf
- Insert the local overlayPORTDIR_OVERLAY="/var/overlay/local"
You're ready to emerge the new version, you don't need to sync, you can make minor changes, then emerge, and if it breaks again you can make more minor changes, and emerge again. Once you're satisfied with the ebuild its time to share your fun goodies.
GIT
make ssh keys and upload them to github or else entering your password will get very old very quick.
https://github.com/666threesixes666 = my github user account
https://github.com/666threesixes666/tripsix = my /var/overlay/local/profiles/repo_name contents
root # cd /var/overlay/local root # git init root # git add . root # git commit -m 'First commit' root # git remote add origin git@github.com:666threesixes666/tripsix.git root # git remote set-url origin git@github.com:666threesixes666/tripsix.git root # git remote -v root # git push origin master
If flaws are discovered in your ebuild, you can repair the ebuild/patches/init files/conf.d files within them and upload them to github by these commands:
root # cd /var/overlay/local root # git add . && git commit -m 'updates' && git push origin master