/etc/portage/categories is a file that contains a simple list of valid categories that may be used in repositories and the PKGDIR variable. The existence of a categories allows for custom package categories to be created.
Format
One package category per line.
Example
1 2 3
FILE /etc/portage/categoriesCategories file example app-hackers media-other
/etc/portage/env and /etc/portage/package.env are used for modifying environmental variables, such as those in /etc/portage/make.conf, on a per-package basis.
The /etc/portage/env directory contains files that have the same syntax as make.conf. The filename will be used as the key to override settings.
The /etc/portage/package.env file describes which of these files will be used on a per-package basis. Contents [hide]
Example 1: Enable debug information for a specific package
Suppose a user would like to build GIMP with debug information because the user wants a development version and would like to report any crashes to GIMP upstream. Create a file in /etc/portage/env that contains the desired changes:
Example 2: Build certain packages in a different location
Suppose the Portage build directory is in tmpfs, but some packages are too large, and run out of space. The PORTAGE_TMPDIR can be modified to exclude the packages that are too large. Create an env file that modifies PORTAGE_TMPDIR variable and sets it to an on-disk directory:
Notice that it is possible to reference several env files for each package.
license_groups
/etc/portage/license_groups contains groups of licenses that may be specified in the ACCEPT_LICENSE variable. Refer to GLEP 23 for further information.
Format
Comments begin with # (no inline comments)
One group name, followed by list of licenses and nested groups
Nested groups are prefixed with the @ symbol
Example
1 2 3 4 5
FILE /etc/portage/license_groupsLicense groups example # The FSF-APPROVED group includes the entire GPL-COMPATIBLE group and more. FSF-APPROVED @GPL-COMPATIBLE Apache-1.1 BSD-4 MPL-1.0 MPL-1.1 # The GPL-COMPATIBLE group includes all licenses compatible with the GNU GPL. GPL-COMPATIBLE Apache-2.0 BSD BSD-2 GPL-2 GPL-3 LGPL-2.1 LGPL-3 X11 ZLIB
cat /etc/portage/make.conf # These settings were set by the catalyst build script that automatically # built this stage. # Please consult /usr/share/portage/config/make.conf.example for a more # detailed example. CFLAGS="-march=native -O2 -pipe" CXXFLAGS="${CFLAGS}" # WARNING: Changing your CHOST is not something that should be done lightly. # Please consult http://www.gentoo.org/doc/en/change-chost.xml before changing. CHOST="x86_64-pc-linux-gnu" CPU_FLAGS_X86="aes avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" # These are the USE flags that were used in addition to what is provided by the # profile used for building. MAKEOPTS="-j4" # USE="X bindist aac -gnome -gtk systemd -qt4 -kde python_targets_python3_5 -python_targets_python3_4 qt5 dbus udisks udev policykit alsa ffmpeg opengl" USE="X bindist aac -gnome -gtk systemd -qt4 python_targets_python3_5 -python_targets_python3_4 qt5 dbus udisks udev policykit alsa ffmpeg opengl" LINGUAS="en_US zh_CN" L10N="en-US zh-CN zh" PORTDIR="/usr/portage" PORTAGE_TMPDIR="/tmp" DISTDIR="${PORTDIR}/distfiles" PKGDIR="${PORTDIR}/packages" GENTOO_MIRRORS="https://ipv4.mirrors.ustc.edu.cn/gentoo/" GENTOO_MIRRORS="http://mirrors.aliyun.com/gentoo/" VIDEO_CARDS="intel i965" INPUT_DEVICES="synaptics evdev" ACCEPT_KEYWORDS="~amd64" GRUB_PLATFORMS=efi-64
make.profile
The /etc/portage/make.profile/ or /etc/make.profile/ directories are usually symlinked to the correct profile in /usr/portage/profiles/. For more detailed information see the Profile article and the /etc/portage/make.profile/ related sections in man 5 portage.
mirrors
/etc/portage/mirrors is a file that is used to modify mirror behavior. It is useful for defining a local mirror that can contain fetch-restricted packages when using multiple Gentoo machines. Portage will check the /etc/portage/mirrors file before looking at GENTOO_MIRRORS in /etc/portage/make.conf
Example
1 2 3 4 5 6 7 8 9
CODE Portage mirror example # A list of local, private mirrors used by a company local ftp://192.168.0.3/mirrors/gentoo http://192.168.0.4/distfiles
# People in Japan would want to use the Japanese mirror first sourceforge http://keihanna.dl.sourceforge.net/sourceforge
# People in Tawain would want to use the local GNU mirror first gnu ftp://ftp.nctu.edu.tw/UNIX/gnu/