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-fin-sbu;</seg>
|
---|
35 | <seg>&attr-fin-du;</seg>
|
---|
36 | </seglistitem>
|
---|
37 | </segmentedlist>
|
---|
38 |
|
---|
39 | </sect2>
|
---|
40 |
|
---|
41 | <sect2 role="installation">
|
---|
42 | <title>Installation of Attr</title>
|
---|
43 |
|
---|
44 | <para>Prepare Attr for compilation:</para>
|
---|
45 |
|
---|
46 | <screen revision="sysv"><userinput remap="configure">./configure --prefix=/usr \
|
---|
47 | --bindir=/bin \
|
---|
48 | --disable-static \
|
---|
49 | --sysconfdir=/etc \
|
---|
50 | --docdir=/usr/share/doc/attr-&attr-version;</userinput></screen>
|
---|
51 |
|
---|
52 | <screen revision="systemd"><userinput remap="configure">./configure --prefix=/usr \
|
---|
53 | --disable-static \
|
---|
54 | --sysconfdir=/etc \
|
---|
55 | --docdir=/usr/share/doc/attr-&attr-version;</userinput></screen>
|
---|
56 |
|
---|
57 | <para>Compile the package:</para>
|
---|
58 |
|
---|
59 | <screen><userinput remap="make">make</userinput></screen>
|
---|
60 |
|
---|
61 | <para>The tests need to be run on a filesystem that supports extended
|
---|
62 | attributes such as the ext2, ext3, or ext4 filesystems.
|
---|
63 | To test the results, issue:</para>
|
---|
64 |
|
---|
65 | <screen><userinput remap="test">make check</userinput></screen>
|
---|
66 |
|
---|
67 | <para>Install the package:</para>
|
---|
68 |
|
---|
69 | <screen><userinput remap="install">make install</userinput></screen>
|
---|
70 |
|
---|
71 | <para>The shared library needs to be moved to
|
---|
72 | <filename class="directory">/lib</filename>, and as a result the
|
---|
73 | <filename class="extension">.so</filename> file in
|
---|
74 | <filename class="directory">/usr/lib</filename> will need to be recreated:</para>
|
---|
75 |
|
---|
76 | <screen><userinput remap="install">mv -v /usr/lib/libattr.so.* /lib
|
---|
77 | ln -sfv ../../lib/$(readlink /usr/lib/libattr.so) /usr/lib/libattr.so</userinput></screen>
|
---|
78 |
|
---|
79 | </sect2>
|
---|
80 |
|
---|
81 | <!-- - - - - - - - - - -->
|
---|
82 | <!-- Multilib - 32bit -->
|
---|
83 | <!-- - - - - - - - - - -->
|
---|
84 |
|
---|
85 | <sect2 arch="ml_32,ml_all" role="installation">
|
---|
86 | <title>Installation of Attr - 32bit</title>
|
---|
87 |
|
---|
88 | <para>Clean previous build:</para>
|
---|
89 |
|
---|
90 | <screen><userinput remap="pre">make distclean</userinput></screen>
|
---|
91 |
|
---|
92 | <para>Prepare Attr for compilation:</para>
|
---|
93 |
|
---|
94 | <screen><userinput remap="configure">CC="gcc -m32" ./configure \
|
---|
95 | --prefix=/usr \
|
---|
96 | --disable-static \
|
---|
97 | --libdir=&usr-lib-m32; \
|
---|
98 | --host=i686-pc-linux-gnu</userinput></screen>
|
---|
99 |
|
---|
100 | <para>Compile the package:</para>
|
---|
101 |
|
---|
102 | <screen><userinput remap="make">make</userinput></screen>
|
---|
103 |
|
---|
104 | <para>Install the package:</para>
|
---|
105 |
|
---|
106 | <screen><userinput remap="install">make DESTDIR=$PWD/DESTDIR install
|
---|
107 | cp -Rv DESTDIR&usr-lib-m32;/* &usr-lib-m32;
|
---|
108 | rm -rf DESTDIR</userinput></screen>
|
---|
109 |
|
---|
110 | </sect2><!-- m32 -->
|
---|
111 |
|
---|
112 | <!-- - - - - - - - - - -->
|
---|
113 | <!-- Multilib - x32bit -->
|
---|
114 | <!-- - - - - - - - - - -->
|
---|
115 |
|
---|
116 | <sect2 arch="ml_x32,ml_all" role="installation">
|
---|
117 | <title>Installation of Attr - x32bit</title>
|
---|
118 |
|
---|
119 | <para>Clean previous build:</para>
|
---|
120 |
|
---|
121 | <screen><userinput remap="pre">make distclean</userinput></screen>
|
---|
122 |
|
---|
123 | <para>Prepare Attr for compilation:</para>
|
---|
124 |
|
---|
125 | <screen><userinput remap="configure">CC="gcc -mx32" ./configure \
|
---|
126 | --prefix=/usr \
|
---|
127 | --disable-static \
|
---|
128 | --libdir=&usr-lib-mx32; \
|
---|
129 | --host=x86_64-pc-linux-gnux32</userinput></screen>
|
---|
130 |
|
---|
131 | <para>Compile the package:</para>
|
---|
132 |
|
---|
133 | <screen><userinput remap="make">make</userinput></screen>
|
---|
134 |
|
---|
135 | <para>Install the package:</para>
|
---|
136 |
|
---|
137 | <screen><userinput remap="install">make DESTDIR=$PWD/DESTDIR install
|
---|
138 | cp -Rv DESTDIR&usr-lib-mx32;/* &usr-lib-mx32;
|
---|
139 | rm -rf DESTDIR</userinput></screen>
|
---|
140 |
|
---|
141 | </sect2><!-- mx32 -->
|
---|
142 |
|
---|
143 | <sect2 id="contents-attr" role="content">
|
---|
144 | <title>Contents of Attr</title>
|
---|
145 |
|
---|
146 | <segmentedlist>
|
---|
147 | <segtitle>Installed programs</segtitle>
|
---|
148 | <segtitle>Installed library</segtitle>
|
---|
149 | <segtitle>Installed directories</segtitle>
|
---|
150 |
|
---|
151 | <seglistitem>
|
---|
152 | <seg>attr, getfattr, and setfattr</seg>
|
---|
153 | <seg>libattr.so</seg>
|
---|
154 | <seg>/usr/include/attr and /usr/share/doc/attr-&attr-version;</seg>
|
---|
155 | </seglistitem>
|
---|
156 | </segmentedlist>
|
---|
157 |
|
---|
158 | <variablelist>
|
---|
159 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
160 | <?dbfo list-presentation="list"?>
|
---|
161 | <?dbhtml list-presentation="table"?>
|
---|
162 |
|
---|
163 | <varlistentry id="attr">
|
---|
164 | <term><command>attr</command></term>
|
---|
165 | <listitem>
|
---|
166 | <para>Extends attributes on filesystem objects</para>
|
---|
167 | <indexterm zone="ch-system-attr attr">
|
---|
168 | <primary sortas="b-attr">attr</primary>
|
---|
169 | </indexterm>
|
---|
170 | </listitem>
|
---|
171 | </varlistentry>
|
---|
172 |
|
---|
173 | <varlistentry id="getfattr">
|
---|
174 | <term><command>getfattr</command></term>
|
---|
175 | <listitem>
|
---|
176 | <para>Gets the extended attributes of filesystem objects</para>
|
---|
177 | <indexterm zone="ch-system-attr getfattr">
|
---|
178 | <primary sortas="b-getfattr">getfattr</primary>
|
---|
179 | </indexterm>
|
---|
180 | </listitem>
|
---|
181 | </varlistentry>
|
---|
182 |
|
---|
183 | <varlistentry id="setfattr">
|
---|
184 | <term><command>setfattr</command></term>
|
---|
185 | <listitem>
|
---|
186 | <para>Sets the extended attributes of filesystem objects</para>
|
---|
187 | <indexterm zone="ch-system-attr setfattr">
|
---|
188 | <primary sortas="b-setfattr">setfattr</primary>
|
---|
189 | </indexterm>
|
---|
190 | </listitem>
|
---|
191 | </varlistentry>
|
---|
192 |
|
---|
193 | <varlistentry id="libattr">
|
---|
194 | <term><filename class="libraryfile">libattr</filename></term>
|
---|
195 | <listitem>
|
---|
196 | <para>Contains the library functions for manipulating extended attributes</para>
|
---|
197 | <indexterm zone="ch-system-attr libattr">
|
---|
198 | <primary sortas="c-libattr">libattr</primary>
|
---|
199 | </indexterm>
|
---|
200 | </listitem>
|
---|
201 | </varlistentry>
|
---|
202 |
|
---|
203 | </variablelist>
|
---|
204 |
|
---|
205 | </sect2>
|
---|
206 |
|
---|
207 | </sect1>
|
---|