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-02-11 01:08:17 +00:00
|
|
|
pkgver=1.4.0
|
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/"
|
|
|
|
license=('GPL2')
|
|
|
|
depends=('gcc-libs')
|
|
|
|
optdepends=('php')
|
2014-02-11 01:08:17 +00:00
|
|
|
source=("http://www.monkey-project.com/releases/1.4/$pkgname-$pkgver.tar.gz"
|
2013-02-08 19:45:21 +00:00
|
|
|
monkey
|
|
|
|
monkey.service)
|
2012-12-14 09:28:07 +00:00
|
|
|
install=monkey.install
|
2014-02-11 01:08:17 +00:00
|
|
|
md5sums=('c17e394b985ead873fc7e7cb2a05cef7'
|
|
|
|
'1527d1fbddddcfd69ad328639dcd0eed'
|
|
|
|
'ae1f2da03aa2a515a3bed0fb16ab7130')
|
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 \
|
2012-12-14 09:28:07 +00:00
|
|
|
--datadir=/srv/http --logdir=/var/log/$pkgname \
|
2013-06-02 07:22:41 +00:00
|
|
|
--plugdir=/usr/lib/$pkgname
|
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
|
|
|
|
2013-06-02 07:22:41 +00:00
|
|
|
install -Dm 755 "$srcdir/monkey" "$pkgdir/etc/rc.d/monkey"
|
|
|
|
install -Dm 644 "$srcdir/$pkgname.service" "$pkgdir/usr/lib/systemd/system/$pkgname.service"
|
2012-12-14 09:28:07 +00:00
|
|
|
}
|