[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 " ">
|
---|
| 9 | <!ENTITY attr-md5sum "db557c17fdfa4f785333ecda08654010">
|
---|
| 10 | <!ENTITY attr-size "332 KB">
|
---|
| 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 |
|
---|
[f534f6f] | 35 | &lfs73_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 \
|
---|
[b2052597] | 74 | ./configure --prefix=/usr --libdir=/lib --libexecdir=/usr/lib --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 &&
|
---|
[a5a3255] | 87 | chmod -v 0755 /lib/libattr.so.1.1.0 &&
|
---|
| 88 | rm -v /lib/libattr.{a,la,so} &&
|
---|
| 89 | sed -i 's@/lib@/usr/lib@' /usr/lib/libattr.la &&
|
---|
[8e751616] | 90 | ln -sfv ../../lib/libattr.so.1 /usr/lib/libattr.so</userinput></screen>
|
---|
[9247790] | 91 |
|
---|
| 92 | </sect2>
|
---|
| 93 |
|
---|
| 94 | <sect2 role="commands">
|
---|
| 95 | <title>Command Explanations</title>
|
---|
| 96 |
|
---|
| 97 | <para><command>sed ... include/builddefs.in</command>: This command
|
---|
| 98 | modifies the documentation directory so that it is a versioned
|
---|
[1784132] | 99 | directory.</para>
|
---|
[2ac4928] | 100 |
|
---|
[b2052597] | 101 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 102 | href="../../xincludes/static-libraries.xml"/>
|
---|
| 103 |
|
---|
[a5a3255] | 104 | <para><command>sed -i ... /usr/lib/libattr.la</command>: This command
|
---|
[b2052597] | 105 | corrects the location of the installed library as referenced
|
---|
[a5a3255] | 106 | in the libtool archive.</para>
|
---|
| 107 |
|
---|
[2ac4928] | 108 | </sect2>
|
---|
| 109 |
|
---|
| 110 | <sect2 role="configuration">
|
---|
| 111 | <title>Configuring attr</title>
|
---|
| 112 | <sect3><title>Configuration Information</title>
|
---|
| 113 |
|
---|
| 114 | <para>There is no configuration to <application>attr</application> itself,
|
---|
| 115 | but to get any use out of <application>attr</application>, a filesystem
|
---|
| 116 | needs to support extended attributes.</para>
|
---|
| 117 |
|
---|
| 118 | <para>One way to achieve this is to add the user_xattr option to an ext3
|
---|
[2be957e] | 119 | filesystem in the <filename>/etc/fstab</filename> file as shown
|
---|
| 120 | below:</para>
|
---|
[2ac4928] | 121 |
|
---|
| 122 | <screen># file system mount-point type options dump fsck
|
---|
| 123 | # order
|
---|
| 124 |
|
---|
| 125 | /dev/sda1 / ext3 defaults,acl,user_xattr 0 2</screen>
|
---|
| 126 |
|
---|
| 127 | </sect3>
|
---|
| 128 |
|
---|
| 129 | </sect2>
|
---|
| 130 |
|
---|
| 131 | <sect2 role="content">
|
---|
| 132 | <title>Contents</title>
|
---|
| 133 |
|
---|
| 134 | <segmentedlist>
|
---|
| 135 | <segtitle>Installed Programs</segtitle>
|
---|
| 136 | <segtitle>Installed Library</segtitle>
|
---|
| 137 | <segtitle>Installed Directories</segtitle>
|
---|
| 138 |
|
---|
| 139 | <seglistitem>
|
---|
| 140 | <seg>attr, getfattr, and setfattr</seg>
|
---|
[b2052597] | 141 | <seg>libattr.so</seg>
|
---|
[2ac4928] | 142 | <seg>/usr/{include/attr,share/doc/attr-&attr-version;}</seg>
|
---|
| 143 | </seglistitem>
|
---|
| 144 | </segmentedlist>
|
---|
| 145 |
|
---|
| 146 | <variablelist>
|
---|
| 147 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 148 | <?dbfo list-presentation="list"?>
|
---|
| 149 | <?dbhtml list-presentation="table"?>
|
---|
| 150 |
|
---|
| 151 | <varlistentry id="attr-prog">
|
---|
| 152 | <term><command>attr</command></term>
|
---|
| 153 | <listitem>
|
---|
| 154 | <para>extends attributes on filesystem objects.</para>
|
---|
| 155 | <indexterm zone="attr attr">
|
---|
| 156 | <primary sortas="b-attr">attr</primary>
|
---|
| 157 | </indexterm>
|
---|
| 158 | </listitem>
|
---|
| 159 | </varlistentry>
|
---|
| 160 |
|
---|
| 161 | <varlistentry id="getfattr">
|
---|
| 162 | <term><command>getfattr</command></term>
|
---|
| 163 | <listitem>
|
---|
| 164 | <para>gets the extended attributes of filesystem objects.</para>
|
---|
| 165 | <indexterm zone="attr getfattr">
|
---|
| 166 | <primary sortas="b-getfattr">getfattr</primary>
|
---|
| 167 | </indexterm>
|
---|
| 168 | </listitem>
|
---|
| 169 | </varlistentry>
|
---|
| 170 |
|
---|
| 171 | <varlistentry id="setfattr">
|
---|
| 172 | <term><command>setfattr</command></term>
|
---|
| 173 | <listitem>
|
---|
| 174 | <para>sets the extended attributes of filesystem objects.</para>
|
---|
| 175 | <indexterm zone="attr setfattr">
|
---|
| 176 | <primary sortas="b-setfattr">setfattr</primary>
|
---|
| 177 | </indexterm>
|
---|
| 178 | </listitem>
|
---|
| 179 | </varlistentry>
|
---|
| 180 |
|
---|
| 181 | <varlistentry id="libattr">
|
---|
[b2052597] | 182 | <term><filename class='libraryfile'>libattr.so</filename></term>
|
---|
[2ac4928] | 183 | <listitem>
|
---|
| 184 | <para>contains the <application>attr</application> API functions.</para>
|
---|
| 185 | <indexterm zone="attr libattr">
|
---|
[b2052597] | 186 | <primary sortas="c-libattr">libattr.so</primary>
|
---|
[2ac4928] | 187 | </indexterm>
|
---|
| 188 | </listitem>
|
---|
| 189 | </varlistentry>
|
---|
| 190 |
|
---|
| 191 | </variablelist>
|
---|
| 192 |
|
---|
| 193 | </sect2>
|
---|
| 194 |
|
---|
| 195 | </sect1>
|
---|