[686badf] | 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>Prepare Attr for compilation:</para>
|
---|
| 50 |
|
---|
| 51 | <screen><userinput remap="configure">./configure --prefix=/usr --libdir=/lib --libexecdir=/usr/lib</userinput></screen>
|
---|
| 52 |
|
---|
| 53 | <para>Compile the package:</para>
|
---|
| 54 |
|
---|
| 55 | <screen><userinput remap="make">make</userinput></screen>
|
---|
| 56 |
|
---|
| 57 | <para>The attr tests need to be run on a filesystem that supports extended
|
---|
| 58 | attributes. To test the results, issue:</para>
|
---|
| 59 |
|
---|
[c97d81d] | 60 | <!-- ext-tests fail for some reason -->
|
---|
| 61 | <screen><userinput remap="test">make tests root-tests</userinput></screen>
|
---|
[686badf] | 62 |
|
---|
| 63 | <para>Install the package:</para>
|
---|
| 64 |
|
---|
[099fa3db] | 65 | <screen><userinput remap="install">make install install-dev install-lib
|
---|
[c97d81d] | 66 | chmod -v 0755 /lib/libattr.so.1.1.0</userinput></screen>
|
---|
| 67 |
|
---|
| 68 | <para>Remove static library and libtool archive from
|
---|
| 69 | <filename class="directory">/lib</filename>, they exist in
|
---|
| 70 | <filename class="directory">/usr/lib</filename>:</para>
|
---|
| 71 |
|
---|
| 72 | <screen><userinput remap="install">rm -v /lib/libattr.{a,la,so}</userinput></screen>
|
---|
| 73 |
|
---|
| 74 | <para>Change default location for the libtool archive and recreate
|
---|
| 75 | symlink to shared library since it points to removed file:</para>
|
---|
| 76 |
|
---|
[099fa3db] | 77 | <screen><userinput remap="install">sed -i 's@/lib@/usr/lib@' /usr/lib/libattr.la
|
---|
[c97d81d] | 78 | ln -sfv ../../lib/libattr.so.1 /usr/lib/libattr.so</userinput></screen>
|
---|
[686badf] | 79 |
|
---|
| 80 | </sect2>
|
---|
| 81 |
|
---|
| 82 | <sect2 id="contents-attr" role="content">
|
---|
| 83 | <title>Contents of Attr</title>
|
---|
| 84 |
|
---|
| 85 | <segmentedlist>
|
---|
| 86 | <segtitle>Installed programs</segtitle>
|
---|
| 87 | <segtitle>Installed library</segtitle>
|
---|
| 88 | <segtitle>Installed directories</segtitle>
|
---|
| 89 |
|
---|
| 90 | <seglistitem>
|
---|
| 91 | <seg>attr, getfattr, and setattr</seg>
|
---|
| 92 | <seg>libattr.{so,a}</seg>
|
---|
[c97d81d] | 93 | <seg>/usr/include/attr and /usr/share/doc/attr-&attr-version;</seg>
|
---|
[686badf] | 94 | </seglistitem>
|
---|
| 95 | </segmentedlist>
|
---|
| 96 |
|
---|
| 97 | <variablelist>
|
---|
| 98 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 99 | <?dbfo list-presentation="list"?>
|
---|
| 100 | <?dbhtml list-presentation="table"?>
|
---|
| 101 |
|
---|
| 102 | <varlistentry id="attr">
|
---|
| 103 | <term><command>attr</command></term>
|
---|
| 104 | <listitem>
|
---|
| 105 | <para>Extends attributes on filesystem objects</para>
|
---|
| 106 | <indexterm zone="ch-system-attr attr">
|
---|
| 107 | <primary sortas="b-attr">attr</primary>
|
---|
| 108 | </indexterm>
|
---|
| 109 | </listitem>
|
---|
| 110 | </varlistentry>
|
---|
| 111 |
|
---|
| 112 | <varlistentry id="getfattr">
|
---|
| 113 | <term><command>getfattr</command></term>
|
---|
| 114 | <listitem>
|
---|
| 115 | <para>Gets the extended attributes of filesystem objects.</para>
|
---|
| 116 | <indexterm zone="ch-system-attr getfattr">
|
---|
| 117 | <primary sortas="b-getfattr">getfattr</primary>
|
---|
| 118 | </indexterm>
|
---|
| 119 | </listitem>
|
---|
| 120 | </varlistentry>
|
---|
| 121 |
|
---|
| 122 | <varlistentry id="setattr">
|
---|
| 123 | <term><command>setattr</command></term>
|
---|
| 124 | <listitem>
|
---|
| 125 | <para>Sets the extended attributes of filesystem objects</para>
|
---|
| 126 | <indexterm zone="ch-system-attr setattr">
|
---|
| 127 | <primary sortas="b-setattr">setattr</primary>
|
---|
| 128 | </indexterm>
|
---|
| 129 | </listitem>
|
---|
| 130 | </varlistentry>
|
---|
| 131 |
|
---|
| 132 | <varlistentry id="libattr">
|
---|
| 133 | <term><filename class="libraryfile">libattr.{so,a}</filename></term>
|
---|
| 134 | <listitem>
|
---|
| 135 | <para>Contains the <application>attr</application> API functions.</para>
|
---|
| 136 | <indexterm zone="ch-system-attr libattr">
|
---|
| 137 | <primary sortas="c-libattr">libattr.{so,a}</primary>
|
---|
| 138 | </indexterm>
|
---|
| 139 | </listitem>
|
---|
| 140 | </varlistentry>
|
---|
| 141 |
|
---|
| 142 | </variablelist>
|
---|
| 143 |
|
---|
| 144 | </sect2>
|
---|
| 145 |
|
---|
| 146 | </sect1>
|
---|