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>
|
2013-02-08 19:45:21 +00:00
|
|
|
|
2013-02-08 19:47:32 +00:00
|
|
|
#ALARM: moonman
|
2013-02-08 19:45:21 +00:00
|
|
|
# -added .service file for systemd
|
|
|
|
# -changed default port to 80 (required by .service)
|
|
|
|
# -changed pid file dir from /var/log to /var/run/monkey
|
2013-02-22 01:05:35 +00:00
|
|
|
# -added fastcgi support
|
2013-02-08 19:45:21 +00:00
|
|
|
|
2012-12-14 09:28:07 +00:00
|
|
|
pkgname=monkey
|
|
|
|
pkgver=1.1.1
|
2013-02-22 01:05:35 +00:00
|
|
|
pkgrel=3
|
2012-12-14 09:28:07 +00:00
|
|
|
pkgdesc="A very small and fast open source web server for Linux"
|
2013-02-08 19:45:21 +00:00
|
|
|
arch=('arm')
|
2012-12-14 09:28:07 +00:00
|
|
|
url="http://www.monkey-project.com/"
|
|
|
|
license=('GPL2')
|
|
|
|
depends=('gcc-libs')
|
|
|
|
optdepends=('php')
|
|
|
|
source=("http://www.monkey-project.com/releases/1.1/$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
|
|
|
|
md5sums=('958d74ddcc595ae01b1d3916e9e7753c'
|
2013-02-08 19:45:21 +00:00
|
|
|
'1527d1fbddddcfd69ad328639dcd0eed'
|
|
|
|
'7881f60a6e9c4b2a43a6fe0d7b251362')
|
2012-12-14 09:28:07 +00:00
|
|
|
|
|
|
|
build() {
|
|
|
|
cd $srcdir/$pkgname-$pkgver
|
|
|
|
./configure --prefix=/usr --bindir=/usr/bin --sysconfdir=/etc/$pkgname \
|
|
|
|
--datadir=/srv/http --logdir=/var/log/$pkgname \
|
2013-02-22 01:05:35 +00:00
|
|
|
--enable-plugins=fastcgi --plugdir=/usr/lib/$pkgname
|
2012-12-14 09:28:07 +00:00
|
|
|
make
|
|
|
|
make DESTDIR=$pkgdir install
|
2013-02-08 19:45:21 +00:00
|
|
|
|
|
|
|
#change default pid file location from /var/log to /var/run/monkey
|
|
|
|
sed -i -e "s/\/var\/log\/monkey\/monkey.pid/\/var\/run\/monkey\/monkey.pid/" $startdir/pkg/etc/monkey/monkey.conf
|
|
|
|
|
|
|
|
#change default port to 80
|
|
|
|
sed -i -e "s/Port\ 2001/Port\ 80/" $startdir/pkg/etc/monkey/monkey.conf
|
|
|
|
|
|
|
|
install -d $pkgdir/etc/rc.d/
|
2012-12-14 09:28:07 +00:00
|
|
|
install -m 755 ../monkey $pkgdir/etc/rc.d/monkey
|
2013-02-08 19:45:21 +00:00
|
|
|
install -Dm644 "$srcdir/$pkgname.service" "$pkgdir/usr/lib/systemd/system/$pkgname.service"
|
2012-12-14 09:28:07 +00:00
|
|
|
}
|