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