Gentoo/Gentoo Configuration Common

Page last edited 3,797 days ago
From Alon Bar-Lev's Site
Jump to navigation Jump to search

Global Configuration

I keep portage at /var/gentoo, don't like to modify /usr.

File: /etc/portage/make.conf
CHOST="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=native -fomit-frame-pointer -pipe"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j3"                      # number of CPUs+1
PORTDIR="/var/gentoo/portage"
DISTDIR="/var/gentoo/distfiles"
PKGDIR="/var/gentoo/packages"
PORTAGE_GPG_DIR="/etc/portage/gnupg"
FEATURES="webrsync-gpg parallel-fetch userfetch userpriv usersandbox"
EMERGE_DEFAULT_OPTS="--quiet-build=n"
SYNC=""

USE="${USE} mmx sse sse2 sse3 caps fam"
USE="${USE} -gnome -handbook"
USE="${USE} -cxx -ruby -perl -fortran -python -lua -java"
USE="${USE} -berkdb -gdbm -hal -branding -gstreamer -semantic-desktop"
USE="${USE} nocxx" # temp
File: /etc/portage/make.profile
->../../var/gentoo/portage/profiles/default/linux/amd64/10.0/no-multilib

Licensing

Free open source licenses that are accepted for free usage.

Following is basic configuration of portage to allow only free licenses for a basic system.

Accept only free licenses:

File: /etc/portage/make.conf
ACCEPT_LICENSE="-* @FSF-APPROVED @FSF-APPROVED-OTHER freedist Artistic"
File: /etc/portage/package.license/system.conf
app-arch/bzip2 BZIP2
app-arch/unzip Info-ZIP
app-arch/zip Info-ZIP
sys-apps/man-pages-posix man-pages-posix
sys-apps/tcp-wrappers tcp_wrappers_license
sys-devel/flex FLEX
sys-libs/cracklib CRACKLIB
dev-perl/Crypt-PasswdMD5 BEER-WARE
File: /etc/portage/package.license/tools.conf
sys-apps/debianutils SMAIL
sys-process/lsof lsof
File: /etc/portage/package.license/x11.conf
media-libs/mesa kilgard
x11-misc/imake imake
x11-misc/xkeyboard-config xkeyboard-config
x11-misc/xorg-cf-files xorg-cf-files
x11-proto/trapproto trapproto
x11-proto/xf86bigfontproto xf86bigfontproto
x11-proto/xf86rushproto xf86rushproto
media-libs/fontconfig fontconfig

USE flags

File: /etc/portage/package.use/my-system.conf
sys-devel/gcc cxx -nocxx

Always none stable

<sys-apps/portage-9999 ~amd64 **     # sets
net-firewall/firehol ~amd64          # no choice

Kernel

The base of kernel configuration is here.

Device specific configuration can be found at any of my hardware article.

System

To make ntpd synchronize faster after power on, add:

File: /etc/conf.d/hwclock
clock_systohc="YES"
File: /etc/profile.d/editor.sh
export PAGER="less"
export EDITOR="vim"

Set:

File: /etc/rc.conf
rc_parallel="YES"
rc_hotplug="*"