source: chapter06/attr.xml@ b057615

10.0 10.0-rc1 10.1 10.1-rc1 11.0 11.0-rc1 11.0-rc2 11.0-rc3 11.1 11.1-rc1 11.2 11.2-rc1 11.3 11.3-rc1 12.0 12.0-rc1 12.1 12.1-rc1 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 arm bdubbs/gcc13 ml-11.0 multilib renodr/libudev-from-systemd s6-init trunk xry111/arm64 xry111/arm64-12.0 xry111/clfs-ng xry111/lfs-next xry111/loongarch xry111/loongarch-12.0 xry111/loongarch-12.1 xry111/mips64el xry111/pip3 xry111/rust-wip-20221008 xry111/update-glibc
Last change on this file since b057615 was b057615, checked in by Bruce Dubbs <bdubbs@…>, 8 years ago

Prevent attr and shadow from overwriting man pages installed by the man-pages
package.

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@11026 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

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