2013-07-02 21:19:17 +08:00
|
|
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
|
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
|
|
|
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
|
|
|
<!ENTITY % general-entities SYSTEM "../../general.ent">
|
|
|
|
%general-entities;
|
|
|
|
|
2016-06-16 08:22:26 +08:00
|
|
|
<!ENTITY serf-download-http "https://archive.apache.org/dist/serf/serf-&serf-version;.tar.bz2">
|
2013-07-02 21:19:17 +08:00
|
|
|
<!ENTITY serf-download-ftp " ">
|
2016-09-09 11:21:13 +08:00
|
|
|
<!ENTITY serf-md5sum "370a6340ff20366ab088012cd13f2b57">
|
|
|
|
<!ENTITY serf-size "144 KB">
|
2019-09-22 04:23:29 +08:00
|
|
|
<!ENTITY serf-buildsize "3.2 MB">
|
|
|
|
<!ENTITY serf-time "less than 0.1 SBU">
|
2013-07-02 21:19:17 +08:00
|
|
|
]>
|
|
|
|
|
|
|
|
<sect1 id="serf" xreflabel="Serf-&serf-version;">
|
|
|
|
<?dbhtml filename="serf.html"?>
|
|
|
|
|
|
|
|
<sect1info>
|
|
|
|
<date>$Date$</date>
|
|
|
|
</sect1info>
|
|
|
|
|
|
|
|
<title>Serf-&serf-version;</title>
|
|
|
|
|
|
|
|
<indexterm zone="serf">
|
|
|
|
<primary sortas="a-Serf">Serf</primary>
|
|
|
|
</indexterm>
|
|
|
|
|
|
|
|
<sect2 role="package">
|
|
|
|
<title>Introduction to Serf</title>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
The <application>Serf</application> package contains a C-based HTTP client
|
|
|
|
library built upon the Apache Portable Runtime (APR) library. It
|
|
|
|
multiplexes connections, running the read/write communication asynchronously.
|
|
|
|
Memory copies and transformations are kept to a minimum to provide high
|
|
|
|
performance operation.
|
|
|
|
</para>
|
|
|
|
|
2022-02-18 09:44:13 +08:00
|
|
|
&lfs111_checked;
|
2013-07-02 21:19:17 +08:00
|
|
|
|
|
|
|
<bridgehead renderas="sect3">Package Information</bridgehead>
|
|
|
|
<itemizedlist spacing="compact">
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Download (HTTP): <ulink url="&serf-download-http;"/>
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Download (FTP): <ulink url="&serf-download-ftp;"/>
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Download MD5 sum: &serf-md5sum;
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Download size: &serf-size;
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Estimated disk space required: &serf-buildsize;
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Estimated build time: &serf-time;
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</itemizedlist>
|
|
|
|
|
2021-12-31 01:25:23 +08:00
|
|
|
<bridgehead renderas="sect3">Additional Downloads</bridgehead>
|
|
|
|
<itemizedlist spacing="compact">
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Required patch:
|
|
|
|
<ulink url="&patch-root;/serf-&serf-version;-openssl3_fixes-1.patch"/>
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</itemizedlist>
|
|
|
|
|
2013-07-02 21:19:17 +08:00
|
|
|
<bridgehead renderas="sect3">Serf Dependencies</bridgehead>
|
|
|
|
|
|
|
|
<bridgehead renderas="sect4">Required</bridgehead>
|
|
|
|
<para role="required">
|
2018-02-12 01:41:19 +08:00
|
|
|
<xref linkend="apr-util"/> and
|
2013-08-01 00:05:27 +08:00
|
|
|
<xref linkend="scons"/>
|
2013-07-02 21:19:17 +08:00
|
|
|
</para>
|
|
|
|
|
2014-01-07 06:04:41 +08:00
|
|
|
<bridgehead renderas="sect4">Optional</bridgehead>
|
|
|
|
<para role="optional">
|
|
|
|
<xref linkend="mitkrb"/>, for the GSSAPI
|
|
|
|
</para>
|
|
|
|
|
2013-07-02 21:19:17 +08:00
|
|
|
<para condition="html" role="usernotes">
|
|
|
|
User Notes: <ulink url="&blfs-wiki;/serf"/>
|
|
|
|
</para>
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="installation">
|
|
|
|
<title>Installation of Serf</title>
|
|
|
|
|
2021-12-31 01:25:23 +08:00
|
|
|
<para>
|
|
|
|
First, fix an issue that causes compilation issues in other packages
|
|
|
|
when using OpenSSL-3:
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<screen><userinput remap="pre">patch -Np1 -i ../serf-&serf-version;-openssl3_fixes-1.patch</userinput></screen>
|
|
|
|
|
2013-07-02 21:19:17 +08:00
|
|
|
<para>
|
|
|
|
Install <application>Serf</application> by running the following
|
|
|
|
commands:
|
|
|
|
</para>
|
|
|
|
|
2017-09-26 09:35:42 +08:00
|
|
|
<screen><userinput>sed -i "/Append/s:RPATH=libdir,::" SConstruct &&
|
|
|
|
sed -i "/Default/s:lib_static,::" SConstruct &&
|
|
|
|
sed -i "/Alias/s:install_static,::" SConstruct &&
|
|
|
|
sed -i "/ print/{s/print/print(/; s/$/)/}" SConstruct &&
|
2019-01-12 04:34:09 +08:00
|
|
|
sed -i "/get_contents()/s/,/.decode()&/" SConstruct &&
|
2017-09-26 09:35:42 +08:00
|
|
|
|
2013-08-06 05:29:53 +08:00
|
|
|
scons PREFIX=/usr</userinput></screen>
|
2013-07-02 21:19:17 +08:00
|
|
|
|
2016-09-09 11:21:13 +08:00
|
|
|
<!-- I did not find this to be needed as of 1.3.9 -renodr
|
2013-07-02 21:19:17 +08:00
|
|
|
<para>
|
2014-10-23 00:24:46 +08:00
|
|
|
If you wish to run the test suite, fix one file:
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<screen><userinput>sed -i test/test_buckets.c \
|
|
|
|
-e 's://\( buf_size = orig_len + (orig_len / 1000) + 12;\):/\*\1\ */:'</userinput></screen>
|
2016-09-09 11:21:13 +08:00
|
|
|
-->
|
2014-10-23 00:24:46 +08:00
|
|
|
|
2019-01-12 04:34:09 +08:00
|
|
|
<!-- With Python 3, check.py is broken. It could be fixed, but since the
|
|
|
|
testsuite hangs anyway...
|
2014-10-23 00:24:46 +08:00
|
|
|
<para>
|
2017-09-09 13:07:56 +08:00
|
|
|
To test the results, issue: <command>scons check</command>.
|
|
|
|
The tests currently will cause a hang.
|
2019-01-12 04:34:09 +08:00
|
|
|
</para>
|
|
|
|
-->
|
|
|
|
|
|
|
|
<para>
|
|
|
|
This package does not come with a functional testsuite.
|
2013-07-02 21:19:17 +08:00
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
Now, as the <systemitem class="username">root</systemitem> user:
|
|
|
|
</para>
|
|
|
|
|
2013-08-22 21:12:00 +08:00
|
|
|
<screen role="root"><userinput>scons PREFIX=/usr install</userinput></screen>
|
2013-08-01 00:05:27 +08:00
|
|
|
|
2013-07-02 21:19:17 +08:00
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="commands">
|
|
|
|
<title>Command Explanations</title>
|
|
|
|
|
2013-08-01 00:05:27 +08:00
|
|
|
<para>
|
2014-01-06 01:31:12 +08:00
|
|
|
<command>sed -i "..."</command>: The first command removes the runtime
|
2014-02-16 18:51:23 +08:00
|
|
|
path from a shared library and the next two commands disable building and
|
2021-09-07 01:42:49 +08:00
|
|
|
installing of the static library. The fourth command corrects for
|
2019-01-12 04:34:09 +08:00
|
|
|
changes in scons-3.x. The last command allows to use <application>
|
|
|
|
Python 3</application>.
|
2015-11-13 22:24:57 +08:00
|
|
|
</para>
|
2013-07-02 21:19:17 +08:00
|
|
|
|
2014-01-07 06:04:41 +08:00
|
|
|
<para>
|
|
|
|
<option>GSSAPI=/usr</option>: Use this switch if you have installed a
|
|
|
|
GSSAPI library and you want <application>serf</application> to use it.
|
|
|
|
</para>
|
|
|
|
|
2013-07-02 21:19:17 +08:00
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="content">
|
|
|
|
<title>Contents</title>
|
|
|
|
|
|
|
|
<segmentedlist>
|
|
|
|
<segtitle>Installed Programs</segtitle>
|
|
|
|
<segtitle>Installed Library</segtitle>
|
|
|
|
<segtitle>Installed Directory</segtitle>
|
|
|
|
|
|
|
|
<seglistitem>
|
|
|
|
<seg>
|
|
|
|
None
|
|
|
|
</seg>
|
|
|
|
<seg>
|
|
|
|
libserf-1.so
|
|
|
|
</seg>
|
|
|
|
<seg>
|
|
|
|
/usr/include/serf-1
|
|
|
|
</seg>
|
|
|
|
</seglistitem>
|
|
|
|
</segmentedlist>
|
|
|
|
|
|
|
|
<variablelist>
|
|
|
|
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
|
|
|
<?dbfo list-presentation="list"?>
|
|
|
|
<?dbhtml list-presentation="table"?>
|
|
|
|
|
|
|
|
<varlistentry id="libserf-1">
|
|
|
|
<term><filename class="libraryfile">libserf-1.so</filename></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
2021-02-19 23:20:16 +08:00
|
|
|
contains the <application>Serf</application> API functions
|
2013-07-02 21:19:17 +08:00
|
|
|
</para>
|
|
|
|
<indexterm zone="serf libserf-1">
|
|
|
|
<primary sortas="c-libserf-1">libserf-1.so</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
</variablelist>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
</sect1>
|