[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 | <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 |
|
---|
[34fe2633] | 40 | &lfs91_checked;
|
---|
[299d5c54] | 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">
|
---|
[94b42903] | 80 | <xref linkend="apr-util"/> and
|
---|
[1b35ce63] | 81 | <xref linkend="scons"/>
|
---|
[299d5c54] | 82 | </para>
|
---|
| 83 |
|
---|
[d0b65e4] | 84 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 85 | <para role="optional">
|
---|
| 86 | <xref linkend="mitkrb"/>, for the GSSAPI
|
---|
| 87 | </para>
|
---|
| 88 |
|
---|
[299d5c54] | 89 | <para condition="html" role="usernotes">
|
---|
| 90 | User Notes: <ulink url="&blfs-wiki;/serf"/>
|
---|
| 91 | </para>
|
---|
| 92 | </sect2>
|
---|
| 93 |
|
---|
| 94 | <sect2 role="installation">
|
---|
| 95 | <title>Installation of Serf</title>
|
---|
| 96 |
|
---|
| 97 | <para>
|
---|
| 98 | Install <application>Serf</application> by running the following
|
---|
| 99 | commands:
|
---|
| 100 | </para>
|
---|
| 101 |
|
---|
[fabeff7] | 102 | <screen><userinput>sed -i "/Append/s:RPATH=libdir,::" SConstruct &&
|
---|
| 103 | sed -i "/Default/s:lib_static,::" SConstruct &&
|
---|
| 104 | sed -i "/Alias/s:install_static,::" SConstruct &&
|
---|
| 105 | sed -i "/ print/{s/print/print(/; s/$/)/}" SConstruct &&
|
---|
[440647ab] | 106 | sed -i "/get_contents()/s/,/.decode()&/" SConstruct &&
|
---|
[fabeff7] | 107 |
|
---|
[46491e5] | 108 | scons PREFIX=/usr</userinput></screen>
|
---|
[299d5c54] | 109 |
|
---|
[ba8f1a8] | 110 | <!-- I did not find this to be needed as of 1.3.9 -renodr
|
---|
[299d5c54] | 111 | <para>
|
---|
[7f08245] | 112 | If you wish to run the test suite, fix one file:
|
---|
| 113 | </para>
|
---|
| 114 |
|
---|
| 115 | <screen><userinput>sed -i test/test_buckets.c \
|
---|
| 116 | -e 's://\( buf_size = orig_len + (orig_len / 1000) + 12;\):/\*\1\ */:'</userinput></screen>
|
---|
[ba8f1a8] | 117 | -->
|
---|
[7f08245] | 118 |
|
---|
[440647ab] | 119 | <!-- With Python 3, check.py is broken. It could be fixed, but since the
|
---|
| 120 | testsuite hangs anyway...
|
---|
[7f08245] | 121 | <para>
|
---|
[45f8102] | 122 | To test the results, issue: <command>scons check</command>.
|
---|
| 123 | The tests currently will cause a hang.
|
---|
[440647ab] | 124 | </para>
|
---|
| 125 | -->
|
---|
| 126 |
|
---|
| 127 | <para>
|
---|
| 128 | This package does not come with a functional testsuite.
|
---|
[299d5c54] | 129 | </para>
|
---|
| 130 |
|
---|
| 131 | <para>
|
---|
| 132 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 133 | </para>
|
---|
| 134 |
|
---|
[b26bc4c] | 135 | <screen role="root"><userinput>scons PREFIX=/usr install</userinput></screen>
|
---|
[1b35ce63] | 136 |
|
---|
[299d5c54] | 137 | </sect2>
|
---|
| 138 |
|
---|
| 139 | <sect2 role="commands">
|
---|
| 140 | <title>Command Explanations</title>
|
---|
| 141 |
|
---|
[1b35ce63] | 142 | <para>
|
---|
[5bff14ac] | 143 | <command>sed -i "..."</command>: The first command removes the runtime
|
---|
[9c93f095] | 144 | path from a shared library and the next two commands disable building and
|
---|
[440647ab] | 145 | installing of the static library. The fourth command corrects for
|
---|
| 146 | changes in scons-3.x. The last command allows to use <application>
|
---|
| 147 | Python 3</application>.
|
---|
[f3429309] | 148 | </para>
|
---|
[299d5c54] | 149 |
|
---|
[d0b65e4] | 150 | <para>
|
---|
| 151 | <option>GSSAPI=/usr</option>: Use this switch if you have installed a
|
---|
| 152 | GSSAPI library and you want <application>serf</application> to use it.
|
---|
| 153 | </para>
|
---|
| 154 |
|
---|
[299d5c54] | 155 | </sect2>
|
---|
| 156 |
|
---|
| 157 | <sect2 role="content">
|
---|
| 158 | <title>Contents</title>
|
---|
| 159 |
|
---|
| 160 | <segmentedlist>
|
---|
| 161 | <segtitle>Installed Programs</segtitle>
|
---|
| 162 | <segtitle>Installed Library</segtitle>
|
---|
| 163 | <segtitle>Installed Directory</segtitle>
|
---|
| 164 |
|
---|
| 165 | <seglistitem>
|
---|
| 166 | <seg>
|
---|
| 167 | None
|
---|
| 168 | </seg>
|
---|
| 169 | <seg>
|
---|
| 170 | libserf-1.so
|
---|
| 171 | </seg>
|
---|
| 172 | <seg>
|
---|
| 173 | /usr/include/serf-1
|
---|
| 174 | </seg>
|
---|
| 175 | </seglistitem>
|
---|
| 176 | </segmentedlist>
|
---|
| 177 |
|
---|
| 178 | <variablelist>
|
---|
| 179 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 180 | <?dbfo list-presentation="list"?>
|
---|
| 181 | <?dbhtml list-presentation="table"?>
|
---|
| 182 |
|
---|
| 183 | <varlistentry id="libserf-1">
|
---|
| 184 | <term><filename class="libraryfile">libserf-1.so</filename></term>
|
---|
| 185 | <listitem>
|
---|
| 186 | <para>
|
---|
| 187 | contains the <application>Serf</application> API functions.
|
---|
| 188 | </para>
|
---|
| 189 | <indexterm zone="serf libserf-1">
|
---|
| 190 | <primary sortas="c-libserf-1">libserf-1.so</primary>
|
---|
| 191 | </indexterm>
|
---|
| 192 | </listitem>
|
---|
| 193 | </varlistentry>
|
---|
| 194 |
|
---|
| 195 | </variablelist>
|
---|
| 196 |
|
---|
| 197 | </sect2>
|
---|
| 198 |
|
---|
| 199 | </sect1>
|
---|