Skip to content

Commit

Permalink
serf: Add version 1.3.9
Browse files Browse the repository at this point in the history
Apache Serf

The serf library is a high performance C-based HTTP client library built
upon the Apache Portable Runtime (APR) library. It is permissively
licensed under the Apache License, v2.

Key features:

    multiplexed, asynchronous connections
    SSL/TLS support
    full HTTP pipelining
    multiple authentication modes (Basic, Digest, Kerberos/NTLM)
    zero-copy support for increased throughput

Serf is the default client library of Apache Subversion and Apache
OpenOffice

Requires SCons build system (available from PyPi)
but this specific package requires python2, because
the SContruct file (which is SCons' Makefile in python
language) uses python2 syntax.

SCons strictly doesn't require build_in_sourcedir (scons -Y), but
I don't see the point of separate sources anyway, when we start
each build from scratch.

I recommend to run this bee file with

    unshare -U -r ./serf.be0

instead of

    sudo ./serf.be0

Well, I think that is better for ANY bee file, but here we
invoke a downloaded PyPi package.
  • Loading branch information
donald committed Sep 11, 2020
1 parent a79797c commit f8fab8e
Showing 1 changed file with 57 additions and 0 deletions.
57 changes: 57 additions & 0 deletions serf.be0
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
#!/usr/bin/env beesh

# BEE_VERSION serf-1.3.9-0

# more info: https://serf.apache.org

SRCURL[0]="https://www.apache.org/dist/serf/serf-${PKGVERSION}.tar.bz2"

# requires SCons build system (available from PyPi)
# but this specific package requires python2, because
# the SContruct file (which is SCons' Makefile in python
# lanuage) uses python2 syntax.
#
# SCons strictly doesn't require build_in_sourcedir (scons -Y), but
# I don't see the point of separate sources anyway, when we start
# each build from scratch.

# I recommend to run this bee file with
# unshare -U -r ./serf.be0
# instead of
# sudo ./serf.be0
# Well, I think that is better for ANY bee file, but here we
# invoke a downloaded PyPi package.

# PATCHURL+=()

build_in_sourcedir

# sourcesubdir_append src

#mee_extract() {
# bee_extract "${@}"
#}

#mee_patch() {
# bee_patch "${@}"
#}

#mee_configure() {
# bee_configure
#}

mee_build() {
start_cmd virtualenv2 venv0
. venv0/bin/activate
start_cmd pip install scons
start_cmd scons PREFIX=$PREFIX
# start_cmd scons check
}

mee_install() {
start_cmd scons install --install-sandbox=$D
}

#mee_install_post() {
# exit
#}

0 comments on commit f8fab8e

Please sign in to comment.