From e7e9a1cfb9e52fb060cd0c01bb34e9567a04abbc Mon Sep 17 00:00:00 2001 From: Carlo Landmeter Date: Mon, 21 Sep 2015 14:52:47 +0200 Subject: testing/*: move to main --- main/monkey/APKBUILD | 53 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 main/monkey/APKBUILD (limited to 'main/monkey') diff --git a/main/monkey/APKBUILD b/main/monkey/APKBUILD new file mode 100644 index 0000000000..da40e6fe0e --- /dev/null +++ b/main/monkey/APKBUILD @@ -0,0 +1,53 @@ +# Contributor: Łukasz Jendrysik +# Contributor: Bartłomiej Piotrowski +# Maintainer: ScrumpyJack +pkgname=monkey +pkgver=1.5.6 +pkgrel=2 +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 mbedtls1-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" -- cgit v1.2.3