mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-24 19:55:26 +03:00
47 lines
1.2 KiB
Text
47 lines
1.2 KiB
Text
# 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=5
|
|
pkgdesc="Monkey is a lightweight and powerful web server"
|
|
url="http://monkey-project.com"
|
|
arch="all"
|
|
license="Apache-2.0"
|
|
makedepends="bash cmake findutils mbedtls-dev"
|
|
subpackages="$pkgname-doc $pkgname-dev"
|
|
source="https://dev.alpinelinux.org/archive/monkey/monkey-$pkgver.tar.gz"
|
|
|
|
build() {
|
|
export CFLAGS="$CFLAGS -fcommon"
|
|
|
|
./configure \
|
|
--musl-mode \
|
|
--no-backtrace \
|
|
--mbedtls-shared \
|
|
--malloc-libc \
|
|
--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
|
|
make
|
|
}
|
|
|
|
check() {
|
|
./build/mk_bin/monkey --help > /dev/null
|
|
./build/plugins/auth/tools/mk_passwd --help > /dev/null
|
|
|
|
}
|
|
package() {
|
|
make DESTDIR=$pkgdir install
|
|
install -Dm 755 "$builddir/monkey.init" "$pkgdir/etc/init.d/banana"
|
|
}
|
|
|
|
sha512sums="
|
|
3540a17fffe57a9d4b88b6243c634dcf6a27ed894ae2a0d5d42a4881221a9d59ae67d4c7fcf087535360d20ccdadab16947cf3a7dc6d4e864d487f598eb0ba62 monkey-1.6.9.tar.gz
|
|
"
|