Serf-1.3.9

#### Beyond Linux® From Scratch - Version 2019-02-27

### Chapter 17. Networking Libraries

- Prev

  rpcsvc-proto-1.4

- Next

  Text Web Browsers

- Up
- Home

# Serf-1.3.9

## Introduction to Serf

The Serf 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.

This package is known to build and work properly using an LFS-8.4 platform.

### Package Information

- Download (HTTP): https://archive.apache.org/dist/serf/serf-1.3.9.tar.bz2

- Download MD5 sum: 370a6340ff20366ab088012cd13f2b57

- Download size: 144 KB

- Estimated disk space required: 3.2 MB (additional 3 MB for the tests)

- Estimated build time: less than 0.1 SBU (additional 0.5 SBU for the tests)

### Serf Dependencies

#### Required

Apr-Util-1.6.1 and SCons-3.0.4

#### Optional

MIT Kerberos V5-1.17, for the GSSAPI

User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/serf

## Installation of Serf

Install Serf by running the following commands:

    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 &&
    sed -i "/get_contents()/s/,/.decode()&/"    SConstruct &&

    scons PREFIX=/usr

This package does not come with a functional testsuite.

Now, as the `root` user:

    scons PREFIX=/usr install

## Command Explanations

sed -i "...": The first command removes the runtime path from a shared library and the next two commands disable building and installing of the static library. The fourth command corrects for changes in scons-3.x. The last command allows to use Python 3.

`GSSAPI=/usr`: Use this switch if you have installed a GSSAPI library and you want serf to use it.

## Contents

Installed Programs: None
Installed Library: libserf-1.so
Installed Directory: /usr/include/serf-1

### Short Descriptions

`libserf-1.so` | contains the Serf API functions.

Last updated on 2019-02-15 15:01:29 -0600

- Prev

  rpcsvc-proto-1.4

- Next

  Text Web Browsers

- Up
- Home