source: chapter06/attr.xml@ c158fe6

7.5-systemd 7.6-systemd 7.7-systemd 7.8-systemd 7.9-systemd
Last change on this file since c158fe6 was b1a51ac1, checked in by Krejzi <krejzi@…>, 11 years ago

Import new branch

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

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