[eec8fcb] | 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>
|
---|
[fb386e0] | 34 | <seg>&attr-fin-sbu;</seg>
|
---|
| 35 | <seg>&attr-fin-du;</seg>
|
---|
[eec8fcb] | 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 |
|
---|
[6a156bab] | 46 | <screen revision="sysv"><userinput remap="configure">./configure --prefix=/usr \
|
---|
[f6528ac8] | 47 | --bindir=/bin \
|
---|
| 48 | --disable-static \
|
---|
| 49 | --sysconfdir=/etc \
|
---|
| 50 | --docdir=/usr/share/doc/attr-&attr-version;</userinput></screen>
|
---|
[eec8fcb] | 51 |
|
---|
[6a156bab] | 52 | <screen revision="systemd"><userinput remap="configure">./configure --prefix=/usr \
|
---|
[f6528ac8] | 53 | --disable-static \
|
---|
| 54 | --sysconfdir=/etc \
|
---|
| 55 | --docdir=/usr/share/doc/attr-&attr-version;</userinput></screen>
|
---|
[1118b17] | 56 |
|
---|
[eec8fcb] | 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
|
---|
[f6528ac8] | 62 | attributes such as the ext2, ext3, or ext4 filesystems.
|
---|
| 63 | To test the results, issue:</para>
|
---|
[eec8fcb] | 64 |
|
---|
[f6528ac8] | 65 | <screen><userinput remap="test">make check</userinput></screen>
|
---|
[eec8fcb] | 66 |
|
---|
| 67 | <para>Install the package:</para>
|
---|
| 68 |
|
---|
[f6528ac8] | 69 | <screen><userinput remap="install">make install</userinput></screen>
|
---|
[eec8fcb] | 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 | <sect2 id="contents-attr" role="content">
|
---|
| 82 | <title>Contents of Attr</title>
|
---|
| 83 |
|
---|
| 84 | <segmentedlist>
|
---|
| 85 | <segtitle>Installed programs</segtitle>
|
---|
| 86 | <segtitle>Installed library</segtitle>
|
---|
| 87 | <segtitle>Installed directories</segtitle>
|
---|
| 88 |
|
---|
| 89 | <seglistitem>
|
---|
[b2cb71ac] | 90 | <seg>attr, getfattr, and setfattr</seg>
|
---|
[040ecb6] | 91 | <seg>libattr.so</seg>
|
---|
[145a985] | 92 | <seg>/usr/include/attr and /usr/share/doc/attr-&attr-version;</seg>
|
---|
[eec8fcb] | 93 | </seglistitem>
|
---|
| 94 | </segmentedlist>
|
---|
| 95 |
|
---|
| 96 | <variablelist>
|
---|
| 97 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 98 | <?dbfo list-presentation="list"?>
|
---|
| 99 | <?dbhtml list-presentation="table"?>
|
---|
| 100 |
|
---|
| 101 | <varlistentry id="attr">
|
---|
| 102 | <term><command>attr</command></term>
|
---|
| 103 | <listitem>
|
---|
| 104 | <para>Extends attributes on filesystem objects</para>
|
---|
| 105 | <indexterm zone="ch-system-attr attr">
|
---|
| 106 | <primary sortas="b-attr">attr</primary>
|
---|
| 107 | </indexterm>
|
---|
| 108 | </listitem>
|
---|
| 109 | </varlistentry>
|
---|
| 110 |
|
---|
| 111 | <varlistentry id="getfattr">
|
---|
| 112 | <term><command>getfattr</command></term>
|
---|
| 113 | <listitem>
|
---|
[afba93b] | 114 | <para>Gets the extended attributes of filesystem objects</para>
|
---|
[eec8fcb] | 115 | <indexterm zone="ch-system-attr getfattr">
|
---|
| 116 | <primary sortas="b-getfattr">getfattr</primary>
|
---|
| 117 | </indexterm>
|
---|
| 118 | </listitem>
|
---|
| 119 | </varlistentry>
|
---|
| 120 |
|
---|
[b2cb71ac] | 121 | <varlistentry id="setfattr">
|
---|
| 122 | <term><command>setfattr</command></term>
|
---|
[eec8fcb] | 123 | <listitem>
|
---|
| 124 | <para>Sets the extended attributes of filesystem objects</para>
|
---|
[b2cb71ac] | 125 | <indexterm zone="ch-system-attr setfattr">
|
---|
| 126 | <primary sortas="b-setfattr">setfattr</primary>
|
---|
[eec8fcb] | 127 | </indexterm>
|
---|
| 128 | </listitem>
|
---|
| 129 | </varlistentry>
|
---|
| 130 |
|
---|
| 131 | <varlistentry id="libattr">
|
---|
| 132 | <term><filename class="libraryfile">libattr</filename></term>
|
---|
| 133 | <listitem>
|
---|
[03e6064] | 134 | <para>Contains the library functions for manipulating extended attributes</para>
|
---|
[eec8fcb] | 135 | <indexterm zone="ch-system-attr libattr">
|
---|
| 136 | <primary sortas="c-libattr">libattr</primary>
|
---|
| 137 | </indexterm>
|
---|
| 138 | </listitem>
|
---|
| 139 | </varlistentry>
|
---|
| 140 |
|
---|
| 141 | </variablelist>
|
---|
| 142 |
|
---|
| 143 | </sect2>
|
---|
| 144 |
|
---|
| 145 | </sect1>
|
---|