Difference between pages "Creating Profiles" and "Install/fr/Intro"

(Difference between pages)
(Rules to follow)
 
(Created page with "<noinclude> {{InstallPart|texte d'introduction}} </noinclude> = Installation de Funtoo Linux = __NOTITLE__ == Introduction == {{Warning|Ce document peut contenir des liens ve...")
 
Line 1: Line 1:
Want to create your own custom profiles? Thought up a mix-in that's not currently in the Funtoo profiles? Have an overlay with profiles and want to make it easy for people to use them? Well you've come to the right place. This article will show you how to easily add you own profiles. No more ugly hacking of parent files and other nonsense. Once you follow this guide, not only will portage easily recognize your profiles, they will also show up in eselect right along with the ones from the main tree.
+
<noinclude>
 +
{{InstallPart|texte d'introduction}}
 +
</noinclude>
 +
= Installation de Funtoo Linux =
 +
__NOTITLE__
 +
== Introduction ==
 +
{{Warning|Ce document peut contenir des liens vers des pages en Anglais. }}
  
== How to do it ==
+
Ce document a été rédigé afin de vous aider à installer Funtoo Linux sur un PC compatible. Ce tutoriel se veut le plus simple et minimaliste possible afin que le système d'exploitation Funtoo Linux soit installé et opérationnel le plus rapidement possible sans trop de difficulté.
=== Rules to follow ===
+
#You will need a version of [[Package:Eselect|eselect]] that supports Funtoo profiles (already integrated into Funtoo Linux.)
+
#Your overlay must have a directory  called <code>profiles</code>. And this directory must include a file called <code>repo_name</code>. The name of your overlay is recorded in this file.
+
#Your profiles must be inside of the directory called <code>profiles</code>
+
#You need a file called <code>profiles.eselect.desc</code> inside the directory called <code>profiles</code>. See <code>profiles.eselect.example</code> in your Funtoo Portage tree for instructions.
+
#If you're creating profiles of types arch, build, flavor, or mix-ins, your profile must be inside a directory with same name, such as <tt>profiles/my_profile/flavor/new_profile</tt>, <tt>profiles/my_profile/mix-ins/subdir/profile</tt>.
+
# Currently <tt>NoMix</tt> (see <tt>profiles.eselect.example</tt>) is only supported for profiles in the same tree.
+
# If you're not using a standard Funtoo tree, you must ensure that your main Portage tree has <tt>profile-formats = portage-2</tt> set in <tt>metadata/layout.conf</tt> in order for portage to interpret the <repo_name>:<profile> syntax.
+
  
=== Example of how to set up ===
+
Si vous possèdez quelconque expérience avec l'installation de Gentoo Linux, plusieurs étapes vous seront familières. Vous devez cependant passer au travers tout le guide car il y a quelques différences.
For our example we will create a mix-ins profile called 'fake_pro' in a local overlay called 'local_overlay'. fake_pro will set the 'dummy' USE flag globally and also set the 'fake' USE flag on sys-apps/not-exist. We will then add the profile to eselect so it's visible when running 'eselect profile'.
+
  
==== Creating the profile ====
+
{{Note|Si vous installez Funtoo Linux sur une architecture [[Funtoo Linux Installation on ARM|ARM]],  s'il vous plaît consuler [[Funtoo Linux Installation on ARM]] car il y a des différences notables concernant le support ARM. }}
We will use ''<code>${OVERLAY_DIR}</code>'' as the path to local_overlay. These instructions assume the overlay exists.
+
If you haven't set a name for your overlay, do that first:
+
<console>
+
###i## echo "local_overlay" > ${OVERLAY_DIR}/profiles/repo_name
+
</console>
+
 
+
Next lets create a directory to store our profile. Since we're creating a 'mix-ins' profile we need to make sure our profile is inside a 'mix-ins' subdirectory. This is a requirement in order to ensure that the profile will show up in eselect. If your not planning on using eselect then there's no requirement to use 'mix-ins'
+
<console>
+
###i## install -d ${OVERLAY_DIR}/profiles/my_profiles/mix-ins/fake_pro
+
</console>
+
 
+
Now that we have a directory for our profile, lets go ahead and add our settings. Global USE settings go in ''<code>make.defaults</code>'', package specific USE settings go in ''<code>package.use</code>'':
+
<console>
+
###i## cd ${OVERLAY_DIR}/profiles/my_profiles/mix-ins/fake_pro
+
###i## echo 'USE="$USE dummy"' >> make.defaults
+
###i## echo 'sys-apps/not-exist fake' >> package.use
+
</console>
+
Note that no matter if your using funtoo or gentoo, profile settings all work the same. For more information please check the portage man page.
+
 
+
==== Adding to eselect ====
+
eselect reads from the file ''<code>profiles.eselect.desc</code>'' in your profiles/ directory. Format is "Type Name Status NoMix" space-separated. For more information look in ''<code>/usr/portage/profiles/profiles.eselect.example</code>'':
+
<console>
+
###i## echo 'mix-ins my_profiles/mix-ins/fake_pro testing' >> ${OVERLAY_DIR}/profiles/profiles.eselect.desc
+
</console>
+
Watch the result:
+
<console>
+
###i## eselect profile list
+
</console>
+
 
+
[[Category:Portage]]
+
[[Category:Labs]]
+
[[Category:HOWTO]]
+
[[Category:Featured]]
+

Revision as of 15:52, December 20, 2014


Note

This is a template that is used as part of the Installation instructions which covers: texte d'introduction. Templates are being used to allow multiple variant install guides that use most of the same re-usable parts.


Installation de Funtoo Linux

Introduction

Warning

Ce document peut contenir des liens vers des pages en Anglais.

Ce document a été rédigé afin de vous aider à installer Funtoo Linux sur un PC compatible. Ce tutoriel se veut le plus simple et minimaliste possible afin que le système d'exploitation Funtoo Linux soit installé et opérationnel le plus rapidement possible sans trop de difficulté.

Si vous possèdez quelconque expérience avec l'installation de Gentoo Linux, plusieurs étapes vous seront familières. Vous devez cependant passer au travers tout le guide car il y a quelques différences.

Note

Si vous installez Funtoo Linux sur une architecture ARM, s'il vous plaît consuler Funtoo Linux Installation on ARM car il y a des différences notables concernant le support ARM.