From ef2024a33be93a256beef28c1423ba1fb706383d Mon Sep 17 00:00:00 2001 From: Michał Górny Date: Thu, 22 Apr 2010 17:43:59 +0000 Subject: Support per-package bashrc files. Support loading per-package bashrc files from the /etc/portage/env directory. The invidual files should reside in a directory matching ${CATEGORY}, with names matching ${PN}, ${PN}:${SLOT}, ${P} and/or ${PF} (which are applied in that order). --- man/portage.5 | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'man') diff --git a/man/portage.5 b/man/portage.5 index fb354c22..6c78cbd5 100644 --- a/man/portage.5 +++ b/man/portage.5 @@ -59,6 +59,9 @@ package.use repos.conf .fi .TP +.BR /etc/portage/env/ +package-specific bashrc files +.TP .BR /etc/portage/profile/ site-specific overrides of \fB/etc/make.profile/\fR .TP @@ -407,6 +410,8 @@ it were a single file. If needed, this file can be used to set up a special environment for ebuilds, different from the standard root environment. The syntax is the same as for any other bash script. + +Additional package-specific bashrc files can be created in /etc/portage/env. .TP .BR categories A simple list of valid categories that may be used in /usr/portage, @@ -616,6 +621,22 @@ masters = gentoo kde .fi .RE .TP +.BR /etc/portage/env/ +.RS +In this directory additional package-specific bashrc files can be created. +Portage will source all of them after \fB/etc/portage/bashrc\fR in the following +order: +.nr step 1 1 +.IP \n[step]. 3 +/etc/portage/env/${CATEGORY}/${PN} +.IP \n+[step]. +/etc/portage/env/${CATEGORY}/${PN}:${SLOT} +.IP \n+[step]. +/etc/portage/env/${CATEGORY}/${P} +.IP \n+[step]. +/etc/portage/env/${CATEGORY}/${PF} +.RE +.TP .BR /usr/portage/metadata/ .RS .TP -- cgit v1.2.3-65-gdbad