source: BOOK/final-system/common/attr.xml@ ff42218

systemd
Last change on this file since ff42218 was 79438a6, checked in by William Harrington <kb0iic@…>, 8 years ago

Adjust linkend to use ch-system-man-pages. Reported by Michio Matsuyama at the CLFS-Dev mailing list.

  • Property mode set to 100644
File size: 4.2 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 <title>Attr-&attr-version;</title>
12
13 <indexterm zone="ch-system-attr">
14 <primary sortas="a-Attr">Attr</primary>
15 </indexterm>
16
17 <sect2 role="package">
18 <title/>
19
20 <para>Attr is a library for getting and setting POSIX.1e
21 (formerly POSIX 6) draft 15 capabilities.</para>
22
23 </sect2>
24
25 <sect2 role="installation">
26 <title>Installation of Attr</title>
27
28 <para os="s1">Apply a sed which prevents man-pages which were installed by
29 the <xref linkend="ch-system-man-pages"/> package:</para>
30
31<screen os="s2"><userinput>sed -i -e "/SUBDIRS/s|man[25]||g" man/Makefile</userinput></screen>
32
33 <para os="a">Apply a sed to install the documentation with a versioned
34 directory:</para>
35
36<screen os="b"><userinput>sed -i -e 's|/@pkg_name@|&amp;-@pkg_version@|' include/builddefs.in</userinput></screen>
37
38 <para os="c">Prepare Attr for compilation:</para>
39
40<screen os="d"><userinput>./configure \
41 --prefix=/usr</userinput></screen>
42
43 <para os="e">Compile the package:</para>
44
45<screen os="f"><userinput>make</userinput></screen>
46
47 <para os="g">The tests need to run with a filesystem which supports extended
48 attributes. Test the results:</para>
49
50<screen os="h"><userinput remap="test">make -j1 tests root-tests</userinput></screen>
51
52 <para os="i">Install the package:</para>
53
54<screen os="j"><userinput>make install install-dev install-lib</userinput></screen>
55
56 <para os="k">Move the shared library to <filename class="directory">/lib
57 </filename> and recreate the symlink in <filename class="directory">/usr/lib
58 </filename>:</para>
59
60<screen os="l"><userinput>mv -v /usr/lib/libattr.so.* /lib
61ln -sfv ../../lib/$(readlink /usr/lib/libattr.so) /usr/lib/libattr.so</userinput></screen>
62
63 <para os="m">Set the proper permissions on the shared library:</para>
64
65<screen os="n"><userinput>chmod 755 -v /lib/libattr.so.1.1.0</userinput></screen>
66
67 </sect2>
68
69 <sect2 id="contents-attr" role="content">
70 <title>Contents of Attr</title>
71
72 <segmentedlist>
73 <segtitle>Installed programs</segtitle>
74 <segtitle>Installed libraries</segtitle>
75 <segtitle>Installed directories</segtitle>
76
77 <seglistitem>
78 <seg>attr, getfattr, setfattr</seg>
79 <seg>libattr.[a,so]</seg>
80 <seg>/usr/include/attr, /usr/share/doc/attr-&attr-version;</seg>
81 </seglistitem>
82 </segmentedlist>
83
84 <variablelist>
85 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
86 <?dbfo list-presentation="list"?>
87 <?dbhtml list-presentation="table"?>
88
89 <varlistentry id="attr">
90 <term><command>attr</command></term>
91 <listitem>
92 <para>Manage extended attributes on filesystem objects</para>
93 <indexterm zone="ch-system-attr attr">
94 <primary sortas="b-attr">attr</primary>
95 </indexterm>
96 </listitem>
97 </varlistentry>
98
99 <varlistentry id="getfattr">
100 <term><command>getfattr</command></term>
101 <listitem>
102 <para>Get extended attributes of filesystem objects</para>
103 <indexterm zone="ch-system-attr getfattr">
104 <primary sortas="b-getfattr">getfattr</primary>
105 </indexterm>
106 </listitem>
107 </varlistentry>
108
109 <varlistentry id="setfattr">
110 <term><command>setfattr</command></term>
111 <listitem>
112 <para>Set extended attributes of filesystem objects</para>
113 <indexterm zone="ch-system-attr setfattr">
114 <primary sortas="b-setfattr">setfattr</primary>
115 </indexterm>
116 </listitem>
117 </varlistentry>
118
119 <varlistentry id="libattr">
120 <term><filename class="libraryfile">libattr</filename></term>
121 <listitem>
122 <para>Library to manage extended attributes on filesystem objects</para>
123 <indexterm zone="ch-system-attr libattr">
124 <primary sortas="c-libattr">libattr</primary>
125 </indexterm>
126 </listitem>
127 </varlistentry>
128
129 </variablelist>
130
131 </sect2>
132
133</sect1>
Note: See TracBrowser for help on using the repository browser.