mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-02-22 08:12:21 +01:00
56 lines
1.5 KiB
Plaintext
56 lines
1.5 KiB
Plaintext
# 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"
|