Install a New Overlay

From NAS-Central Buffalo - The Linkstation Wiki
Revision as of 16:53, 30 March 2006 by 24.73.28.129 (Talk)

Jump to: navigation, search

This article is in progress.


The first thing we need to do is decide where we are going to install our overlay. The standard gentoo location is /usr/


KURO-BOX-EM #cd /etc 
KURO-BOX-EM etc #nano make.conf 


CFLAGS="-O2 -mcpu=603e -fno-strict-aliasing -pipe -fsigned-char" 
CXXFLAGS="${CFLAGS}" 

PORTDIR=/var/portage 
DISTDIR=/var/distfiles 
PKGDIR=/var/packages 
RPMDIR=/var/rpm 

PORTDIR_OVERLAY="/var/overlays/20060122" 

RSYNC_EXCLUDEFROM=/etc/portage/rsync_excludes 

GENTOO_MIRRORS="http://www.gatech.edu/pub/gentoo/ http://ftp.ucsb.edu/pub/mirro..." 

SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage" 

Next we set up the portage profile

KURO-BOX-EM etc #rm make.profile

Notice the 20060122 in the following line. Change it to the date of your overlay in order to point to the correct directory. The link is the relative diretory from /etc. Notice we have to go up 1 level (../) before going back down the /var part of the tree.

KURO-BOX-EM etc #ln -s ../var/overlays/20060122/profiles/kurobox make.profile 
KURO-BOX-EM kurobox #cd /var/overlays 

Notice the 20060122 in the following lines. Change it to the date of your overlay in order to point to the correct directory. It is the relative path from the profile in the overlay to the profile in the official portage tree. Each ../ indicates a directory up in the tree. Just count the directories up and then add the path back down.

KURO-BOX-EM overlays # echo "../../../../portage/profiles/default-linux/ppc/2005.1/ppc" > 20060122/profiles/kurobox/parent 
KURO-BOX-EM overlays #cd /etc 

Now lets regenerate the portage cache. This would be a good time for a bathroom break or a quick run to the store for a snack.

KURO-BOX-EM etc #emerge metadata 
Updating Portage cache: 100% 
KURO-BOX-EM etc # 

Now we'll check if the system is up to date while at the same time testing portage.

KURO-BOX-EM etc #emerge -puD system