Skip to content

Commit

Permalink
Add libevhtp
Browse files Browse the repository at this point in the history
We need a custom version of libevhtp otherwise seafile hangs while
accessing a file.

haiwen/seafile#1119
  • Loading branch information
vHanda committed Jun 15, 2016
1 parent 99393e7 commit 108b8ae
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
4 changes: 4 additions & 0 deletions build-all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ abuild -r
cd $THISDIR/ccnet/
abuild -r

cd $THISDIR/libevhtp/
abuild checksum
abuild -r

cd $THISDIR/seafile/
abuild checksum
abuild -r
Expand Down
41 changes: 41 additions & 0 deletions libevhtp/APKBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# Contributor: <xmingske@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libevhtp
pkgver=1.2.9
pkgrel=0
pkgdesc="Flexible replacement for libevent's httpd API"
url="https://github.com/ellzey/libevhtp/"
arch="all"
license="BSD"
makedepends="cmake libevent-dev openssl-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/ellzey/libevhtp/archive/${pkgver}.tar.gz"
subpackages="$pkgname-dev"

_builddir="${srcdir}/${pkgname}-${pkgver}"

prepare() {
local pf
cd "${_builddir}"
for pf in $source; do
case $pf in
*.patch) msg $pf; patch -p1 -i "$srcdir"/${pf} || return 1;;
esac
done
}

build() {
cd "${_builddir}"
cmake -DCUSTOM_BINDIR=/usr/bin \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCUSTOM_DOCDIR="/usr/share/doc/${pkgname}" \
-DCUSTOM_SHAREDIR="/usr/share/${pkgname}" \
-DEVHTP_BUILD_SHARED=ON \

.
make || return 1
}

package() {
cd "${_builddir}"
make DESTDIR="${pkgdir}" install || return 1
}

0 comments on commit 108b8ae

Please sign in to comment.