Difference between pages "VPN" and "Portage's bashrc"

From Funtoo
(Difference between pages)
Jump to: navigation, search
(Created page with "[http://www.jacco2.dds.nl/networking/openswan-l2tp.html]")
 
(Usefulness of bashrc)
 
Line 1: Line 1:
[http://www.jacco2.dds.nl/networking/openswan-l2tp.html]
+
== bashrc's locations ==
 +
If there is more than one bashrc files, each will be sourced before the ebuild is executed in the following order:
 +
 
 +
* <tt>/etc/portage/bashrc</tt> - Global bashrc file which applied to all packages
 +
Per-package:
 +
* <tt>/etc/portage/env/${CATEGORY}/${PN}</tt>
 +
* <tt>/etc/portage/env/${CATEGORY}/${PN}:${SLOT}</tt>
 +
* <tt>/etc/portage/env/${CATEGORY}/${P}</tt>
 +
* <tt>/etc/portage/env/${CATEGORY}/${PF}</tt>
 +
 
 +
== Usefulness of bashrc ==
 +
With bashrc you will be able to:
 +
* Set custom variables per package, like <tt>CFLAGS</tt> of <tt>FEATURES</tt>
 +
* Execute code in selected [[Ebuild Functions|ebuild stages]]

Latest revision as of 01:30, 29 December 2011

bashrc's locations

If there is more than one bashrc files, each will be sourced before the ebuild is executed in the following order:

  • /etc/portage/bashrc - Global bashrc file which applied to all packages

Per-package:

  • /etc/portage/env/${CATEGORY}/${PN}
  • /etc/portage/env/${CATEGORY}/${PN}:${SLOT}
  • /etc/portage/env/${CATEGORY}/${P}
  • /etc/portage/env/${CATEGORY}/${PF}

Usefulness of bashrc

With bashrc you will be able to:

  • Set custom variables per package, like CFLAGS of FEATURES
  • Execute code in selected ebuild stages