source: archive/attr.xml

trunk
Last change on this file was 3f2db3a6, checked in by Pierre Labastie <pierre.labastie@…>, 17 months ago

Remove sect1info tags

They only contain a date tag that is nowhere used.

  • Property mode set to 100644
File size: 5.9 KB
Line 
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 <!ENTITY attr-download-http "http://download.savannah.gnu.org/releases/attr/attr-&attr-version;.src.tar.gz">
8 <!ENTITY attr-download-ftp " ">
9 <!ENTITY attr-md5sum "84f58dec00b60f2dc8fd1c9709291cc7">
10 <!ENTITY attr-size "336 KB">
11 <!ENTITY attr-buildsize "3.5 MB">
12 <!ENTITY attr-time "0.1 SBU">
13]>
14
15<sect1 id="attr" xreflabel="attr-&attr-version;">
16 <?dbhtml filename="attr.html"?>
17
18
19 <title>attr-&attr-version;</title>
20
21 <indexterm zone="attr">
22 <primary sortas="a-attr">attr</primary>
23 </indexterm>
24
25 <sect2 role="package">
26 <title>Introduction to attr</title>
27
28 <para>The <application>attr</application> package contains utilities to
29 administer the extended attributes on filesystem objects.</para>
30
31 &lfs75_checked;
32
33 <bridgehead renderas="sect3">Package Information</bridgehead>
34 <itemizedlist spacing="compact">
35 <listitem>
36 <para>Download (HTTP): <ulink url="&attr-download-http;"/></para>
37 </listitem>
38 <listitem>
39 <para>Download (FTP): <ulink url="&attr-download-ftp;"/></para>
40 </listitem>
41 <listitem>
42 <para>Download MD5 sum: &attr-md5sum;</para>
43 </listitem>
44 <listitem>
45 <para>Download size: &attr-size;</para>
46 </listitem>
47 <listitem>
48 <para>Estimated disk space required: &attr-buildsize;</para>
49 </listitem>
50 <listitem>
51 <para>Estimated build time: &attr-time;</para>
52 </listitem>
53 </itemizedlist>
54
55 <para condition="html" role="usernotes">User Notes:
56 <ulink url="&blfs-wiki;/attr"/></para>
57
58 </sect2>
59
60 <sect2 role="installation">
61 <title>Installation of attr</title>
62
63 <para>Install <application>attr</application> by running the following
64 commands:</para>
65
66<screen><userinput>sed -i -e 's|/@pkg_name@|&amp;-@pkg_version@|' include/builddefs.in &amp;&amp;
67
68INSTALL_USER=root \
69INSTALL_GROUP=root \
70./configure --prefix=/usr --disable-static &amp;&amp;
71make</userinput></screen>
72
73 <para>There are three sets of tests that come with this package. Issue the
74 following to execute all three:
75 <command>make tests root-tests ext-tests</command>. For meaningful results,
76 the tests need to be carried out on a file system that supports extended
77 attributes.</para>
78
79 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
80
81<!-- Package uses DIST_ROOT instead of DESTDIR -->
82<screen role="root"><userinput>make install install-dev install-lib &amp;&amp;
83chmod -v 755 /usr/lib/libattr.so &amp;&amp;
84mv -v /usr/lib/libattr.so.* /lib &amp;&amp;
85ln -sfv ../../lib/libattr.so.1 /usr/lib/libattr.so</userinput></screen>
86
87 </sect2>
88
89 <sect2 role="commands">
90 <title>Command Explanations</title>
91
92 <para><command>sed ... include/builddefs.in</command>: This command
93 modifies the documentation directory so that it is a versioned
94 directory.</para>
95
96 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
97 href="../../xincludes/static-libraries.xml"/>
98
99 </sect2>
100
101 <sect2 role="configuration">
102 <title>Configuring attr</title>
103 <sect3><title>Configuration Information</title>
104
105 <para>There is no configuration to <application>attr</application> itself,
106 but to get any use out of <application>attr</application>, a filesystem
107 needs to support extended attributes.</para>
108
109 <para>One way to achieve this is to add the user_xattr option to an ext3
110 filesystem in the <filename>/etc/fstab</filename> file as shown
111 below:</para>
112
113<screen># file system mount-point type options dump fsck
114# order
115
116/dev/sda1 / ext3 defaults,acl,user_xattr 0 2</screen>
117
118 </sect3>
119
120 </sect2>
121
122 <sect2 role="content">
123 <title>Contents</title>
124
125 <segmentedlist>
126 <segtitle>Installed Programs</segtitle>
127 <segtitle>Installed Library</segtitle>
128 <segtitle>Installed Directories</segtitle>
129
130 <seglistitem>
131 <seg>attr, getfattr, and setfattr</seg>
132 <seg>libattr.so</seg>
133 <seg>/usr/{include/attr,share/doc/attr-&attr-version;}</seg>
134 </seglistitem>
135 </segmentedlist>
136
137 <variablelist>
138 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
139 <?dbfo list-presentation="list"?>
140 <?dbhtml list-presentation="table"?>
141
142 <varlistentry id="attr-prog">
143 <term><command>attr</command></term>
144 <listitem>
145 <para>extends attributes on filesystem objects.</para>
146 <indexterm zone="attr attr">
147 <primary sortas="b-attr">attr</primary>
148 </indexterm>
149 </listitem>
150 </varlistentry>
151
152 <varlistentry id="getfattr">
153 <term><command>getfattr</command></term>
154 <listitem>
155 <para>gets the extended attributes of filesystem objects.</para>
156 <indexterm zone="attr getfattr">
157 <primary sortas="b-getfattr">getfattr</primary>
158 </indexterm>
159 </listitem>
160 </varlistentry>
161
162 <varlistentry id="setfattr">
163 <term><command>setfattr</command></term>
164 <listitem>
165 <para>sets the extended attributes of filesystem objects.</para>
166 <indexterm zone="attr setfattr">
167 <primary sortas="b-setfattr">setfattr</primary>
168 </indexterm>
169 </listitem>
170 </varlistentry>
171
172 <varlistentry id="libattr">
173 <term><filename class='libraryfile'>libattr.so</filename></term>
174 <listitem>
175 <para>contains the <application>attr</application> API functions.</para>
176 <indexterm zone="attr libattr">
177 <primary sortas="c-libattr">libattr.so</primary>
178 </indexterm>
179 </listitem>
180 </varlistentry>
181
182 </variablelist>
183
184 </sect2>
185
186</sect1>
Note: See TracBrowser for help on using the repository browser.