2012-12-14 09:28:07 +00:00
|
|
|
#Maintainer: Christian Stankowic <info at stankowic hypen development dot net>
|
|
|
|
#Contributor: Gary Wright <wriggary at gmail dot com>
|
|
|
|
pkgname=monkey
|
2014-06-21 02:55:50 +00:00
|
|
|
pkgver=1.5.1
|
2013-06-24 01:38:04 +00:00
|
|
|
pkgrel=1
|
2012-12-14 09:28:07 +00:00
|
|
|
pkgdesc="A very small and fast open source web server for Linux"
|
2014-02-11 01:08:17 +00:00
|
|
|
arch=('i686' 'x86_64')
|
2012-12-14 09:28:07 +00:00
|
|
|
url="http://www.monkey-project.com/"
|
2014-06-21 02:55:50 +00:00
|
|
|
license=('Apache')
|
2012-12-14 09:28:07 +00:00
|
|
|
depends=('gcc-libs')
|
|
|
|
optdepends=('php')
|
2014-06-21 02:55:50 +00:00
|
|
|
source=("http://www.monkey-project.com/releases/1.5/$pkgname-$pkgver.tar.gz"
|
|
|
|
monkey)
|
2012-12-14 09:28:07 +00:00
|
|
|
install=monkey.install
|
2014-06-21 02:55:50 +00:00
|
|
|
md5sums=('2fe04135728f5c3a86c3a412059e0da3'
|
|
|
|
'1527d1fbddddcfd69ad328639dcd0eed')
|
2012-12-14 09:28:07 +00:00
|
|
|
|
|
|
|
build() {
|
|
|
|
cd $srcdir/$pkgname-$pkgver
|
2014-02-11 01:08:17 +00:00
|
|
|
./configure --prefix=/usr --bindir=/usr/bin --sysconfdir=/etc/$pkgname --default-user=http --default-port=80 \
|
2014-06-21 02:55:50 +00:00
|
|
|
--datadir=/srv/http --logdir=/var/log/$pkgname --plugdir=/usr/lib/$pkgname --enable-shared --systemddir=$pkgdir/lib/systemd/system --pidfile=/var/run/monkey.pid
|
2012-12-14 09:28:07 +00:00
|
|
|
make
|
2014-02-11 01:08:17 +00:00
|
|
|
}
|
2013-06-02 07:22:41 +00:00
|
|
|
|
|
|
|
package() {
|
|
|
|
cd $srcdir/$pkgname-$pkgver
|
|
|
|
|
|
|
|
make DESTDIR=$pkgdir install
|
2013-02-08 19:45:21 +00:00
|
|
|
|
2014-02-11 01:08:17 +00:00
|
|
|
msg2 "Change default pid file location from /var/log to /var/run/monkey"
|
2013-06-02 07:22:41 +00:00
|
|
|
sed -i -e "s/\/var\/log\/monkey\/monkey.pid/\/var\/run\/monkey.pid/" $pkgdir/etc/monkey/monkey.conf
|
2013-02-08 19:45:21 +00:00
|
|
|
|
2014-06-21 02:55:50 +00:00
|
|
|
msg2 "Disabling user setting in monkey configuration file"
|
|
|
|
sed -i -e "s/User http/#User http/g" $pkgdir/etc/monkey/monkey.conf
|
|
|
|
|
2013-06-02 07:22:41 +00:00
|
|
|
install -Dm 755 "$srcdir/monkey" "$pkgdir/etc/rc.d/monkey"
|
2012-12-14 09:28:07 +00:00
|
|
|
}
|