source: chapter06/attr.xml@ efcb393

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 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 efcb393 was efcb393, checked in by Pierre Labastie <pieere@…>, 4 years ago

Make the new book

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

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