PKGBUILDs/aur/monkey/PKGBUILD

38 lines
1.3 KiB
Bash
Raw Normal View History

#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
pkgdesc="A very small and fast open source web server for Linux"
2014-02-11 01:08:17 +00:00
arch=('i686' 'x86_64')
url="http://www.monkey-project.com/"
2014-06-21 02:55:50 +00:00
license=('Apache')
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)
install=monkey.install
2014-06-21 02:55:50 +00:00
md5sums=('2fe04135728f5c3a86c3a412059e0da3'
'1527d1fbddddcfd69ad328639dcd0eed')
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
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
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
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"
}