aboutsummaryrefslogtreecommitdiffstats
path: root/community/monkey/APKBUILD
blob: 0b0adc6b5f1e747b83089576bf08ee048c1ebd11 (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
# Contributor: Łukasz Jendrysik <scadu@yandex.com>
# Contributor: Bartłomiej Piotrowski <bpiotrowski@alpinelinux.org>
# Maintainer: ScrumpyJack <scrumpyjack@st.ilet.to>
pkgname=monkey
pkgver=1.6.9
pkgrel=1
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 jemalloc-dev 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() {
	cd "$builddir"
}

build() {
	cd "$builddir"
	./configure \
		--musl-mode \
		--no-backtrace \
		--mbedtls-shared \
		--enable-plugins=tls,auth \
		--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="c401734985a936ee07dbff5eca7d176a  monkey-1.6.9.tar.gz"
sha256sums="f1122e89cda627123286542b0a18fcaa131cbe9d4f5dd897d9455157289148fb  monkey-1.6.9.tar.gz"
sha512sums="3540a17fffe57a9d4b88b6243c634dcf6a27ed894ae2a0d5d42a4881221a9d59ae67d4c7fcf087535360d20ccdadab16947cf3a7dc6d4e864d487f598eb0ba62  monkey-1.6.9.tar.gz"