attr.xml 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203
  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>Prepare Attr for compilation:</para>
  34. <screen revision="sysv"><userinput remap="configure">./configure --prefix=/usr \
  35. --bindir=/bin \
  36. --disable-static \
  37. --sysconfdir=/etc \
  38. --docdir=/usr/share/doc/attr-&attr-version;</userinput></screen>
  39. <screen revision="systemd"><userinput remap="configure">./configure --prefix=/usr \
  40. --disable-static \
  41. --sysconfdir=/etc \
  42. --docdir=/usr/share/doc/attr-&attr-version;</userinput></screen>
  43. <para>Compile the package:</para>
  44. <screen><userinput remap="make">make</userinput></screen>
  45. <para>The tests need to be run on a filesystem that supports extended
  46. attributes such as the ext2, ext3, or ext4 filesystems.
  47. To test the results, issue:</para>
  48. <screen><userinput remap="test">make check</userinput></screen>
  49. <para>Install the package:</para>
  50. <screen><userinput remap="install">make install</userinput></screen>
  51. <para>The shared library needs to be moved to
  52. <filename class="directory">/lib</filename>, and as a result the
  53. <filename class="extension">.so</filename> file in
  54. <filename class="directory">/usr/lib</filename> will need to be recreated:</para>
  55. <screen><userinput remap="install">mv -v /usr/lib/libattr.so.* /lib
  56. ln -sfv ../../lib/$(readlink /usr/lib/libattr.so) /usr/lib/libattr.so</userinput></screen>
  57. </sect2>
  58. <!-- ~~~~~~~~~~~~~~~~~~~~ ABI 32 ~~~~~~~~~~~~~~~~~~~~ -->
  59. <sect2 arch="ml_32,ml_all" role="installation">
  60. <title>Installation of Attr - 32-bit</title>
  61. <para>Clean previous build:</para>
  62. <screen><userinput remap="pre">make distclean</userinput></screen>
  63. <para>Prepare Attr for compilation:</para>
  64. <screen><userinput remap="configure">CC="gcc -m32" ./configure \
  65. --prefix=/usr \
  66. --disable-static \
  67. --libdir=/usr/lib32 \
  68. --host=i686-pc-linux-gnu</userinput></screen>
  69. <para>Compile the package:</para>
  70. <screen><userinput remap="make">make</userinput></screen>
  71. <para>Install the package:</para>
  72. <screen><userinput remap="install">make DESTDIR=$(pwd)/DESTDIR install
  73. cp -Rv DESTDIR/usr/lib32/* /usr/lib32
  74. rm -rf DESTDIR</userinput></screen>
  75. </sect2>
  76. <!-- ~~~~~~~~~~~~~~~~~~~~ ABI x32 ~~~~~~~~~~~~~~~~~~~~ -->
  77. <sect2 arch="ml_x32,ml_all" role="installation">
  78. <title>Installation of Attr - x32-bit</title>
  79. <para>Clean previous build:</para>
  80. <screen><userinput remap="pre">make distclean</userinput></screen>
  81. <para>Prepare Attr for compilation:</para>
  82. <screen><userinput remap="configure">CC="gcc -mx32" ./configure \
  83. --prefix=/usr \
  84. --disable-static \
  85. --libdir=/usr/libx32 \
  86. --host=x86_64-pc-linux-gnux32</userinput></screen>
  87. <para>Compile the package:</para>
  88. <screen><userinput remap="make">make</userinput></screen>
  89. <para>Install the package:</para>
  90. <screen><userinput remap="install">make DESTDIR=$(pwd)/DESTDIR install
  91. cp -Rv DESTDIR/usr/libx32/* /usr/libx32
  92. rm -rf DESTDIR</userinput></screen>
  93. </sect2>
  94. <sect2 id="contents-attr" role="content">
  95. <title>Contents of Attr</title>
  96. <segmentedlist>
  97. <segtitle>Installed programs</segtitle>
  98. <segtitle>Installed library</segtitle>
  99. <segtitle>Installed directories</segtitle>
  100. <seglistitem>
  101. <seg>attr, getfattr, and setfattr</seg>
  102. <seg>libattr.so</seg>
  103. <seg>/usr/include/attr and /usr/share/doc/attr-&attr-version;</seg>
  104. </seglistitem>
  105. </segmentedlist>
  106. <variablelist>
  107. <bridgehead renderas="sect3">Short Descriptions</bridgehead>
  108. <?dbfo list-presentation="list"?>
  109. <?dbhtml list-presentation="table"?>
  110. <varlistentry id="attr">
  111. <term><command>attr</command></term>
  112. <listitem>
  113. <para>Extends attributes on filesystem objects</para>
  114. <indexterm zone="ch-system-attr attr">
  115. <primary sortas="b-attr">attr</primary>
  116. </indexterm>
  117. </listitem>
  118. </varlistentry>
  119. <varlistentry id="getfattr">
  120. <term><command>getfattr</command></term>
  121. <listitem>
  122. <para>Gets the extended attributes of filesystem objects</para>
  123. <indexterm zone="ch-system-attr getfattr">
  124. <primary sortas="b-getfattr">getfattr</primary>
  125. </indexterm>
  126. </listitem>
  127. </varlistentry>
  128. <varlistentry id="setfattr">
  129. <term><command>setfattr</command></term>
  130. <listitem>
  131. <para>Sets the extended attributes of filesystem objects</para>
  132. <indexterm zone="ch-system-attr setfattr">
  133. <primary sortas="b-setfattr">setfattr</primary>
  134. </indexterm>
  135. </listitem>
  136. </varlistentry>
  137. <varlistentry id="libattr">
  138. <term><filename class="libraryfile">libattr</filename></term>
  139. <listitem>
  140. <para>Contains the library functions for manipulating extended attributes</para>
  141. <indexterm zone="ch-system-attr libattr">
  142. <primary sortas="c-libattr">libattr</primary>
  143. </indexterm>
  144. </listitem>
  145. </varlistentry>
  146. </variablelist>
  147. </sect2>
  148. </sect1>