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 | <!ENTITY serf-download-http "https://serf.googlecode.com/files/serf-&serf-version;.tar.bz2">
|
---|
8 | <!ENTITY serf-download-ftp " ">
|
---|
9 | <!ENTITY serf-md5sum "bb0dbf9494495db7e8b34eac99b2dc3a">
|
---|
10 | <!ENTITY serf-size "133 KB">
|
---|
11 | <!ENTITY serf-buildsize "3.0 MB">
|
---|
12 | <!ENTITY serf-time "0.1 SBU">
|
---|
13 | ]>
|
---|
14 |
|
---|
15 | <sect1 id="serf" xreflabel="Serf-&serf-version;">
|
---|
16 | <?dbhtml filename="serf.html"?>
|
---|
17 |
|
---|
18 | <sect1info>
|
---|
19 | <othername>$LastChangedBy$</othername>
|
---|
20 | <date>$Date$</date>
|
---|
21 | </sect1info>
|
---|
22 |
|
---|
23 | <title>Serf-&serf-version;</title>
|
---|
24 |
|
---|
25 | <indexterm zone="serf">
|
---|
26 | <primary sortas="a-Serf">Serf</primary>
|
---|
27 | </indexterm>
|
---|
28 |
|
---|
29 | <sect2 role="package">
|
---|
30 | <title>Introduction to Serf</title>
|
---|
31 |
|
---|
32 | <para>
|
---|
33 | The <application>Serf</application> package contains a C-based HTTP client
|
---|
34 | library built upon the Apache Portable Runtime (APR) library. It
|
---|
35 | multiplexes connections, running the read/write communication asynchronously.
|
---|
36 | Memory copies and transformations are kept to a minimum to provide high
|
---|
37 | performance operation.
|
---|
38 | </para>
|
---|
39 |
|
---|
40 | &lfs73_checked;
|
---|
41 |
|
---|
42 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
43 | <itemizedlist spacing="compact">
|
---|
44 | <listitem>
|
---|
45 | <para>
|
---|
46 | Download (HTTP): <ulink url="&serf-download-http;"/>
|
---|
47 | </para>
|
---|
48 | </listitem>
|
---|
49 | <listitem>
|
---|
50 | <para>
|
---|
51 | Download (FTP): <ulink url="&serf-download-ftp;"/>
|
---|
52 | </para>
|
---|
53 | </listitem>
|
---|
54 | <listitem>
|
---|
55 | <para>
|
---|
56 | Download MD5 sum: &serf-md5sum;
|
---|
57 | </para>
|
---|
58 | </listitem>
|
---|
59 | <listitem>
|
---|
60 | <para>
|
---|
61 | Download size: &serf-size;
|
---|
62 | </para>
|
---|
63 | </listitem>
|
---|
64 | <listitem>
|
---|
65 | <para>
|
---|
66 | Estimated disk space required: &serf-buildsize;
|
---|
67 | </para>
|
---|
68 | </listitem>
|
---|
69 | <listitem>
|
---|
70 | <para>
|
---|
71 | Estimated build time: &serf-time;
|
---|
72 | </para>
|
---|
73 | </listitem>
|
---|
74 | </itemizedlist>
|
---|
75 |
|
---|
76 | <bridgehead renderas="sect3">Serf Dependencies</bridgehead>
|
---|
77 |
|
---|
78 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
79 | <para role="required">
|
---|
80 | <xref linkend="apr-util"/>,
|
---|
81 | <xref linkend="openssl"/> and
|
---|
82 | <xref linkend="scons"/>
|
---|
83 | </para>
|
---|
84 |
|
---|
85 | <para condition="html" role="usernotes">
|
---|
86 | User Notes: <ulink url="&blfs-wiki;/serf"/>
|
---|
87 | </para>
|
---|
88 | </sect2>
|
---|
89 |
|
---|
90 | <sect2 role="installation">
|
---|
91 | <title>Installation of Serf</title>
|
---|
92 |
|
---|
93 | <para>
|
---|
94 | Install <application>Serf</application> by running the following
|
---|
95 | commands:
|
---|
96 | </para>
|
---|
97 |
|
---|
98 | <screen><userinput>sed -i "/incdir/s:MAJOR':&\n\nenv\['SHLIBVERSION'\]='0.\${MAJOR}.0':" SConstruct &&
|
---|
99 | sed -i "/Append/s:RPATH=libdir,::" SConstruct &&
|
---|
100 | sed -i "/Default/s:lib_static,::" SConstruct &&
|
---|
101 | sed -i "/Alias/s:install_static,::" SConstruct &&
|
---|
102 | scons</userinput></screen>
|
---|
103 |
|
---|
104 | <para>
|
---|
105 | To test the results, issue: <command>scons check</command>.
|
---|
106 | </para>
|
---|
107 |
|
---|
108 | <para>
|
---|
109 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
110 | </para>
|
---|
111 |
|
---|
112 | <screen role="root"><userinput>scons PREFIX=/usr install &&
|
---|
113 | ln -sfv libserf-1.so.0.1.0 /usr/lib/libserf-1.so.0 &&
|
---|
114 | ln -sfv libserf-1.so.0.1.0 /usr/lib/libserf-1.so</userinput></screen>
|
---|
115 |
|
---|
116 | </sect2>
|
---|
117 |
|
---|
118 | <sect2 role="commands">
|
---|
119 | <title>Command Explanations</title>
|
---|
120 |
|
---|
121 | <para>
|
---|
122 | <command>sed -i "..."</command>: First sed modifies the build script
|
---|
123 | to build shared versioned library, second sed removes runtime path
|
---|
124 | from shared library and third and fourth sed disable building and
|
---|
125 | installing of the static library.
|
---|
126 | </para>
|
---|
127 |
|
---|
128 | </sect2>
|
---|
129 |
|
---|
130 | <sect2 role="content">
|
---|
131 | <title>Contents</title>
|
---|
132 |
|
---|
133 | <segmentedlist>
|
---|
134 | <segtitle>Installed Programs</segtitle>
|
---|
135 | <segtitle>Installed Library</segtitle>
|
---|
136 | <segtitle>Installed Directory</segtitle>
|
---|
137 |
|
---|
138 | <seglistitem>
|
---|
139 | <seg>
|
---|
140 | None
|
---|
141 | </seg>
|
---|
142 | <seg>
|
---|
143 | libserf-1.so
|
---|
144 | </seg>
|
---|
145 | <seg>
|
---|
146 | /usr/include/serf-1
|
---|
147 | </seg>
|
---|
148 | </seglistitem>
|
---|
149 | </segmentedlist>
|
---|
150 |
|
---|
151 | <variablelist>
|
---|
152 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
153 | <?dbfo list-presentation="list"?>
|
---|
154 | <?dbhtml list-presentation="table"?>
|
---|
155 |
|
---|
156 | <varlistentry id="libserf-1">
|
---|
157 | <term><filename class="libraryfile">libserf-1.so</filename></term>
|
---|
158 | <listitem>
|
---|
159 | <para>
|
---|
160 | contains the <application>Serf</application> API functions.
|
---|
161 | </para>
|
---|
162 | <indexterm zone="serf libserf-1">
|
---|
163 | <primary sortas="c-libserf-1">libserf-1.so</primary>
|
---|
164 | </indexterm>
|
---|
165 | </listitem>
|
---|
166 | </varlistentry>
|
---|
167 |
|
---|
168 | </variablelist>
|
---|
169 |
|
---|
170 | </sect2>
|
---|
171 |
|
---|
172 | </sect1>
|
---|