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://mirror.dknss.com/nongnu/attr/attr-&attr-version;.src.tar.gz">
|
---|
8 | <!ENTITY attr-download-http "http://mirrors.zerg.biz/nongnu/attr/attr-&attr-version;.src.tar.gz"> -->
|
---|
9 | <!ENTITY attr-download-http " ">
|
---|
10 | <!ENTITY attr-download-ftp "ftp://oss.sgi.com/projects/xfs/cmd_tars-oct_09/attr-&attr-version;.src.tar.gz">
|
---|
11 | <!ENTITY attr-md5sum "adeefe65c5ad1febe46da185c5bfd5d4">
|
---|
12 | <!ENTITY attr-size "309 KB">
|
---|
13 | <!ENTITY attr-buildsize "3 MB">
|
---|
14 | <!ENTITY attr-time "0.1 SBU">
|
---|
15 | ]>
|
---|
16 |
|
---|
17 | <sect1 id="attr" xreflabel="attr-&attr-version;">
|
---|
18 | <?dbhtml filename="attr.html"?>
|
---|
19 |
|
---|
20 | <sect1info>
|
---|
21 | <othername>$LastChangedBy$</othername>
|
---|
22 | <date>$Date$</date>
|
---|
23 | </sect1info>
|
---|
24 |
|
---|
25 | <title>attr-&attr-version;</title>
|
---|
26 |
|
---|
27 | <indexterm zone="attr">
|
---|
28 | <primary sortas="a-attr">attr</primary>
|
---|
29 | </indexterm>
|
---|
30 |
|
---|
31 | <sect2 role="package">
|
---|
32 | <title>Introduction to attr</title>
|
---|
33 |
|
---|
34 | <para>The <application>attr</application> package contains utilities to
|
---|
35 | administer the extended attributes on filesystem objects.</para>
|
---|
36 |
|
---|
37 | &lfs70_checked;
|
---|
38 |
|
---|
39 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
40 | <itemizedlist spacing="compact">
|
---|
41 | <listitem>
|
---|
42 | <para>Download (HTTP): <ulink url="&attr-download-http;"/></para>
|
---|
43 | </listitem>
|
---|
44 | <listitem>
|
---|
45 | <para>Download (FTP): <ulink url="&attr-download-ftp;"/></para>
|
---|
46 | </listitem>
|
---|
47 | <listitem>
|
---|
48 | <para>Download MD5 sum: &attr-md5sum;</para>
|
---|
49 | </listitem>
|
---|
50 | <listitem>
|
---|
51 | <para>Download size: &attr-size;</para>
|
---|
52 | </listitem>
|
---|
53 | <listitem>
|
---|
54 | <para>Estimated disk space required: &attr-buildsize;</para>
|
---|
55 | </listitem>
|
---|
56 | <listitem>
|
---|
57 | <para>Estimated build time: &attr-time;</para>
|
---|
58 | </listitem>
|
---|
59 | </itemizedlist>
|
---|
60 |
|
---|
61 | <para condition="html" role="usernotes">User Notes:
|
---|
62 | <ulink url="&blfs-wiki;/attr"/></para>
|
---|
63 |
|
---|
64 | </sect2>
|
---|
65 |
|
---|
66 | <sect2 role="installation">
|
---|
67 | <title>Installation of attr</title>
|
---|
68 |
|
---|
69 | <para>Install <application>attr</application> by running the following
|
---|
70 | commands:</para>
|
---|
71 |
|
---|
72 | <screen><userinput>cat > test/sort-getfattr-output << "EOF" &&
|
---|
73 | #! /usr/bin/perl -w
|
---|
74 | undef $/;
|
---|
75 | print join("\n\n", sort split(/\n\n/, <>)), "\n\n";
|
---|
76 | EOF
|
---|
77 |
|
---|
78 | chmod 755 test/sort-getfattr-output &&
|
---|
79 | sed -i -e 's|/@pkg_name@|&-@pkg_version@|' \
|
---|
80 | -e 's|@prefix|$(DESTDIR)&|' \
|
---|
81 | -e 's|@libexec|$(DESTDIR)&|' \
|
---|
82 | include/builddefs.in &&
|
---|
83 |
|
---|
84 | ./configure --prefix=/usr --libexecdir=/usr/lib &&
|
---|
85 | make</userinput></screen>
|
---|
86 |
|
---|
87 | <para>There are three sets of tests that come with this package. Issue the
|
---|
88 | following to execute all three:
|
---|
89 | <command>make tests root-tests ext-tests</command>. For meaningful results,
|
---|
90 | the tests need to be carried out on a file system that supports extended
|
---|
91 | attributes.</para>
|
---|
92 |
|
---|
93 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
94 |
|
---|
95 | <screen role="root"><userinput>make install install-dev install-lib &&
|
---|
96 | chmod -v 755 /usr/lib/libattr.{so.1.1.0,la} &&
|
---|
97 | chown -v root.root /usr/lib/libattr.{a,la,so.1.1.0} &&
|
---|
98 | chown -v root.root /usr/share/man/man*/*attr*</userinput></screen>
|
---|
99 |
|
---|
100 | </sect2>
|
---|
101 |
|
---|
102 | <sect2 role="commands">
|
---|
103 | <title>Command Explanations</title>
|
---|
104 |
|
---|
105 | <para><command>cat > test/sort-getfattr-output ... EOF</command>: This
|
---|
106 | command creates a missing test script.</para>
|
---|
107 |
|
---|
108 | <para><command>sed ... include/builddefs.in</command>: This command
|
---|
109 | modifies the documentation directory so that it is a versioned
|
---|
110 | directory and also adds support for a DESTDIR installation.</para>
|
---|
111 |
|
---|
112 | <para><command>chmod ...</command>: This command modifies the permissions
|
---|
113 | of installed library files to standards.</para>
|
---|
114 |
|
---|
115 | </sect2>
|
---|
116 |
|
---|
117 | <sect2 role="configuration">
|
---|
118 | <title>Configuring attr</title>
|
---|
119 | <sect3><title>Configuration Information</title>
|
---|
120 |
|
---|
121 | <para>There is no configuration to <application>attr</application> itself,
|
---|
122 | but to get any use out of <application>attr</application>, a filesystem
|
---|
123 | needs to support extended attributes.</para>
|
---|
124 |
|
---|
125 | <para>One way to achieve this is to add the user_xattr option to an ext3
|
---|
126 | filesystem in the <filename>/etc/fstab</filename> file as shown
|
---|
127 | below:</para>
|
---|
128 |
|
---|
129 | <screen># file system mount-point type options dump fsck
|
---|
130 | # order
|
---|
131 |
|
---|
132 | /dev/sda1 / ext3 defaults,acl,user_xattr 0 2</screen>
|
---|
133 |
|
---|
134 | </sect3>
|
---|
135 |
|
---|
136 | </sect2>
|
---|
137 |
|
---|
138 | <sect2 role="content">
|
---|
139 | <title>Contents</title>
|
---|
140 |
|
---|
141 | <segmentedlist>
|
---|
142 | <segtitle>Installed Programs</segtitle>
|
---|
143 | <segtitle>Installed Library</segtitle>
|
---|
144 | <segtitle>Installed Directories</segtitle>
|
---|
145 |
|
---|
146 | <seglistitem>
|
---|
147 | <seg>attr, getfattr, and setfattr</seg>
|
---|
148 | <seg>libattr.{so,a}</seg>
|
---|
149 | <seg>/usr/{include/attr,share/doc/attr-&attr-version;}</seg>
|
---|
150 | </seglistitem>
|
---|
151 | </segmentedlist>
|
---|
152 |
|
---|
153 | <variablelist>
|
---|
154 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
155 | <?dbfo list-presentation="list"?>
|
---|
156 | <?dbhtml list-presentation="table"?>
|
---|
157 |
|
---|
158 | <varlistentry id="attr-prog">
|
---|
159 | <term><command>attr</command></term>
|
---|
160 | <listitem>
|
---|
161 | <para>extends attributes on filesystem objects.</para>
|
---|
162 | <indexterm zone="attr attr">
|
---|
163 | <primary sortas="b-attr">attr</primary>
|
---|
164 | </indexterm>
|
---|
165 | </listitem>
|
---|
166 | </varlistentry>
|
---|
167 |
|
---|
168 | <varlistentry id="getfattr">
|
---|
169 | <term><command>getfattr</command></term>
|
---|
170 | <listitem>
|
---|
171 | <para>gets the extended attributes of filesystem objects.</para>
|
---|
172 | <indexterm zone="attr getfattr">
|
---|
173 | <primary sortas="b-getfattr">getfattr</primary>
|
---|
174 | </indexterm>
|
---|
175 | </listitem>
|
---|
176 | </varlistentry>
|
---|
177 |
|
---|
178 | <varlistentry id="setfattr">
|
---|
179 | <term><command>setfattr</command></term>
|
---|
180 | <listitem>
|
---|
181 | <para>sets the extended attributes of filesystem objects.</para>
|
---|
182 | <indexterm zone="attr setfattr">
|
---|
183 | <primary sortas="b-setfattr">setfattr</primary>
|
---|
184 | </indexterm>
|
---|
185 | </listitem>
|
---|
186 | </varlistentry>
|
---|
187 |
|
---|
188 | <varlistentry id="libattr">
|
---|
189 | <term><filename class='libraryfile'>libattr.{so,a}</filename></term>
|
---|
190 | <listitem>
|
---|
191 | <para>contains the <application>attr</application> API functions.</para>
|
---|
192 | <indexterm zone="attr libattr">
|
---|
193 | <primary sortas="c-libattr">libattr.{so,a}</primary>
|
---|
194 | </indexterm>
|
---|
195 | </listitem>
|
---|
196 | </varlistentry>
|
---|
197 |
|
---|
198 | </variablelist>
|
---|
199 |
|
---|
200 | </sect2>
|
---|
201 |
|
---|
202 | </sect1>
|
---|