aboutsummaryrefslogtreecommitdiffstats
path: root/testing/monkey/APKBUILD
blob: ef1cce07a5942537fe4723528acf8e4b808b5083 (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
# Contributor: Łukasz Jendrysik <scadu@yandex.com>
# Contributor: Bartłomiej Piotrowski <bpiotrowski@alpinelinux.org>
# Maintainer: ScrumpyJack <scrumpyjack@me.com>
pkgname=monkey
pkgver=1.5.6
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="bash mbedtls-dev findutils"
install=""
subpackages="$pkgname-doc"
source="http://monkey-project.com/releases/1.5/${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 \
	--enable-plugins=polarssl \
	--prefix=/usr \
	--mandir=/usr/share/man \
	--sysconfdir=/etc/$pkgname \
	--datadir=/var/$pkgname \
	--logdir=/var/log/$pkgname \
	--plugdir=/etc/$pkgname \
	--pidfile=/var/run/${pkgname}.pid  || return 1
	make
}

package() {
	cd "$_builddir"
	make DESTDIR=$pkgdir install
	install -Dm 755 "$pkgdir/usr/bin/banana" "$pkgdir/etc/init.d/banana"
}

md5sums="9699e4c9ea6ce6b989907c252ae80254  monkey-1.5.6.tar.gz"
sha256sums="7c3d845306aa74ee6effd7ab6169d16ac4e6450e564954d0d0baa2d1e9be1a22  monkey-1.5.6.tar.gz"
sha512sums="4c7c627cb047252252b22da5fba179a21fb5b8dc6280b96307af52757ad049d24b0daaaea51dca4f0429af5e6499c239f6b62a03654cc9e7ad98ae8f5149b64c  monkey-1.5.6.tar.gz"