====== Portage synchronization using Git. ====== ===== Upgrading portage. ===== Until Portage >= 2.2 stabilizes you need to add appropriate keyword. echo '> /etc/portage/package.keywords emerge -1 portage Also add Portage SYNC variable to make.conf. echo 'SYNC="git://git.calculate.ru/calculate/portage.git"' >> /etc/make.conf ===== Setting up portage. ===== Clone Git repo with recent history of portage tree. rm -rf /usr/portage git clone --branch=master --depth=1 -- git://git.calculate.ru/calculate/portage.git /usr/portage mkdir /usr/portage/packages ===== Portage Synchronization. ===== Portage and metadata might be synchronized by this way. Metadata must be updated after each //eix-sync// run. eix-sync # egencache --repo=gentoo --update --jobs=$((`grep "^processor" /proc/cpuinfo | wc -l`+1)) # # Only for Git servers without metadata ===== Portage Overlays. ===== If you have an overlay for example in /usr/local/portage you need to set it's name like this. mkdir -p /usr/local/portage/profiles && echo gentoo_overlay > /usr/local/portage/profiles/repo_name