1
0

attr.xml 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  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>Prevent installation of manual pages that were already installed by
  37. the <xref linkend="man-pages"/> package:</para>
  38. <screen><userinput remap="pre">sed -i -e "/SUBDIRS/s|man[25]||g" man/Makefile</userinput></screen>
  39. <para>Fix a problem in the test procedures caused by changes in perl-5.26:</para>
  40. <screen><userinput remap="pre">sed -i 's:{(:\\{(:' test/run</userinput></screen>
  41. <para>Prepare Attr for compilation:</para>
  42. <screen revision="sysv"><userinput remap="configure">./configure --prefix=/usr \
  43. --bindir=/bin \
  44. --disable-static</userinput></screen>
  45. <screen revision="systemd"><userinput remap="configure">./configure --prefix=/usr \
  46. --disable-static</userinput></screen>
  47. <para>Compile the package:</para>
  48. <screen><userinput remap="make">make</userinput></screen>
  49. <para>The tests need to be run on a filesystem that supports extended
  50. attributes such as the ext2, ext3, or ext4 filesystems. The tests are also
  51. known to fail if running multiple simultaneous tests (-j option greater than
  52. 1). To test the results, issue:</para>
  53. <screen><userinput remap="test">make -j1 tests root-tests</userinput></screen>
  54. <para>Install the package:</para>
  55. <screen><userinput remap="install">make install install-dev install-lib
  56. chmod -v 755 /usr/lib/libattr.so</userinput></screen>
  57. <para>The shared library needs to be moved to
  58. <filename class="directory">/lib</filename>, and as a result the
  59. <filename class="extension">.so</filename> file in
  60. <filename class="directory">/usr/lib</filename> will need to be recreated:</para>
  61. <screen><userinput remap="install">mv -v /usr/lib/libattr.so.* /lib
  62. ln -sfv ../../lib/$(readlink /usr/lib/libattr.so) /usr/lib/libattr.so</userinput></screen>
  63. </sect2>
  64. <sect2 id="contents-attr" role="content">
  65. <title>Contents of Attr</title>
  66. <segmentedlist>
  67. <segtitle>Installed programs</segtitle>
  68. <segtitle>Installed library</segtitle>
  69. <segtitle>Installed directories</segtitle>
  70. <seglistitem>
  71. <seg>attr, getfattr, and setattr</seg>
  72. <seg>libattr.so</seg>
  73. <seg>/usr/include/attr and /usr/share/doc/attr-&attr-version;</seg>
  74. </seglistitem>
  75. </segmentedlist>
  76. <variablelist>
  77. <bridgehead renderas="sect3">Short Descriptions</bridgehead>
  78. <?dbfo list-presentation="list"?>
  79. <?dbhtml list-presentation="table"?>
  80. <varlistentry id="attr">
  81. <term><command>attr</command></term>
  82. <listitem>
  83. <para>Extends attributes on filesystem objects</para>
  84. <indexterm zone="ch-system-attr attr">
  85. <primary sortas="b-attr">attr</primary>
  86. </indexterm>
  87. </listitem>
  88. </varlistentry>
  89. <varlistentry id="getfattr">
  90. <term><command>getfattr</command></term>
  91. <listitem>
  92. <para>Gets the extended attributes of filesystem objects</para>
  93. <indexterm zone="ch-system-attr getfattr">
  94. <primary sortas="b-getfattr">getfattr</primary>
  95. </indexterm>
  96. </listitem>
  97. </varlistentry>
  98. <varlistentry id="setattr">
  99. <term><command>setattr</command></term>
  100. <listitem>
  101. <para>Sets the extended attributes of filesystem objects</para>
  102. <indexterm zone="ch-system-attr setattr">
  103. <primary sortas="b-setattr">setattr</primary>
  104. </indexterm>
  105. </listitem>
  106. </varlistentry>
  107. <varlistentry id="libattr">
  108. <term><filename class="libraryfile">libattr</filename></term>
  109. <listitem>
  110. <para>Contains the libbrary functions for manipulating extended attributes</para>
  111. <indexterm zone="ch-system-attr libattr">
  112. <primary sortas="c-libattr">libattr</primary>
  113. </indexterm>
  114. </listitem>
  115. </varlistentry>
  116. </variablelist>
  117. </sect2>
  118. </sect1>