attr.xml 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  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</userinput></screen>
  38. <para>Compile the package:</para>
  39. <screen><userinput remap="make">make</userinput></screen>
  40. <para>The Attr tests need to be run on a filesystem that supports extended
  41. attributes. To test the results, issue:</para>
  42. <!-- ext-tests fail for some reason -->
  43. <screen><userinput remap="test">make -k tests root-tests</userinput></screen>
  44. <para>Install the package:</para>
  45. <screen><userinput remap="install">make install install-dev install-lib
  46. chmod -v 0755 /usr/lib/libattr.so</userinput></screen>
  47. <para>The shared library needs to be moved to
  48. <filename class="directory">/lib</filename>, and as a result the
  49. <filename class="extension">.so</filename> file in
  50. <filename class="directory">/usr/lib</filename> will need to be recreated:</para>
  51. <screen><userinput remap="install">mv -v /usr/lib/libattr.so.* /lib
  52. ln -sfv ../../lib/libattr.so.1 /usr/lib/libattr.so</userinput></screen>
  53. </sect2>
  54. <sect2 id="contents-attr" role="content">
  55. <title>Contents of Attr</title>
  56. <segmentedlist>
  57. <segtitle>Installed programs</segtitle>
  58. <segtitle>Installed library</segtitle>
  59. <segtitle>Installed directories</segtitle>
  60. <seglistitem>
  61. <seg>attr, getfattr, and setattr</seg>
  62. <seg>libattr.{so,a}</seg>
  63. <seg>/usr/include/attr and /usr/share/doc/attr-&attr-version;</seg>
  64. </seglistitem>
  65. </segmentedlist>
  66. <variablelist>
  67. <bridgehead renderas="sect3">Short Descriptions</bridgehead>
  68. <?dbfo list-presentation="list"?>
  69. <?dbhtml list-presentation="table"?>
  70. <varlistentry id="attr">
  71. <term><command>attr</command></term>
  72. <listitem>
  73. <para>Extends attributes on filesystem objects</para>
  74. <indexterm zone="ch-system-attr attr">
  75. <primary sortas="b-attr">attr</primary>
  76. </indexterm>
  77. </listitem>
  78. </varlistentry>
  79. <varlistentry id="getfattr">
  80. <term><command>getfattr</command></term>
  81. <listitem>
  82. <para>Gets the extended attributes of filesystem objects.</para>
  83. <indexterm zone="ch-system-attr getfattr">
  84. <primary sortas="b-getfattr">getfattr</primary>
  85. </indexterm>
  86. </listitem>
  87. </varlistentry>
  88. <varlistentry id="setattr">
  89. <term><command>setattr</command></term>
  90. <listitem>
  91. <para>Sets the extended attributes of filesystem objects</para>
  92. <indexterm zone="ch-system-attr setattr">
  93. <primary sortas="b-setattr">setattr</primary>
  94. </indexterm>
  95. </listitem>
  96. </varlistentry>
  97. <varlistentry id="libattr">
  98. <term><filename class="libraryfile">libattr.{so,a}</filename></term>
  99. <listitem>
  100. <para>Contains the <application>Attr</application> API functions.</para>
  101. <indexterm zone="ch-system-attr libattr">
  102. <primary sortas="c-libattr">libattr.{so,a}</primary>
  103. </indexterm>
  104. </listitem>
  105. </varlistentry>
  106. </variablelist>
  107. </sect2>
  108. </sect1>