aboutsummaryrefslogtreecommitdiffstats
path: root/community/monkey
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2016-03-18 06:30:38 +0000
committerTimo Teräs <timo.teras@iki.fi>2016-03-18 06:30:38 +0000
commit39cf49023af117dc9a75754f01fe448958bdd8f1 (patch)
treea4ddc772ad8e9012ca3b056daad4ad6204fae9e8 /community/monkey
parent0f7bad94558268b009016f58634b68736446105e (diff)
downloadaports-39cf49023af117dc9a75754f01fe448958bdd8f1.tar.bz2
aports-39cf49023af117dc9a75754f01fe448958bdd8f1.tar.xz
community/monkey: moved from main
Diffstat (limited to 'community/monkey')
-rw-r--r--community/monkey/APKBUILD55
1 files changed, 55 insertions, 0 deletions
diff --git a/community/monkey/APKBUILD b/community/monkey/APKBUILD
new file mode 100644
index 0000000000..2582cff5d1
--- /dev/null
+++ b/community/monkey/APKBUILD
@@ -0,0 +1,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"