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)
|
2013-06-16 08:47:01 +00:00
|
|
|
# -changed pid file dir from /var/log to /var/run
|
|
|
|
# -changed default User from nobody to http (for compatibility)
|
2013-02-08 19:45:21 +00:00
|
|
|
|
2012-12-14 09:28:07 +00:00
|
|
|
pkgname=monkey
|
2013-10-21 05:53:35 +00:00
|
|
|
pkgver=1.3.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"
|
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')
|
2013-06-02 07:22:41 +00:00
|
|
|
source=("http://www.monkey-project.com/releases/$(echo $pkgver |cut -c 1-3)/$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
|
2013-10-21 05:53:35 +00:00
|
|
|
md5sums=('04e9c73734f6bd3fb53be9956361c635'
|
2013-02-08 19:45:21 +00:00
|
|
|
'1527d1fbddddcfd69ad328639dcd0eed'
|
2013-02-24 02:54:46 +00:00
|
|
|
'ae1f2da03aa2a515a3bed0fb16ab7130')
|
2012-12-14 09:28:07 +00:00
|
|
|
|
|
|
|
build() {
|
|
|
|
cd $srcdir/$pkgname-$pkgver
|
|
|
|
./configure --prefix=/usr --bindir=/usr/bin --sysconfdir=/etc/$pkgname \
|
2013-10-21 05:53:35 +00:00
|
|
|
--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
|
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
|
|
|
|
2013-06-16 08:47:01 +00:00
|
|
|
msg2 "Changing default pid file location from /var/log to /var/run"
|
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
|
|
|
}
|