[299d5c54] | 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 |
|
---|
[d5cddad] | 7 | <!ENTITY serf-download-http "https://archive.apache.org/dist/serf/serf-&serf-version;.tar.bz2">
|
---|
[299d5c54] | 8 | <!ENTITY serf-download-ftp " ">
|
---|
[ba8f1a8] | 9 | <!ENTITY serf-md5sum "370a6340ff20366ab088012cd13f2b57">
|
---|
| 10 | <!ENTITY serf-size "144 KB">
|
---|
[30f98dc] | 11 | <!ENTITY serf-buildsize "3.2 MB">
|
---|
| 12 | <!ENTITY serf-time "less than 0.1 SBU">
|
---|
[299d5c54] | 13 | ]>
|
---|
| 14 |
|
---|
| 15 | <sect1 id="serf" xreflabel="Serf-&serf-version;">
|
---|
| 16 | <?dbhtml filename="serf.html"?>
|
---|
| 17 |
|
---|
| 18 | <sect1info>
|
---|
| 19 | <date>$Date$</date>
|
---|
| 20 | </sect1info>
|
---|
| 21 |
|
---|
| 22 | <title>Serf-&serf-version;</title>
|
---|
| 23 |
|
---|
| 24 | <indexterm zone="serf">
|
---|
| 25 | <primary sortas="a-Serf">Serf</primary>
|
---|
| 26 | </indexterm>
|
---|
| 27 |
|
---|
| 28 | <sect2 role="package">
|
---|
| 29 | <title>Introduction to Serf</title>
|
---|
| 30 |
|
---|
| 31 | <para>
|
---|
| 32 | The <application>Serf</application> package contains a C-based HTTP client
|
---|
| 33 | library built upon the Apache Portable Runtime (APR) library. It
|
---|
| 34 | multiplexes connections, running the read/write communication asynchronously.
|
---|
| 35 | Memory copies and transformations are kept to a minimum to provide high
|
---|
| 36 | performance operation.
|
---|
| 37 | </para>
|
---|
| 38 |
|
---|
[ca783379] | 39 | &lfs111_checked;
|
---|
[299d5c54] | 40 |
|
---|
| 41 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 42 | <itemizedlist spacing="compact">
|
---|
| 43 | <listitem>
|
---|
| 44 | <para>
|
---|
| 45 | Download (HTTP): <ulink url="&serf-download-http;"/>
|
---|
| 46 | </para>
|
---|
| 47 | </listitem>
|
---|
| 48 | <listitem>
|
---|
| 49 | <para>
|
---|
| 50 | Download (FTP): <ulink url="&serf-download-ftp;"/>
|
---|
| 51 | </para>
|
---|
| 52 | </listitem>
|
---|
| 53 | <listitem>
|
---|
| 54 | <para>
|
---|
| 55 | Download MD5 sum: &serf-md5sum;
|
---|
| 56 | </para>
|
---|
| 57 | </listitem>
|
---|
| 58 | <listitem>
|
---|
| 59 | <para>
|
---|
| 60 | Download size: &serf-size;
|
---|
| 61 | </para>
|
---|
| 62 | </listitem>
|
---|
| 63 | <listitem>
|
---|
| 64 | <para>
|
---|
| 65 | Estimated disk space required: &serf-buildsize;
|
---|
| 66 | </para>
|
---|
| 67 | </listitem>
|
---|
| 68 | <listitem>
|
---|
| 69 | <para>
|
---|
| 70 | Estimated build time: &serf-time;
|
---|
| 71 | </para>
|
---|
| 72 | </listitem>
|
---|
| 73 | </itemizedlist>
|
---|
| 74 |
|
---|
[3d50d36] | 75 | <bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
---|
| 76 | <itemizedlist spacing="compact">
|
---|
| 77 | <listitem>
|
---|
| 78 | <para>
|
---|
| 79 | Required patch:
|
---|
| 80 | <ulink url="&patch-root;/serf-&serf-version;-openssl3_fixes-1.patch"/>
|
---|
| 81 | </para>
|
---|
| 82 | </listitem>
|
---|
| 83 | </itemizedlist>
|
---|
| 84 |
|
---|
[299d5c54] | 85 | <bridgehead renderas="sect3">Serf Dependencies</bridgehead>
|
---|
| 86 |
|
---|
| 87 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
| 88 | <para role="required">
|
---|
[94b42903] | 89 | <xref linkend="apr-util"/> and
|
---|
[1b35ce63] | 90 | <xref linkend="scons"/>
|
---|
[299d5c54] | 91 | </para>
|
---|
| 92 |
|
---|
[d0b65e4] | 93 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 94 | <para role="optional">
|
---|
| 95 | <xref linkend="mitkrb"/>, for the GSSAPI
|
---|
| 96 | </para>
|
---|
| 97 |
|
---|
[299d5c54] | 98 | <para condition="html" role="usernotes">
|
---|
| 99 | User Notes: <ulink url="&blfs-wiki;/serf"/>
|
---|
| 100 | </para>
|
---|
| 101 | </sect2>
|
---|
| 102 |
|
---|
| 103 | <sect2 role="installation">
|
---|
| 104 | <title>Installation of Serf</title>
|
---|
| 105 |
|
---|
[3d50d36] | 106 | <para>
|
---|
| 107 | First, fix an issue that causes compilation issues in other packages
|
---|
| 108 | when using OpenSSL-3:
|
---|
| 109 | </para>
|
---|
| 110 |
|
---|
| 111 | <screen><userinput remap="pre">patch -Np1 -i ../serf-&serf-version;-openssl3_fixes-1.patch</userinput></screen>
|
---|
| 112 |
|
---|
[299d5c54] | 113 | <para>
|
---|
| 114 | Install <application>Serf</application> by running the following
|
---|
| 115 | commands:
|
---|
| 116 | </para>
|
---|
| 117 |
|
---|
[fabeff7] | 118 | <screen><userinput>sed -i "/Append/s:RPATH=libdir,::" SConstruct &&
|
---|
| 119 | sed -i "/Default/s:lib_static,::" SConstruct &&
|
---|
| 120 | sed -i "/Alias/s:install_static,::" SConstruct &&
|
---|
| 121 | sed -i "/ print/{s/print/print(/; s/$/)/}" SConstruct &&
|
---|
[440647ab] | 122 | sed -i "/get_contents()/s/,/.decode()&/" SConstruct &&
|
---|
[fabeff7] | 123 |
|
---|
[46491e5] | 124 | scons PREFIX=/usr</userinput></screen>
|
---|
[299d5c54] | 125 |
|
---|
[ba8f1a8] | 126 | <!-- I did not find this to be needed as of 1.3.9 -renodr
|
---|
[299d5c54] | 127 | <para>
|
---|
[7f08245] | 128 | If you wish to run the test suite, fix one file:
|
---|
| 129 | </para>
|
---|
| 130 |
|
---|
| 131 | <screen><userinput>sed -i test/test_buckets.c \
|
---|
| 132 | -e 's://\( buf_size = orig_len + (orig_len / 1000) + 12;\):/\*\1\ */:'</userinput></screen>
|
---|
[ba8f1a8] | 133 | -->
|
---|
[7f08245] | 134 |
|
---|
[440647ab] | 135 | <!-- With Python 3, check.py is broken. It could be fixed, but since the
|
---|
| 136 | testsuite hangs anyway...
|
---|
[7f08245] | 137 | <para>
|
---|
[45f8102] | 138 | To test the results, issue: <command>scons check</command>.
|
---|
| 139 | The tests currently will cause a hang.
|
---|
[440647ab] | 140 | </para>
|
---|
| 141 | -->
|
---|
| 142 |
|
---|
| 143 | <para>
|
---|
| 144 | This package does not come with a functional testsuite.
|
---|
[299d5c54] | 145 | </para>
|
---|
| 146 |
|
---|
| 147 | <para>
|
---|
| 148 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 149 | </para>
|
---|
| 150 |
|
---|
[b26bc4c] | 151 | <screen role="root"><userinput>scons PREFIX=/usr install</userinput></screen>
|
---|
[1b35ce63] | 152 |
|
---|
[299d5c54] | 153 | </sect2>
|
---|
| 154 |
|
---|
| 155 | <sect2 role="commands">
|
---|
| 156 | <title>Command Explanations</title>
|
---|
| 157 |
|
---|
[1b35ce63] | 158 | <para>
|
---|
[5bff14ac] | 159 | <command>sed -i "..."</command>: The first command removes the runtime
|
---|
[9c93f095] | 160 | path from a shared library and the next two commands disable building and
|
---|
[8558044] | 161 | installing of the static library. The fourth command corrects for
|
---|
[440647ab] | 162 | changes in scons-3.x. The last command allows to use <application>
|
---|
| 163 | Python 3</application>.
|
---|
[f3429309] | 164 | </para>
|
---|
[299d5c54] | 165 |
|
---|
[d0b65e4] | 166 | <para>
|
---|
| 167 | <option>GSSAPI=/usr</option>: Use this switch if you have installed a
|
---|
| 168 | GSSAPI library and you want <application>serf</application> to use it.
|
---|
| 169 | </para>
|
---|
| 170 |
|
---|
[299d5c54] | 171 | </sect2>
|
---|
| 172 |
|
---|
| 173 | <sect2 role="content">
|
---|
| 174 | <title>Contents</title>
|
---|
| 175 |
|
---|
| 176 | <segmentedlist>
|
---|
| 177 | <segtitle>Installed Programs</segtitle>
|
---|
| 178 | <segtitle>Installed Library</segtitle>
|
---|
| 179 | <segtitle>Installed Directory</segtitle>
|
---|
| 180 |
|
---|
| 181 | <seglistitem>
|
---|
| 182 | <seg>
|
---|
| 183 | None
|
---|
| 184 | </seg>
|
---|
| 185 | <seg>
|
---|
| 186 | libserf-1.so
|
---|
| 187 | </seg>
|
---|
| 188 | <seg>
|
---|
| 189 | /usr/include/serf-1
|
---|
| 190 | </seg>
|
---|
| 191 | </seglistitem>
|
---|
| 192 | </segmentedlist>
|
---|
| 193 |
|
---|
| 194 | <variablelist>
|
---|
| 195 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 196 | <?dbfo list-presentation="list"?>
|
---|
| 197 | <?dbhtml list-presentation="table"?>
|
---|
| 198 |
|
---|
| 199 | <varlistentry id="libserf-1">
|
---|
| 200 | <term><filename class="libraryfile">libserf-1.so</filename></term>
|
---|
| 201 | <listitem>
|
---|
| 202 | <para>
|
---|
[4c24eb0a] | 203 | contains the <application>Serf</application> API functions
|
---|
[299d5c54] | 204 | </para>
|
---|
| 205 | <indexterm zone="serf libserf-1">
|
---|
| 206 | <primary sortas="c-libserf-1">libserf-1.so</primary>
|
---|
| 207 | </indexterm>
|
---|
| 208 | </listitem>
|
---|
| 209 | </varlistentry>
|
---|
| 210 |
|
---|
| 211 | </variablelist>
|
---|
| 212 |
|
---|
| 213 | </sect2>
|
---|
| 214 |
|
---|
| 215 | </sect1>
|
---|