attr.xml 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  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. <sect1 id="ch-system-attr" role="wrap">
  8. <?dbhtml filename="attr.html"?>
  9. <sect1info condition="script">
  10. <productname>attr</productname>
  11. <productnumber>&attr-version;</productnumber>
  12. <address>&attr-url;</address>
  13. </sect1info>
  14. <title>Attr-&attr-version;</title>
  15. <indexterm zone="ch-system-attr">
  16. <primary sortas="a-Attr">Attr</primary>
  17. </indexterm>
  18. <sect2 role="package">
  19. <title/>
  20. <para>The attr package contains utilities to administer the extended
  21. attributes on filesystem objects.</para>
  22. <segmentedlist>
  23. <segtitle>&buildtime;</segtitle>
  24. <segtitle>&diskspace;</segtitle>
  25. <seglistitem>
  26. <seg>&attr-ch6-sbu;</seg>
  27. <seg>&attr-ch6-du;</seg>
  28. </seglistitem>
  29. </segmentedlist>
  30. </sect2>
  31. <sect2 role="installation">
  32. <title>Installation of Attr</title>
  33. <para>Modify the documentation directory so that it is a versioned
  34. directory:</para>
  35. <screen><userinput remap="pre">sed -i -e 's|/@pkg_name@|&amp;-@pkg_version@|' include/builddefs.in</userinput></screen>
  36. <para>Prepare Attr for compilation:</para>
  37. <screen><userinput remap="configure">./configure --prefix=/usr \
  38. --bindir=/bin \
  39. --disable-static</userinput></screen>
  40. <para>Compile the package:</para>
  41. <screen><userinput remap="make">make</userinput></screen>
  42. <para>The tests need to be run on a filesystem that supports extended
  43. attributes such as the ext2, ext3, or ext4 filesystems. The tests are also
  44. known to fail if running multiple simultaneous tests (-j option greater than
  45. 1). To test the results, issue:</para>
  46. <screen><userinput remap="test">make -j1 tests root-tests</userinput></screen>
  47. <para>Install the package:</para>
  48. <screen><userinput remap="install">make install install-dev install-lib
  49. chmod -v 755 /usr/lib/libattr.so</userinput></screen>
  50. <para>The shared library needs to be moved to
  51. <filename class="directory">/lib</filename>, and as a result the
  52. <filename class="extension">.so</filename> file in
  53. <filename class="directory">/usr/lib</filename> will need to be recreated:</para>
  54. <screen><userinput remap="install">mv -v /usr/lib/libattr.so.* /lib
  55. ln -sfv ../../lib/$(readlink /usr/lib/libattr.so) /usr/lib/libattr.so</userinput></screen>
  56. </sect2>
  57. <sect2 id="contents-attr" role="content">
  58. <title>Contents of Attr</title>
  59. <segmentedlist>
  60. <segtitle>Installed programs</segtitle>
  61. <segtitle>Installed library</segtitle>
  62. <segtitle>Installed directories</segtitle>
  63. <seglistitem>
  64. <seg>attr, getfattr, and setattr</seg>
  65. <seg>libattr.{a,so}</seg>
  66. <seg>/usr/include/attr and /usr/share/doc/attr-&attr-version;</seg>
  67. </seglistitem>
  68. </segmentedlist>
  69. <variablelist>
  70. <bridgehead renderas="sect3">Short Descriptions</bridgehead>
  71. <?dbfo list-presentation="list"?>
  72. <?dbhtml list-presentation="table"?>
  73. <varlistentry id="attr">
  74. <term><command>attr</command></term>
  75. <listitem>
  76. <para>Extends attributes on filesystem objects</para>
  77. <indexterm zone="ch-system-attr attr">
  78. <primary sortas="b-attr">attr</primary>
  79. </indexterm>
  80. </listitem>
  81. </varlistentry>
  82. <varlistentry id="getfattr">
  83. <term><command>getfattr</command></term>
  84. <listitem>
  85. <para>Gets the extended attributes of filesystem objects</para>
  86. <indexterm zone="ch-system-attr getfattr">
  87. <primary sortas="b-getfattr">getfattr</primary>
  88. </indexterm>
  89. </listitem>
  90. </varlistentry>
  91. <varlistentry id="setattr">
  92. <term><command>setattr</command></term>
  93. <listitem>
  94. <para>Sets the extended attributes of filesystem objects</para>
  95. <indexterm zone="ch-system-attr setattr">
  96. <primary sortas="b-setattr">setattr</primary>
  97. </indexterm>
  98. </listitem>
  99. </varlistentry>
  100. <varlistentry id="libattr">
  101. <term><filename class="libraryfile">libattr</filename></term>
  102. <listitem>
  103. <para>Contains the libbrary functions for manipulating extended attributes</para>
  104. <indexterm zone="ch-system-attr libattr">
  105. <primary sortas="c-libattr">libattr</primary>
  106. </indexterm>
  107. </listitem>
  108. </varlistentry>
  109. </variablelist>
  110. </sect2>
  111. </sect1>