gentoo 配置自己的 overlay

配置本地 overlay

[NameOfYourOverlay]
location = /usr/local/portage
masters = gentoo
auto-sync = no
root# mkdir -p /usr/local/portage/x11-terms/st
root# cd /usr/local/portage/x11-terms/st
root# cp /usr/portage/x11-terms/st/st-0.6.ebuild st-0.6-r2.ebuild
root# mkdir files
root# cd files
root# wget http://st.suckless.org/patches/st-no_bold_colors-0.6.diff
root# wget http://st.suckless.org/patches/st-solarized-dark-0.6.diff
src_prepare(){
 ...

 for i in ${FILESDIR}/*.diff;do
    epatch "$i"    
 done
}
root# chown -R portage:portage /usr/local/portage
root# pushd /usr/local/portage/x11-terms/st/
root# repoman manifest
root# popd

为什么文件名带上 -r2 ? gentoo 官方库里的 x11-terms/st 已经有了一个 -r1
只要你喜欢,后面带上 -r100 都行。

emerge -av =x11-terms/st-0.6-r2

使用 layman 添加非官方的 overlay

# Repository config types used by layman
# (repos.conf, make.conf)
conf_type : repos.conf
mkdir -p /etc/portage/repos.conf
layman-updater -R

其他

IMPORTANT: config file '/etc/portage/package.accept_keywords' needs updating

patches in your local overlay

Layman_configuration

点击进入评论 ...