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

systemd
Last change on this file since 9edc616 was fc46d00, checked in by William Harrington <kb0iic@…>, 9 years ago

Remove install of Attr an-pages since the man-pages package installs them.

  • 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="man-pages"/> package:</para>
30
31<screen os="s2"><userinput>sed -i -e "/SUBDIRS/s|man2||" 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 --prefix=/usr</userinput></screen>
41
42 <para os="e">Compile the package:</para>
43
44<screen os="f"><userinput>make</userinput></screen>
45
46 <para os="g">The tests need to run with a filesystem which supports extended
47 attributes. Test the results:</para>
48
49<screen os="h"><userinput remap="test">make -j1 tests root-tests</userinput></screen>
50
51 <para os="i">Install the package:</para>
52
53<screen os="j"><userinput>make install install-dev install-lib</userinput></screen>
54
55 <para os="k">Move the shared library to <filename class="directory">/lib
56 </filename> and recreate the symlink in <filename class="directory">/usr/lib
57 </filename>:</para>
58
59<screen os="l"><userinput>mv -v /usr/lib/libattr.so.* /lib
60ln -sfv ../../lib/$(readlink /usr/lib/libattr.so) /usr/lib/libattr.so</userinput></screen>
61
62 <para os="m">Set the proper permissions on the shared library:</para>
63
64<screen os="n"><userinput>chmod 755 -v /lib/libattr.so.1.1.0</userinput></screen>
65
66 </sect2>
67
68 <sect2 id="contents-attr" role="content">
69 <title>Contents of Attr</title>
70
71 <segmentedlist>
72 <segtitle>Installed programs</segtitle>
73 <segtitle>Installed libraries</segtitle>
74 <segtitle>Installed directories</segtitle>
75
76 <seglistitem>
77 <seg>attr, getfattr, setfattr</seg>
78 <seg>libattr.[a,so]</seg>
79 <seg>/usr/include/attr, /usr/share/doc/attr-&attr-version;</seg>
80 </seglistitem>
81 </segmentedlist>
82
83 <variablelist>
84 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
85 <?dbfo list-presentation="list"?>
86 <?dbhtml list-presentation="table"?>
87
88 <varlistentry id="attr">
89 <term><command>attr</command></term>
90 <listitem>
91 <para>Manage extended attributes on filesystem objects</para>
92 <indexterm zone="ch-system-attr attr">
93 <primary sortas="b-attr">attr</primary>
94 </indexterm>
95 </listitem>
96 </varlistentry>
97
98 <varlistentry id="getfattr">
99 <term><command>getfattr</command></term>
100 <listitem>
101 <para>Get extended attributes of filesystem objects</para>
102 <indexterm zone="ch-system-attr getfattr">
103 <primary sortas="b-getfattr">getfattr</primary>
104 </indexterm>
105 </listitem>
106 </varlistentry>
107
108 <varlistentry id="setfattr">
109 <term><command>setfattr</command></term>
110 <listitem>
111 <para>Set extended attributes of filesystem objects</para>
112 <indexterm zone="ch-system-attr setfattr">
113 <primary sortas="b-setfattr">setfattr</primary>
114 </indexterm>
115 </listitem>
116 </varlistentry>
117
118 <varlistentry id="libattr">
119 <term><filename class="libraryfile">libattr</filename></term>
120 <listitem>
121 <para>Library to manage extended attributes on filesystem objects</para>
122 <indexterm zone="ch-system-attr libattr">
123 <primary sortas="c-libattr">libattr</primary>
124 </indexterm>
125 </listitem>
126 </varlistentry>
127
128 </variablelist>
129
130 </sect2>
131
132</sect1>
Note: See TracBrowser for help on using the repository browser.