mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-06-18 19:29:21 +01:00
FHS compliance notes
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@536 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
This commit is contained in:
parent
094f9e11fb
commit
a8e5938ec5
@ -33,6 +33,7 @@ Issuing the following commands will create a default directory layout:
|
|||||||
local</userinput>
|
local</userinput>
|
||||||
<userinput>cd $LFS/opt</userinput>
|
<userinput>cd $LFS/opt</userinput>
|
||||||
<userinput>mkdir bin doc include info lib man</userinput>
|
<userinput>mkdir bin doc include info lib man</userinput>
|
||||||
|
<userinput>ln -s /var/tmp /usr/tmp</userinput>
|
||||||
</literallayout></blockquote>
|
</literallayout></blockquote>
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
@ -58,5 +59,24 @@ downloaded in chapter 3 to some subdirectory under $LFS/usr/src (you
|
|||||||
will need to create the desired directory yourself).
|
will need to create the desired directory yourself).
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
|
<sect2>
|
||||||
|
<title>FHS compliance notes</title>
|
||||||
|
|
||||||
|
<para>
|
||||||
|
The FHS stipulates that the /usr/local directory should contain the bin, games,
|
||||||
|
include, lib, man, sbin, and share subdirectories. You can alter your /usr/local
|
||||||
|
directory yourself if you want your system to be FHS-compliant.
|
||||||
|
</para>
|
||||||
|
|
||||||
|
<para>
|
||||||
|
Also, the standard says that there should exist a /usr/share/games directory,
|
||||||
|
which we don't much like for a base system. But feel free to make your system
|
||||||
|
FHS-compliant if you wish. The FHS isn't precise as to the structure of the
|
||||||
|
/usr/local/share subdirectories, so we took the liberty of creating the
|
||||||
|
directories that we felt needed.
|
||||||
|
</para>
|
||||||
|
|
||||||
|
</sect2>
|
||||||
|
|
||||||
</sect1>
|
</sect1>
|
||||||
|
|
||||||
|
@ -35,3 +35,24 @@ documentation.
|
|||||||
|
|
||||||
</sect2>
|
</sect2>
|
||||||
|
|
||||||
|
<sect2>
|
||||||
|
<title>FHS compliance notes</title>
|
||||||
|
|
||||||
|
<para>
|
||||||
|
The FHS says that editors like vim should use /var/lib/<editor> for their
|
||||||
|
temporary state files, like temporary save files for example. If you wish vim to
|
||||||
|
conform to the FHS, you should use this command set instead of the one presented
|
||||||
|
above:
|
||||||
|
</para>
|
||||||
|
|
||||||
|
<blockquote><literallayout>
|
||||||
|
<userinput>./configure --prefix=/usr --localstatedir=/var/lib/vim &&</userinput>
|
||||||
|
<userinput>make &&</userinput>
|
||||||
|
<userinput>make install &&</userinput>
|
||||||
|
<userinput>cd /usr/bin &&</userinput>
|
||||||
|
<userinput>ln -s vim vi &&</userinput>
|
||||||
|
<userinput>mkdir /var/lib/vim</userinput>
|
||||||
|
</literallayout></blockquote>
|
||||||
|
|
||||||
|
</sect2>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user