mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
37 lines
1.3 KiB
Bash
37 lines
1.3 KiB
Bash
#Maintainer: Christian Stankowic <info at stankowic hypen development dot net>
|
|
#Contributor: Gary Wright <wriggary at gmail dot com>
|
|
pkgname=monkey
|
|
pkgver=1.5.1
|
|
pkgrel=1
|
|
pkgdesc="A very small and fast open source web server for Linux"
|
|
arch=('i686' 'x86_64')
|
|
url="http://www.monkey-project.com/"
|
|
license=('Apache')
|
|
depends=('gcc-libs')
|
|
optdepends=('php')
|
|
source=("http://www.monkey-project.com/releases/1.5/$pkgname-$pkgver.tar.gz"
|
|
monkey)
|
|
install=monkey.install
|
|
md5sums=('2fe04135728f5c3a86c3a412059e0da3'
|
|
'1527d1fbddddcfd69ad328639dcd0eed')
|
|
|
|
build() {
|
|
cd $srcdir/$pkgname-$pkgver
|
|
./configure --prefix=/usr --bindir=/usr/bin --sysconfdir=/etc/$pkgname --default-user=http --default-port=80 \
|
|
--datadir=/srv/http --logdir=/var/log/$pkgname --plugdir=/usr/lib/$pkgname --enable-shared --systemddir=$pkgdir/lib/systemd/system --pidfile=/var/run/monkey.pid
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd $srcdir/$pkgname-$pkgver
|
|
|
|
make DESTDIR=$pkgdir install
|
|
|
|
msg2 "Change default pid file location from /var/log to /var/run/monkey"
|
|
sed -i -e "s/\/var\/log\/monkey\/monkey.pid/\/var\/run\/monkey.pid/" $pkgdir/etc/monkey/monkey.conf
|
|
|
|
msg2 "Disabling user setting in monkey configuration file"
|
|
sed -i -e "s/User http/#User http/g" $pkgdir/etc/monkey/monkey.conf
|
|
|
|
install -Dm 755 "$srcdir/monkey" "$pkgdir/etc/rc.d/monkey"
|
|
}
|