attr.xml 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  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 --libdir=/lib --libexecdir=/usr/lib</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 /lib/libattr.so.1.1.0</userinput></screen>
  47. <para>Remove static library and libtool archive from
  48. <filename class="directory">/lib</filename>, they exist in
  49. <filename class="directory">/usr/lib</filename>:</para>
  50. <screen><userinput remap="install">rm -v /lib/libattr.{a,la,so}</userinput></screen>
  51. <para>Change default location for the libtool archive and recreate
  52. symlink to shared library since it points to removed file:</para>
  53. <screen><userinput remap="install">sed -i 's@/lib@/usr/lib@' /usr/lib/libattr.la
  54. ln -sfv ../../lib/libattr.so.1 /usr/lib/libattr.so</userinput></screen>
  55. </sect2>
  56. <sect2 id="contents-attr" role="content">
  57. <title>Contents of Attr</title>
  58. <segmentedlist>
  59. <segtitle>Installed programs</segtitle>
  60. <segtitle>Installed library</segtitle>
  61. <segtitle>Installed directories</segtitle>
  62. <seglistitem>
  63. <seg>attr, getfattr, and setattr</seg>
  64. <seg>libattr.{so,a}</seg>
  65. <seg>/usr/include/attr and /usr/share/doc/attr-&attr-version;</seg>
  66. </seglistitem>
  67. </segmentedlist>
  68. <variablelist>
  69. <bridgehead renderas="sect3">Short Descriptions</bridgehead>
  70. <?dbfo list-presentation="list"?>
  71. <?dbhtml list-presentation="table"?>
  72. <varlistentry id="attr">
  73. <term><command>attr</command></term>
  74. <listitem>
  75. <para>Extends attributes on filesystem objects</para>
  76. <indexterm zone="ch-system-attr attr">
  77. <primary sortas="b-attr">attr</primary>
  78. </indexterm>
  79. </listitem>
  80. </varlistentry>
  81. <varlistentry id="getfattr">
  82. <term><command>getfattr</command></term>
  83. <listitem>
  84. <para>Gets the extended attributes of filesystem objects.</para>
  85. <indexterm zone="ch-system-attr getfattr">
  86. <primary sortas="b-getfattr">getfattr</primary>
  87. </indexterm>
  88. </listitem>
  89. </varlistentry>
  90. <varlistentry id="setattr">
  91. <term><command>setattr</command></term>
  92. <listitem>
  93. <para>Sets the extended attributes of filesystem objects</para>
  94. <indexterm zone="ch-system-attr setattr">
  95. <primary sortas="b-setattr">setattr</primary>
  96. </indexterm>
  97. </listitem>
  98. </varlistentry>
  99. <varlistentry id="libattr">
  100. <term><filename class="libraryfile">libattr.{so,a}</filename></term>
  101. <listitem>
  102. <para>Contains the <application>attr</application> API functions.</para>
  103. <indexterm zone="ch-system-attr libattr">
  104. <primary sortas="c-libattr">libattr.{so,a}</primary>
  105. </indexterm>
  106. </listitem>
  107. </varlistentry>
  108. </variablelist>
  109. </sect2>
  110. </sect1>