-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
We need a custom version of libevhtp otherwise seafile hangs while accessing a file. haiwen/seafile#1119
- Loading branch information
Showing
2 changed files
with
45 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} |