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>The attr package contains utilities to administer the extended
|
---|
27 | attributes on filesystem objects.</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 of Attr</title>
|
---|
43 |
|
---|
44 | <para>Modify the documentation directory so that it is a versioned
|
---|
45 | directory:</para>
|
---|
46 |
|
---|
47 | <screen><userinput remap="pre">sed -i -e 's|/@pkg_name@|&-@pkg_version@|' include/builddefs.in</userinput></screen>
|
---|
48 | <!--
|
---|
49 | <para>Prevent installation of manual pages that were already installed by
|
---|
50 | Man-Pages package:</para>
|
---|
51 |
|
---|
52 | <screen><userinput remap="pre">sed -i -e "/SUBDIRS/s|man2||" man/Makefile</userinput></screen>
|
---|
53 | -->
|
---|
54 | <para>Prepare Attr for compilation:</para>
|
---|
55 |
|
---|
56 | <screen><userinput remap="configure">./configure --prefix=/usr --bindir=/bin</userinput></screen>
|
---|
57 |
|
---|
58 | <para>Compile the package:</para>
|
---|
59 |
|
---|
60 | <screen><userinput remap="make">make</userinput></screen>
|
---|
61 |
|
---|
62 | <para>The tests need to be run on a filesystem that supports extended
|
---|
63 | attributes such as the ext2, ext3, or ext4 filesystems. The tests are also
|
---|
64 | known to fail if running multiple simultaneous tests (-j option greater than
|
---|
65 | 1). To test the results, issue:</para>
|
---|
66 |
|
---|
67 | <screen><userinput remap="test">make -j1 tests root-tests</userinput></screen>
|
---|
68 |
|
---|
69 | <para>Install the package:</para>
|
---|
70 |
|
---|
71 | <screen><userinput remap="install">make install install-dev install-lib
|
---|
72 | chmod -v 755 /usr/lib/libattr.so</userinput></screen>
|
---|
73 |
|
---|
74 | <para>The shared library needs to be moved to
|
---|
75 | <filename class="directory">/lib</filename>, and as a result the
|
---|
76 | <filename class="extension">.so</filename> file in
|
---|
77 | <filename class="directory">/usr/lib</filename> will need to be recreated:</para>
|
---|
78 |
|
---|
79 | <screen><userinput remap="install">mv -v /usr/lib/libattr.so.* /lib
|
---|
80 | ln -sfv ../../lib/$(readlink /usr/lib/libattr.so) /usr/lib/libattr.so</userinput></screen>
|
---|
81 |
|
---|
82 | </sect2>
|
---|
83 |
|
---|
84 | <sect2 id="contents-attr" role="content">
|
---|
85 | <title>Contents of Attr</title>
|
---|
86 |
|
---|
87 | <segmentedlist>
|
---|
88 | <segtitle>Installed programs</segtitle>
|
---|
89 | <segtitle>Installed library</segtitle>
|
---|
90 | <segtitle>Installed directories</segtitle>
|
---|
91 |
|
---|
92 | <seglistitem>
|
---|
93 | <seg>attr, getfattr, and setattr</seg>
|
---|
94 | <seg>libattr.{a,so}</seg>
|
---|
95 | <seg>/usr/include/attr, /usr/share/doc/attr-&attr-version;</seg>
|
---|
96 | </seglistitem>
|
---|
97 | </segmentedlist>
|
---|
98 |
|
---|
99 | <variablelist>
|
---|
100 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
101 | <?dbfo list-presentation="list"?>
|
---|
102 | <?dbhtml list-presentation="table"?>
|
---|
103 |
|
---|
104 | <varlistentry id="attr">
|
---|
105 | <term><command>attr</command></term>
|
---|
106 | <listitem>
|
---|
107 | <para>Extends attributes on filesystem objects</para>
|
---|
108 | <indexterm zone="ch-system-attr attr">
|
---|
109 | <primary sortas="b-attr">attr</primary>
|
---|
110 | </indexterm>
|
---|
111 | </listitem>
|
---|
112 | </varlistentry>
|
---|
113 |
|
---|
114 | <varlistentry id="getfattr">
|
---|
115 | <term><command>getfattr</command></term>
|
---|
116 | <listitem>
|
---|
117 | <para>Gets the extended attributes of filesystem objects.</para>
|
---|
118 | <indexterm zone="ch-system-attr getfattr">
|
---|
119 | <primary sortas="b-getfattr">getfattr</primary>
|
---|
120 | </indexterm>
|
---|
121 | </listitem>
|
---|
122 | </varlistentry>
|
---|
123 |
|
---|
124 | <varlistentry id="setattr">
|
---|
125 | <term><command>setattr</command></term>
|
---|
126 | <listitem>
|
---|
127 | <para>Sets the extended attributes of filesystem objects</para>
|
---|
128 | <indexterm zone="ch-system-attr setattr">
|
---|
129 | <primary sortas="b-setattr">setattr</primary>
|
---|
130 | </indexterm>
|
---|
131 | </listitem>
|
---|
132 | </varlistentry>
|
---|
133 |
|
---|
134 | <varlistentry id="libattr">
|
---|
135 | <term><filename class="libraryfile">libattr</filename></term>
|
---|
136 | <listitem>
|
---|
137 | <para>Contains the <application>Attr</application> API functions.</para>
|
---|
138 | <indexterm zone="ch-system-attr libattr">
|
---|
139 | <primary sortas="c-libattr">libattr</primary>
|
---|
140 | </indexterm>
|
---|
141 | </listitem>
|
---|
142 | </varlistentry>
|
---|
143 |
|
---|
144 | </variablelist>
|
---|
145 |
|
---|
146 | </sect2>
|
---|
147 |
|
---|
148 | </sect1>
|
---|