source: chapter06/attr.xml@ f6dd9ab

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 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 f6dd9ab was 1118b17, checked in by Bruce Dubbs <bdubbs@…>, 8 years ago

Create branches/merge in svn repo fo rtesting of merged LFS books

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/merge@11073 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

  • Property mode set to 100644
File size: 4.9 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 revision="sysv"><userinput remap="configure">./configure --prefix=/usr \
57 --bindir=/bin \
58 --disable-static</userinput></screen>
59
60<screen revision="systemd"><userinput remap="configure">./configure --prefix=/usr \
61 --disable-static</userinput></screen>
62
63 <para>Compile the package:</para>
64
65<screen><userinput remap="make">make</userinput></screen>
66
67 <para>The tests need to be run on a filesystem that supports extended
68 attributes such as the ext2, ext3, or ext4 filesystems. The tests are also
69 known to fail if running multiple simultaneous tests (-j option greater than
70 1). To test the results, issue:</para>
71
72<screen><userinput remap="test">make -j1 tests root-tests</userinput></screen>
73
74 <para>Install the package:</para>
75
76<screen><userinput remap="install">make install install-dev install-lib
77chmod -v 755 /usr/lib/libattr.so</userinput></screen>
78
79 <para>The shared library needs to be moved to
80 <filename class="directory">/lib</filename>, and as a result the
81 <filename class="extension">.so</filename> file in
82 <filename class="directory">/usr/lib</filename> will need to be recreated:</para>
83
84<screen><userinput remap="install">mv -v /usr/lib/libattr.so.* /lib
85ln -sfv ../../lib/$(readlink /usr/lib/libattr.so) /usr/lib/libattr.so</userinput></screen>
86
87 </sect2>
88
89 <sect2 id="contents-attr" role="content">
90 <title>Contents of Attr</title>
91
92 <segmentedlist>
93 <segtitle>Installed programs</segtitle>
94 <segtitle>Installed library</segtitle>
95 <segtitle>Installed directories</segtitle>
96
97 <seglistitem>
98 <seg>attr, getfattr, and setattr</seg>
99 <seg>libattr.so</seg>
100 <seg>/usr/include/attr and /usr/share/doc/attr-&attr-version;</seg>
101 </seglistitem>
102 </segmentedlist>
103
104 <variablelist>
105 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
106 <?dbfo list-presentation="list"?>
107 <?dbhtml list-presentation="table"?>
108
109 <varlistentry id="attr">
110 <term><command>attr</command></term>
111 <listitem>
112 <para>Extends attributes on filesystem objects</para>
113 <indexterm zone="ch-system-attr attr">
114 <primary sortas="b-attr">attr</primary>
115 </indexterm>
116 </listitem>
117 </varlistentry>
118
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
129 <varlistentry id="setattr">
130 <term><command>setattr</command></term>
131 <listitem>
132 <para>Sets the extended attributes of filesystem objects</para>
133 <indexterm zone="ch-system-attr setattr">
134 <primary sortas="b-setattr">setattr</primary>
135 </indexterm>
136 </listitem>
137 </varlistentry>
138
139 <varlistentry id="libattr">
140 <term><filename class="libraryfile">libattr</filename></term>
141 <listitem>
142 <para>Contains the libbrary functions for manipulating extended attributes</para>
143 <indexterm zone="ch-system-attr libattr">
144 <primary sortas="c-libattr">libattr</primary>
145 </indexterm>
146 </listitem>
147 </varlistentry>
148
149 </variablelist>
150
151 </sect2>
152
153</sect1>
Note: See TracBrowser for help on using the repository browser.