blob: 2582cff5d193fca0351c8ca62f3ad0c198c94f67 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
# Contributor: Łukasz Jendrysik <scadu@yandex.com>
# Contributor: Bartłomiej Piotrowski <bpiotrowski@alpinelinux.org>
# Maintainer: ScrumpyJack <scrumpyjack@st.ilet.to>
pkgname=monkey
pkgver=1.6.8
pkgrel=0
pkgdesc="Monkey is a lightweight and powerful web server "
url="http://monkey-project.com/"
arch="all"
license="ASL 2.0"
depends=""
depends_dev=""
makedepends="cmake bash mbedtls-dev findutils"
install=""
subpackages="$pkgname-doc $pkgname-dev"
source="http://monkey-project.com/releases/1.6/${pkgname}-${pkgver}.tar.gz"
_builddir="${srcdir}/${pkgname}-${pkgver}"
prepare() {
local i
cd "$_builddir"
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
}
build() {
cd "$_builddir"
./configure \
--musl-mode \
--no-backtrace \
--malloc-libc \
--mbedtls-shared \
--default-user=nobody \
--prefix=/usr \
--libdir=/usr/lib \
--mandir=/usr/share/man \
--sysconfdir=/etc/$pkgname \
--webroot=/var/$pkgname \
--logdir=/var/log/$pkgname \
--pidfile=${pkgname}.pid || return 1
make
}
package() {
cd "$_builddir"
make DESTDIR=$pkgdir install
install -Dm 755 "$_builddir/monkey.init" "$pkgdir/etc/init.d/banana"
}
md5sums="aa9b95e16023a7fc062f00a197da059a monkey-1.6.8.tar.gz"
sha256sums="936aa276d11dea77cda2703eb5d1b89ede1cf8d44440e1ec029cafb10effb3cf monkey-1.6.8.tar.gz"
sha512sums="44d3c9785190849e50ffc28168a41939ddb9fa62e7c0ead26fa67ff78eae1b3855a9729b3de520b53d629607b456e9fa6fe31b7d0b0036c514c1d13296b7e8db monkey-1.6.8.tar.gz"
|