Rev 1385 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1385 | jmengual | 1 | <?xml version="1.0" encoding="ISO-8859-1"?> |
2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" |
||
3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [ |
||
4 | <!ENTITY % general-entities SYSTEM "../general.ent"> |
||
5 | %general-entities; |
||
6 | ]> |
||
7 | |||
8 | <sect1 id="ch-system-attr" role="wrap"> |
||
9 | <?dbhtml filename="attr.html"?> |
||
10 | |||
11 | <sect1info condition="script"> |
||
12 | <productname>attr</productname> |
||
13 | <productnumber>&attr-version;</productnumber> |
||
14 | <address>&attr-url;</address> |
||
15 | </sect1info> |
||
16 | |||
17 | <title>Attr-&attr-version;</title> |
||
18 | |||
19 | <indexterm zone="ch-system-attr"> |
||
20 | <primary sortas="a-Attr">Attr</primary> |
||
21 | </indexterm> |
||
22 | |||
23 | <sect2 role="package"> |
||
24 | <title/> |
||
25 | |||
26 | <para>Le paquet Attr contient des outils et des bibliothèques pour gérer |
||
27 | les attributs d'un système de fichier étendu.</para> |
||
28 | |||
29 | <segmentedlist> |
||
30 | <segtitle>&buildtime;</segtitle> |
||
31 | <segtitle>&diskspace;</segtitle> |
||
32 | |||
33 | <seglistitem> |
||
34 | <seg>&attr-ch6-sbu;</seg> |
||
35 | <seg>&attr-ch6-du;</seg> |
||
36 | </seglistitem> |
||
37 | </segmentedlist> |
||
38 | |||
39 | </sect2> |
||
40 | |||
41 | <sect2 role="installation"> |
||
42 | <title>Installation d'Attr</title> |
||
43 | |||
44 | <para>Ajoutez un script de test manquant :</para> |
||
45 | |||
46 | <screen><userinput remap="pre">cat > test/sort-getfattr-output << "EOF" |
||
47 | #! /usr/bin/perl -w |
||
48 | |||
49 | undef $/; |
||
50 | print join("\n\n", sort split(/\n\n/, ><)), "\n\n"; |
||
51 | EOF |
||
52 | chmod 755 test/sort-getfattr-output</userinput></screen> |
||
53 | |||
54 | <para>Modifiez le répertoire de la documentation pour qu'il soit versionné |
||
55 | et qu'il ajoute le support d'une installation DESTDIR :</para> |
||
56 | |||
57 | <screen><userinput remap="pre">sed -i -e 's|/@pkg_name@|&-@pkg_version@|' \ |
||
58 | -e 's|@prefix|$(DESTDIR)&|' \ |
||
59 | -e 's|@libexec|$(DESTDIR)&|' \ |
||
60 | include/builddefs.in</userinput></screen> |
||
61 | |||
62 | <para>Modifiez le script <filename>configure</filename> pour utiliser |
||
63 | <command>file</command> de <filename class="directory">/tools</filename> :</para> |
||
64 | |||
65 | <screen><userinput remap="pre">sed -i 's@/usr/bin/file@/tools/bin/file@g' configure</userinput></screen> |
||
66 | |||
67 | <para>Préparez la compilation d'Attr :</para> |
||
68 | <!-- FIXME: msgmerge and xgettext may not be needed to build ATTR, and as such |
||
69 | the Gettext package in chapter 5 may be reverted to only installing |
||
70 | msgfmt. The diffs of the installed files needs to be compared |
||
71 | whether we use /tools/bin/msgmerge or /tools/bin/true. Also check |
||
72 | the ACL package the same way. --> |
||
73 | <screen><userinput remap="configure">MAKE=/tools/bin/make MSGFMT=/tools/bin/msgfmt \ |
||
74 | MSGMERGE=/tools/bin/msgmerge XGETTEXT=/tools/bin/xgettext \ |
||
75 | ./configure --prefix=/usr --libexecdir=/usr/lib</userinput></screen> |
||
76 | |||
77 | <para>Compilez le paquet :</para> |
||
78 | |||
79 | <screen><userinput remap="make">make</userinput></screen> |
||
80 | |||
81 | <para>Pour tester les résultats, lancez :</para> |
||
82 | <!-- FIXME: Find out what is wrong with the test suite. --> |
||
83 | <screen><userinput remap="test">make tests root-tests ext-tests</userinput></screen> |
||
84 | |||
85 | <para>Installez le paquet :</para> |
||
86 | |||
87 | <screen><userinput remap="install">make install install-dev install-lib |
||
88 | chmod -v 755 /usr/lib/libattr.{la,so.1.1.0} |
||
89 | rm -v /usr/lib/libattr.so |
||
90 | mv -v /usr/lib/libattr.so* /lib |
||
91 | ln -sfv ../../lib/libattr.so.1.1.0 /usr/lib/libattr.so</userinput></screen> |
||
92 | |||
93 | </sect2> |
||
94 | |||
95 | |||
96 | <sect2 id="contents-attr" role="content"> |
||
97 | <title>Contenu d'Attr</title> |
||
98 | |||
99 | <segmentedlist> |
||
100 | <segtitle>Programme installé</segtitle> |
||
1401 | jmengual | 101 | <segtitle>Bibliothèques installées</segtitle> |
102 | <segtitle>Répertoires installés</segtitle> |
||
1385 | jmengual | 103 | |
104 | <seglistitem> |
||
1401 | jmengual | 105 | <seg>attr, getfattr</seg> |
106 | <seg>libattr.{a,so}</seg> |
||
107 | <seg>/usr/share/doc/attr-&attr-version;</seg> |
||
108 | |||
1385 | jmengual | 109 | </seglistitem> |
110 | </segmentedlist> |
||
111 | |||
112 | <variablelist> |
||
113 | <bridgehead renderas="sect3">Descriptions courtes</bridgehead> |
||
114 | <?dbfo list-presentation="list"?> |
||
115 | <?dbhtml list-presentation="table"?> |
||
116 | |||
117 | <varlistentry id="attr"> |
||
118 | <term><command>attr</command></term> |
||
119 | <listitem> |
||
120 | <para>étend des attributs sur les objets systèmes de fichiers</para> |
||
121 | <indexterm zone="ch-system-attr attr"> |
||
122 | <primary sortas="b-attr">attr</primary> |
||
123 | </indexterm> |
||
124 | </listitem> |
||
125 | </varlistentry> |
||
126 | |||
127 | <varlistentry id="getfattr"> |
||
128 | <term><command>getfattr</command></term> |
||
129 | <listitem> |
||
130 | <para>récupère les attributs étendus des objets système de fichiers</para> |
||
131 | <indexterm zone="ch-system-attr getfattr"> |
||
132 | <primary sortas="b-getfattr">getfattr</primary> |
||
133 | </indexterm> |
||
134 | </listitem> |
||
135 | </varlistentry> |
||
136 | |||
137 | <varlistentry id="libattr"> |
||
138 | <term><filename class="libraryfile">libattr</filename></term> |
||
139 | <listitem> |
||
140 | <para>contient les fonctions de l'API d'attr</para> |
||
141 | <indexterm zone="ch-system-attr libattr"> |
||
142 | <primary sortas="b-libattr">libattr</primary> |
||
143 | </indexterm> |
||
144 | </listitem> |
||
145 | </varlistentry> |
||
146 | |||
147 | </variablelist> |
||
148 | |||
149 | </sect2> |
||
150 | |||
151 | </sect1> |